订单相关修改提测
This commit is contained in:
@@ -53,7 +53,6 @@
|
||||
},
|
||||
watch: {
|
||||
forceUpdate(val,oldval) {
|
||||
console.log(val,oldval)
|
||||
// 在 forceUpdate 改变时执行更新操作
|
||||
let time = uni.cache.get('popUpTime') ? new Date().getTime() - uni.cache.get('popUpTime') : 1000;
|
||||
if ( time >= 1000 ) {
|
||||
@@ -62,9 +61,9 @@
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted () {
|
||||
// if (uni.cache.get('shopUser') && uni.cache.get('token')) {
|
||||
// if (uni.cache.get('shopId') && uni.cache.get('token')) {
|
||||
// }
|
||||
|
||||
},
|
||||
@@ -94,7 +93,7 @@
|
||||
*/
|
||||
async getPopUpAd () {
|
||||
let res = await this.api.getPopUpAd({
|
||||
shopId: uni.cache.get('shopUser')
|
||||
shopId: uni.cache.get('shopId')
|
||||
})
|
||||
if (res.code == 0) {
|
||||
this.popupadList = [];
|
||||
@@ -141,6 +140,7 @@
|
||||
// updateTime
|
||||
|
||||
}
|
||||
this.viewswiperShow = false;
|
||||
if ( this.popupadList.length > 0 ) {
|
||||
this.viewswiperShow = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user