瀏覽代碼

app 散客门店

shish 4 年之前
父節點
當前提交
9e47b37e3e
共有 2 個文件被更改,包括 12 次插入11 次删除
  1. 11 10
      ghsApp/src/admin/home/workbench.vue
  2. 1 1
      ghsApp/src/admin/shop/sk.vue

+ 11 - 10
ghsApp/src/admin/home/workbench.vue

@@ -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() {

+ 1 - 1
ghsApp/src/admin/shop/sk.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="app-content">
     <div>
-      <form @submit="formSubmit" @reset="formReset">
+      <form @submit="formSubmit">
         <div class="module-com input-line-wrap">
           <tui-list-cell class="line-cell" :arrow="true" @click="selectCustom">
             <div class="tui-title">零售店:</div>