hbchen преди 11 месеца
родител
ревизия
076321d1bc
променени са 1 файла, в които са добавени 15 реда и са изтрити 10 реда
  1. 15 10
      src/views/Login.vue

+ 15 - 10
src/views/Login.vue

@@ -10,6 +10,8 @@ import OrdinaryModel from './login/OrdinaryModel.vue';
 import EmailModel from './login/EmailModel.vue';
 import ForgetPassModel from './login/ForgetPassModel.vue';
 
+import logoImg from '@/assets/imgs/logo_icon.png'
+
 const router=useRouter()
 
 //登陆模式 ordinaryModel账号密码 mobileModel手机号 emailModel邮箱
@@ -139,25 +141,28 @@ function userLogin(params,values){
 
 let recordInformation=ref([])
 
-function getRecordInfo(){
-    _apiLogin.getICPLicense().then(res=>{
-        if(res.Ret == 200){
-            // 两个空格以上截一段
-            recordInformation.value = res.Data.ConfVal.split(/\s{2,}/)
-        }
-    })
+// function getRecordInfo(){
+//     _apiLogin.getICPgetBaseInfoLicense().then(res=>{
+//         if(res.Ret == 200){
+//             // 两个空格以上截一段
+//             recordInformation.value = res.Data.ConfVal.split(/\s{2,}/)
+//         }
+//     })
 
-}
+// }
 const logo=ref('')
 function getBaseInfo(){
     _apiLogin.getBaseInfo().then(res=>{
         if(res.Ret == 200){
             logo.value=res.Data.LogoMobile?res.Data.LogoMobile.ConfVal:''
+            // 备案信息两个空格以上截一段 
+            recordInformation.value = res.Data.Icp?res.Data.Icp.ConfVal.split(/\s{2,}/):''
+
         }
     })
 }
 
-getRecordInfo();//获取备案信息
+// getRecordInfo();//获取备案信息
 getBaseInfo()//获取基础信息
 
 </script>
@@ -167,7 +172,7 @@ getBaseInfo()//获取基础信息
         <div class="login-page">
             <van-form class="form-box" ref="loginForm" v-if="activeModel!=='forgetPassModel'">
                 <div class="logo-wrap">
-                    <img class="logo" :src="logo" alt="">
+                    <img class="logo" :src="logo || logoImg" alt="">
                     <div class="title">Bind on account,</div>
                     <div class="sub-title">sign in to continue</div>
                 </div>