diff --git a/packageA/pages/cardList/cardList.js b/packageA/pages/cardList/cardList.js index 60c419c..377fcf6 100644 --- a/packageA/pages/cardList/cardList.js +++ b/packageA/pages/cardList/cardList.js @@ -24,6 +24,7 @@ Page({ */ onLoad: function (options) { self = this;//保存全局指针 + this.data.options = options; app.isLogin().then(function(data) {//进入页面前已经授权登录成功 self.setData({ userInfo: data, @@ -60,7 +61,9 @@ Page({ imghost: app.globalData.setting.imghost, isLogin: true, }); - + if(this.data.options.cat_id) { + currentQuery.cat_id = this.data.options.cat_id; + }; currentQuery.page=1; this.getData(true, url, currentQuery); // app.request.promiseGet("/api/weshop/ad/page?pid=2&store_id=" + app.globalData.setting.stoid, { diff --git a/packageA/pages/cardList/cardList.wxml b/packageA/pages/cardList/cardList.wxml index efb3a19..9a3eaf5 100644 --- a/packageA/pages/cardList/cardList.wxml +++ b/packageA/pages/cardList/cardList.wxml @@ -52,7 +52,7 @@ - - 已经到底了 - + @@ -85,7 +85,7 @@ - - 已经到底了 - +