|
|
@@ -199,7 +199,7 @@ export default {
|
|
|
if(subRes.code == 1){
|
|
|
|
|
|
if (this.$util.isEmpty(subRes)) {
|
|
|
- return false
|
|
|
+ return false
|
|
|
}
|
|
|
uni.setStorageSync('token', subRes.data.token)
|
|
|
uni.setStorageSync('shopId', subRes.data.admin.currentShopId)
|
|
|
@@ -242,16 +242,17 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
skKd(){
|
|
|
- if((this.myShopInfo.skCustomId && this.myShopInfo.skCustomId > 0) || this.skCustomId > 0){
|
|
|
- let currentId = 0;
|
|
|
- if(this.skCustomId > 0){
|
|
|
- currentId = this.skCustomId
|
|
|
- }else{
|
|
|
- currentId = this.myShopInfo.skCustomId
|
|
|
- }
|
|
|
+ let that = this
|
|
|
+ let currentId = 0;
|
|
|
+ if(this.skCustomId > 0){
|
|
|
+ currentId = this.skCustomId
|
|
|
+ }
|
|
|
+ if(!this.$util.isEmpty(this.loginInfo.skCustomId) && this.loginInfo.skCustomId > 0){
|
|
|
+ currentId = this.loginInfo.skCustomId
|
|
|
+ }
|
|
|
+ if(currentId > 0){
|
|
|
this.$util.pageTo({url: "/admin/billing/index",query: {customId: currentId}})
|
|
|
}else{
|
|
|
- let that = this
|
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
|
content: '请设置您的零售店',
|
|
|
@@ -262,7 +263,7 @@ export default {
|
|
|
that.$util.pageTo({url: '/admin/shop/sk'})
|
|
|
}
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
init() {
|