From 546863eae7d337d47260d63a4b3733f7313ce52d Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期一, 16 十月 2023 15:30:20 +0800
Subject: [PATCH] 登录页调整样式 增加重置密码
---
pages/bindBackground/bindBackground.vue | 32 ++++++++++++++++++++++++++++++--
1 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/pages/bindBackground/bindBackground.vue b/pages/bindBackground/bindBackground.vue
index 44b6d22..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: {
@@ -46,7 +48,29 @@
}
this.setUpWxOpenid(this.username, this.password, uni.getStorageSync('bindCode'))
},
+ getUserAuth() {
+ wx.getSetting({
+ withSubscriptions: true,
+ success(res) {
+ if (res.subscriptionsSetting == null || res.subscriptionsSetting == undefined ||
+ res.subscriptionsSetting.itemSettings == null || res.subscriptionsSetting
+ .itemSettings == undefined || res.subscriptionsSetting[
+ "bvDqcHRRKEewTz7XVrdwUbrF6ZewSRmiUIB1V_IBJq4"] != 'accept') {
+ wx.requestSubscribeMessage({
+ tmplIds: ['bvDqcHRRKEewTz7XVrdwUbrF6ZewSRmiUIB1V_IBJq4'],
+ success(res) {
+ console.log(res, '鑾峰彇璁㈤槄娑堟伅');
+ },
+ fail(e) {
+ console.log(e, '璁㈤槄娑堟伅澶辫触');
+ }
+ })
+ }
+ }
+ })
+ },
setUpWxOpenid(userName, passWord, code) {
+ this.submitLoading = true
uni.request({
url: `${BaseUrl}/admin/user/setUpWxOpenid`,
data: {
@@ -62,6 +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