quanyawei
2023-11-07 e1184e0a7f3dfab19d728fc116da51baa596e4ff
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,16 @@
         uni.hideHomeButton()
      },
      methods: {
         // 点击时触发订阅信息
         async aClick() {
            let data = await subScribeMsg()
            console.log('data', data)
            if (data['YNqUZ1MgMvwY3G-NENVbcmIBR5dUotSdnwcz96CWrho'] === 'accept') { // 用户点击确定后
               this.doRequire()
            } else {
               this.doRequire()
            }
         },
         doRequire() {
            uni.requirePrivacyAuthorize({
               success: () => {
@@ -99,7 +112,7 @@
         },
         submit() {
            this.$refs.uForm.validate().then(res => {
               this.doRequire()
               this.aClick()
            }).catch(errors => {})
         },
         //登录