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