license.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // pages/user_license/license.js
  2. Page({
  3. data: {
  4. parameter: {
  5. 'navbar': '1',
  6. 'return': '1',
  7. 'title': '平台协议',
  8. 'color': true,
  9. 'class': '0'
  10. },
  11. html: "<p style='color: red;text-align: center'>html text<p>"
  12. },
  13. /**
  14. * 生命周期函数--监听页面加载
  15. */
  16. onLoad: function (options) {
  17. var that = this;
  18. wx.request({
  19. url: 'http://twongstatic.shotshock.shop/docs/twong_user_license.txt',
  20. method: 'GET',
  21. success: (res) => {
  22. that.setData({
  23. html: res.data,
  24. })
  25. }
  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. onPullDownRefresh: function () {
  52. },
  53. /**
  54. * 页面上拉触底事件的处理函数
  55. */
  56. onReachBottom: function () {
  57. },
  58. /**
  59. * 用户点击右上角分享
  60. */
  61. onShareAppMessage: function () {
  62. }
  63. })