碧桂园
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

71 satır
1.2 KiB

  1. Page({
  2. data: {
  3. web:null,
  4. index:0,
  5. userid: 0,// 用户ID
  6. gameid: 0,// 游戏ID
  7. type: 1,
  8. allurl: ""
  9. },
  10. onLoad: function (options) {
  11. console.log(options);
  12. this.setData({
  13. web: options.web,
  14. index: options.index,
  15. userid: options.userid,
  16. gameid: options.gameid,
  17. type: options.type,
  18. allurl: options.url +`?userid=${options.userid||0}&gameid=${options.gameid||0}&type=${options.type==2?2:1}`
  19. })
  20. console.log(this.data.web)
  21. console.log(this.data.index)
  22. console.log(this.data.allurl)
  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. })