fanfan 7 months ago
parent 985acf63bd
commit fcafb98ee0
  1. 14
      pages/goods/detail.vue

@ -101,8 +101,7 @@
<image :src="$picUrl+'/static/detail/address.png'" <image :src="$picUrl+'/static/detail/address.png'"
style="width: 46rpx;height: 46rpx;margin-right: 7rpx;margin-left: 0;"> style="width: 46rpx;height: 46rpx;margin-right: 7rpx;margin-left: 0;">
</image> </image>
<text <text style="margin-right: 10rpx;">{{addressResult.city}}{{stockValue}}</text>
style="margin-right: 10rpx;">{{addressInfo.region?addressInfo.region.city:addressResult.city}}{{stockValue}}</text>
<u-icon name="arrow-right" color="#B7B7B7" size="22"></u-icon> <u-icon name="arrow-right" color="#B7B7B7" size="22"></u-icon>
</picker> </picker>
</view> </view>
@ -140,7 +139,7 @@
</view> </view>
<view class="box" @click="choseAddress()"> <view class="box" @click="choseAddress()">
<view class="address"> <view class="address">
{{addressInfo.region?(addressInfo.region.province +'-'+addressInfo.region.city+'-'+addressInfo.region.region):(addressResult?addressResult.province +'-'+addressResult.city+'-'+addressResult.district:'全国')}} {{addressResult?addressResult.province +'-'+addressResult.city+'-'+addressResult.district:'全国'}}
</view> </view>
<u-icon name="arrow-right" color="#B7B7B7"></u-icon> <u-icon name="arrow-right" color="#B7B7B7"></u-icon>
</view> </view>
@ -573,12 +572,9 @@
goods_id: this.goodsId, goods_id: this.goodsId,
num: this.selectNum num: this.selectNum
}], }],
province: this.addressInfo.region ? this.addressInfo.region.province : (this.addressResult ? province: this.addressResult ?this.addressResult.province : '江苏省',
this.addressResult.province : '江苏省'), city: this.addressResult ? this.addressResult.city : '南京市',
city: this.addressInfo.region ? this.addressInfo.region.city : (this.addressResult ? this district: this.addressResult ? this.addressResult.district : '玄武区'
.addressResult.city : '南京市'),
district: this.addressInfo.region ? this.addressInfo.region.region : (this.addressResult ? this
.addressResult.district : '玄武区')
} }
let { let {
status, status,

Loading…
Cancel
Save