Fix:3150 【商城小程序】特色店铺、采购批发商入驻流程未改变为先弹出入驻须知再填写资料
This commit is contained in:
+64
-2
@@ -308,6 +308,25 @@
|
|||||||
</template>
|
</template>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
<u-form-item prop="serviceTime">
|
||||||
|
<u-cell title="营业时间" :border="false" isLink @click="showTimePicker">
|
||||||
|
<template #icon>
|
||||||
|
<text class="required">*</text>
|
||||||
|
</template>
|
||||||
|
<template #value>
|
||||||
|
<u--text :text="form.serviceTime + ' - ' + form.serviceEndTime"></u--text>
|
||||||
|
<tpf-time-range
|
||||||
|
:startTime="form.serviceTime"
|
||||||
|
:endTime="form.serviceEndTime"
|
||||||
|
:startDefaultTime="form.serviceTime"
|
||||||
|
:endDefaultTime="form.serviceEndTime"
|
||||||
|
ref="TimePickerPopupRef"
|
||||||
|
@timeRange="timeRange"
|
||||||
|
>
|
||||||
|
</tpf-time-range>
|
||||||
|
</template>
|
||||||
|
</u-cell>
|
||||||
|
</u-form-item>
|
||||||
<u-form-item prop="content">
|
<u-form-item prop="content">
|
||||||
<u-cell title="一句话介绍" :border="false">
|
<u-cell title="一句话介绍" :border="false">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
@@ -384,6 +403,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import TimePickerPopup from '@/components/timePickerPopup/time-picker-popup.vue';
|
||||||
import CitySelect from '@/components/CitySelect'
|
import CitySelect from '@/components/CitySelect'
|
||||||
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
||||||
import {
|
import {
|
||||||
@@ -406,7 +426,8 @@ import {
|
|||||||
export default {
|
export default {
|
||||||
name: 'PkgJoinShop',
|
name: 'PkgJoinShop',
|
||||||
components: {
|
components: {
|
||||||
CitySelect
|
CitySelect,
|
||||||
|
TimePickerPopup
|
||||||
},
|
},
|
||||||
mixins: [pageListenMixins],
|
mixins: [pageListenMixins],
|
||||||
data() {
|
data() {
|
||||||
@@ -429,7 +450,9 @@ export default {
|
|||||||
area: '',
|
area: '',
|
||||||
address: '',
|
address: '',
|
||||||
position: '',
|
position: '',
|
||||||
content: ''
|
content: '',
|
||||||
|
serviceTime: '00:00',
|
||||||
|
serviceEndTime: '23:59'
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'name': {
|
'name': {
|
||||||
@@ -498,6 +521,12 @@ export default {
|
|||||||
message: '请选择定位信息',
|
message: '请选择定位信息',
|
||||||
trigger: ['blur', 'change']
|
trigger: ['blur', 'change']
|
||||||
},
|
},
|
||||||
|
'serviceTime': {
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
message: '请选择营业时间',
|
||||||
|
trigger: ['blur', 'change']
|
||||||
|
},
|
||||||
'content': {
|
'content': {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: true,
|
||||||
@@ -524,8 +553,38 @@ export default {
|
|||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.partnerId = options.partnerId
|
this.partnerId = options.partnerId
|
||||||
|
const local_form = uni.getStorageSync('merchantApplyHotel' + '_form')
|
||||||
|
this.quaPics = uni.getStorageSync('merchantApplyHotel' + '_quaPics') || []
|
||||||
|
if(!local_form.serviceTime) {
|
||||||
|
local_form.serviceTime = '00:00'
|
||||||
|
}
|
||||||
|
if(!local_form.serviceEndTime) {
|
||||||
|
local_form.serviceEndTime = '23:59'
|
||||||
|
}
|
||||||
|
this.form = !reviewing ? local_form : {
|
||||||
|
name: '',
|
||||||
|
cover: '',
|
||||||
|
coverVideo: '',
|
||||||
|
coverType: 1, // coverType: 1-图片,2-视频
|
||||||
|
logo: '',
|
||||||
|
qualification: '',
|
||||||
|
type: 0,
|
||||||
|
typeText: '',
|
||||||
|
phone: '',
|
||||||
|
captcha: '',
|
||||||
|
area: '',
|
||||||
|
address: '',
|
||||||
|
position: '',
|
||||||
|
content: '',
|
||||||
|
serviceTime: '00:00',
|
||||||
|
serviceEndTime: '23:59'
|
||||||
|
}
|
||||||
this.init()
|
this.init()
|
||||||
},
|
},
|
||||||
|
onUnload() {
|
||||||
|
uni.setStorageSync('merchantApplyHotel'+'_quaPics', this.quaPics)
|
||||||
|
uni.setStorageSync('merchantApplyHotel' + '_form', this.form)
|
||||||
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
this.$refs.shopForm.setRules(this.rules)
|
this.$refs.shopForm.setRules(this.rules)
|
||||||
},
|
},
|
||||||
@@ -585,6 +644,9 @@ export default {
|
|||||||
}
|
}
|
||||||
this.isDraft = data.isDraft
|
this.isDraft = data.isDraft
|
||||||
this.reviewStatus = data.reviewStatus
|
this.reviewStatus = data.reviewStatus
|
||||||
|
if(data.isDraft === null || data.isDraft === 1) {
|
||||||
|
this.show = true
|
||||||
|
}
|
||||||
if (data.isDraft !== 1) {
|
if (data.isDraft !== 1) {
|
||||||
switch (data.reviewStatus) {
|
switch (data.reviewStatus) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user