Commit cbeeca88 by 李嘉林

直接进入订单详情

parent 4f267b7d
<template>
<div>
<web-view v-if="withoutScene" :src="pageUrl" @message="getMessage" @error="handleError" @load="handleLoad"></web-view>
<web-view v-if="withoutScene" :src="newPageUrl" @message="getMessage" @error="handleError" @load="handleLoad"></web-view>
</div>
</template>
......@@ -16,6 +16,7 @@ const { log } = app;
export default {
data() {
return {
newPageUrl: "",
code: '',
shopId: this.$store.state.mixid,
options: {},
......@@ -65,8 +66,9 @@ export default {
if(wx.getStorageSync("enterpriseAccount")){
this.params +=`&enterpriseAccount=${wx.getStorageSync("enterpriseAccount")}`;
}
console.log(this.link,'=======',this.page,'++++++++++++++',this.params,'************')
let pageUrl1 = (this.page.startsWith('http://') || this.page.startsWith('https://'))? (this.page + this.params) : this.link+this.page+this.params
console.log(pageUrl1,'--------pageUrl1')
console.log(pageUrl1,'--------pageUrl1--')
let pageUrl = forUrlAddKey(decodeURIComponent(pageUrl1));
console.log(pageUrl,'--------pageUrl')
// let pageUrl = this.link+this.page+this.params;
......@@ -75,6 +77,10 @@ export default {
},
watch: {
pageUrl(n,o) {
if(!this.withoutScene) {
return;
}
this.newPageUrl = this.pageUrl;
// 进入直播页面调用不息屏api
console.log(this.pageUrl,this.pageUrl.includes('/liveBroadcast/lived'),"this.pageUrl.includes('/liveBroadcast/lived')")
if(this.pageUrl.includes('/liveBroadcast/lived')){
......@@ -123,6 +129,7 @@ export default {
}
},
onLoad(options) {
console.log(options,'---options')
if(wx.getStorageSync("sessionid")) {
//清空门店id
......@@ -217,7 +224,8 @@ export default {
}
options.params && (this.params += "&" + serialize(decodeURIComponent(options.params)));
} else if (options.from && options.from == "themeLink") {
log.info('options.from == "themeLink"')
log.info('options.from == "themeLink')
console.log('options.from == "themeLink')
// 多主题link
this.page = decodeURIComponent(options.backpath);
this.params += "&" + decodeURIComponent(options.params);
......
......@@ -160,7 +160,7 @@ export default {
},
// 是否开启企业要货
whetherOpenEnterprisesWantGoods(){
return this.mpApp.globalData.shopInfo.whetherOpenEnterprisesWantGoods==1?1:0
return this.mpApp.globalData.shopInfo && this.mpApp.globalData.shopInfo.whetherOpenEnterprisesWantGoods==1?1:0
},
},
onShow() {
......
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