noneData.js 1.6 KB

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