| | |
| | | httpGet |
| | | } from '@/utils/http.js' |
| | | import store from '@/store/index.js' |
| | | import { |
| | | subScribeMsg |
| | | } from '@/utils/subscribe.js' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | 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: () => { |
| | |
| | | const value = uni.getStorageSync('openId') |
| | | console.log('openId', value) |
| | | if (value) { |
| | | this.aClick() |
| | | this.logining(value) |
| | | } |
| | | }, |