|
@@ -116,7 +116,7 @@ Page({
|
|
|
bannerFlag : 0, //banner数量
|
|
|
recommendArray:[], // /推荐数组
|
|
|
goodsNewsArray:[], //按照时间排序来
|
|
|
- channelId:null ,//用户登录后的id
|
|
|
+ // channelId:null ,//用户登录后的id
|
|
|
page:1, //默认第一页
|
|
|
limit:10, //展示的数量
|
|
|
requestState:true, //请求状态,默认是有数据的
|
|
@@ -528,9 +528,7 @@ Page({
|
|
|
let data ={
|
|
|
limit: 6,
|
|
|
offset: 1,
|
|
|
- }
|
|
|
- if (that.data.channelId){
|
|
|
- data.channelId = that.data.channelId
|
|
|
+ channelId: wx.getStorageSync('channelIdObj').channelId ? wx.getStorageSync('channelIdObj').channelId : ""
|
|
|
}
|
|
|
wx.request({
|
|
|
url: host + '/commodityapi/queryCommodityGroom',
|
|
@@ -550,10 +548,8 @@ Page({
|
|
|
getGoodsNews(that){
|
|
|
let data = {
|
|
|
limit: that.data.limit,
|
|
|
- offset: that.data.page
|
|
|
- }
|
|
|
- if (that.data.channelId){
|
|
|
- data.channelId = that.data.channelId
|
|
|
+ offset: that.data.page,
|
|
|
+ channelId: wx.getStorageSync('channelIdObj').channelId ? wx.getStorageSync('channelIdObj').channelId : ""
|
|
|
}
|
|
|
wx.request({
|
|
|
url: host + '/commodityapi/findAllforNewproduct',
|