瀏覽代碼

修改注册

qukaidi 4 年之前
父節點
當前提交
864fd7ba8f
共有 3 個文件被更改,包括 17 次插入5 次删除
  1. 11 3
      pages/login/register.vue
  2. 5 1
      pages/login/register_2.vue
  3. 1 1
      pages/me/setting/setting.vue

+ 11 - 3
pages/login/register.vue

@@ -35,6 +35,7 @@
 			<u-button type="primary" @click="nextStep" v-if="showLicense&&showStore">下一步</u-button>
 						<!-- <u-button type="primary" @click="nextStep">下一步</u-button> -->
 		</view>
+		<u-modal v-model="modalShow" :content="storecontent" :show-cancel-button="true" confirm-text="同意" cancel-text="不同意" @cancel="cancelModal"></u-modal>
 	</view>
 </template>
 
@@ -55,8 +56,13 @@
 				},
 				showLicense:false,
 				showStore:false,
+				modalShow:false,
+				storecontent:"此操作需要上传正规的营业执照照片,并确保系统识别出来的信息与营业执照一致,是否同意?"
 			};
 		},
+		mounted() {
+			this.modalShow=true
+		},
 		methods: {
 			nextStep() {
 				this.$u.route({
@@ -85,9 +91,7 @@
 							this.showLicense=true
 						}
 						if (res.data.code == 500) {
-							this.$refs.uToast.show({
-								title: res.data.msg,
-							})
+							this.$u.toast(res.data.msg);
 						}
 					}).catch(err => {
 						this.$u.toast('识别失败');
@@ -100,6 +104,10 @@
 					this.storeUrl = JSON.parse(res.data).data
 					this.showStore=true
 				}
+			},
+			cancelModal(){
+				uni.navigateBack({
+				})
 			}
 		},
 	}

+ 5 - 1
pages/login/register_2.vue

@@ -69,6 +69,7 @@
 		<view style="margin: 30rpx;">
 			<u-button @click="nextStep" type="primary">下一步</u-button>
 		</view>
+		<u-modal v-model="modelshow" :content="modelcontent" title="温馨提示"></u-modal>
 	</view>
 </template>
 
@@ -135,7 +136,9 @@
 					}],
 				},
 				dataUrl: "",
-				codeLoading:false
+				codeLoading:false,
+				modelshow:false,
+				modelcontent:"如果店名和联系人与营业执照不一致,请重新上传清晰度更高的营业执照"
 			};
 		},
 		created() {
@@ -153,6 +156,7 @@
 			uni.$on('dataUrl', (data) => {
 				this.dataUrl = data
 			})
+			this.modelshow=true
 			let that = this
 			uni.getLocation({
 				type: 'wgs84',

+ 1 - 1
pages/me/setting/setting.vue

@@ -49,7 +49,7 @@
       <view slot="body">
         <template>
           <u-cell-group :border="false">
-            <u-cell-item title="收地址管理" @click="tishi">
+            <u-cell-item title="收地址管理" @click="tishi">
               <u-icon
                 slot="icon"
                 size="42"