vipCode.js 775 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // pages/user/walletDetails/walletDetails.js
  2. import Date from '../../../utils/util.js'
  3. import APIClient from '../../../utils/APIClient.js'
  4. Page({
  5. data: {
  6. buyBtnText: '立即开通',
  7. price: '29',
  8. originPrice: '99',
  9. productId: 0,
  10. modalType: 'image',
  11. isModalShow: false,
  12. },
  13. onLoad: function (options) {
  14. if (options.title) {
  15. wx.setNavigationBarTitle({
  16. title: '激活码激活'
  17. });
  18. }
  19. },
  20. activeVIP() {
  21. // APIClient.postOrder(this.data.productId).success(res => {
  22. // this.prePayMap(res.data.data)
  23. // }).fail(err => {
  24. // console.log(err);
  25. // });
  26. },
  27. modalConfirmHandler() {
  28. this.setData({
  29. isModalShow: false
  30. })
  31. wx.redirectTo({
  32. url: `/pages/index/index`
  33. })
  34. },
  35. })