Commit 0e5ea495 by zhangzhen

细节优化

parent cac52536
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
value:{ value:{
type:Boolean, type:Boolean,
default:true default:true
},
storeId:{
type: [String, Number]
} }
}, },
data() { data() {
...@@ -58,7 +61,8 @@ ...@@ -58,7 +61,8 @@
], ],
timer:null, timer:null,
orderInfo:{}, orderInfo:{},
servicePhone:'' servicePhone:'',
}; };
}, },
watch:{ watch:{
...@@ -74,7 +78,6 @@ ...@@ -74,7 +78,6 @@
}else{ }else{
this.show = val this.show = val
} }
} }
}, },
mounted() { mounted() {
...@@ -100,9 +103,9 @@ ...@@ -100,9 +103,9 @@
this.onGetOrderByAvailable(val.value) this.onGetOrderByAvailable(val.value)
return return
} }
if(val.routePath){ if(val.value===1){
uni.navigateTo({ uni.navigateTo({
url:val.routePath url:val.routePath+'?storeId='+this.storeId
}) })
} }
}, },
......
...@@ -124,8 +124,11 @@ ...@@ -124,8 +124,11 @@
return moment(val).format("YYYY-MM-DD HH:mm:ss") return moment(val).format("YYYY-MM-DD HH:mm:ss")
} }
}, },
onLoad() { onLoad(option) {
// this.$refs.popup.open(); console.log(option,"canshu")
if(option&&option.storeId){
this.storeId = option.storeId;
}
this.eventChannel = this.getOpenerEventChannel(); this.eventChannel = this.getOpenerEventChannel();
this.eventChannel.on('acceptDataFromOpenerPage', (data) => { this.eventChannel.on('acceptDataFromOpenerPage', (data) => {
console.log(data,99999) console.log(data,99999)
...@@ -156,6 +159,7 @@ ...@@ -156,6 +159,7 @@
title:'加载中...' title:'加载中...'
}) })
getStoreListByCouponCode({ getStoreListByCouponCode({
storeId: uni.getStorageSync('storeId') || this.storeId,
code: this.qrCode, code: this.qrCode,
longitude:uni.getStorageSync("longitude"), longitude:uni.getStorageSync("longitude"),
latitude:uni.getStorageSync("latitude") latitude:uni.getStorageSync("latitude")
......
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
<ToolBox v-model="show" /> <ToolBox v-model="show" :storeId="storeInfo.id" />
<uni-popup ref="popup" type="bottom"> <uni-popup ref="popup" type="bottom">
<view class="flex-col location-box"> <view class="flex-col location-box">
<view class="flex-col content-box"> <view class="flex-col content-box">
...@@ -237,7 +237,9 @@ ...@@ -237,7 +237,9 @@
scrollTop: 0, scrollTop: 0,
storeId: '', storeId: '',
storeList: [], storeList: [],
storeInfo: {}, storeInfo: {
id:''
},
statusBarHeight: this.statusBarHeight, statusBarHeight: this.statusBarHeight,
hostUrl: config.hostUrl, hostUrl: config.hostUrl,
assetsPath: config.assetsPath, assetsPath: config.assetsPath,
......
...@@ -1374,7 +1374,7 @@ ...@@ -1374,7 +1374,7 @@
onNavToCheckedCoupon() { onNavToCheckedCoupon() {
let that = this; let that = this;
uni.navigateTo({ uni.navigateTo({
url: "/pages/couponCheck/couponCheck?openShopUuid=" + this.roomInfo.openShopUuid, url: "/pages/couponCheck/couponCheck?storeId=" + this.roomInfo.storeId,
success: (res) => { success: (res) => {
res.eventChannel.emit('acceptDataFromOpenerPage', { res.eventChannel.emit('acceptDataFromOpenerPage', {
orderPage:true , orderPage:true ,
......
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