Fix:3144 【商城小程序】修改店铺资料页面没有营业时间
This commit is contained in:
@@ -97,6 +97,24 @@
|
|||||||
</view>
|
</view>
|
||||||
<text class="iconfont icon-jiantou"></text>
|
<text class="iconfont icon-jiantou"></text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="item" @click="showTimePicker">
|
||||||
|
<view class="cell acea-row row-between row-middle">
|
||||||
|
<view class="cell-title">营业时间</view>
|
||||||
|
<view class="cell-value">
|
||||||
|
<u--text :text="innApplyInfo.serviceTime + ' - ' + innApplyInfo.serviceEndTime"></u--text>
|
||||||
|
<tpf-time-range
|
||||||
|
startTime="00:00"
|
||||||
|
endTime="23:59"
|
||||||
|
:startDefaultTime="innApplyInfo.serviceTime"
|
||||||
|
:endDefaultTime="innApplyInfo.serviceEndTime"
|
||||||
|
ref="TimePickerPopupRef"
|
||||||
|
@timeRange="timeRange"
|
||||||
|
>
|
||||||
|
</tpf-time-range>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<text class="iconfont icon-jiantou"></text>
|
||||||
|
</view>
|
||||||
<view class="item is_required">
|
<view class="item is_required">
|
||||||
<view class="cell acea-row row-between row-middle">
|
<view class="cell acea-row row-between row-middle">
|
||||||
<view class="cell-title">店主名字</view>
|
<view class="cell-title">店主名字</view>
|
||||||
@@ -184,6 +202,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 tmUpload from '@/components/tm-upload/tm-upload.vue'
|
import tmUpload from '@/components/tm-upload/tm-upload.vue'
|
||||||
import {
|
import {
|
||||||
@@ -195,6 +214,7 @@ import {getHotelTypeList, postHotelInfoEdit} from '@/api/inn.js'
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
CitySelect,
|
CitySelect,
|
||||||
|
TimePickerPopup,
|
||||||
tmUpload
|
tmUpload
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -230,7 +250,9 @@ export default {
|
|||||||
'tel': '',
|
'tel': '',
|
||||||
'qrcode': '',
|
'qrcode': '',
|
||||||
'tips': '',
|
'tips': '',
|
||||||
'type': ''
|
'type': '',
|
||||||
|
serviceTime: '00:00',
|
||||||
|
serviceEndTime: '23:59'
|
||||||
},
|
},
|
||||||
loading: false
|
loading: false
|
||||||
}
|
}
|
||||||
@@ -243,8 +265,11 @@ export default {
|
|||||||
if (id) {
|
if (id) {
|
||||||
// 赋值
|
// 赋值
|
||||||
const hotel = JSON.parse(uni.getStorageSync('MY_HOTEL_INFO'))
|
const hotel = JSON.parse(uni.getStorageSync('MY_HOTEL_INFO'))
|
||||||
console.log(hotel)
|
this.innHistory = {
|
||||||
this.innHistory = hotel
|
...hotel,
|
||||||
|
serviceTime: '00:00',
|
||||||
|
serviceEndTime: '23:59'
|
||||||
|
}
|
||||||
this.fillData(this.innApplyInfo, this.innHistory)
|
this.fillData(this.innApplyInfo, this.innHistory)
|
||||||
if (hotel.coverType === 2) {
|
if (hotel.coverType === 2) {
|
||||||
this.innApplyInfo.coverVideo = hotel.cover
|
this.innApplyInfo.coverVideo = hotel.cover
|
||||||
@@ -273,6 +298,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
showTimePicker() {
|
||||||
|
this.$refs.TimePickerPopupRef.open()
|
||||||
|
},
|
||||||
|
timeRange(e) {
|
||||||
|
this.innApplyInfo.serviceTime = e[0]
|
||||||
|
this.innApplyInfo.serviceEndTime = e[1]
|
||||||
|
this.$forceUpdate()
|
||||||
|
},
|
||||||
typePickerChange: function (e) {
|
typePickerChange: function (e) {
|
||||||
this.typeIndex = e.target.value
|
this.typeIndex = e.target.value
|
||||||
// 修改type
|
// 修改type
|
||||||
|
|||||||
@@ -434,8 +434,8 @@
|
|||||||
<template #value>
|
<template #value>
|
||||||
<u--text :text="form.serviceTime + ' - ' + form.serviceEndTime"></u--text>
|
<u--text :text="form.serviceTime + ' - ' + form.serviceEndTime"></u--text>
|
||||||
<tpf-time-range
|
<tpf-time-range
|
||||||
:startTime="form.serviceTime"
|
startTime="00:00"
|
||||||
:endTime="form.serviceEndTime"
|
endTime="23:59"
|
||||||
:startDefaultTime="form.serviceTime"
|
:startDefaultTime="form.serviceTime"
|
||||||
:endDefaultTime="form.serviceEndTime"
|
:endDefaultTime="form.serviceEndTime"
|
||||||
ref="TimePickerPopupRef"
|
ref="TimePickerPopupRef"
|
||||||
|
|||||||
Reference in New Issue
Block a user