Fix:3192 【商城小程序】特色店铺入驻页面的营业时间点击无效,无法选择时间
This commit is contained in:
+10
-5
@@ -265,7 +265,7 @@
|
||||
<text class="required">*</text>
|
||||
</template>
|
||||
<template #value>
|
||||
<view class="u-text__value" :class="{'area-item':form.area.length===0}">
|
||||
<view class="u-text__value" :class="{'area-item':form.area && form.area.length===0}">
|
||||
<CitySelect
|
||||
ref="cityselect"
|
||||
:defaultValue="form.area"
|
||||
@@ -316,8 +316,8 @@
|
||||
<template #value>
|
||||
<u--text :text="form.serviceTime + ' - ' + form.serviceEndTime"></u--text>
|
||||
<tpf-time-range
|
||||
:startTime="form.serviceTime"
|
||||
:endTime="form.serviceEndTime"
|
||||
startTime="00:00"
|
||||
endTime="23:59"
|
||||
:startDefaultTime="form.serviceTime"
|
||||
:endDefaultTime="form.serviceEndTime"
|
||||
ref="TimePickerPopupRef"
|
||||
@@ -561,7 +561,7 @@ export default {
|
||||
if(!local_form.serviceEndTime) {
|
||||
local_form.serviceEndTime = '23:59'
|
||||
}
|
||||
this.form = !reviewing ? local_form : {
|
||||
this.form = !this.reviewing ? local_form : {
|
||||
name: '',
|
||||
cover: '',
|
||||
coverVideo: '',
|
||||
@@ -589,6 +589,11 @@ export default {
|
||||
this.$refs.shopForm.setRules(this.rules)
|
||||
},
|
||||
methods: {
|
||||
timeRange(e) {
|
||||
this.form.serviceTime = e[0]
|
||||
this.form.serviceEndTime = e[1]
|
||||
this.$forceUpdate()
|
||||
},
|
||||
showTimePicker() {
|
||||
this.$refs.TimePickerPopupRef.open()
|
||||
},
|
||||
@@ -681,7 +686,7 @@ export default {
|
||||
}
|
||||
// 商家资质
|
||||
this.quaPics = []
|
||||
const quaPicsTemp = this.form.qualification.split(',')
|
||||
const quaPicsTemp = this.form.qualification && this.form.qualification.split(',') || []
|
||||
if (quaPicsTemp.length > 0) {
|
||||
quaPicsTemp.map(item => {
|
||||
if (item) {
|
||||
|
||||
Reference in New Issue
Block a user