Commit 265ba20207db879171b181844242e340178823d1

Authored by yvan.ni
1 parent 7f5868f9

门店在使用的时候,只用深度拷贝,不能用赋值,避免线下库存混乱显示的情况

pages/goods/goodsInfo/goodsInfo.js
... ... @@ -338,13 +338,15 @@ Page({
338 338 });
339 339  
340 340 //获取用户的默认门店
341   - getApp().get_user_store(function(e) {
342   - if(!e) return false;
  341 + getApp().get_user_store(function(ee) {
  342 + if(!ee) return false;
343 343 var appd=getApp().globalData;
344 344 var w_time = setInterval(function() {
345 345 if (that.data.is_get_local_ok == 0) return false;
346 346 clearInterval(w_time);
347 347 var distance = null;
  348 + var e=JSON.parse(JSON.stringify(ee));
  349 +
348 350  
349 351 //如果有开启近距离的话,同时距离优不一样了
350 352 if (that.data.lat != null) {
... ...