From 186af14abd02a948108990f51bf73b60f2d5f64f Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Fri, 11 Oct 2019 13:54:55 +0800 Subject: [PATCH] 商品分类,新旧界面的切换, app getconfig2的函数的修复 --- app.js | 2 +- pages/goods/categoryList/categoryList.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 08cdbb1..2aa2924 100644 --- a/app.js +++ b/app.js @@ -109,7 +109,7 @@ App({ success: function (o) { console.log('getConfig2'); if (o.data.code == 0) { - e.globalData.config2 = o.data.data, "function" == typeof t && t(e.globalData.config); + e.globalData.config2 = o.data.data, "function" == typeof t && t(e.globalData.config2); } } }); diff --git a/pages/goods/categoryList/categoryList.js b/pages/goods/categoryList/categoryList.js index de5d5ea..f843053 100644 --- a/pages/goods/categoryList/categoryList.js +++ b/pages/goods/categoryList/categoryList.js @@ -81,7 +81,6 @@ Page({ }, onShow:function(){ - getApp var that=this; getApp().getConfig2(function (e) { @@ -126,7 +125,7 @@ Page({ var dda = e.data.data.pageData; console.log(dda, "所有的数据"); - if (this.data.is_used_share == 0) {//is_used_share控制新旧版本 + if (t.data.is_used_share == 0) {//is_used_share控制新旧版本 for(var i=0;i