|
|
|
@ -60,10 +60,10 @@ |
|
|
|
|
<span class="ticket-rule">{{ item.refundRulesName }}</span> |
|
|
|
|
</view> |
|
|
|
|
<view class="ticket-tips"> |
|
|
|
|
<view :class="item.qmxSettlementPrice == null ? 'ticket-price' :'decoration'">{{ |
|
|
|
|
<view class="ticket-price" v-if="item.qmxId == null">{{ |
|
|
|
|
item.settlementPrice |
|
|
|
|
| money }} <span class="m-danwei">元</span></view> |
|
|
|
|
<view class="ticket-price" v-if="item.qmxSettlementPrice!=null">{{ item.qmxSettlementPrice |
|
|
|
|
<view class="ticket-price" v-else>{{ item.qmxSettlementPrice |
|
|
|
|
| money }} <span class="m-danwei">元</span></view> |
|
|
|
|
</view> |
|
|
|
|
<view class="btn-box"> |
|
|
|
@ -74,10 +74,11 @@ |
|
|
|
|
</view> |
|
|
|
|
<!-- 攻略 --> |
|
|
|
|
<view class="mode_com mt_1 gl" v-if="wanleList.length > 0 && wanleList != undefined"> |
|
|
|
|
<text class="tit_com">附近玩乐</text> |
|
|
|
|
<text class="tit_com">推荐景区</text> |
|
|
|
|
<text v-if="wanleList.length == 0 || wanleList == undefined" class="mssj_adr">暂无数据</text> |
|
|
|
|
<view class="category-content"> |
|
|
|
|
<view class="product-item" v-for="(p_item, p_index) in wanleList"> |
|
|
|
|
<view class="product-item" v-for="(p_item, p_index) in wanleList" @click="detailInfo(p_item.cid)" |
|
|
|
|
:key="p_index"> |
|
|
|
|
<image class="product-img" :src="p_item.thumb || p_item.slogo"></image> |
|
|
|
|
<view class="m-content"> |
|
|
|
|
<text class="product-title1">{{ p_item.cname || p_item.sname }}</text> |
|
|
|
@ -150,12 +151,12 @@ export default { |
|
|
|
|
mask: true, |
|
|
|
|
}); |
|
|
|
|
this.guid = options.guid; |
|
|
|
|
if (options.list != "" && options.list != null) { |
|
|
|
|
const arr = JSON.parse(options.list); |
|
|
|
|
// if (options.list != "" && options.list != null) { |
|
|
|
|
// const arr = JSON.parse(options.list); |
|
|
|
|
|
|
|
|
|
this.wanleList = arr; |
|
|
|
|
// this.wanleList = arr; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
// } |
|
|
|
|
this.detailInfo(options.guid); |
|
|
|
|
this.getIsShow(); |
|
|
|
|
// #ifdef H5 |
|
|
|
@ -263,6 +264,28 @@ export default { |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getRedisData(){ |
|
|
|
|
var data = { |
|
|
|
|
key: this.$param.userkey + "_scenic_list", |
|
|
|
|
}; |
|
|
|
|
this.$Request.post(this.$config.getRedisData, data).then((res) => { |
|
|
|
|
if (res.status == 200 && res.data.error == 0) { |
|
|
|
|
let list = []; |
|
|
|
|
list = res.data.list[0].content; |
|
|
|
|
let filteredList = list.filter(item => { |
|
|
|
|
return item.isrecommend === "YES" && item.cid != this.guid; |
|
|
|
|
}); |
|
|
|
|
if (Array.isArray(filteredList) && filteredList.length>0){ |
|
|
|
|
filteredList.forEach(item=>{ |
|
|
|
|
item.thumb = this.$config.ROOTPATH + item.thumb; |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
this.wanleList = filteredList |
|
|
|
|
} else { |
|
|
|
|
this.wanleList = [] |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
bookIt(val) { |
|
|
|
|
this.judgeLogin((resa) => { |
|
|
|
|
const obj = { |
|
|
|
@ -346,6 +369,7 @@ export default { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
detailInfo: function (guid) { |
|
|
|
|
this.guid = guid |
|
|
|
|
/* var that = this; |
|
|
|
|
var data = { |
|
|
|
|
key: this.$param.userkey+'_scenic_' + guid |
|
|
|
@ -413,6 +437,7 @@ export default { |
|
|
|
|
|
|
|
|
|
this.getTicketList(this.info.controlInfo.cyjcScenicId); |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
this.getRedisData() |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|