|
|
@@ -140,6 +140,12 @@ export default {
|
|
|
let long = ref.region.longitude;
|
|
|
this.form.lat = lat
|
|
|
this.form.long = long
|
|
|
+
|
|
|
+ if(this.isFreight == false){
|
|
|
+ //免跑腿费不需要查询
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
try {
|
|
|
const deliveryForm = (ref && ref.form) ? ref.form : {};
|
|
|
const goodsInfo = this.goodsInfo || {};
|
|
|
@@ -160,7 +166,6 @@ export default {
|
|
|
if (!(hasLocation && hasValidNum && hasValidWeight && hasContact)) {
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
const params = {
|
|
|
cargo_name: cargoName,
|
|
|
price: this.goodsTotalPrice,
|
|
|
@@ -170,11 +175,9 @@ export default {
|
|
|
user_lat: lat,
|
|
|
user_name: userName,
|
|
|
user_phone: userPhone,
|
|
|
- user_address: ref.region.province + ref.region.city + ref.region.dist + ref.region.address + ref.region.floor
|
|
|
+ user_address: deliveryForm.address + deliveryForm.floor+'('+deliveryForm.showAddress+')'
|
|
|
};
|
|
|
-
|
|
|
newFreight(params).then(res => {
|
|
|
- console.log('newFreight',res)
|
|
|
if (res && res.code == 1) {
|
|
|
const data = res.data || {};
|
|
|
this.freightPrice = data.est_fee ? parseFloat(Number(data.est_fee/100)) : 0;
|