提交 e5518320 编写于 作者: Anne_LXM's avatar Anne_LXM

仅app端支持一键登录

上级 36c5cdd7
...@@ -14,7 +14,7 @@ export default { ...@@ -14,7 +14,7 @@ export default {
}, },
"loginTypes":[ "loginTypes":[
"username", "username",
// #ifdef uniVersion >= 3.98 // #ifdef APP && uniVersion >= 3.98
"univerify", "univerify",
// #endif // #endif
"smsCode", "smsCode",
......
...@@ -15,7 +15,7 @@ const loginTypes = configLoginTypes == null ? [] as string[] : configLoginTypes; ...@@ -15,7 +15,7 @@ const loginTypes = configLoginTypes == null ? [] as string[] : configLoginTypes;
const debug = config.getBoolean('debug') as boolean; const debug = config.getBoolean('debug') as boolean;
// #ifdef uniVersion >= 3.98 // #ifdef APP && uniVersion >= 3.98
import Univerify from '@/uni_modules/uni-id-pages-x/lib/Univerify.uts' import Univerify from '@/uni_modules/uni-id-pages-x/lib/Univerify.uts'
// #endif // #endif
...@@ -78,7 +78,7 @@ export default async function () { ...@@ -78,7 +78,7 @@ export default async function () {
}) })
} }
// #ifdef uniVersion >= 3.98 // #ifdef APP && uniVersion >= 3.98
// 如果uni-id-pages配置的登录功能有一键登录,有则执行预登录(异步) // 如果uni-id-pages配置的登录功能有一键登录,有则执行预登录(异步)
if (loginTypes.includes('univerify')) { if (loginTypes.includes('univerify')) {
const myUniverify = new Univerify() const myUniverify = new Univerify()
......
...@@ -17,7 +17,7 @@ const loginTypes = config.getArray<string>('loginTypes'); ...@@ -17,7 +17,7 @@ const loginTypes = config.getArray<string>('loginTypes');
// buttonsList.push(buttons) // buttonsList.push(buttons)
// }) // })
// #ifdef uniVersion >= 3.98 // #ifdef APP && uniVersion >= 3.98
const univerifyManager = uni.getUniverifyManager(); const univerifyManager = uni.getUniverifyManager();
export default class Univerify { export default class Univerify {
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<script> <script>
import { state } from '@/uni_modules/uni-id-pages-x/store.uts'; import { state } from '@/uni_modules/uni-id-pages-x/store.uts';
import config from '@/uni_modules/uni-id-pages-x/config.uts'; import config from '@/uni_modules/uni-id-pages-x/config.uts';
// #ifdef uniVersion >= 3.98 // #ifdef APP && uniVersion >= 3.98
import Univerify from '@/uni_modules/uni-id-pages-x/lib/Univerify.uts' import Univerify from '@/uni_modules/uni-id-pages-x/lib/Univerify.uts'
// #endif // #endif
export default { export default {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册