景区详情问题处理

dev
Tuzki 2 years ago
parent 2017fece05
commit d9526a4742
  1. 2
      common/param.js
  2. 19
      pages.json
  3. 14
      pages/scenic/scenicdetial/scenicdetial.vue
  4. 8
      pages/scenic/sceniclist/sceniclist.vue

@ -5,7 +5,7 @@ module.exports = {
clng: 114.489380, //当前经度
clat: 38.042040 ,//当前纬度
update_oauthTime: 1000*60*60*12 ,//更新时间
appid: "wxadee3f26be2eb217",
appid: "wxdcc562d1cd081331",
user_info:null ,//用户信息
cityName:"雄安",
cityPy:"xiongan",

@ -343,17 +343,16 @@
"path": "pages/onlive/onlivedetial/onlivedetial",
"style": {}
},
// {
// "path": "pages/index/index_html",
// "style": {
// "navigationStyle": "custom",
// "app-plus": {
// "titleView": false
// }
// }
// },
{
"path": "pages/index/index_html",
"style": {
"navigationStyle": "custom",
"app-plus": {
"titleView": false
}
}
}
, {
"path": "pages/search/search",
"style": {
"navigationBarTitleText": "搜索"

@ -113,7 +113,7 @@
<view
v-if="isShowBuy == 'YES' && isShowLink_st == 'YES'"
:class="[scenicDetail.ticketinfo.length != null && scenicDetail.ticketinfo.length > 0 ? 'mt_1' : 'mt_1 btn_open']"
:class="[scenicDetail.ticketinfo&&scenicDetail.ticketinfo.length != null && scenicDetail.ticketinfo.length > 0 ? 'mt_1' : 'mt_1 btn_open']"
class="piao_box"
>
<view class="mode_com">
@ -447,11 +447,16 @@ export default {
if(!that.netType){
return;
}
this.$util.hideLoadingByTime();
// #ifdef H5
const oMeta = document.createElement('meta');
oMeta.httpEquiv = "Cache-Control";
oMeta.content = "no-cache, no-store, must-revalidate"
document.getElementsByTagName('head')[0].appendChild(oMeta);
// #endif
// this.requestLocation();
that.$util.saveOperatorLog(that, 'SCENIC', options.guid);
//
@ -496,6 +501,12 @@ export default {
// setTimeout(function() {
// uni.hideLoading();
// }, 500);
// // #ifdef MP-WEIXIN
// const oMeta = document.createElement('meta');
// oMeta.httpEquiv = "Cache-Control";
// oMeta.content = "no-cache, no-store, must-revalidate"
// document.getElementsByTagName('head')[0].appendChild(oMeta);
// // #endif
},
data() {
return {
@ -619,6 +630,7 @@ export default {
guid: guid,
userkey: this.$param.userkey
};
console.log(data,'0-0-0-0')
this.$Request.post(this.$config.scenicDetial, data).then(res => {
this.info = res.data;
this.tickeTlist = res.data.ticketlist;

@ -66,8 +66,8 @@
</view>
<view class="category-content">
<view class="product-item" v-for="(p_item, p_index) in scenicList.content" :key="p_item.id">
<image @tap="gotoDetail(p_item.cid)" class="product-img" :src="p_item.thumb"></image>
<view class="product-item" v-for="(p_item, p_index) in scenicList.content" :key="p_index">
<image @click="gotoDetail(p_item)" class="product-img" :src="p_item.thumb"></image>
<text class="product-title1">{{ p_item.cname }}</text>
<text class="product-title">{{ p_item.slevel }}</text>
<text class="product-title">{{ p_item.address }}</text>
@ -396,9 +396,11 @@ export default {
}
},
gotoDetail(e) {
console.log(e)
uni.navigateTo({
url: `/pages/scenic/scenicdetial/scenicdetial?guid=` + e + ``
url: `/pages/scenic/scenicdetial/scenicdetial?guid=` + e.cid + ``
});
},
getRedisRegion: function() {
var that = this;

Loading…
Cancel
Save