Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

37 linhas
701B

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