Explorar o código

用户体系优化V6.2.0

zhengjinyi %!s(int64=5) %!d(string=hai) anos
pai
achega
8a46f7bd93

+ 1 - 1
api/use.js

@@ -340,7 +340,7 @@ export function emailPassword(params) {
 			return
 		}
 		if( params.activateCode == ''){
-			uni.showToast({title: '请输入手机验证码',duration: 2000,mask:true,icon:'none'})
+			uni.showToast({title: '请输入邮箱验证码',duration: 2000,mask:true,icon:'none'})
 			return
 		}
 		if(!$reg.isEmailCode(params.activateCode)){

+ 2 - 2
pages/user-module/apply.vue

@@ -69,7 +69,7 @@
 			<view class="register-row clearfix">
 				<view class="register-from">
 					<view class="label">机构简称:</view>
-					<input class="row-input" type="text" v-model="clubContact" placeholder="请输入您的机构简称" maxlength="16"/>
+					<input class="row-input" type="text" v-model="clubContact" placeholder="请输入您的机构简称" maxlength="10"/>
 				</view>
 			</view>
 			<view class="register-row clearfix">
@@ -89,7 +89,7 @@
 							v-model="addressData.addressDetail" 
 							placeholder="详细地址:如道路、门牌号、小区等" 
 							placeholder-class="placeholder"
-							maxlength="50"
+							maxlength="25"
 							@input="onTextareaInput"
 							:class="isShowInput ? '':''"
 				/>

+ 2 - 1
pages/user-module/bindwechat.vue

@@ -27,7 +27,7 @@
 			<view class="login-input code">
 				<input type="text" 
 					   v-model="imageCode"  
-					   maxlength="6" 
+					   maxlength="4" 
 					   class="input" 
 					   placeholder="请输入右侧图形验证码"
 				/>
@@ -180,6 +180,7 @@
 				}).catch( res =>{
 					this.$util.msg(res.msg,2000)
 					this.isMobileDisabled = false;
+					this.getVerificationCode()
 				})
 			},
 			bindingWechatLogin(){//获取用户基本信息登录

+ 2 - 2
pages/user-module/information.vue

@@ -63,7 +63,7 @@
 			<view class="register-row clearfix">
 				<view class="register-from">
 					<view class="label">机构简称:</view>
-					<input class="row-input" type="text" v-model="abbreviation" placeholder="请输入您的机构简称" maxlength="16"/>
+					<input class="row-input" type="text" v-model="abbreviation" placeholder="请输入您的机构简称" maxlength="10"/>
 				</view>
 			</view>
 			<view class="register-row clearfix">
@@ -83,7 +83,7 @@
 							v-model="addressData.addressDetail" 
 							placeholder="详细地址:如道路、门牌号、小区等" 
 							placeholder-class="placeholder"
-							maxlength="50"
+							maxlength="25"
 							@input="onTextareaInput"
 							:class="isShowInput ? '':''"
 				/>

+ 3 - 1
pages/user-module/password.vue

@@ -36,7 +36,7 @@
 			</view>
 			<view class="login-form clearfix">
 				<view class="login-input code">
-					<input type="number" v-model="mobileCode"  maxlength="6" class="input" placeholder="请输入短信验证码"/>
+					<input type="number" v-model="mobileCode"  maxlength="4" class="input" placeholder="请输入短信验证码"/>
 				</view>
 				<view class="login-input btn" :class="[isMobileDisabled  ? 'disabled' : '']" >
 					<button type="button"
@@ -153,6 +153,7 @@
 					this.$util.msg(res.msg,2000);
 				}).catch( res =>{
 					this.$util.msg(res.msg,2000);
+					this.getVerificationCode()
 				})
 			},
 			confirmEmailPassword(){//邮箱修改密码
@@ -250,6 +251,7 @@
 				}).catch( res =>{
 					this.$util.msg(res.msg,2000);
 					this.isMobileDisabled = false;
+					this.getVerificationCode()
 				})
 			},
 			tabClick(index) {//tab切换

+ 15 - 15
pages/user-module/register.vue

@@ -108,7 +108,7 @@
 			<view class="register-row clearfix">
 				<view class="register-from">
 					<view class="label">机构简称:</view>
-					<input class="row-input" type="text" v-model="abbreviation" placeholder="请输入您的机构简称" maxlength="16"/>
+					<input class="row-input" type="text" v-model="abbreviation" placeholder="请输入您的机构简称" maxlength="10"/>
 				</view>
 			</view>
 			<view class="register-row clearfix">
@@ -128,7 +128,7 @@
 							v-model="addressData.addressDetail" 
 							placeholder="详细地址:如道路、门牌号、小区等" 
 							placeholder-class="placeholder"
-							maxlength="50"
+							maxlength="25"
 							@input="onTextareaInput"
 							:class="isShowInput ? '':''"
 				/>
@@ -399,6 +399,7 @@
 					this.tabCurrentIndex = 3
 				}).catch(res =>{
 					this.$util.msg(res.msg,2000);
+					this.getVerificationCode()
 				})
 			},
 			registerStepsSub(){
@@ -511,25 +512,24 @@
 					this.isEmialDisabled = false;
 				})
 			},
