瀏覽代碼

[bannerDetail增加id的判断]

tags/长荣世贸广场2.2.7
meo 6 年之前
父節點
當前提交
cb2f880c5e
共有 1 個檔案被更改,包括 11 行新增9 行删除
  1. +11
    -9
      pages/bannerdetail/index.js

+ 11
- 9
pages/bannerdetail/index.js 查看文件

@@ -13,15 +13,16 @@ Page({
},
onLoad(options) {
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 => {
wx.showToast({
title: err.errMsg,
@@ -30,6 +31,7 @@ Page({
mask: false
});
})
}
},
gotoactdetail:function(){
let that = this;


Loading…
取消
儲存