您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

32 行
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. })