Authored by 李奇

fixed: 店铺信息内存存取

@@ -265,16 +265,13 @@ App({ @@ -265,16 +265,13 @@ App({
265 return config.unionType; 265 return config.unionType;
266 }, 266 },
267 getShopId() { 267 getShopId() {
268 - return this.globalData.unionShop && this.globalData.unionShop.shopId ||  
269 - this._getSync('unionShop').shopId; 268 + return this.globalData.unionShop && this.globalData.unionShop.shopId;
270 }, 269 },
271 getPaymentCode() { 270 getPaymentCode() {
272 - return this.globalData.unionShop && this.globalData.unionShop.payment ||  
273 - this._getSync('unionShop').payment; 271 + return this.globalData.unionShop && this.globalData.unionShop.payment;
274 }, 272 },
275 getAppType() { 273 getAppType() {
276 - return this.globalData.unionShop && this.globalData.unionShop.appType ||  
277 - this._getSync('unionShop').appType; 274 + return this.globalData.unionShop && this.globalData.unionShop.appType;
278 }, 275 },
279 getAppId() { 276 getAppId() {
280 return wx.getExtConfigSync().extAppid; 277 return wx.getExtConfigSync().extAppid;
@@ -52,7 +52,6 @@ Page({ @@ -52,7 +52,6 @@ Page({
52 const id = res.data.shopId; 52 const id = res.data.shopId;
53 53
54 app.globalData.unionShop = res.data; 54 app.globalData.unionShop = res.data;
55 - app._setSync('unionShop', res.data);  
56 55
57 this.getShopData(id); 56 this.getShopData(id);
58 this.getShopProducts(id); 57 this.getShopProducts(id);