优化:商户入驻申请取消短信验证码

This commit is contained in:
wuhui_zzw 2024-01-23 16:28:43 +08:00
parent 128234c85e
commit b29fb8906f
1 changed files with 14 additions and 14 deletions

View File

@ -45,16 +45,16 @@
<input type="text" placeholder="请输入手机号" v-model="merchantData.phone" @input="validateBtn" placeholder-class='placeholder' />
</view>
</view>
<view class="item rel">
<view class="acea-row row-middle">
<text class="item-name">验证码</text>
<input type="text" placeholder="填写验证码" v-model="merchantData.yanzhengma" @input="validateBtn" class="codeIput"
placeholder-class='placeholder' />
<button class="code" :disabled="disabled" :class="disabled === true ? 'on' : ''" @click="handleVerify">
{{ text }}
</button>
</view>
</view>
<!--<view class="item rel">-->
<!-- <view class="acea-row row-middle">-->
<!-- <text class="item-name">验证码</text>-->
<!-- <input type="text" placeholder="填写验证码" v-model="merchantData.yanzhengma" @input="validateBtn" class="codeIput"-->
<!-- placeholder-class='placeholder' />-->
<!-- <button class="code" :disabled="disabled" :class="disabled === true ? 'on' : ''" @click="handleVerify">-->
<!-- {{ text }}-->
<!-- </button>-->
<!-- </view>-->
<!--</view>-->
<view class="item" v-if="isShowCode">
<view class="acea-row row-middle">
<text class="item-name">验证码</text>
@ -545,9 +545,8 @@
},
validateBtn: function() {
let that = this,
value = that.merchantData;
if (value.enterprise_name && value.user_name && value.phone && /^1(3|4|5|7|8|9|6)\d{9}$/i.test(value.phone) &&
value.yanzhengma && that.isAgree && value.classification) {
value = that.merchantData;//value.yanzhengma &&
if (value.enterprise_name && value.user_name && value.phone && /^1(3|4|5|7|8|9|6)\d{9}$/i.test(value.phone) && that.isAgree && value.classification) {
if (!that.isShowCode) {
that.validate = true;
} else {
@ -570,10 +569,11 @@
if (!value.user_name) return that.$util.Tips({title: '请输入姓名'});
if (!value.phone) return that.$util.Tips({title: '请输入手机号'});
if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(value.phone)) return that.$util.Tips({title: '请输入正确的手机号码'});
if (!value.yanzhengma) return that.$util.Tips({title: '请填写验证码'});
// if (!value.yanzhengma) return that.$util.Tips({title: ''});
if (!value.classification) return that.$util.Tips({title: '请选择商户分类'});
if (!that.isAgree) return that.$util.Tips({title: '请勾选并同意入驻协议'});
if (that.isShowCode && !that.codeVal) return that.$util.Tips({title: '请填写图片验证码'});
that.validate = true;
return true;
},