You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
584B

  1. //index.js
  2. //获取应用实例
  3. const app = getApp()
  4. Page({
  5. data: {
  6. dataList:[],
  7. },
  8. //事件处理函数
  9. onLoad: function () {
  10. this.getDataList();
  11. },
  12. getDataList:function(){
  13. app.wxRequest(app.globalData.httpUrl + 'couponsell/list', {}, e => {
  14. // console.log(e)
  15. if (e.code == 200) {
  16. this.setData({
  17. dataList:e.data
  18. })
  19. }
  20. }, this)
  21. },
  22. skipPage:function(e){
  23. // console.log(e)
  24. var index = e.currentTarget.dataset.index
  25. wx.navigateTo({
  26. url: '../buyTicket/buyTicket?index=' + index
  27. })
  28. },
  29. })