12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <template>
-
- <view />
- </template>
- <script setup>
- import sheep from '@/sheep';
- import { onLoad } from '@dcloudio/uni-app';
- import {
- closeAuthModal,
- showAuthModal
- } from '@/sheep/hooks/useModal';
- onLoad(async (options) => {
-
-
- new URLSearchParams(location.search).forEach((value, key) => {
- options[key] = value;
- });
- const event = options.event;
- const code = options.code;
- const state = options.state;
- if (event === 'login') {
- const res = await sheep.$platform.useProvider().login(code, state);
- } else if (event === 'bind') {
- sheep.$platform.useProvider().bind(code, state);
- }
- if(res == null){
- showAuthModal("首次登录输入手机")
- }
-
-
-
-
-
-
-
-
-
-
-
- });
- </script>
|