From f2aa6f75d70cc7df54bfd0cf33af46fe96401856 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期四, 12 十月 2023 15:33:04 +0800
Subject: [PATCH] 放空逻辑修改 提煤单状态显示字段修改
---
pages/bindBackground/bindBackground.vue | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/pages/bindBackground/bindBackground.vue b/pages/bindBackground/bindBackground.vue
index 44b6d22..2d6eec6 100644
--- a/pages/bindBackground/bindBackground.vue
+++ b/pages/bindBackground/bindBackground.vue
@@ -46,6 +46,27 @@
}
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) {
uni.request({
url: `${BaseUrl}/admin/user/setUpWxOpenid`,
@@ -62,6 +83,8 @@
console.log(res, '缁戝畾缁撴灉');
if (res.data.code === 1) {
this.$u.toast(res.data.msg ? res.data.msg : '缁戝畾澶辫触')
+ } else {
+ this.$u.toast('鎿嶄綔鎴愬姛')
}
}
})
--
Gitblit v1.9.1