入驻提示
This commit is contained in:
parent
2ecd26d609
commit
fa17e04f30
|
|
@ -9,6 +9,9 @@
|
||||||
<view class="form-item-one box-cont">
|
<view class="form-item-one box-cont">
|
||||||
<view class="label-wrapper">
|
<view class="label-wrapper">
|
||||||
<text class="label required">店铺名称</text>
|
<text class="label required">店铺名称</text>
|
||||||
|
<image class="label-icon"
|
||||||
|
src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/25bd7f38-1a3e-4282-84ea-190d7f820108"
|
||||||
|
mode="aspectFit" @click="showTipPopup('name')"></image>
|
||||||
</view>
|
</view>
|
||||||
<input type="text" v-model="formData.name" placeholder="请输入营业执照的店铺名称" placeholder-class="placeholder"
|
<input type="text" v-model="formData.name" placeholder="请输入营业执照的店铺名称" placeholder-class="placeholder"
|
||||||
class="input" @input="saveFormDataToLocalDebounce" />
|
class="input" @input="saveFormDataToLocalDebounce" />
|
||||||
|
|
@ -87,7 +90,7 @@
|
||||||
<view class="form-item-one-yqr box-cont invite-code-container">
|
<view class="form-item-one-yqr box-cont invite-code-container">
|
||||||
<view class="invite-code-top">
|
<view class="invite-code-top">
|
||||||
<view class="label-wrapper">
|
<view class="label-wrapper">
|
||||||
<text class="label required" >邀请码</text>
|
<text class="label required">邀请码</text>
|
||||||
</view>
|
</view>
|
||||||
<input type="text" v-model="formData.invite_code_other" placeholder="请输入邀请码"
|
<input type="text" v-model="formData.invite_code_other" placeholder="请输入邀请码"
|
||||||
placeholder-class="placeholder" class="input" @input="handleInviteCodeInput" />
|
placeholder-class="placeholder" class="input" @input="handleInviteCodeInput" />
|
||||||
|
|
@ -181,7 +184,7 @@
|
||||||
<view class="tip-popup-body">
|
<view class="tip-popup-body">
|
||||||
<view class="tip-title">{{ tipTitle }}</view>
|
<view class="tip-title">{{ tipTitle }}</view>
|
||||||
<view class="tip-image-container">
|
<view class="tip-image-container">
|
||||||
<image class="tip-image" :src="tipImage" mode="widthFix"></image>
|
<image class="tip-image" :class="currentTipType" :src="tipImage" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="tip-buttons">
|
<view class="tip-buttons">
|
||||||
<view class="tip-btn cancel" @click="hideTipPopup">
|
<view class="tip-btn cancel" @click="hideTipPopup">
|
||||||
|
|
@ -229,6 +232,7 @@ export default {
|
||||||
indicatorStyle: 'height: 68rpx;',
|
indicatorStyle: 'height: 68rpx;',
|
||||||
tipTitle: '',
|
tipTitle: '',
|
||||||
tipImage: '',
|
tipImage: '',
|
||||||
|
currentTipType: '',
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
identity: 2,
|
identity: 2,
|
||||||
|
|
||||||
|
|
@ -586,7 +590,7 @@ export default {
|
||||||
try {
|
try {
|
||||||
// 调用接口验证邀请码
|
// 调用接口验证邀请码
|
||||||
const response = await request.post('/user/user/getInvite', {
|
const response = await request.post('/user/user/getInvite', {
|
||||||
invite_code: code
|
invite_code_other: code
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('邀请码验证响应:', response);
|
console.log('邀请码验证响应:', response);
|
||||||
|
|
@ -758,7 +762,7 @@ export default {
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!this.formData.invite_code) {
|
if (!this.formData.invite_code_other) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请输入邀请码',
|
title: '请输入邀请码',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|
@ -777,12 +781,13 @@ export default {
|
||||||
showTipPopup(field) {
|
showTipPopup(field) {
|
||||||
const tipConfig = {
|
const tipConfig = {
|
||||||
'name': {
|
'name': {
|
||||||
title: '如何找到店铺名称',
|
title: '如何查看店铺名称',
|
||||||
image: 'https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/4fb3e0a2-4c1a-4433-a181-b7a1dfefd030'
|
image: 'https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/4a2dc8c2-98d4-4465-ae31-b2ea2d13aa23'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (tipConfig[field]) {
|
if (tipConfig[field]) {
|
||||||
|
this.currentTipType = field;
|
||||||
this.tipTitle = tipConfig[field].title;
|
this.tipTitle = tipConfig[field].title;
|
||||||
this.tipImage = tipConfig[field].image;
|
this.tipImage = tipConfig[field].image;
|
||||||
this.showTipPopupFlag = true;
|
this.showTipPopupFlag = true;
|
||||||
|
|
|
||||||
|
|
@ -416,8 +416,8 @@
|
||||||
if (qualificationData.contact_type) {
|
if (qualificationData.contact_type) {
|
||||||
formData.contact_type = qualificationData.contact_type;
|
formData.contact_type = qualificationData.contact_type;
|
||||||
}
|
}
|
||||||
if (qualificationData.invite_code) {
|
if (qualificationData.invite_code_other) {
|
||||||
formData.invite_code_other = qualificationData.invite_code;
|
formData.invite_code_other = qualificationData.invite_code_other;
|
||||||
}
|
}
|
||||||
if (qualificationData.contact_name) {
|
if (qualificationData.contact_name) {
|
||||||
formData.contact_name = qualificationData.contact_name;
|
formData.contact_name = qualificationData.contact_name;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue