|
@@ -13,14 +13,19 @@
|
|
|
{{ tag }}
|
|
{{ tag }}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view style="padding-top:18upx">营业时段</view>
|
|
|
|
|
|
|
+ <view class="" style="display: flex;justify-content: space-between;align-items: center;">
|
|
|
|
|
+ <view style="padding-top:18upx">营业时段</view>
|
|
|
|
|
+ <view @click="add()" class="add-style">添加</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<view class="cu-form-group" style="border-bottom: 1upx solid #eee;margin:0" v-if="timeType.length > 0">
|
|
<view class="cu-form-group" style="border-bottom: 1upx solid #eee;margin:0" v-if="timeType.length > 0">
|
|
|
<input v-model="time" name="input"></input>
|
|
<input v-model="time" name="input"></input>
|
|
|
</view>
|
|
</view>
|
|
|
<view style="border-bottom: 1upx solid #eee;margin:0" v-for="(tim, timInd) in timeArr" :key="timInd" v-else>
|
|
<view style="border-bottom: 1upx solid #eee;margin:0" v-for="(tim, timInd) in timeArr" :key="timInd" v-else>
|
|
|
<view class="cu-form-group" style="margin:0" v-if="timInd == 0 && timeArr.length < 3">
|
|
<view class="cu-form-group" style="margin:0" v-if="timInd == 0 && timeArr.length < 3">
|
|
|
<input placeholder="添加营业时段(1/3)" v-model="tim.value" name="input" @click="open(timInd)" disabled="true"></input>
|
|
<input placeholder="添加营业时段(1/3)" v-model="tim.value" name="input" @click="open(timInd)" disabled="true"></input>
|
|
|
- <view @click="add()" class="add-style">添加</view>
|
|
|
|
|
|
|
+ <text class='cuIcon-right' style="color: #C7C6CA ;" @click="open(timInd)"></text>
|
|
|
</view>
|
|
</view>
|
|
|
<view v-else>
|
|
<view v-else>
|
|
|
<uni-swipe-action>
|
|
<uni-swipe-action>
|
|
@@ -216,6 +221,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
onEndTimeChange(val) {
|
|
onEndTimeChange(val) {
|
|
|
this.timeArr[this.timeIndex].value = val.startDate + '-' + val.endDate
|
|
this.timeArr[this.timeIndex].value = val.startDate + '-' + val.endDate
|
|
|
|
|
+ this.$refs.rangTime.startDate = ''
|
|
|
|
|
+ this.$refs.rangTime.endDate = ''
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
sumbit() {
|
|
sumbit() {
|