Ver código fonte

修改注册

qukaidi 4 anos atrás
pai
commit
a4335c356f
3 arquivos alterados com 21 adições e 10 exclusões
  1. 15 6
      pages/login/index.vue
  2. 4 4
      pages/login/register.vue
  3. 2 0
      pages/login/register_3.vue

+ 15 - 6
pages/login/index.vue

@@ -82,11 +82,20 @@
 					this.networkType = res.networkType
 				}
 			});
-			if(this.SystemInfo.platform=="ios"){
-				this.judgeIosPermission()
-			}else{
-				this.requestAndroidPermission()
-			}			
+			uni.getLocation({
+			    success:res=>{
+			    },
+				fail:err=>{
+					if(this.SystemInfo.platform=="ios"){
+						this.judgeIosPermission()
+					}else{
+						this.requestAndroidPermission()
+					}	
+				}
+			});		
+			uni.$on('loginphone',data=>{
+				this.tel=data
+			})
 		},
 		methods: {
 			...mapMutations(['login']),
@@ -95,7 +104,7 @@
 				if (!result) {
 					uni.showModal({
 						title: "温馨提示",
-						content: "为了更好地服务,请开启定位权限,是否同意?",
+						content: "为了更好地为您服务,请开启定位权限,请问是否同意?",
 						cancelText: "不同意",
 						confirmText: "同意",
 						success: res => {

+ 4 - 4
pages/login/register.vue

@@ -4,7 +4,7 @@
 			<view slot="head">
 				<view class="u-flex">
 					<view style="width: 8rpx;height: 34rpx;background: #0292FD;margin-right:20rpx;"></view>
-					请按照要求上传您的营业执照和门店照
+					请按照要求上传您的营业执照和门头照片
 				</view>
 			</view>
 			<view slot="body">
@@ -15,7 +15,7 @@
 					</view>
 				</u-upload>
 				<view class="u-flex u-row-center" style="color: #787878;margin: 20rpx 0 60rpx 0;">
-					点击上传营业执照
+					上传营业执照
 				</view>
 				<u-upload :custom-btn="true" max-count="1" class="u-flex u-row-center" :action="action" :form-data="storepicType"
 				 @on-change="getStoredata" @on-remove="storeRemove">
@@ -24,12 +24,12 @@
 					</view>
 				</u-upload>
 				<view class="u-flex u-row-center" style="color: #787878;margin: 20rpx 0;">
-					点击上传门头照
+					请上传门头照片
 				</view>
 			</view>
 		</u-card>
 		<view style="color: #787878;margin-left: 40rpx;">
-			注:上传完营业执照请确认和营业执照一致。
+			注:请确保系统识别的营业执照名称和法人信息与营业执照上的信息保持一致
 		</view>
 		<view style="margin: 30rpx;">
 			<u-button type="primary" @click="nextStep" v-if="showLicense&&showStore">下一步</u-button>

+ 2 - 0
pages/login/register_3.vue

@@ -322,6 +322,7 @@
 					if (valid) {
 						this.brandAgentLvQueryList=this.checkedAgentlist.filter(item => (item.disabledGroup!=true))
 						let checkenLength=this.checkedAgentlist.filter(item => (item.checked==true))
+						if(!checkenLength.length) return this.$u.toast('未正确选择经销商,请正确选择');
 						if(checkenLength.length<this.brandAgentLvQueryList.length) return this.$u.toast('请完善任务条数');
 						if (!this.protocol) return this.$u.toast('请勾选协议');
 						this.setData()
@@ -373,6 +374,7 @@
 							this.$u.route({
 								url: 'pages/login/index',
 							})
+							uni.$emit('loginphone',this.formData.phone)
 						}, 2000)
 					}
 					if (res.data.code == 500) {