Commit a68f2c14 authored by 潘永坪's avatar 潘永坪

bug处理

parent 8a3c7f66
......@@ -8,14 +8,14 @@
</u-swiper>
</view>
<view class="middle">
<view class="middle-introduce">
<view class="middle-introduce" v-if="detailData">
<view class="introduce-one" @click="showDetail()">
<view class="merchantname">
{{detailData.name}}
</view>
<view class="businesstime">
<view style="font-size: 24rpx;">
<text style="color: #3688ff;margin-right: 20rpx;">{{status}}</text>
<text style="color: #3688ff;margin-right: 20rpx;">{{tagStatus}}</text>
<text style="color: #999;">
{{detailData.businessStart?detailData.businessStart.substr(0,5):""}}~{{detailData.businessStart?detailData.businessEnd.substr(0,5):""}}
</text>
......@@ -120,7 +120,7 @@ export default {
detailData:'',//详情数据
currentNum:0,//轮播图下标
tagArr:[],//标签数组
status:'',//标签状态,开园或者闭园
tagStatus:'',//标签状态,开园或者闭园
buyKnowData:'',//购票须知数据
companyId:'',//公司Id
openid:uni.getStorageSync('openid')||'',//openid
......@@ -256,6 +256,10 @@ export default {
this.$request('scenic/user/merchant/findDetailInfo',data).then((res)=>{
if(res.code=='00'){
this.detailData=res.data
//解决详情里面图片太宽超出屏幕宽度出现滚动条的问题
if(this.detailData.introduce){
this.detailData.introduce=this.detailData.introduce.replace(/\<img/gi, '<img style="max-width:100%;height:auto;"')
}
if(this.detailData.tag){
this.tagArr=this.detailData.tag.split(',')
}
......@@ -268,9 +272,9 @@ export default {
end=parseInt(this.$commonjs.changeTime(this.detailData.businessEnd.substr(0,5)))
}
if(start<this.nowTime<end){
this.status='开园中'
this.tagStatus='开园中'
}else{
this.status='闭园中'
this.tagStatus='闭园中'
}
}else{
uni.showToast({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment