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 年之前
1234567891011121314151617181920212223242526272829303132333435
  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. })