quanyawei
2023-11-06 1e61215b48e59e94c1ed98e4ef956227d689d6bc
pages/login/login.vue
@@ -42,6 +42,9 @@
      httpGet
   } from '@/utils/http.js'
   import store from '@/store/index.js'
   import {
      subScribeMsg
   } from '@/utils/subscribe.js'
   export default {
      data() {
         return {
@@ -83,6 +86,15 @@
         uni.hideHomeButton()
      },
      methods: {
         // 点击时触发订阅信息
         async aClick() {
            let data = await subScribeMsg()
            console.log('data', data)
            if (data['YNqUZ1MgMvwY3G-NENVbcmIBR5dUotSdnwcz96CWrho'] === 'accept') { // 用户点击确定后
            } else {
               console.log('拒绝')
            }
         },
         doRequire() {
            uni.requirePrivacyAuthorize({
               success: () => {
@@ -107,6 +119,7 @@
            const value = uni.getStorageSync('openId')
            console.log('openId', value)
            if (value) {
               this.aClick()
               this.logining(value)
            }
         },