chore[litemall-wx, litemall-wx-api]: 品牌商API调整及文档

This commit is contained in:
Junling Bu
2019-05-07 11:44:24 +08:00
parent 58139f5aaa
commit bb120ca4fc
7 changed files with 289 additions and 47 deletions

View File

@@ -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();

View File

@@ -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
});
}
});