diff --git a/config/app.php b/config/app.php index 3d956197d..85cbfacdc 100755 --- a/config/app.php +++ b/config/app.php @@ -19,7 +19,7 @@ return [ // 应用地址 'app_host' => '', // 应用调试模式 - 'app_debug' => false, + 'app_debug' => true, // 应用Trace 'app_trace' => false, // 是否支持多模块 diff --git a/sourcecode/alipay/pages/buy/buy.js b/sourcecode/alipay/pages/buy/buy.js index 0271e171a..0d77e7d50 100644 --- a/sourcecode/alipay/pages/buy/buy.js +++ b/sourcecode/alipay/pages/buy/buy.js @@ -78,7 +78,7 @@ Page({ { this.setData({ address: cache_address.data, - address_id: cache_address.data.id || 0, + address_id: cache_address.id, }); } } @@ -303,17 +303,21 @@ Page({ // 销售+自提 模式选择事件 buy_header_nav_event(e) { - // 数据设置 - this.setData({ - address: null, - address_id: null, - site_model: e.currentTarget.dataset.value || 0, - }); - - // 删除地址缓存 - my.removeStorageSync({key: app.data.cache_buy_user_address_select_key}); + var value = e.currentTarget.dataset.value || 0; + if (value != this.data.site_model) + { + // 数据设置 + this.setData({ + address: null, + address_id: null, + site_model: value, + }); - // 数据初始化 - this.init(); + // 删除地址缓存 + my.removeStorageSync({key: app.data.cache_buy_user_address_select_key}); + + // 数据初始化 + this.init(); + } }, }); diff --git a/sourcecode/baidu/pages/buy/buy.js b/sourcecode/baidu/pages/buy/buy.js index db72b70fb..68398796e 100755 --- a/sourcecode/baidu/pages/buy/buy.js +++ b/sourcecode/baidu/pages/buy/buy.js @@ -63,7 +63,7 @@ Page({ if ((cache_address || null) != null) { this.setData({ address: cache_address, - address_id: cache_address.id || null + address_id: cache_address.id, }); } } @@ -280,17 +280,21 @@ Page({ // 销售+自提 模式选择事件 buy_header_nav_event(e) { - // 数据设置 - this.setData({ - address: null, - address_id: null, - site_model: e.currentTarget.dataset.value || 0, - }); - - // 删除地址缓存 - swan.removeStorageSync(app.data.cache_buy_user_address_select_key); + var value = e.currentTarget.dataset.value || 0; + if (value != this.data.site_model) + { + // 数据设置 + this.setData({ + address: null, + address_id: null, + site_model: value, + }); - // 数据初始化 - this.init(); + // 删除地址缓存 + swan.removeStorageSync(app.data.cache_buy_user_address_select_key); + + // 数据初始化 + this.init(); + } }, }); \ No newline at end of file diff --git a/sourcecode/qq/pages/buy/buy.js b/sourcecode/qq/pages/buy/buy.js index 6c318b645..750866c1a 100755 --- a/sourcecode/qq/pages/buy/buy.js +++ b/sourcecode/qq/pages/buy/buy.js @@ -66,7 +66,7 @@ Page({ { this.setData({ address: cache_address, - address_id: cache_address.id || null, + address_id: cache_address.id, }); } } @@ -289,17 +289,21 @@ Page({ // 销售+自提 模式选择事件 buy_header_nav_event(e) { - // 数据设置 - this.setData({ - address: null, - address_id: null, - site_model: e.currentTarget.dataset.value || 0, - }); - - // 删除地址缓存 - qq.removeStorageSync(app.data.cache_buy_user_address_select_key); + var value = e.currentTarget.dataset.value || 0; + if (value != this.data.site_model) + { + // 数据设置 + this.setData({ + address: null, + address_id: null, + site_model: value, + }); - // 数据初始化 - this.init(); + // 删除地址缓存 + qq.removeStorageSync(app.data.cache_buy_user_address_select_key); + + // 数据初始化 + this.init(); + } }, }); diff --git a/sourcecode/toutiao/pages/buy/buy.js b/sourcecode/toutiao/pages/buy/buy.js index 1706a4da1..9625a8e48 100755 --- a/sourcecode/toutiao/pages/buy/buy.js +++ b/sourcecode/toutiao/pages/buy/buy.js @@ -66,7 +66,7 @@ Page({ { this.setData({ address: cache_address, - address_id: cache_address.id || null, + address_id: cache_address.id, }); } } @@ -289,17 +289,21 @@ Page({ // 销售+自提 模式选择事件 buy_header_nav_event(e) { - // 数据设置 - this.setData({ - address: null, - address_id: null, - site_model: e.currentTarget.dataset.value || 0, - }); - - // 删除地址缓存 - tt.removeStorageSync(app.data.cache_buy_user_address_select_key); + var value = e.currentTarget.dataset.value || 0; + if (value != this.data.site_model) + { + // 数据设置 + this.setData({ + address: null, + address_id: null, + site_model: value, + }); - // 数据初始化 - this.init(); + // 删除地址缓存 + tt.removeStorageSync(app.data.cache_buy_user_address_select_key); + + // 数据初始化 + this.init(); + } }, }); diff --git a/sourcecode/weixin/pages/buy/buy.js b/sourcecode/weixin/pages/buy/buy.js index 80c770b94..25e69077e 100755 --- a/sourcecode/weixin/pages/buy/buy.js +++ b/sourcecode/weixin/pages/buy/buy.js @@ -66,7 +66,7 @@ Page({ { this.setData({ address: cache_address, - address_id: cache_address.id || null, + address_id: cache_address.id, }); } } @@ -289,17 +289,21 @@ Page({ // 销售+自提 模式选择事件 buy_header_nav_event(e) { - // 数据设置 - this.setData({ - address: null, - address_id: null, - site_model: e.currentTarget.dataset.value || 0, - }); - - // 删除地址缓存 - wx.removeStorageSync(app.data.cache_buy_user_address_select_key); + var value = e.currentTarget.dataset.value || 0; + if (value != this.data.site_model) + { + // 数据设置 + this.setData({ + address: null, + address_id: null, + site_model: value, + }); - // 数据初始化 - this.init(); + // 删除地址缓存 + wx.removeStorageSync(app.data.cache_buy_user_address_select_key); + + // 数据初始化 + this.init(); + } }, }); diff --git a/sourcecode/weixin/pages/index/index.wxml b/sourcecode/weixin/pages/index/index.wxml index 263558d60..97d8dccec 100755 --- a/sourcecode/weixin/pages/index/index.wxml +++ b/sourcecode/weixin/pages/index/index.wxml @@ -2,7 +2,7 @@ - + diff --git a/sourcecode/weixin/pages/index/index.wxss b/sourcecode/weixin/pages/index/index.wxss index 5df78c65b..8b9c6daff 100755 --- a/sourcecode/weixin/pages/index/index.wxss +++ b/sourcecode/weixin/pages/index/index.wxss @@ -16,7 +16,7 @@ .search icon { position: absolute; left: 15rpx; - top: 15rpx; + top: 20rpx; } .search input { font-size: 28rpx;