|
|
@@ -12,7 +12,8 @@
|
|
|
</tui-list-cell>
|
|
|
<!-- 门店送或快递送需要设置地址 -->
|
|
|
<appAddressGroup :customId="customId" cityTitle="配送城市" @selectAdress="selectAdress" ></appAddressGroup>
|
|
|
- <appSendTime @alterTime="selectAdress('')" :sendDate.sync="formData.sendDate" :sendTime.sync="formData.sendTime"></appSendTime>
|
|
|
+ <!-- <appSendTime @alterTime="selectAdress('')" :sendDate.sync="formData.sendDate" :sendTime.sync="formData.sendTime"></appSendTime> -->
|
|
|
+ <appTimer :sendTime="formData.sendTime" @confirm="onConfirm"></appTimer>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -33,13 +34,15 @@ import { freight } from "@/api/order";
|
|
|
import appFormRadioBtn from "@/components/app-formRadio-btn";
|
|
|
import appAddressGroup from "@/components/app-address-group";
|
|
|
import appSendTime from "@/components/app-send-time";
|
|
|
+import appTimer from "@/components/app-timer";
|
|
|
import {mapGetters} from "vuex";
|
|
|
export default {
|
|
|
components: {
|
|
|
TuiListCell,
|
|
|
appFormRadioBtn,
|
|
|
appAddressGroup,
|
|
|
- appSendTime
|
|
|
+ appSendTime,
|
|
|
+ appTimer
|
|
|
},
|
|
|
props: {
|
|
|
customId:'',
|
|
|
@@ -131,6 +134,10 @@ export default {
|
|
|
this.freightCount(params);
|
|
|
});
|
|
|
},
|
|
|
+ onConfirm(val) {
|
|
|
+ this.formData.sendTime = val
|
|
|
+ this.selectAdress('')
|
|
|
+ },
|
|
|
// 计算运费
|
|
|
freightCount(option) {
|
|
|
freight(option).then(res => {
|