lilei 2 anos atrás
pai
commit
e8af85e683
2 arquivos alterados com 16 adições e 7 exclusões
  1. 7 5
      pages/morePage/morePage.vue
  2. 9 2
      pages/storeManage/storeAuth.vue

+ 7 - 5
pages/morePage/morePage.vue

@@ -124,11 +124,13 @@
 			},
 		},
 		onShow() {
-			const shelfInfo = this.$store.state.vuex_storeShelf
-			this.shelfSn = shelfInfo.shelfSn
-			this.dealerPhone = shelfInfo&&shelfInfo.contactMobile ? shelfInfo.contactMobile : ''
-			this.getPriceCofig()
-		},
+				const shelfInfo = this.$store.state.vuex_storeShelf
+				this.shelfSn = shelfInfo ? shelfInfo.shelfSn : ''
+				this.dealerPhone = shelfInfo&&shelfInfo.contactMobile ? shelfInfo.contactMobile : ''
+				if(this.shelfSn){
+					this.getPriceCofig()
+				}
+			},
 		methods: {
 			beforeSwitch(index){
 				if(index==1){

+ 9 - 2
pages/storeManage/storeAuth.vue

@@ -45,7 +45,7 @@
 				<u-form-item label="联系人手机">
 					{{form.contactPhone}}
 				</u-form-item>
-				<u-form-item label="汽配商邀请码">
+				<u-form-item label="汽配商邀请码" required prop="inviteCode">
 					<u-input v-model="form.inviteCode" maxlength="30" :clearable="false" @input="inputDealer" @blur="findDealer" @confirm="findDealer" placeholder="如没有可不填"/>
 				</u-form-item>
 				<u-form-item label="汽配商" v-if="form.inviteName.length">
@@ -79,7 +79,7 @@
 				<u-form-item label="联系人手机">
 					{{form.contactPhone||'--'}}
 				</u-form-item>
-				<u-form-item label="汽配商邀请码">
+				<u-form-item label="汽配商邀请码" required prop="inviteCode">
 					{{form.inviteCode||'未填写'}}
 				</u-form-item>
 				<u-form-item label="汽配商" v-if="form.inviteName.length">
@@ -154,6 +154,13 @@
 					// 		trigger: 'change'
 					// 	}
 					// ],
+					inviteCode: [
+						{
+							required: true, 
+							message: '请输入汽配商邀请码', 
+							trigger: 'change'
+						}
+					],
 					contactName: [
 						{
 							required: true,