riku
2022-08-23 8fbd6b8d09e70494d920cc0b77812e9643be3196
pages/promiseresult/promiseresult.js
@@ -8,7 +8,7 @@
   */
  data: {
    promise: {
      picPath: '',
      picPath: [],
      pdfPath: '',
    }
  },
@@ -20,8 +20,8 @@
    var that = this
    this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) {
      console.log(data);
      data.promise.picPath = $f.basePicUrl + data.promise.picPath
      data.promise.pdfPath = $f.basePicUrl + data.promise.pdfPath
      // data.promise.picPath = $f.basePicUrl + data.promise.picPath
      // data.promise.pdfPath = $f.basePicUrl + data.promise.pdfPath
      that.setData({
        promise: data.promise
      })
@@ -29,51 +29,16 @@
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  },
  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  },
  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
    var pages = getCurrentPages()
    var d = pages.length - 1
    wx.navigateBack({
      delta: d,
      success: (res) => {},
      fail: (res) => {},
      complete: (res) => {},
    })
  },
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  },
  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  }
})