success.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. const app=getApp();
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. weburl:'',
  8. text: '',
  9. },
  10. /**
  11. * 生命周期函数--监听页面加载
  12. */
  13. onLoad(options) {
  14. // if (options.qrlink) {
  15. // let qrlink = decodeURIComponent(options.qrlink);
  16. // this.setData({
  17. // text: qrlink
  18. // })
  19. // }
  20. this.setData({
  21. weburl:app.globalData.webUrl+'applet.html#/livecode?token='+app.globalData.token+'&qrlink='+options.qrlink+'&client_type=' + app.globalData.clientype,
  22. })
  23. },
  24. lookimgtap(){
  25. wx.previewImage({
  26. current: this.data.text, // 当前显示图片的 http 链接
  27. urls: [this.data.text] // 需要预览的图片 http 链接列表
  28. })
  29. },
  30. /**
  31. * 生命周期函数--监听页面初次渲染完成
  32. */
  33. onReady() {
  34. },
  35. /**
  36. * 生命周期函数--监听页面显示
  37. */
  38. onShow() {
  39. },
  40. /**
  41. * 生命周期函数--监听页面隐藏
  42. */
  43. onHide() {
  44. },
  45. /**
  46. * 生命周期函数--监听页面卸载
  47. */
  48. onUnload() {
  49. },
  50. /**
  51. * 页面相关事件处理函数--监听用户下拉动作
  52. */
  53. onPullDownRefresh() {
  54. },
  55. /**
  56. * 页面上拉触底事件的处理函数
  57. */
  58. onReachBottom() {
  59. },
  60. /**
  61. * 用户点击右上角分享
  62. */
  63. onShareAppMessage() {
  64. }
  65. })