1
0

noneData.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // pages/noneData/noneData.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. textMsg: '暂无地址信息'
  8. },
  9. /**
  10. * 生命周期函数--监听页面加载
  11. */
  12. onLoad(options) {
  13. if (options.type == 1) {
  14. this.setData({
  15. textMsg: '暂无地址信息'
  16. })
  17. } else if (options.type == 2) {
  18. this.setData({
  19. textMsg: '暂未设置VR展厅'
  20. })
  21. } else if (options.type == 3) {
  22. this.setData({
  23. textMsg: '暂未设置砸金蛋活动,请联系管理员'
  24. })
  25. } else if (options.type == 4) {
  26. this.setData({
  27. textMsg: '暂未设置大转盘活动,请联系管理员'
  28. })
  29. } else if (options.type == 5) {
  30. this.setData({
  31. textMsg: '暂未设置拼团活动,请联系管理员'
  32. })
  33. }
  34. },
  35. /**
  36. * 生命周期函数--监听页面初次渲染完成
  37. */
  38. onReady() {
  39. },
  40. /**
  41. * 生命周期函数--监听页面显示
  42. */
  43. onShow() {
  44. },
  45. /**
  46. * 生命周期函数--监听页面隐藏
  47. */
  48. onHide() {
  49. },
  50. /**
  51. * 生命周期函数--监听页面卸载
  52. */
  53. onUnload() {
  54. },
  55. /**
  56. * 页面相关事件处理函数--监听用户下拉动作
  57. */
  58. onPullDownRefresh() {
  59. },
  60. /**
  61. * 页面上拉触底事件的处理函数
  62. */
  63. onReachBottom() {
  64. },
  65. /**
  66. * 用户点击右上角分享
  67. */
  68. onShareAppMessage() {
  69. }
  70. })