|
|
@@ -99,8 +99,9 @@ Page({
|
|
|
*/
|
|
|
getGoodsSeries() {
|
|
|
let param = {}
|
|
|
- api.request(this.data.goodsSeriesService.prefix + 'list_by_nopage', 'POST', param).then(res => {
|
|
|
- if (res.data.code === 200) {
|
|
|
+ let excute = this.excute(this.data.goodsSeriesService,this.data.goodsSeriesService.listByNoPage,{});
|
|
|
+ excute.then(res => {
|
|
|
+ if (res.data.code === Constants.SUCESS_CODE) {
|
|
|
let sidebarList = this.data.sidebarList
|
|
|
sidebarList = sidebarList.concat(res.data.data)
|
|
|
this.setData({
|
|
|
@@ -109,6 +110,7 @@ Page({
|
|
|
|
|
|
}
|
|
|
})
|
|
|
+ return excute;
|
|
|
},
|
|
|
|
|
|
|