jiangping
2024-06-11 fc38ef283d254bc4c6b700cfefcb0a6e65f19ba7
h5/pages/notice/notice.vue
@@ -24,11 +24,23 @@
    }
  },
  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({
        dictCode: 'SYSTEM',
        label: 'VISIT_NOTICE'