优化:合伙人代理添加邀请超市入驻二维码生成功能
This commit is contained in:
parent
4a654abb7a
commit
54977427a5
|
|
@ -318,6 +318,15 @@ export default {
|
||||||
type: 'mer'
|
type: 'mer'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
menuList.push({
|
||||||
|
title: '超市入驻邀请码',
|
||||||
|
type: 'invite_qr_code',
|
||||||
|
url: '',
|
||||||
|
icon: 'icon-erweima1',
|
||||||
|
params: {
|
||||||
|
type: 'supermarket'
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if(Number(agentType) !== 11){
|
if(Number(agentType) !== 11){
|
||||||
menuList.push({
|
menuList.push({
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
<view class="imageCode" @click="again"><image :src="codeUrl" /></view>
|
<view class="imageCode" @click="again"><image :src="codeUrl" /></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item" v-if="![1,3].includes(Number(merchant_type))">
|
<view class="item" v-if="![1,3,4].includes(Number(merchant_type))">
|
||||||
<view class="uni-list">
|
<view class="uni-list">
|
||||||
<view class="uni-list-cell">
|
<view class="uni-list-cell">
|
||||||
<view class="uni-list-cell-db acea-row row-middle">
|
<view class="uni-list-cell-db acea-row row-middle">
|
||||||
|
|
@ -76,7 +76,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item" v-if="![1,3].includes(Number(merchant_type))">
|
<view class="item" v-if="![1,3,4].includes(Number(merchant_type))">
|
||||||
<view class="uni-list">
|
<view class="uni-list">
|
||||||
<view class="uni-list-cell">
|
<view class="uni-list-cell">
|
||||||
<view class="uni-list-cell-db acea-row row-middle">
|
<view class="uni-list-cell-db acea-row row-middle">
|
||||||
|
|
@ -559,7 +559,7 @@
|
||||||
validateBtn: function() {
|
validateBtn: function() {
|
||||||
let that = this,
|
let that = this,
|
||||||
value = that.merchantData;//value.yanzhengma &&
|
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 || [1,3].includes(Number(this.merchant_type)))) {
|
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 || [1,3,4].includes(Number(this.merchant_type)))) {
|
||||||
if (!that.isShowCode) {
|
if (!that.isShowCode) {
|
||||||
that.validate = true;
|
that.validate = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -583,7 +583,7 @@
|
||||||
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 && ![1,3].includes(Number(this.merchant_type))) return that.$util.Tips({title: '请选择商户分类'});
|
if (!value.classification && ![1,3,4].includes(Number(this.merchant_type))) 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: '请填写图片验证码'});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue