소스 검색

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


불러오는 중...
취소
저장