Compare commits

...

2 Commits

Author SHA1 Message Date
tianyi 1df213c282 1 1 month ago
tianyi 0c0622a8f8 1 1 month ago
  1. 1
      js/nb.js
  2. 11
      pages/index/index.vue

1
js/nb.js

@ -82,6 +82,7 @@ export default {
// }
},
fail: function(err) {
uni.showToast({
title: "访问错误,请稍后再试!",
icon: 'none'

11
pages/index/index.vue

@ -298,17 +298,18 @@
}
},
onLoad() {
if(!uni.getStorageSync('area') || !uni.getStorageSync('shopId')){
uni.reLaunch({
url: '../login/login'
})
}
if(uni.getStorageSync('peisongyuan')){
uni.reLaunch({
url: '../worker/index'
})
return
}
if(!uni.getStorageSync('area') || !uni.getStorageSync('shopId')){
uni.reLaunch({
url: '../login/login'
})
}
},
methods: {
indexInit() {

Loading…
Cancel
Save