| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 | | <template> |  |     <view> |  |          |  |     </view> |  | </template> |  |   |  | <script> |  |     export default { |  |         data() { |  |             return { |  |                  |  |             }; |  |         }, |  |         onLoad() { |  |             const appID = 'wx4d7c10bdec51942b' |  |       const AppSecret = '922c93596d134fedf5bd22a9354b3bfe' |  |       // const scope = 'snsapi_userinfo' |  |       let uri = encodeURIComponent('https://xiaopiqiu2.natapp1.cc') |  |       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 |  |         } |  |     } |  | </script> |  |   |  | <style lang="scss"> |  |   |  | </style> | 
 |