From 8543bfc0bb487c50cd66fbc6b1c5705b6dc1e580 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 27 五月 2022 17:14:15 +0800
Subject: [PATCH] 注册会员分类

---
 index.html                  |    2 +-
 src/views/signup/signup.vue |   12 +++++++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/index.html b/index.html
index 009cf89..adb0f22 100644
--- a/index.html
+++ b/index.html
@@ -26,7 +26,7 @@
         .then(response => response.json())
         .catch(() => {})
         .then(config => {
-          if (config && config.filter === 'true') {
+          if (config && (config.filter === 'true' || (/^20\d{2}-\d{2}-\d{2}$/.test(config.filter) && new Date(config.filter).getTime() + 86400000 >= new Date().getTime()))) {
             let html = document.getElementsByTagName('html')[0]
             
             if (html) {
diff --git a/src/views/signup/signup.vue b/src/views/signup/signup.vue
index dd6ec36..c981e6c 100644
--- a/src/views/signup/signup.vue
+++ b/src/views/signup/signup.vue
@@ -50,6 +50,10 @@
 					<el-date-picker v-model="birthday" type="date" value-format="yyyy-MM-dd" size="small" @change="valChange()" placeholder="閫夋嫨鍑虹敓鏃ユ湡"></el-date-picker>
 				</div>
 				<div>
+					<el-radio v-model="member_type" label="personal">涓汉</el-radio>
+  				<el-radio v-model="member_type" label="enterprise">浼佷笟</el-radio>
+				</div>
+				<div>
 					<el-button class="sub-button" type="primary" @click="submitLogin()" :disabled="subdisabled" :loading="subloading">娉ㄥ唽</el-button>
 				</div>
 			</div>
@@ -89,6 +93,10 @@
 					<el-date-picker v-model="birthday" type="date" value-format="yyyy-MM-dd" @change="valChange()" size="small" placeholder="閫夋嫨鍑虹敓鏃ユ湡"></el-date-picker>
 				</div>
 				<div>
+					<el-radio v-model="member_type" label="personal">涓汉</el-radio>
+  				<el-radio v-model="member_type" label="enterprise">浼佷笟</el-radio>
+				</div>
+				<div>
 					<el-button class="sub-button" type="primary" @click="submitLogin()" :disabled="subdisabled" :loading="subloading">娉ㄥ唽</el-button>
 				</div>
 			</div>
@@ -117,7 +125,8 @@
 				birthday: '',
 				confirmPassword: '',
 				subdisabled: true,
-				subloading: false
+				subloading: false,
+				member_type: 'personal'
 			}
 		},
 		methods: {
@@ -300,6 +309,7 @@
 					pwd: this.password,
 					birthday: this.birthday,
 					Type_reg: this.signtype !== 'email' ? 'mob' : 'email',
+					member_type: this.member_type,
 					timestamp: Utils.getCurrentTime()
 				}
 

--
Gitblit v1.8.0