|
|
@@ -1,3 +1,8 @@
|
|
|
+<!--
|
|
|
+ 供货商申请开店页
|
|
|
+ 谁用:未注册用户在 ghsApp 提交批发店申请(审核通过后会同步开零售店)
|
|
|
+ 解决问题:收集门店/申请人信息;可勾选「给零售店生成一套样例模板」,随申请落库供审核后复制
|
|
|
+-->
|
|
|
<template>
|
|
|
<view class="apply-page app-content">
|
|
|
<form @submit="formSubmit">
|
|
|
@@ -53,6 +58,15 @@
|
|
|
<input v-model="form.floor" type="text" placeholder-class="phcolor" placeholder-style="color:#CCCCCC" class="tui-input" name="floor" placeholder="选填" @input="modifyShow" />
|
|
|
</tui-list-cell>
|
|
|
</view>
|
|
|
+ <!-- 是否给同步创建的零售店复制样例模板;默认勾选,提交时以 genTemplate 传给 /apply/register -->
|
|
|
+ <view class="apply-agreement apply-template">
|
|
|
+ <checkbox-group @change="genTemplateItem">
|
|
|
+ <label class="apply-agreement-label">
|
|
|
+ <checkbox value="1" class="apply-checkbox" :checked="genTemplate == 1" />
|
|
|
+ <text class="apply-agreement-text">给零售店生成一套样例模板</text>
|
|
|
+ </label>
|
|
|
+ </checkbox-group>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<view class="apply-section">
|
|
|
@@ -188,6 +202,8 @@ export default {
|
|
|
return {
|
|
|
merchantData: {},
|
|
|
agree:0,
|
|
|
+ // 默认勾选:审核通过后给同步创建的零售店复制一套样例模板
|
|
|
+ genTemplate: 1,
|
|
|
form: {
|
|
|
name: "",
|
|
|
mobile: "",
|
|
|
@@ -450,6 +466,14 @@ export default {
|
|
|
agreeItem(e){
|
|
|
this.agree = e.detail.value && e.detail.value.length > 0 ? 1 : 0
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 样例模板勾选变更
|
|
|
+ * 入参:checkbox-group 的 change 事件,detail.value 为已选中项数组
|
|
|
+ * 返回:无;把 genTemplate 写成 1/0,落库后供平台审核通过时复制模板
|
|
|
+ */
|
|
|
+ genTemplateItem(e){
|
|
|
+ this.genTemplate = e.detail.value && e.detail.value.length > 0 ? 1 : 0
|
|
|
+ },
|
|
|
requestAuthCode(){
|
|
|
let that = this
|
|
|
let mobile = this.form.mobile
|
|
|
@@ -595,7 +619,8 @@ export default {
|
|
|
style: this.option.style || 0,
|
|
|
from: this.option.from || 0,
|
|
|
miniOpenId:currentMiniOpenId,
|
|
|
- fillMobile: this.fillMobile
|
|
|
+ fillMobile: this.fillMobile,
|
|
|
+ genTemplate: this.genTemplate
|
|
|
}).then(res => {
|
|
|
uni.hideLoading()
|
|
|
this.$util.pageTo({
|
|
|
@@ -820,14 +845,19 @@ export default {
|
|
|
padding: 0 8upx;
|
|
|
}
|
|
|
|
|
|
+.apply-template {
|
|
|
+ margin-top: 8upx;
|
|
|
+}
|
|
|
+
|
|
|
.apply-agreement-label {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
align-items: center;
|
|
|
}
|
|
|
|
|
|
+/* 勾选框在原 0.82 基础上放大 30%,便于点选与阅读 */
|
|
|
.apply-checkbox {
|
|
|
- transform: scale(0.82);
|
|
|
+ transform: scale(1.07);
|
|
|
flex-shrink: 0;
|
|
|
}
|
|
|
|