详情地址同步

main
fanfan 11 months ago
parent a80086dcc7
commit 273fad5570
  1. 2
      config.js
  2. 2
      core/config/defaultConfig.js
  3. 4
      ext.json
  4. 2
      manifest.json
  5. 16
      pages/goods/detail.vue
  6. 2
      pages/index/index.vue
  7. 2
      project.config.json

@ -15,7 +15,7 @@ export default {
* 可在超管后台-商城列表中查看10025
*/
storeId: wx.getExtConfigSync().store_id? wx.getExtConfigSync().store_id : 10045,
storeId: wx.getExtConfigSync().store_id? wx.getExtConfigSync().store_id : 10048,
// storeId: 10037,

@ -15,7 +15,7 @@ export default {
* 商城ID (必填)
* 可在超管后台-商城列表中查看
*/
storeId: wx.getExtConfigSync? wx.getExtConfigSync().store_id : 10045,
storeId: wx.getExtConfigSync? wx.getExtConfigSync().store_id : 10048,
// storeId: 10037,
/**

@ -1,7 +1,7 @@
{
"extEnable": true,
"extAppid": "wxe843b6d7a4bd3389",
"extAppid": "wxa3127ed5c3542a28",
"ext": {
"store_id": 10045
"store_id": 10048
}
}

@ -92,7 +92,7 @@
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "wxe843b6d7a4bd3389",
"appid" : "wxa3127ed5c3542a28",
"libVersion" : "latest",
"setting" : {
// TLS

@ -101,7 +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;">{{addressResult.city}}{{stockValue}}</text>
<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>
</picker>
</view>
@ -139,7 +139,7 @@
</view>
<view class="box" @click="choseAddress()">
<view class="address">
{{addressInfo.region?addressInfo.region.province +'-'+addressInfo.region.city+'-'+addressInfo.region.region:'全国'}}
{{addressInfo.region?(addressInfo.region.province +'-'+addressInfo.region.city+'-'+addressInfo.region.region):(addressResult?addressResult.province +'-'+addressResult.city+'-'+addressResult.district:'全国')}}
</view>
<u-icon name="arrow-right" color="#B7B7B7"></u-icon>
</view>
@ -572,9 +572,9 @@
goods_id: this.goodsId,
num: this.selectNum
}],
province: this.addressResult ? this.addressResult.province : '江苏省',
city: this.addressResult ? this.addressResult.city : '南京市',
district: this.addressResult ? this.addressResult.district : '玄武区'
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 : '玄武区')
}
let {
status,
@ -815,7 +815,6 @@
},
//
getDefaultAddress() {
console.log('5855555')
const that = this
return new Promise((resolve, reject) => {
address.defaultId().then(res => {
@ -823,9 +822,12 @@
for (var i = 0; i < that.addressList.length; i++) {
if (res.data.defaultId == that.addressList[i].address_id) {
that.addressInfo = that.addressList[i];
console.log(that.addressInfo, '获取地址')
console.log('kkkkkkkkk')
}
}
if(that.addressInfo){
that.getGoodsStockInfor()
}
}
})
.catch()

@ -1010,7 +1010,7 @@
async getStore() {
newFunApi.storeData().then(res => {
if (res.status == 200) {
this.logoImage = res.data.storeInfo.logoImage.preview_url
this.logoImage = res.data.storeInfo.logoImage?res.data.storeInfo.logoImage.preview_url:""
}
})
.finally(() => {})

@ -1,5 +1,5 @@
{
"appid": "wxe843b6d7a4bd3389",
"appid": "wxa3127ed5c3542a28",
"compileType": "miniprogram",
"libVersion": "3.3.3",
"packOptions": {

Loading…
Cancel
Save