景区详情问题处理

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

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

@ -9,7 +9,7 @@ import util from './common/util' //工具类
import param from './common/param' //默认经纬度 import param from './common/param' //默认经纬度
import Base64 from './common/Base64' //工具类 import Base64 from './common/Base64' //工具类
import MD5 from './common/MD5' import MD5 from './common/MD5'
// #ifdef H5 // #ifdef H5
import wechat from './common/wechat' import wechat from './common/wechat'
Vue.prototype.$wechat =wechat; Vue.prototype.$wechat =wechat;
// #endif // #endif

@ -343,17 +343,16 @@
"path": "pages/onlive/onlivedetial/onlivedetial", "path": "pages/onlive/onlivedetial/onlivedetial",
"style": {} "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", "path": "pages/search/search",
"style": { "style": {
"navigationBarTitleText": "搜索" "navigationBarTitleText": "搜索"

@ -382,7 +382,7 @@ export default {
window.location.href="https://www.baidu.com?url=svg&value="+url; window.location.href="https://www.baidu.com?url=svg&value="+url;
break; break;
default: default:
break; break;
} }
}); });

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

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

Loading…
Cancel
Save