From 3003b7486ddeffd169f2b2f564fc0ff8c2c58bb3 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Tue, 22 Jul 2025 09:56:04 +0800
Subject: [PATCH] 1
---
src/page/login/register.vue | 44 ++++++++++++++++++++++++++++++--------------
1 files changed, 30 insertions(+), 14 deletions(-)
diff --git a/src/page/login/register.vue b/src/page/login/register.vue
index 52bd8b9..914c954 100644
--- a/src/page/login/register.vue
+++ b/src/page/login/register.vue
@@ -11,12 +11,13 @@
:placeholder="placeholder"
size="medium"
v-model="phone"
+ maxlength="10"
clearable
@input="handleInput()"
>
+ <template slot="prepend">+91</template>
</el-input>
- <!-- <el-input style="margin-top: 0.46rem;" :placeholder="verification" :size="medium" v-model="code" clearable>
- </el-input> -->
+
<el-input
style="margin-top: 0.46rem"
show-password
@@ -52,7 +53,7 @@
<van-checkbox v-model="checked">{{
$t("我已閱讀並同意")
}}</van-checkbox>
- <span style="color: rgb(5, 106, 239)">{{
+ <span @click="gotoxy" style="color: #c4d600">{{
$t("《用戶服務協議》")
}}</span>
</div>
@@ -67,7 +68,7 @@
<div class="register" @click="$router.push('/login')">
{{ $t("已有賬號?")
- }}<span style="color: rgb(5, 106, 239)">{{ $t("馬上登錄") }}</span>
+ }}<span style="color: #c4d600">{{ $t("馬上登錄") }}</span>
</div>
</div>
</div>
@@ -84,7 +85,7 @@
export default {
components: {
- headers,
+ headers
},
name: "newRegister",
data() {
@@ -99,7 +100,7 @@
code: "",
userPassword: "",
btnClass: false,
- rePassword: "",
+ rePassword: ""
};
},
mounted() {
@@ -108,6 +109,9 @@
: "";
},
methods: {
+ gotoxy() {
+ this.$router.push("/help_fwxy");
+ },
handleInput() {
if (
this.userPassword !== "" &&
@@ -122,7 +126,7 @@
},
async gook() {
- if (isNull(this.phone)) {
+ if (this.phone.length == 0) {
Notify({ type: "warning", message: this.$t("hj28") });
} else if (isNull(this.userPassword)) {
Notify({ type: "warning", message: this.$t("hj30") });
@@ -143,7 +147,7 @@
phone: this.phone,
yzmCode: "6666",
userPwd: this.userPassword,
- agentCode: this.userName,
+ agentCode: this.userName
};
let data = await api.register(opts);
if (data.status === 0) {
@@ -159,23 +163,28 @@
// 支持
navigator.vibrate([55]);
}
- },
- },
+ }
+ }
};
</script>
-<style scoped lang="less">
+<style scoped lang="less">
+@green: #c4d600;
.register {
font-style: normal;
font-weight: 400;
font-size: 0.37333rem;
color: #8c9fad;
text-align: center;
- margin: 0 auto;
- margin-top: 10px;
+ margin: 20px auto;
+ // margin-top: 10px;
}
.radio-con {
margin-top: 0.32rem;
+}
+/deep/ .van-checkbox__icon--checked .van-icon {
+ background: @green;
+ border-color: @green;
}
/deep/ .van-checkbox__label {
font-style: normal;
@@ -273,7 +282,7 @@
height: 70px;
background-color: rgb(246, 246, 247) !important;
// background: #1e1e1e;
- border-radius: 8px;
+ // border-radius: 8px;
font-size: 0.45rem !important;
border: none;
}
@@ -287,6 +296,8 @@
margin-top: 40px;
height: 60px;
border-radius: 8px;
+ background-color: @green;
+ border-color: @green;
}
.mes {
width: 100%;
@@ -435,6 +446,11 @@
/deep/.el-input__clear {
font-size: 0.5rem !important;
}
+/deep/ .el-input-group__prepend {
+ border: none !important;
+ border-radius: 0 !important;
+ font-size: 0.45rem !important;
+}
.on .top_btn {
background: #2d8cf0 !important;
--
Gitblit v1.9.3