jiangping
2024-05-31 bf8d85d5f83c2036fb4239d764d33e99c1b62bd3
h5/pages/notice/notice.vue
@@ -24,9 +24,21 @@
    }
  },
  onLoad() {
    // this.getInfo()
    this.getInfo()
    if(!this.$store.state.openId){
      this.initToken()
    }
  },
  methods: {
    initToken() {
      const appID = 'wxac2a80c2144c4ee0'
      // const AppSecret = '922c93596d134fedf5bd22a9354b3bfe'
      let uri = encodeURIComponent('http://xiaopiqiu2.natapp1.cc/static/redirect.html')
      let authURL =
        `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appID}&redirect_uri=${uri}&response_type=code&scope=snsapi_base&state=123#wechat_redirect`
      window.location.href = authURL
    },
    getInfo() {
      // 入场须知详情
      getSystemDictData({