chore[litemall-wx, litemall-wx-api]: 品牌商API调整及文档
This commit is contained in:
@@ -19,12 +19,12 @@ Page({
|
||||
let that = this;
|
||||
util.request(api.BrandList, {
|
||||
page: that.data.page,
|
||||
size: that.data.size
|
||||
limit: that.data.size
|
||||
}).then(function(res) {
|
||||
if (res.errno === 0) {
|
||||
that.setData({
|
||||
brandList: that.data.brandList.concat(res.data.brandList),
|
||||
totalPages: res.data.totalPages
|
||||
brandList: that.data.brandList.concat(res.data.list),
|
||||
totalPages: res.data.pages
|
||||
});
|
||||
}
|
||||
wx.hideLoading();
|
||||
|
||||
@@ -26,7 +26,7 @@ Page({
|
||||
}).then(function(res) {
|
||||
if (res.errno === 0) {
|
||||
that.setData({
|
||||
brand: res.data.brand
|
||||
brand: res.data
|
||||
});
|
||||
|
||||
that.getGoodsList();
|
||||
@@ -44,7 +44,7 @@ Page({
|
||||
.then(function(res) {
|
||||
if (res.errno === 0) {
|
||||
that.setData({
|
||||
goodsList: res.data.goodsList
|
||||
goodsList: res.data.list
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user