|
|
@ -5,7 +5,6 @@ |
|
|
|
<view v-if="haveAddress" class="address-left flex-1 font16"> |
|
|
|
<view v-if="haveAddress" class="address-left flex-1 font16"> |
|
|
|
<view class="text-ov "> |
|
|
|
<view class="text-ov "> |
|
|
|
{{addressDetail.regionName+" "+addressDetail.address}} |
|
|
|
{{addressDetail.regionName+" "+addressDetail.address}} |
|
|
|
<!-- 重庆市渝中区不是的聚钓具偶家 --> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="color999 mart3"> |
|
|
|
<view class="color999 mart3"> |
|
|
|
<text class="address-name">{{addressDetail.consignee}}</text> |
|
|
|
<text class="address-name">{{addressDetail.consignee}}</text> |
|
|
@ -63,11 +62,11 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="settle-msg"> |
|
|
|
<view class="settle-msg"> |
|
|
|
<view class="settle-title marb5"> |
|
|
|
<view class="settle-title marb5"> |
|
|
|
<text>{{goodsList[0].title}}</text> |
|
|
|
<text class="flex-1">{{goodsList[0].title}}</text> |
|
|
|
<text class="font14 fcor666">共{{getNumberAll}}件</text> |
|
|
|
<view class="font14 fcor666">共{{getNumberAll}}件</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-if="yhqId == 0" class="settle-title"> |
|
|
|
<view v-if="yhqId == 0" class="settle-title"> |
|
|
|
<text>¥{{goodsList[0].price}}</text> |
|
|
|
<text >¥{{goodsList[0].price}}</text> |
|
|
|
<text class="font14 fcor666">×{{goodsList[0].num}}</text> |
|
|
|
<text class="font14 fcor666">×{{goodsList[0].num}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-else class="settle-title"> |
|
|
|
<view v-else class="settle-title"> |
|
|
@ -243,6 +242,8 @@ |
|
|
|
isSelectJf: false, //是否选择积分抵扣 |
|
|
|
isSelectJf: false, //是否选择积分抵扣 |
|
|
|
isShowjf:true,//是否显示积分 |
|
|
|
isShowjf:true,//是否显示积分 |
|
|
|
PaymentPassword: 0, |
|
|
|
PaymentPassword: 0, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noClick:true,//去支付的点击防抖判断 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
components: { |
|
|
|
components: { |
|
|
@ -412,14 +413,14 @@ |
|
|
|
this.getAddrPrice() //查询收货地址包邮金额和运费金额 |
|
|
|
this.getAddrPrice() //查询收货地址包邮金额和运费金额 |
|
|
|
|
|
|
|
|
|
|
|
if(this.addressDetail&&!this.isFirstSearchAddress){ |
|
|
|
if(this.addressDetail&&!this.isFirstSearchAddress){ |
|
|
|
console.log(this.addressDetail,"123456") |
|
|
|
// console.log(this.addressDetail,"123456") |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
id:this.addressDetail.id |
|
|
|
id:this.addressDetail.id |
|
|
|
} |
|
|
|
} |
|
|
|
findDeliveryAddressById(params).then(res=>{ |
|
|
|
findDeliveryAddressById(params).then(res=>{ |
|
|
|
// console.log(res) |
|
|
|
// console.log(res) |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
|
|
|
this.addressDetail = res.return_data |
|
|
|
}else{ //之前选择的地址失效了 |
|
|
|
}else{ //之前选择的地址失效了 |
|
|
|
this.isFirstSearchAddress=true; |
|
|
|
this.isFirstSearchAddress=true; |
|
|
|
this.haveAddress = false; |
|
|
|
this.haveAddress = false; |
|
|
@ -442,6 +443,7 @@ |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
regionId: addressDetail.regionId |
|
|
|
regionId: addressDetail.regionId |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.postPrice = 0; |
|
|
|
getRegionFreight(params).then(res => { |
|
|
|
getRegionFreight(params).then(res => { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
this.postPrice = res.return_data |
|
|
|
this.postPrice = res.return_data |
|
|
@ -466,6 +468,7 @@ |
|
|
|
title: '加载中', |
|
|
|
title: '加载中', |
|
|
|
mask: true, |
|
|
|
mask: true, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
this.postPrice = 0; |
|
|
|
getAddressPrice().then(res => { |
|
|
|
getAddressPrice().then(res => { |
|
|
|
uni.hideLoading(); |
|
|
|
uni.hideLoading(); |
|
|
|
this.isFirstSearchAddress = false; |
|
|
|
this.isFirstSearchAddress = false; |
|
|
@ -633,6 +636,18 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 去支付按钮,下单 |
|
|
|
// 去支付按钮,下单 |
|
|
|
settleAccount() { |
|
|
|
settleAccount() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.noClick){ |
|
|
|
|
|
|
|
this.noClick = false; |
|
|
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
|
|
this.noClick = true; |
|
|
|
|
|
|
|
},2000) |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.addressDetail&&!this.haveAddress) { |
|
|
|
if (!this.addressDetail&&!this.haveAddress) { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: '请选择地址', |
|
|
|
title: '请选择地址', |
|
|
|