From 82a7eba143cc761b303b99889193f7aad2dc9d08 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期一, 28 八月 2023 08:56:08 +0800 Subject: [PATCH] 修改bug,称重页面增加历史和异常原因填写 --- 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