Browse Source

ETAPC端登录页标题可配置

hbchen 1 year ago
parent
commit
894aeb276e

+ 4 - 5
src/api/modules/setApi.js

@@ -339,13 +339,12 @@ const departInterence = {
 		return http.get('/user_login/area_code/list',params)
 	},
 	/**
-	 * 获取备案信息
-	 * @returns 
+	 * 获取登录页的信息 
+	 * @returns ETATitle登录标题 Icp备案信息
 	*/
-	getICPLicense:params=>{
-		return http.get('/user_login/icp_license',params)
+	getBaseInfo:params=>{
+		return http.get('/user_login/base_info',params)
 	}
-
 }
 
 /* 视频管理 */

BIN
src/assets/img/eta_base_config/ETA_title.png


+ 23 - 14
src/views/Login.vue

@@ -3,7 +3,7 @@
 		<div id="login_wrapper">
       
             <img class="login-bg" :src="$setting.login_bg" alt />
-            <img class="login-icon" :src="$setting.login_logo" />
+            <!-- <img class="login-icon" :src="$setting.login_logo" /> -->
 			<!-- <el-form
 				:model="ruleForm"
 				:rules="rules"
@@ -66,7 +66,8 @@
 			</el-form>  -->
 			<div class="login-box" id="login-container" v-if="activeModel!=='forgetPassModel'">
                 <div class="fixed-login-cont">
-                    <span class="login-title">ETA — 让投研领先市场半步</span>
+                    <span class="login-title">{{ loginTitle }}</span>
+                    <span class="login-sub-title">ETA — 让投研领先市场半步</span>
                     <el-tabs v-model="activeModel" >
                         <!-- <el-tab-pane label="账号登录" name="ordinaryModel">
                             <OrdinaryModel ref="ordinaryModel"
@@ -292,7 +293,8 @@ export default {
                         </defs></svg>`
                 },
             ],
-            recordInformation:[]
+            recordInformation:[],
+            loginTitle:''
         };
     },
     created() {
@@ -406,9 +408,10 @@ export default {
             })
         },
         getRecordInfo(){
-            departInterence.getICPLicense().then(res=>{
+            departInterence.getBaseInfo().then(res=>{
                 if(res.Ret == 200){
-                    this.recordInformation = res.Data.ConfVal.split(/\s{2,}/)
+                    this.recordInformation = res.Data.Icp?res.Data.Icp.ConfVal.split(/\s{2,}/):[]
+                    this.loginTitle = res.Data.ETATitle?res.Data.ETATitle.ConfVal:''
                 }
             })
         },
@@ -675,19 +678,25 @@ export default {
 			height: 90%;
 		}
 
-		.login-icon {
-			position: absolute;
-			top: 40px;
-			right: 40px;
-		}
+		// .login-icon {
+		// 	position: absolute;
+		// 	top: 40px;
+		// 	right: 40px;
+		// }
 		.login-title {
-			color: #333;
-			font-size: 32px;
+			color: #0052D9;
+			font-size: 28px;
 			display: block;
 			text-align: center;
-			margin-bottom: 60px;
+			margin-bottom: 25px;
+		}
+		.login-sub-title {
+			color: #7780B1;
+			font-size: 18px;
+			display: block;
+			text-align: center;
+			margin-bottom: 20px;
 		}
-
 		#login-container ,.login-box{
 			box-sizing: border-box;
 			border-radius: 10px;

+ 8 - 1
src/views/system_manage/etaBaseConfig.vue

@@ -81,6 +81,10 @@
                         <el-input type="text" v-model="formData.ICPLicense" placeholder="文本中输入≥2个空格表示文本分段,小屏时换行展示" />
                         <ConfigAnnotation picHintText="" picName="ICPLicense" @showImage="previewImage"/>
                     </el-form-item>
+                    <el-form-item label="登录页标题" prop="ETATitle">
+                        <el-input type="text" v-model="formData.ETATitle" placeholder="请输入登录页标题" />
+                        <ConfigAnnotation picHintText="" picName="ETATitle" @showImage="previewImage"/>
+                    </el-form-item>
                 </div>
             </div>
             <!-- 研报设置 -->
@@ -379,6 +383,7 @@ export default {
                 IsReportApprove:false,//是否开启研报审批
                 ReportApproveType:'eta',//研报审批选项
                 ICPLicense:'', //备案信息
+                ETATitle:'', //登录页标题
             },//表单预设值
             rules: {
                 Disclaimer:[{ required: true, message: '请输入免责声明', trigger: 'blur' }],
@@ -407,6 +412,7 @@ export default {
                 XfVcn:[{ required: true, message: '请输入voice_name', trigger: 'blur' }],
                 CnPptCoverImgs:[{ required: true, validator:ListValidator}],
                 EnPptCoverImgs:[{ required: true, validator:ListValidator}],
+                ETATitle:[{ required: true, message: '请输入登录页标题', trigger: 'blur' }],
             },//表单校验
             disclaimerConfig:{
                 toolbarButtons:[
@@ -459,7 +465,8 @@ export default {
                 'pptBgPic':[require('@/assets/img/eta_base_config/ppt_bgpic.jpg')],
                 'pptBackPic':[require('@/assets/img/eta_base_config/ppt_back.jpg')],
                 'emailContentTemplate':[require('@/assets/img/eta_base_config/email_content_template.png')],
-                'ICPLicense':[require('@/assets/img/eta_base_config/record_information.jpg')]
+                'ICPLicense':[require('@/assets/img/eta_base_config/record_information.jpg')],
+                'ETATitle':[require('@/assets/img/eta_base_config/ETA_title.png')]
             },
             /* loading */
             configLoading:null,