东风启辰小程序端
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.

92 lines
1.5KB

  1. // pages/perfectMsg/perfectMsg.js
  2. const app = getApp();
  3. Page({
  4. /**
  5. * 页面的初始数据
  6. */
  7. data: {
  8. imgUrl: app.globalData.urlStatic,//图片路径
  9. selectType:2,//选中的手机号类型
  10. },
  11. /**
  12. * 生命周期函数--监听页面加载
  13. */
  14. onLoad: function (options) {
  15. app.globalData.nowPage = 3;
  16. if (app.globalData.openid) {
  17. this.loadFun();
  18. } else {
  19. app.globalData.openidSuccessFuc = this.loadFun;
  20. }
  21. },
  22. loadFun:function(){
  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. onPullDownRefresh: function () {
  48. },
  49. /**
  50. * 页面上拉触底事件的处理函数
  51. */
  52. onReachBottom: function () {
  53. },
  54. /**
  55. * 用户点击右上角分享
  56. */
  57. onShareAppMessage: function () {
  58. },
  59. enterLucky:function(){//每日抽奖
  60. wx.navigateTo({
  61. url: '/pages/luckyStar/luckyStar'
  62. })
  63. },
  64. ruleControl:function(){//规则显示控制
  65. this.setData({
  66. ruleShow:!this.data.ruleShow
  67. })
  68. },
  69. chooseType:function(e){//选中的手机号类型
  70. this.setData({
  71. selectType:e.currentTarget.dataset.type
  72. })
  73. }
  74. })