From 9607e7e25475d7533944f2218eb0a40189c343f2 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 03 五月 2024 22:07:01 +0800
Subject: [PATCH] mrshi
---
wx/pages/addition_subtraction_details/addition_subtraction_details.vue | 48 ++++++++++++++++++++++++++++--------------------
1 files changed, 28 insertions(+), 20 deletions(-)
diff --git a/wx/pages/addition_subtraction_details/addition_subtraction_details.vue b/wx/pages/addition_subtraction_details/addition_subtraction_details.vue
index 9e55257..88ace45 100644
--- a/wx/pages/addition_subtraction_details/addition_subtraction_details.vue
+++ b/wx/pages/addition_subtraction_details/addition_subtraction_details.vue
@@ -192,7 +192,9 @@
code: '',
num: 0,
error: false,
- timer: null
+ timer: null,
+
+ loading: false
};
},
onLoad(options) {
@@ -243,13 +245,14 @@
},
// 鎵撳紑鍙戦�侀獙璇佺爜寮圭獥
openmessage(type) {
- this.code = ''
- clearInterval(this.timer)
- this.error = ''
- this.timer = null
- this.num = 0
+ // this.code = ''
+ // clearInterval(this.timer)
+ // this.error = ''
+ // this.timer = null
+ // this.num = 0
this.type = type
- this.show1 = true
+ this.confirm1()
+ // this.show1 = true
},
IdCard(UUserCard) {
let idcard = UUserCard.toString();
@@ -316,10 +319,11 @@
},
// 绛剧讲
confirm1() {
- if (!this.code) {
- this.error = 1
- return
- }
+ // if (!this.code) {
+ // this.error = 1
+ // return
+ // }
+ this.loading = true
// 绛剧讲鎶曚繚鍗�
if (this.type === 1) {
console.log('绛剧讲鐢宠鍗�')
@@ -327,21 +331,23 @@
code: this.code
}).then(res => {
if (res.code === 200) {
- this.error = ''
- this.show1 = false
+ // this.error = ''
+ // this.show1 = false
this.$u.api.getJiajianBaoSignLink({ id: this.info.id })
.then(url => {
if (url.code === 200) {
+ this.loading = false
uni.navigateTo({
url: `/pages/webView/webView?url=${encodeURIComponent(url.data)}`
})
}
})
- } else {
- this.error = 2
}
+ // else {
+ // this.error = 2
+ // }
})
- this.show1 = false
+ // this.show1 = false
// 鐢宠鍗�
} else if (this.type === 2) {
this.$u.api.getChangeMemberListOnlineSignLink({
@@ -349,14 +355,16 @@
code: this.code
}).then(res => {
if (res.code === 200) {
- this.error = ''
- this.show1 = false
+ // this.error = ''
+ // this.show1 = false
+ this.loading = false
uni.navigateTo({
url: `/pages/webView/webView?url=${encodeURIComponent(res.data)}`
})
- } else {
- this.error = 2
}
+ // else {
+ // this.error = 2
+ // }
})
}
},
--
Gitblit v1.9.3