From a82b8c09ca795a4b6273b03a79ba488f6cce5eb0 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 11 八月 2022 15:54:21 +0800
Subject: [PATCH] 微信一键登录
---
pages/promisefile/promisefile.js | 16 +++++-----------
1 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/pages/promisefile/promisefile.js b/pages/promisefile/promisefile.js
index 8b8a565..a46f424 100644
--- a/pages/promisefile/promisefile.js
+++ b/pages/promisefile/promisefile.js
@@ -88,18 +88,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 +117,6 @@
complete(res) {
console.log(res);
wx.hideLoading({
- success: (res) => {
- wx.showToast({
- title: '鐢熸垚瀹屾垚',
- duration: 1500,
- icon: 'success',
- })
- },
})
}
})
--
Gitblit v1.9.3