| @@ -13,15 +13,16 @@ Page({ | |||||
| }, | }, | ||||
| onLoad(options) { | onLoad(options) { | ||||
| let that = this; | let that = this; | ||||
| Http.get({ | |||||
| url: config.api.bannerDetail, | |||||
| data: { | |||||
| id: options.id | |||||
| } | |||||
| }).then(res => { | |||||
| that.setData({ | |||||
| data: res.data | |||||
| }); | |||||
| if (options.id){ | |||||
| Http.get({ | |||||
| url: config.api.bannerDetail, | |||||
| data: { | |||||
| id: options.id | |||||
| } | |||||
| }).then(res => { | |||||
| that.setData({ | |||||
| data: res.data | |||||
| }); | |||||
| }).catch(err => { | }).catch(err => { | ||||
| wx.showToast({ | wx.showToast({ | ||||
| title: err.errMsg, | title: err.errMsg, | ||||
| @@ -30,6 +31,7 @@ Page({ | |||||
| mask: false | mask: false | ||||
| }); | }); | ||||
| }) | }) | ||||
| } | |||||
| }, | }, | ||||
| gotoactdetail:function(){ | gotoactdetail:function(){ | ||||
| let that = this; | let that = this; | ||||