优化:商户入驻申请取消短信验证码
This commit is contained in:
parent
128234c85e
commit
b29fb8906f
|
|
@ -45,16 +45,16 @@
|
||||||
<input type="text" placeholder="请输入手机号" v-model="merchantData.phone" @input="validateBtn" placeholder-class='placeholder' />
|
<input type="text" placeholder="请输入手机号" v-model="merchantData.phone" @input="validateBtn" placeholder-class='placeholder' />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item rel">
|
<!--<view class="item rel">-->
|
||||||
<view class="acea-row row-middle">
|
<!-- <view class="acea-row row-middle">-->
|
||||||
<text class="item-name">验证码</text>
|
<!-- <text class="item-name">验证码</text>-->
|
||||||
<input type="text" placeholder="填写验证码" v-model="merchantData.yanzhengma" @input="validateBtn" class="codeIput"
|
<!-- <input type="text" placeholder="填写验证码" v-model="merchantData.yanzhengma" @input="validateBtn" class="codeIput"-->
|
||||||
placeholder-class='placeholder' />
|
<!-- placeholder-class='placeholder' />-->
|
||||||
<button class="code" :disabled="disabled" :class="disabled === true ? 'on' : ''" @click="handleVerify">
|
<!-- <button class="code" :disabled="disabled" :class="disabled === true ? 'on' : ''" @click="handleVerify">-->
|
||||||
{{ text }}
|
<!-- {{ text }}-->
|
||||||
</button>
|
<!-- </button>-->
|
||||||
</view>
|
<!-- </view>-->
|
||||||
</view>
|
<!--</view>-->
|
||||||
<view class="item" v-if="isShowCode">
|
<view class="item" v-if="isShowCode">
|
||||||
<view class="acea-row row-middle">
|
<view class="acea-row row-middle">
|
||||||
<text class="item-name">验证码</text>
|
<text class="item-name">验证码</text>
|
||||||
|
|
@ -545,9 +545,8 @@
|
||||||
},
|
},
|
||||||
validateBtn: function() {
|
validateBtn: function() {
|
||||||
let that = this,
|
let that = this,
|
||||||
value = that.merchantData;
|
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) &&
|
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) {
|
||||||
value.yanzhengma && that.isAgree && value.classification) {
|
|
||||||
if (!that.isShowCode) {
|
if (!that.isShowCode) {
|
||||||
that.validate = true;
|
that.validate = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -570,10 +569,11 @@
|
||||||
if (!value.user_name) return that.$util.Tips({title: '请输入姓名'});
|
if (!value.user_name) return that.$util.Tips({title: '请输入姓名'});
|
||||||
if (!value.phone) 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 (!/^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 (!value.classification) return that.$util.Tips({title: '请选择商户分类'});
|
||||||
if (!that.isAgree) return that.$util.Tips({title: '请勾选并同意入驻协议'});
|
if (!that.isAgree) return that.$util.Tips({title: '请勾选并同意入驻协议'});
|
||||||
if (that.isShowCode && !that.codeVal) return that.$util.Tips({title: '请填写图片验证码'});
|
if (that.isShowCode && !that.codeVal) return that.$util.Tips({title: '请填写图片验证码'});
|
||||||
|
|
||||||
that.validate = true;
|
that.validate = true;
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue