C端小程序
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
1.8 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. let app = getApp();
  9. Page({
  10. /**
  11. * 页面的初始数据
  12. */
  13. data: {
  14. navigationBarHeight,
  15. teljpgUrl: imgurl.teljpg.url,
  16. goHomeUrl: "",
  17. },
  18. /**
  19. * 生命周期函数--监听页面加载
  20. */
  21. onLoad: function (options) {
  22. console.log(options,"options")
  23. this.setData({
  24. formData:options,
  25. goHomeUrl: app.globalData.goHomeUrl,
  26. })
  27. },
  28. /**
  29. * 生命周期函数--监听页面初次渲染完成
  30. */
  31. onReady: function () {
  32. },
  33. /**
  34. * 生命周期函数--监听页面显示
  35. */
  36. onShow: function () {
  37. },
  38. /**
  39. * 生命周期函数--监听页面隐藏
  40. */
  41. onHide: function () {
  42. },
  43. /**
  44. * 生命周期函数--监听页面卸载
  45. */
  46. onUnload: function () {
  47. },
  48. /**
  49. * 去使用
  50. */
  51. gotoUse(){
  52. console.log(this.data.formData.type)
  53. if(this.data.formData.type=='50'){
  54. wx.navigateTo({
  55. url: '/pages/couponorder/index/index',
  56. })
  57. }else{
  58. wx.navigateTo({
  59. url: '/pages/passCar/couponList/couponList',
  60. })
  61. }
  62. },
  63. /**
  64. * 返回首页
  65. */
  66. gotoIndex(){
  67. let this_ = this
  68. wx.switchTab({
  69. url: this_.data.goHomeUrl,
  70. })
  71. },
  72. /**
  73. * 页面相关事件处理函数--监听用户下拉动作
  74. */
  75. onPullDownRefresh: function () {
  76. },
  77. /**
  78. * 页面上拉触底事件的处理函数
  79. */
  80. onReachBottom: function () {
  81. },
  82. /**
  83. * 用户点击右上角分享
  84. */
  85. onShareAppMessage: function () {
  86. }
  87. })