优化:合伙人代理添加邀请超市入驻二维码生成功能

This commit is contained in:
wuhui_zzw 2024-04-11 18:20:10 +08:00
parent 4a654abb7a
commit 54977427a5
2 changed files with 13 additions and 4 deletions

View File

@ -318,6 +318,15 @@ export default {
type: 'mer'
}
});
menuList.push({
title: '超市入驻邀请码',
type: 'invite_qr_code',
url: '',
icon: 'icon-erweima1',
params: {
type: 'supermarket'
}
});
}
if(Number(agentType) !== 11){
menuList.push({

View File

@ -63,7 +63,7 @@
<view class="imageCode" @click="again"><image :src="codeUrl" /></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-cell">
<view class="uni-list-cell-db acea-row row-middle">
@ -76,7 +76,7 @@
</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-cell">
<view class="uni-list-cell-db acea-row row-middle">
@ -559,7 +559,7 @@
validateBtn: function() {
let that = this,
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) {
that.validate = true;
} else {
@ -583,7 +583,7 @@
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.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.isShowCode && !that.codeVal) return that.$util.Tips({title: '请填写图片验证码'});