|
@@ -501,9 +501,11 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
viewDiscount(){
|
|
viewDiscount(){
|
|
|
|
|
+ this.$util.hitVoice()
|
|
|
this.showDiscount = true
|
|
this.showDiscount = true
|
|
|
},
|
|
},
|
|
|
setDiscount(num){
|
|
setDiscount(num){
|
|
|
|
|
+ this.$util.hitVoice()
|
|
|
this.discountValue = Number(num)
|
|
this.discountValue = Number(num)
|
|
|
let price = Number(this.totalPrice)*Number(num)
|
|
let price = Number(this.totalPrice)*Number(num)
|
|
|
price = parseFloat(price.toFixed(2))
|
|
price = parseFloat(price.toFixed(2))
|
|
@@ -511,22 +513,27 @@ export default {
|
|
|
this.showDiscount = false
|
|
this.showDiscount = false
|
|
|
},
|
|
},
|
|
|
confirmDiff(){
|
|
confirmDiff(){
|
|
|
|
|
+ this.$util.hitVoice()
|
|
|
this.form.dealPrice = 1
|
|
this.form.dealPrice = 1
|
|
|
this.$refs.diffRef.close()
|
|
this.$refs.diffRef.close()
|
|
|
this.enter()
|
|
this.enter()
|
|
|
},
|
|
},
|
|
|
cancelDiff(){
|
|
cancelDiff(){
|
|
|
|
|
+ this.$util.hitVoice()
|
|
|
this.$refs.diffRef.close()
|
|
this.$refs.diffRef.close()
|
|
|
},
|
|
},
|
|
|
diffConfirm(data){
|
|
diffConfirm(data){
|
|
|
|
|
+ this.$util.hitVoice()
|
|
|
this.diffData = data
|
|
this.diffData = data
|
|
|
this.$refs.diffRef.open('center')
|
|
this.$refs.diffRef.open('center')
|
|
|
},
|
|
},
|
|
|
changeShopAdminId(item){
|
|
changeShopAdminId(item){
|
|
|
|
|
+ this.$util.hitVoice()
|
|
|
this.form.shopAdminId = item.id
|
|
this.form.shopAdminId = item.id
|
|
|
this.form.shopAdminName = item.name
|
|
this.form.shopAdminName = item.name
|
|
|
},
|
|
},
|
|
|
changeGetStaff(item){
|
|
changeGetStaff(item){
|
|
|
|
|
+ this.$util.hitVoice()
|
|
|
this.form.getStaffId = item.id
|
|
this.form.getStaffId = item.id
|
|
|
this.form.getStaffName = item.name
|
|
this.form.getStaffName = item.name
|
|
|
},
|
|
},
|
|
@@ -544,6 +551,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
changeSendType(val){
|
|
changeSendType(val){
|
|
|
|
|
+ this.$util.hitVoice()
|
|
|
this.form.sendType = val
|
|
this.form.sendType = val
|
|
|
if (val !== 2) {
|
|
if (val !== 2) {
|
|
|
this.form.sendCost = 0
|
|
this.form.sendCost = 0
|
|
@@ -788,27 +796,21 @@ export default {
|
|
|
this.form.sendType = 1; // 切换回自取
|
|
this.form.sendType = 1; // 切换回自取
|
|
|
this.deliveryQuotes = [];
|
|
this.deliveryQuotes = [];
|
|
|
}
|
|
}
|
|
|
- }).catch((err) => {
|
|
|
|
|
- console.log('获取跑腿平台报价失败:', err);
|
|
|
|
|
- if(err.code == 0){
|
|
|
|
|
- uni.showToast({ title: err.msg || '获取跑腿平台报价失败', icon: 'none', duration: 2500});
|
|
|
|
|
- } else {
|
|
|
|
|
- uni.showToast({ title: '获取跑腿平台报价失败', icon: 'none' });
|
|
|
|
|
- }
|
|
|
|
|
- //this.form.sendType = 1; // 切换回自取
|
|
|
|
|
- this.deliveryQuotes = [];
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
selectDelivery(item, index) {
|
|
selectDelivery(item, index) {
|
|
|
|
|
+ this.$util.hitVoice()
|
|
|
this.selectedDeliveryIndex = index;
|
|
this.selectedDeliveryIndex = index;
|
|
|
this.selectedDeliveryData = item;
|
|
this.selectedDeliveryData = item;
|
|
|
this.form.sendCost = item.priceNumber;
|
|
this.form.sendCost = item.priceNumber;
|
|
|
this.showDistance = item.distance || 0;
|
|
this.showDistance = item.distance || 0;
|
|
|
},
|
|
},
|
|
|
openTimePicker() {
|
|
openTimePicker() {
|
|
|
|
|
+ this.$util.hitVoice()
|
|
|
this.$refs.timePicker.open();
|
|
this.$refs.timePicker.open();
|
|
|
},
|
|
},
|
|
|
handleTimeConfirm(time) {
|
|
handleTimeConfirm(time) {
|
|
|
|
|
+ this.$util.hitVoice()
|
|
|
this.pickupTime = time;
|
|
this.pickupTime = time;
|
|
|
if (this.form.sendType == 2) {
|
|
if (this.form.sendType == 2) {
|
|
|
this.getDeliveryQuotes();
|
|
this.getDeliveryQuotes();
|