|
|
@@ -64,7 +64,7 @@
|
|
|
<text style="color: #666666;margin-right: 24rpx;">送至</text>
|
|
|
<text v-if="defaultAddress"
|
|
|
style="width: 520rpx;white-space:nowrap;overflow: hidden;text-overflow: ellipsis;">
|
|
|
- {{ defaultAddress.address }}</text>
|
|
|
+ {{ defaultAddress.address + defaultAddress.atlasAdd }}</text>
|
|
|
<text v-else style="color: #999;position: absolute;right: 30rpx;">添加收货地址</text>
|
|
|
<span style="position: absolute;right: 0;top: -3rpx;">
|
|
|
<image style="width: 35rpx;height: 35rpx;" @click="addressSelectFun"
|
|
|
@@ -73,7 +73,9 @@
|
|
|
</view>
|
|
|
<view class="seedAddressClass">
|
|
|
<text style="color: #666666;margin-right: 24rpx;">发货</text>
|
|
|
- <text>山西省太原市小店区 | {{ params.freight == 0 ? '免运费' : '运费' + params.freight + '元' }}</text>
|
|
|
+ <text>山西省太原市小店区
|
|
|
+ <text v-if="params.freight!=undefined"> | {{ params.freight == 0 ? '免运费' : '运费' + params.freight + '元' }}</text>
|
|
|
+ </text>
|
|
|
</view>
|
|
|
<view class="promiseSeedTime" style="margin-left: 80rpx;">
|
|
|
下单后{{ params.deliveryTime }}小时内发货
|
|
|
@@ -203,16 +205,6 @@ export default {
|
|
|
},
|
|
|
onShow() {
|
|
|
this.getAddrListFun()
|
|
|
-
|
|
|
- //选择地址后传回的地址id
|
|
|
- // if (this.selectedAddressId && this.defaultAddress) {
|
|
|
- // if (this.selectedAddressId !== this.defaultAddress.id) {
|
|
|
- // this.defaultAddress = this.addressList.find(item => {
|
|
|
- // if (item.id == this.selectedAddressId)
|
|
|
- // return item
|
|
|
- // });
|
|
|
- // }
|
|
|
- // }
|
|
|
},
|
|
|
onPageScroll(e) {
|
|
|
//console.log("滚动距离为:" + e.scrollTop);
|
|
|
@@ -319,7 +311,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
if (this.selectedObj) {
|
|
|
- if (this.selectPayMeth == null && (params.paymentType == 2 || params.paymentType == 3)) {
|
|
|
+ if (this.selectPayMeth == null && (params.paymentType !== 1 || this.params.freight>0)) {
|
|
|
uni.showToast({
|
|
|
title: '请选择支付方式',
|
|
|
icon: 'none'
|
|
|
@@ -345,7 +337,7 @@ export default {
|
|
|
params.payAmount = this.selectedObj.priceMoney;// 支付金额
|
|
|
params.pointsUsed = this.selectedObj.pricePoint;// 使用的积分
|
|
|
params.buyerRemark = this.orderRemarks;//买家备注信息
|
|
|
- if (params.paymentType == 1) {//只有积分兑换
|
|
|
+ if (this.params.paymentType == 1 && this.params.freight==0) {//只有积分兑换
|
|
|
this.productOrderCreateFun(params)
|
|
|
return
|
|
|
}
|
|
|
@@ -593,12 +585,11 @@ export default {
|
|
|
|
|
|
.discribeClass {
|
|
|
margin-top: 12rpx;
|
|
|
- width: 308rpx;
|
|
|
- height: 28rpx;
|
|
|
+ line-height: 28rpx;
|
|
|
font-weight: 500;
|
|
|
font-size: 28rpx;
|
|
|
color: #999999;
|
|
|
- line-height: 28rpx;
|
|
|
+ line-height: 32rpx;
|
|
|
text-align: left;
|
|
|
font-style: normal;
|
|
|
text-transform: none;
|