From 8fbd6b8d09e70494d920cc0b77812e9643be3196 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 23 八月 2022 17:37:31 +0800
Subject: [PATCH] 2022.8.23
---
pages/promiseresult/promiseresult.js | 57 +++++++++++----------------------------------------------
1 files changed, 11 insertions(+), 46 deletions(-)
diff --git a/pages/promiseresult/promiseresult.js b/pages/promiseresult/promiseresult.js
index e6786d7..65f808c 100644
--- a/pages/promiseresult/promiseresult.js
+++ b/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 () {
-
- }
})
\ No newline at end of file
--
Gitblit v1.9.3