| | |
| | | }, |
| | | onLoad() { |
| | | 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({ |