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

Loading…
Cancel
Save