From eec82b55813387e20087989536cd32810b59cd48 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期五, 13 十月 2023 09:42:49 +0800
Subject: [PATCH] 大部分按钮增加loading 放空操作逻辑修改
---
pages/bindBackground/bindBackground.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/pages/bindBackground/bindBackground.vue b/pages/bindBackground/bindBackground.vue
index 2d6eec6..1467513 100644
--- a/pages/bindBackground/bindBackground.vue
+++ b/pages/bindBackground/bindBackground.vue
@@ -22,7 +22,8 @@
</view>
<view class="loginBtn"><u-button type="primary"
text="纭"
- @click="submit()"></u-button></view>
+ @click="submit()"
+ :loading="submitLoading"></u-button></view>
</view>
</template>
@@ -33,7 +34,8 @@
return {
username: '',
password: '',
- code: ''
+ code: '',
+ submitLoading: false
};
},
methods: {
@@ -68,6 +70,7 @@
})
},
setUpWxOpenid(userName, passWord, code) {
+ this.submitLoading = true
uni.request({
url: `${BaseUrl}/admin/user/setUpWxOpenid`,
data: {
@@ -83,8 +86,10 @@
console.log(res, '缁戝畾缁撴灉');
if (res.data.code === 1) {
this.$u.toast(res.data.msg ? res.data.msg : '缁戝畾澶辫触')
+ this.submitLoading = false
} else {
this.$u.toast('鎿嶄綔鎴愬姛')
+ this.submitLoading = false
}
}
})
--
Gitblit v1.9.1