-			getVerificationCode(){//图形验证
+			getVerificationCode(){//获取图形验证
 				getImageCode().then(res => {
 					this.imageCodeUrl = res.data.baseImage
 					this.imageCodetoken = res.data.token
 				})
 			},
-			// 三级联动选择
-			showMulLinkageThreePicker() {
+			showMulLinkageThreePicker() {//三级地址联动
 				this.isShowInput = true
 				this.$refs.mpvueCityPicker.show()
 			},
-			onConfirm(e) {
+			onConfirm(e) {//获取选择的地址信息
 				console.log('地址',e);
 				this.addressData.address = e.name;
 				this.addressData.townID = e.townCode;
 				this.addressData.cityID = e.cityCode;
 				this.addressData.provinceID = e.provinceCode;
 			},	
-			onTextareaInput(e){
+			onTextareaInput(e){//地址详细信息
 			   this.addressData.addressDetail = e.detail.value;
 			},
 			chooseBusinessImage() {//营业执照图片上传
@@ -547,16 +547,16 @@
 					this.uploadMedicalImage = JSON.parse(res.data).data
 				})
 			},
-			viewBusinessImage(e) {
+			viewBusinessImage(e) {//预览营业执照图片
 				this.myPreviewImageFn(this.uploadBusinessImage)
 			},
-			viewMentuzImage(e) {
+			viewMentuzImage(e) {//预览门头照图片
 				this.myPreviewImageFn(this.uploadMentuzImage)
 			},
-			viewMedicalImage(e) {
+			viewMedicalImage(e) {//预览资质照图片
 				this.myPreviewImageFn(this.uploadMedicalImage)
 			},
-			myPreviewImageFn(url){
+			myPreviewImageFn(url){//预览图片公共方法
 				this.isPreviewImage = true
 				let mentuzArray = []
 				mentuzArray.push(url)
@@ -565,22 +565,22 @@
 					current: 0
 				});
 			},
-			delBusinessImage(){
+			delBusinessImage(){//删除营业执照图片
 				this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
 					 this.uploadBusinessImage = ''
 				})
 			},
-			delMentuzImage(){
+			delMentuzImage(){//删除门头照图片
 				this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
 					this.uploadMentuzImage = ''
 				})
 			},			
-			delMedicalImage(){
+			delMedicalImage(){//删除资质图片
 				this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
 					this.uploadMedicalImage = ''
 				})
 			},
-			bindPickerChange() {
+			bindPickerChange() {//机构类型选择
 				let self = this
 				uni.showActionSheet({
 					title:'标题',