需求发布增加时分选择
This commit is contained in:
parent
5413116392
commit
54af4deacf
|
@ -124,10 +124,21 @@
|
|||
</view>
|
||||
<view class="widget-item">
|
||||
<text class="iconfont icon-shijian icon"></text>
|
||||
<picker mode="date" :value="datetime" @change="bindDateChange" class="picker">
|
||||
<picker mode="date" @change="bindDateChange" class="picker">
|
||||
<text class="title">
|
||||
<text class="limit-line clamp-1">
|
||||
{{ datetime ? datetime : "选择期望上门时间" }}
|
||||
{{ date ? date : "选择期望上门日期" }}
|
||||
</text>
|
||||
</text>
|
||||
</picker>
|
||||
<text class="iconfont icon-jinru more"></text>
|
||||
</view>
|
||||
<view class="widget-item">
|
||||
<text class="iconfont icon-shijian icon"></text>
|
||||
<picker mode="time" @change="bindTimeChange" class="picker">
|
||||
<text class="title">
|
||||
<text class="limit-line clamp-1">
|
||||
{{ time ? time : "选择期望上门时间" }}
|
||||
</text>
|
||||
</text>
|
||||
</picker>
|
||||
|
@ -215,7 +226,8 @@ export default {
|
|||
cateId: 0,
|
||||
uploadImages: [],
|
||||
addressText: "",
|
||||
datetime: "",
|
||||
date: "",
|
||||
time: "",
|
||||
insurance: false,
|
||||
price: 0,
|
||||
};
|
||||
|
@ -328,7 +340,13 @@ export default {
|
|||
* 选择日期
|
||||
*/
|
||||
bindDateChange(e) {
|
||||
this.datetime = e.detail.value;
|
||||
this.date = e.detail.value;
|
||||
},
|
||||
/**
|
||||
* 选择时分
|
||||
*/
|
||||
bindTimeChange(e) {
|
||||
this.time = e.detail.value;
|
||||
},
|
||||
/**
|
||||
* 设置价格
|
||||
|
@ -371,7 +389,7 @@ export default {
|
|||
desc: this.content,
|
||||
img: this.uploadImages,
|
||||
addid: this.addressId,
|
||||
times: this.datetime,
|
||||
times: this.date + " " + this.time,
|
||||
baoxian: this.insurance ? 1 : 0,
|
||||
money: this.price,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue