Authored by 李奇

fixed: 店铺信息内存存取

... ... @@ -265,16 +265,13 @@ App({
return config.unionType;
},
getShopId() {
return this.globalData.unionShop && this.globalData.unionShop.shopId ||
this._getSync('unionShop').shopId;
return this.globalData.unionShop && this.globalData.unionShop.shopId;
},
getPaymentCode() {
return this.globalData.unionShop && this.globalData.unionShop.payment ||
this._getSync('unionShop').payment;
return this.globalData.unionShop && this.globalData.unionShop.payment;
},
getAppType() {
return this.globalData.unionShop && this.globalData.unionShop.appType ||
this._getSync('unionShop').appType;
return this.globalData.unionShop && this.globalData.unionShop.appType;
},
getAppId() {
return wx.getExtConfigSync().extAppid;
... ...
... ... @@ -52,7 +52,6 @@ Page({
const id = res.data.shopId;
app.globalData.unionShop = res.data;
app._setSync('unionShop', res.data);
this.getShopData(id);
this.getShopProducts(id);
... ...