From c765c26eee1249b0a8d72d2b203b2ed124c2bbf6 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 26 八月 2022 17:16:47 +0800
Subject: [PATCH] 2022.8.26(2)
---
pages/promisefile/promisefile.js | 38 +++++++++++++++++++++++++++-----------
1 files changed, 27 insertions(+), 11 deletions(-)
diff --git a/pages/promisefile/promisefile.js b/pages/promisefile/promisefile.js
index 8b8a565..7125f15 100644
--- a/pages/promisefile/promisefile.js
+++ b/pages/promisefile/promisefile.js
@@ -55,6 +55,7 @@
startSign() {
var that = this
+
wx.navigateTo({
url: '/pages/promisesign/promisesign',
events: {
@@ -64,6 +65,27 @@
}
},
})
+
+ // wx.getStorage({
+ // key: 'signPath',
+ // success: (result) => {
+ // console.log(result.data);
+ // that.signOver(result.data)
+ // },
+ // fail: (res) => {
+ // console.log(res);
+ // wx.navigateTo({
+ // url: '/pages/promisesign/promisesign',
+ // events: {
+ // onSignSuccess: function (imgPath) {
+ // console.log('signover:' + imgPath);
+ // that.signOver(imgPath)
+ // }
+ // },
+ // })
+ // },
+ // complete: (res) => {},
+ // })
},
signOver(imgPath) {
@@ -88,18 +110,19 @@
fail: (res) => {},
complete: (res) => {},
})
- setTimeout(() => {
- wx.hideLoading()
- }, 20000);
+ // setTimeout(() => {
+ // wx.hideLoading()
+ // }, 20000);
let signPic = this.data.imgFiles[0]
promiseservice.createCommitment(app.globalData.accessToken.userId, this.commitmentVo, signPic, {
success(data) {
- if (data.data.success) {
+ if (data.success) {
wx.navigateTo({
url: '/pages/promiseresult/promiseresult',
success: function (res) {
+ console.log(res);
// 閫氳繃 eventChannel 鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
res.eventChannel.emit('acceptDataFromOpenerPage', {
promise: {
@@ -116,13 +139,6 @@
complete(res) {
console.log(res);
wx.hideLoading({
- success: (res) => {
- wx.showToast({
- title: '鐢熸垚瀹屾垚',
- duration: 1500,
- icon: 'success',
- })
- },
})
}
})
--
Gitblit v1.9.3