+
+
+
+ 未注册手机号验证通过后将自动注册
+
+86
@@ -101,39 +101,10 @@
- 我已阅读并同意
- 《用户协议》
- 《隐私政策》
- 《产品服务协议》
-
-
- 注册
-
-
-
-
-
-
-
-
-
-
-
-
+
-
- +86
-
-
-
-
-
-
- 发送验证码
- 已发送 {{ countdownTime }} s
-
-
+
我已阅读并同意
@@ -147,6 +118,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -186,9 +192,15 @@ const countdownTime = ref(0);
// 验证码倒计时定时器
let countdownTimer: number | null = null;
+if(getIdBySpm(0) == 'register'){
+ loginBar.value = false;
+}
+
// 配置信息
const { form } = useFormData
({
userId: undefined,
+ companyName: undefined,
+ email: undefined,
username: '',
phone: '',
password: '',
@@ -255,9 +267,6 @@ const navigateTo = (url: string) => {
}
const onLoginBar = () => {
- // if(loginBar.value){
- // return navigateTo(`/passport/register`)
- // }
loginBar.value = !loginBar.value
activeName.value = loginBar.value ? 'account' : 'sms'
}
@@ -329,7 +338,7 @@ const onRegister = async () => {
text: 'Loading'
})
await useClientRequest>('/register',{method: "post",body: {
- companyName: '应用名称',
+ companyName: form.companyName,
username: form.phone,
phone: form.phone,
password: form.password,
diff --git a/utils/common.ts b/utils/common.ts
index 948f6b1..0df87ec 100644
--- a/utils/common.ts
+++ b/utils/common.ts
@@ -172,7 +172,7 @@ export function loginAdminByToken(): void {
const user = useUser();
const uid = user.value?.userId;
const tid = user.value?.tenantId;
- openSpmUrl(`https://${tid}.websoft.top/token-login`,undefined, uid, true,true)
+ openSpmUrl(`https://console.websoft.top/token-login`,undefined, uid, true,true)
}