优化购物车

master
chen 2022-07-27 08:59:52 +08:00
parent acfacfde66
commit 042b5384e4
24 changed files with 30 additions and 32 deletions

View File

@ -79,15 +79,6 @@
timeout:null timeout:null
} }
}, },
computed: {
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onShow() { onShow() {
uni.removeStorageSync('orderList'); uni.removeStorageSync('orderList');
uni.removeStorageSync('payType'); uni.removeStorageSync('payType');
@ -106,6 +97,13 @@
}) })
return sum; return sum;
}, },
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
}, },
methods: { methods: {
// //

View File

@ -92,7 +92,7 @@
} }
}, },
onShow() { onShow() {
this.$toolAll.tools.isLogin();
}, },
onLoad(options) { onLoad(options) {
this.checkDor(); this.checkDor();

View File

@ -88,7 +88,7 @@
  return shareObj;   return shareObj;
}, },
onShow() { onShow() {
this.$toolAll.tools.isLogin();
}, },
onLoad(options) { onLoad(options) {
uni.getStorageSync('shareAll')!='' ? this.dataList[1].num = uni.getStorageSync('shareAll').share_users.total : this.dataList[1].num = 0 uni.getStorageSync('shareAll')!='' ? this.dataList[1].num = uni.getStorageSync('shareAll').share_users.total : this.dataList[1].num = 0

View File

@ -73,7 +73,7 @@
} }
}, },
onShow() { onShow() {
this.$toolAll.tools.isLogin()
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('token')!='') { if(uni.getStorageSync('token')!='') {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long