瀏覽代碼

需求-登录页底部加备案信息

hbchen 9 月之前
父節點
當前提交
79e01574cf

+ 7 - 0
src/api/modules/setApi.js

@@ -337,6 +337,13 @@ const departInterence = {
 	 */
 	getPhoneAreaCode:params=>{
 		return http.get('/user_login/area_code/list',params)
+	},
+	/**
+	 * 获取备案信息
+	 * @returns 
+	*/
+	getICPLicense:params=>{
+		return http.get('/user_login/icp_license',params)
 	}
 
 }

二進制
src/assets/img/eta_base_config/record_information.jpg


+ 11 - 15
src/views/Login.vue

@@ -135,8 +135,7 @@
 			</div>
 		</div>
         <div class="record-info">
-            <span style="margin-right: 16px;">{{ recordInformation.company }}</span>
-            <span>{{ recordInformation.record }}</span>
+            <span v-for="(item,index) in recordInformation" :key="index">{{ item }}</span>
         </div>
 		<!-- 验证弹窗 -->
 		<el-dialog
@@ -293,12 +292,7 @@ export default {
                         </defs></svg>`
                 },
             ],
-            recordInformation:{
-                company:'',
-                record:''
-            }
-
-        
+            recordInformation:[]
         };
     },
     created() {
@@ -412,9 +406,11 @@ export default {
             })
         },
         getRecordInfo(){
-            //TODO: 获取备案信息对接
-            this.recordInformation.company="Copyright © 弘则弥道(上海)投资咨询公司"
-            this.recordInformation.record="沪ICP备15035458号-1"
+            departInterence.getICPLicense().then(res=>{
+                if(res.Ret == 200){
+                    this.recordInformation = res.Data.ConfVal.split(/\s{2,}/)
+                }
+            })
         },
         handleClick(tab) {
             //调用对应model的init方法
@@ -825,15 +821,15 @@ export default {
 		}
 	}
     .record-info{
-        position: fixed;
-        bottom: 16px;
+        display: flex;
+        flex-wrap: wrap;
+        justify-content: center;
         width: 100%;
         font-size: 15px;
         color: #C0C4CC;
         text-align: center;
-        pointer-events: none;
         span{
-            white-space: nowrap;
+            margin: 0 6px;
         }
     }
 	.remember-cont {

+ 5 - 5
src/views/system_manage/etaBaseConfig.vue

@@ -77,9 +77,9 @@
                     </el-form-item>
                 </div>
                 <div class="side">
-                    <el-form-item label="备案信息" prop="RecordInformation">
-                        <el-input type="text" v-model="formData.RecordInformation" placeholder="请输入备案信息" />
-                        <ConfigAnnotation picHintText="" picName="RecordInformation" @showImage="previewImage"/>
+                    <el-form-item label="备案信息" prop="ICPLicense">
+                        <el-input type="text" v-model="formData.ICPLicense" placeholder="文本中输入≥2个空格表示文本分段,小屏时换行展示" />
+                        <ConfigAnnotation picHintText="" picName="ICPLicense" @showImage="previewImage"/>
                     </el-form-item>
                 </div>
             </div>
@@ -378,7 +378,7 @@ export default {
 
                 IsReportApprove:false,//是否开启研报审批
                 ReportApproveType:'eta',//研报审批选项
-                RecordInformation:'', //备案信息
+                ICPLicense:'', //备案信息
             },//表单预设值
             rules: {
                 Disclaimer:[{ required: true, message: '请输入免责声明', trigger: 'blur' }],
@@ -459,7 +459,7 @@ 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')],
-                'RecordInformation':[require('@/assets/img/eta_base_config/record_information.jpg')]
+                'ICPLicense':[require('@/assets/img/eta_base_config/record_information.jpg')]
             },
             /* loading */
             configLoading:null,