C端小程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

96 行
1.6 KiB

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