|
|
@@ -229,7 +229,8 @@
|
|
|
<button @click="form.sendType=1" class="admin-button-com mini-btn" :class="form.sendType==1?'blue':'default'">配送</button>
|
|
|
<button @tap="form.sendType=2" class="admin-button-com mini-btn" :class="form.sendType==2?'blue':'default'">自取</button>
|
|
|
</tui-list-cell>
|
|
|
- <appSendTime :placeholder="'默认30分钟内配送'" @alterTime="purchaseFreight(ghsMsg)" :sendDate.sync="form.sendDate" :sendTime.sync="sendTime" ></appSendTime>
|
|
|
+ <!-- <appSendTime :placeholder="'默认30分钟内配送'" @alterTime="purchaseFreight(ghsMsg)" :sendDate.sync="form.sendDate" :sendTime.sync="sendTime" ></appSendTime> -->
|
|
|
+ <appTimer :placeholder="'默认30分钟内配送'" @confirm="onConfirm" :sendTime="sendTime"></appTimer>
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" v-show="form.sendType == 1">
|
|
|
<view class="tui-title ">运费</view>
|
|
|
<input type="number" placeholder="留空表示免运费" @input="countAllPrices" v-model="form.sendCost" placeholder-class="tui-placeholder">
|
|
|
@@ -269,10 +270,11 @@ import SimpleAddress from "@/components/plugin/simple-address";
|
|
|
import AppAreaSel from "@/components/app-area-sel";
|
|
|
import AppCustomerSel from "@/components/app-customer-sel";
|
|
|
import productMins from "@/mixins/product";
|
|
|
+import appTimer from '@/components/app-timer'
|
|
|
import appFormRadioBtn from "@/components/app-formRadio-btn";
|
|
|
import appAddressGroup from "@/components/app-address-group";
|
|
|
-import appSendTime from "@/components/app-send-time";
|
|
|
import appFormSend from "@/components/app-form-send";
|
|
|
+import appSendTime from "@/components/app-send-time";
|
|
|
const formUtil = require("@/utils/formValidation.js");
|
|
|
// import { createOrder } from "@/api/order/index";
|
|
|
import { getGhsDataApi } from "@/api/ghs/index";
|
|
|
@@ -286,11 +288,12 @@ export default {
|
|
|
AppAvatarModule,
|
|
|
SimpleAddress,
|
|
|
AppAreaSel,
|
|
|
+ appSendTime,
|
|
|
AppCustomerSel,
|
|
|
appFormRadioBtn,
|
|
|
appAddressGroup,
|
|
|
- appSendTime,
|
|
|
- appFormSend
|
|
|
+ appFormSend,
|
|
|
+ appTimer
|
|
|
},
|
|
|
mixins: [productMins],
|
|
|
data() {
|
|
|
@@ -345,6 +348,9 @@ export default {
|
|
|
init() {
|
|
|
this._getDet();
|
|
|
},
|
|
|
+ onConfirm(val) {
|
|
|
+ this.sendTime = val
|
|
|
+ },
|
|
|
toPhone(phone){
|
|
|
uni.makePhoneCall({
|
|
|
phoneNumber: phone //仅为示例
|