|
@@ -9,7 +9,7 @@
|
|
|
<u-image height="40rpx" width="40rpx" src="/static/position.png"></u-image>
|
|
|
</view>
|
|
|
<view class="position">
|
|
|
- <view class="address">{{userInfo.receiveAddress}}</view>
|
|
|
+ <view class="address">{{receiveAddress}}</view>
|
|
|
<view>{{userInfo.receiverName +' ' + userInfo.receiverPhone}}</view>
|
|
|
</view>
|
|
|
<view @click="editAddress">
|
|
@@ -134,12 +134,20 @@
|
|
|
uni.$once('setPswSuccess', this.setPsw)
|
|
|
},
|
|
|
computed: {
|
|
|
+ // 总计
|
|
|
totalPrice() {
|
|
|
let total = 0
|
|
|
this.goodsList.map(item => {
|
|
|
total = total + item.buyQty * item.goods.sellGold
|
|
|
})
|
|
|
return total
|
|
|
+ },
|
|
|
+ // 收货地址
|
|
|
+ receiveAddress() {
|
|
|
+ if (this.userInfo.receiveAreasName) {
|
|
|
+ let area = this.userInfo.receiveAreasName.split(',')
|
|
|
+ return area[0]+area[1]+area[2]+this.userInfo.receiveAddress
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -230,8 +238,9 @@
|
|
|
buyQty: item.buyQty
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
let params = {
|
|
|
- receiveAddress: this.userInfo.receiveAddress,
|
|
|
+ receiveAddress: this.receiveAddress,
|
|
|
receiverName: this.userInfo.receiverName,
|
|
|
receiverPhone: this.userInfo.receiverPhone,
|
|
|
orderGoodsList: orderGoodsList,
|