Sfoglia il codice sorgente

[bannerDetail增加id的判断]

tags/长荣世贸广场2.2.7
meo 6 anni fa
parent
commit
cb2f880c5e
1 ha cambiato i file con 11 aggiunte e 9 eliminazioni
  1. +11
    -9
      pages/bannerdetail/index.js

+ 11
- 9
pages/bannerdetail/index.js Vedi File

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


Caricamento…
Annulla
Salva