|
@@ -67,10 +67,6 @@
|
|
|
<Height :size="20" />
|
|
<Height :size="20" />
|
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
<Button type="default" block size="large" text="用户名密码登录" @click="type='mobile'" />
|
|
<Button type="default" block size="large" text="用户名密码登录" @click="type='mobile'" />
|
|
|
-
|
|
|
|
|
- <FlexRow v-if="isTestEnv" position="absolute" :left="10" :bottom="10">
|
|
|
|
|
- <CheckBox v-model="isTestCode" />
|
|
|
|
|
- </FlexRow>
|
|
|
|
|
</FlexCol>
|
|
</FlexCol>
|
|
|
</FlexCol>
|
|
</FlexCol>
|
|
|
</CommonRoot>
|
|
</CommonRoot>
|
|
@@ -83,10 +79,9 @@ import { useAppInit } from '@/common/composeabe/AppInit';
|
|
|
import { waitTimeOut } from '@imengyu/imengyu-utils';
|
|
import { waitTimeOut } from '@imengyu/imengyu-utils';
|
|
|
import { onMounted, ref } from 'vue';
|
|
import { onMounted, ref } from 'vue';
|
|
|
import { showError } from '@/common/composeabe/ErrorDisplay';
|
|
import { showError } from '@/common/composeabe/ErrorDisplay';
|
|
|
-import { alert, closeToast, confirm, toast } from '@/components/dialog/CommonRoot';
|
|
|
|
|
-import { checkAndGoBindVolunteer } from '../dig/forms/bind';
|
|
|
|
|
|
|
+import { closeToast, toast } from '@/components/dialog/CommonRoot';
|
|
|
import { back } from '@/components/utils/PageAction';
|
|
import { back } from '@/components/utils/PageAction';
|
|
|
-import AppCofig, { isTestEnv } from '@/common/config/AppCofig';
|
|
|
|
|
|
|
+import AppCofig from '@/common/config/AppCofig';
|
|
|
import type { Rules } from 'async-validator';
|
|
import type { Rules } from 'async-validator';
|
|
|
import FlexCol from '@/components/layout/FlexCol.vue';
|
|
import FlexCol from '@/components/layout/FlexCol.vue';
|
|
|
import Form from '@/components/form/Form.vue';
|
|
import Form from '@/components/form/Form.vue';
|
|
@@ -100,7 +95,6 @@ import CommonRoot from '@/components/dialog/CommonRoot.vue';
|
|
|
import StatusBarSpace from '@/components/layout/space/StatusBarSpace.vue';
|
|
import StatusBarSpace from '@/components/layout/space/StatusBarSpace.vue';
|
|
|
import Image from '@/components/basic/Image.vue';
|
|
import Image from '@/components/basic/Image.vue';
|
|
|
import Text from '@/components/basic/Text.vue';
|
|
import Text from '@/components/basic/Text.vue';
|
|
|
-import CheckBox from '@/components/form/CheckBox.vue';
|
|
|
|
|
import MemoryTimeOut from '@/components/composeabe/MemoryTimeOut';
|
|
import MemoryTimeOut from '@/components/composeabe/MemoryTimeOut';
|
|
|
import NavBar from '@/components/nav/NavBar.vue';
|
|
import NavBar from '@/components/nav/NavBar.vue';
|
|
|
|
|
|
|
@@ -144,7 +138,6 @@ const fieldStyle = themeContext.useThemeStyle({
|
|
|
marginBottom: '20rpx',
|
|
marginBottom: '20rpx',
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-const isTestCode = ref(false);
|
|
|
|
|
const tipBindWechat = new MemoryTimeOut('TipBindWechat', 1000 * 3600 * 72);
|
|
const tipBindWechat = new MemoryTimeOut('TipBindWechat', 1000 * 3600 * 72);
|
|
|
|
|
|
|
|
async function loginWechat() {
|
|
async function loginWechat() {
|
|
@@ -160,18 +153,6 @@ async function loginWechat() {
|
|
|
uni.getUserProfile({ desc: '用于完善会员资料' }),
|
|
uni.getUserProfile({ desc: '用于完善会员资料' }),
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
- //测试code功能
|
|
|
|
|
- if (isTestCode.value) {
|
|
|
|
|
- uni.setClipboardData({
|
|
|
|
|
- data: res[0].code,
|
|
|
|
|
- });
|
|
|
|
|
- alert({
|
|
|
|
|
- title: '测试登录',
|
|
|
|
|
- content: '已复制登录信息到剪贴板\n' + JSON.stringify(res),
|
|
|
|
|
- });
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
//登录微信
|
|
//登录微信
|
|
|
await authStore.loginWechart(res[0].code, res[1]);
|
|
await authStore.loginWechart(res[0].code, res[1]);
|
|
|
toast({ type: 'success',content: '登录成功' });
|
|
toast({ type: 'success',content: '登录成功' });
|