配送增加时分选择
This commit is contained in:
parent
84920310a8
commit
5413116392
|
@ -34,7 +34,18 @@
|
||||||
<picker mode="date" @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>
|
||||||
|
@ -94,16 +105,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
utils: this.$utils,
|
utils: this.$utils,
|
||||||
pageConfig: {},
|
pageConfig: {},
|
||||||
carTypeList: [
|
carTypeList: [],
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
name: "营运",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 2,
|
|
||||||
name: "非营运",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
unitPrice: 0,
|
unitPrice: 0,
|
||||||
minDistance: 0,
|
minDistance: 0,
|
||||||
carTypeId: 0,
|
carTypeId: 0,
|
||||||
|
@ -112,7 +114,8 @@ export default {
|
||||||
pickupAddressText: "",
|
pickupAddressText: "",
|
||||||
unloadAddressId: 0,
|
unloadAddressId: 0,
|
||||||
unloadAddressText: "",
|
unloadAddressText: "",
|
||||||
datetime: "",
|
date: "",
|
||||||
|
time: "",
|
||||||
distance: null,
|
distance: null,
|
||||||
content: "",
|
content: "",
|
||||||
total: 0,
|
total: 0,
|
||||||
|
@ -176,7 +179,13 @@ export default {
|
||||||
* 选择日期
|
* 选择日期
|
||||||
*/
|
*/
|
||||||
bindDateChange(e) {
|
bindDateChange(e) {
|
||||||
this.datetime = e.detail.value;
|
this.date = e.detail.value;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 选择时分
|
||||||
|
*/
|
||||||
|
bindTimeChange(e) {
|
||||||
|
this.time = e.detail.value;
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 计算价格
|
* 计算价格
|
||||||
|
@ -197,7 +206,7 @@ export default {
|
||||||
car: this.carTypeId,
|
car: this.carTypeId,
|
||||||
address: this.pickupAddressId,
|
address: this.pickupAddressId,
|
||||||
addressb: this.unloadAddressId,
|
addressb: this.unloadAddressId,
|
||||||
starttime: this.datetime,
|
starttime: this.date + " " + this.time,
|
||||||
sendtime: 0,
|
sendtime: 0,
|
||||||
distance: this.distance,
|
distance: this.distance,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue