license.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. onShow: function () {},
  36. /**
  37. * 生命周期函数--监听页面隐藏
  38. */
  39. onHide: function () {},
  40. /**
  41. * 生命周期函数--监听页面卸载
  42. */
  43. onUnload: function () {},
  44. /**
  45. * 页面相关事件处理函数--监听用户下拉动作
  46. */
  47. onPullDownRefresh: function () {},
  48. /**
  49. * 页面上拉触底事件的处理函数
  50. */
  51. onReachBottom: function () {},
  52. /**
  53. * 用户点击右上角分享
  54. */
  55. onShareAppMessage: function () {}
  56. })