Browse Source

砍价组件修改

tags/安徽版C.4.1.6最终版
海洋之声 6 years ago
parent
commit
d73ed09cdb
2 changed files with 25 additions and 25 deletions
  1. +0
    -0
      components/bargain/index.js
  2. +25
    -25
      pages/main/bargain/index.js

+ 0
- 0
components/bargain/index.js View File


+ 25
- 25
pages/main/bargain/index.js View File

@@ -23,6 +23,31 @@ Component({
* 组件的方法列表
*/
methods: {
getList1() {
let that = this;
Http.get({
url: config.api.couponChannelList,
data: {
pageNum: 1,
pageSize: 5,
targetAd: 6
}
}).then(res => {
that.setData({
list: res.data.list,
total: res.data.total
});
})
.catch(err => {
console.log(err)
wx.showToast({
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
})
},
gotomore: function() {
wx.navigateTo({
url: "/pages/bargain/bargain"
@@ -69,30 +94,5 @@ Component({
if (app.globalData.token && app.globalData.token != null) {
app.couponChannelListCallback(app.globalData.token);
}
},
getList1(){
let that = this;
Http.get({
url: config.api.couponChannelList,
data: {
pageNum: 1,
pageSize: 5,
targetAd: 6
}
}).then(res => {
that.setData({
list: res.data.list,
total: res.data.total
});
})
.catch(err => {
console.log(err)
wx.showToast({
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
})
}
});

Loading…
Cancel
Save