zhongtianhaoyuan 2 лет назад
Родитель
Сommit
d8b0c3453c
3 измененных файлов с 16 добавлено и 5 удалено
  1. 2 2
      pages/mine/driverCertificationNext.vue
  2. 11 3
      pages/public/code.vue
  3. 3 0
      pages/public/register.vue

+ 2 - 2
pages/mine/driverCertificationNext.vue

@@ -166,7 +166,7 @@
 				</view>
 				<view class="flex row ">
 					<view class="left-text">从业资格证号</view>
-					<u--input maxlength='19' placeholder="请输入从业资格证号" inputAlign='right' border="none" v-model="dataDetails.qualificationCertificateNumber">
+					<u--input maxlength='30' placeholder="请输入从业资格证号" inputAlign='right' border="none" v-model="dataDetails.qualificationCertificateNumber">
 					</u--input>
 				</view>
 <!--
@@ -714,7 +714,7 @@
 				// 	return true
 				// }
 
-				if (this.dataDetails.qualificationCertificateNumber.length!=19) {
+				if (this.dataDetails.qualificationCertificateNumber.length > 30) {
 					this.$refs.uToast.show({
 						type: 'error',
 						message: "从业资格证号输入错误!",

+ 11 - 3
pages/public/code.vue

@@ -35,8 +35,8 @@
 		<view class="top_four">
 			<input type="number" class="input_show" maxlength="6" @input='submit' v-model="inputList" focus="true" />
 		</view>
-		<!-- 重新获取 -->
-		<view class="top_five" @click='regain' :class="!status ? 'active' : '' "><text v-if="!status">重新发送</text><text
+		<!-- 重新获取 regain -->
+		<view class="top_five" @click='judge' :class="!status ? 'active' : '' "><text v-if="!status">重新发送</text><text
 				v-if="status">{{count_down}}秒后重新发送</text></view>
 	</view>
 </template>
@@ -73,8 +73,15 @@
 			navBack() {
 				uni.navigateBack();
 			},
+			judge(){
+				if(this.count_down > 0){
+					return
+				}else{
+					this.regain()
+				}
+			},
 			regain() {
-				console.log("regain", this.phone);
+				this.count_down = 60
 				this.status = true
 				// console.log(e)150500
 				// 设定一个定时器 1000是1秒的意思
@@ -89,6 +96,7 @@
 					this.status = false
 					clearInterval(interval) //括号里面的名字要与setInterval定义的相同
 				}, 60000)
+				
 				this.$request.baseRequest('get', '/commonUser/sendVerifyCode', {
 						phone: this.phone
 					}).then(res => {

+ 3 - 0
pages/public/register.vue

@@ -161,6 +161,9 @@
 			},
 			getcode() {
 				var that = this
+				if(that.sendText != "获取验证码"){
+					return
+				}
 				if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.phone)) {
 					that.$request.baseRequest('get', '/commonUser/sendVerifyCode', {
 							phone: this.phone