pages/promiseresult/promiseresult.js
@@ -1,18 +1,31 @@ // pages/promiseresult/promiseresult.js const $f = require("../../service/baserequest") Page({ /** * 页面的初始数据 */ data: { promise: { picPath: '', pdfPath: '', } }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { 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 that.setData({ promise: data.promise }) }) }, /**