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.

пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //index.js
  2. //获取应用实例
  3. const app = getApp()
  4. Page({
  5. data: {
  6. dataList:[],
  7. showMask:false,//规则弹窗
  8. },
  9. //事件处理函数
  10. onLoad: function () {
  11. if (app.globalData.openId){
  12. this.getDataList();
  13. }else{
  14. app.globalData.openidSuccessFuc = this.getDataList;
  15. }
  16. },
  17. getDataList:function(){
  18. app.wxRequest(app.globalData.httpUrl + 'couponsell/list', {}, e => {
  19. // console.log(e)
  20. if (e.code == 200) {
  21. this.setData({
  22. dataList:e.data[0]
  23. })
  24. }
  25. }, this)
  26. },
  27. skipPage:function(e){
  28. // console.log(e)
  29. var index = e.currentTarget.dataset.index
  30. wx.navigateTo({
  31. url: '../buyTicket/buyTicket?index=' + index
  32. })
  33. },
  34. showRule:function(){//显示弹窗
  35. this.setData({
  36. showMask:true
  37. })
  38. },
  39. hiddenRule:function(){//隐藏弹窗
  40. this.setData({
  41. showMask: false
  42. })
  43. }
  44. })