C端小程序
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.

94 line
1.5 KiB

  1. // pages/integralmall/payIntegcouponStatus/index.js
  2. // pages/spellGroup/mySpellGroup/index.js
  3. var config = require("../../../config/config.js");
  4. const Http = require("../../../utils/HttpBasics");
  5. const imgurl = require("../../../utils/imgurl");
  6. const utils = require("../../../utils/util.js")
  7. Page({
  8. /**
  9. * 页面的初始数据
  10. */
  11. data: {
  12. teljpgUrl: imgurl.teljpg.url,
  13. },
  14. /**
  15. * 生命周期函数--监听页面加载
  16. */
  17. onLoad: function (options) {
  18. this.setData({
  19. formData:options
  20. })
  21. },
  22. /**
  23. * 生命周期函数--监听页面初次渲染完成
  24. */
  25. onReady: function () {
  26. },
  27. /**
  28. * 生命周期函数--监听页面显示
  29. */
  30. onShow: function () {
  31. },
  32. /**
  33. * 生命周期函数--监听页面隐藏
  34. */
  35. onHide: function () {
  36. },
  37. /**
  38. * 生命周期函数--监听页面卸载
  39. */
  40. onUnload: function () {
  41. },
  42. /**
  43. * 去使用
  44. */
  45. gotoUse(){
  46. if(this.data.formData.type=='50'){
  47. wx.navigateTo({
  48. url: '/pages/couponorder/index/index',
  49. })
  50. }else{
  51. wx.navigateTo({
  52. url: '/pages/passCar/couponList/couponList',
  53. })
  54. }
  55. },
  56. /**
  57. * 返回首页
  58. */
  59. gotoIndex(){
  60. wx.switchTab({
  61. url: '/pages/main/index',
  62. })
  63. },
  64. /**
  65. * 页面相关事件处理函数--监听用户下拉动作
  66. */
  67. onPullDownRefresh: function () {
  68. },
  69. /**
  70. * 页面上拉触底事件的处理函数
  71. */
  72. onReachBottom: function () {
  73. },
  74. /**
  75. * 用户点击右上角分享
  76. */
  77. onShareAppMessage: function () {
  78. }
  79. })