notice.js 656 B

12345678910111213141516171819202122232425262728293031323334353637
  1. var app = getApp();
  2. Page({
  3. data: {
  4. },
  5. onLoad: function (options) {
  6. this.getData();
  7. },
  8. onShow: function () {
  9. },
  10. getData: function () {
  11. wx.showLoading();
  12. var token = wx.getStorageSync('token');
  13. let that = this;
  14. app.util.request({
  15. 'url': 'entry/wxapp/user',
  16. 'data': {
  17. controller: 'vipcard.get_vipcard_baseinfo',
  18. token: token
  19. },
  20. dataType: 'json',
  21. success: function (res) {
  22. wx.hideLoading();
  23. if (res.data.code == 0) {
  24. let { vipcard_buy_pagenotice } = res.data.data;
  25. that.setData({ vipcard_buy_pagenotice })
  26. }
  27. }
  28. })
  29. }
  30. })