Pārlūkot izejas kodu

feat:金额,首页遮挡修改

ljc 1 mēnesi atpakaļ
vecāks
revīzija
779654ae0f

+ 1 - 1
components/cwg-payment.vue

@@ -115,7 +115,7 @@
     let realVal = ''
     if (!isNaN(value) && value !== '') {
       value = value.toString()
-      realVal = value.substr(0, 2) + '****' + value.substr(-2)
+      realVal = '*****'
     } else {
       realVal = '--'
     }

+ 1 - 1
components/cwg-sidebar.vue

@@ -140,7 +140,7 @@ const NumberDesensitization = (value: any) => {
   let realVal = ''
   if (!isNaN(value) && value !== '') {
     value = value.toString()
-    realVal = value.substr(0, 2) + '****' + value.substr(-2)
+    realVal = '*****'
   } else {
     realVal = '--'
   }

+ 12 - 5
pages/login/index.vue

@@ -158,8 +158,6 @@ function pickFields(source, fields = ['content', 'enContent']) {
 }
 
 onMounted(() => {
-  const hostParts = window.location.host.split('.')
-  ho.value = hostParts.length > 1 ? hostParts[1] : ''
 
   const accountInfo = userStore.accountInfo
   if (accountInfo?.rememberPassword) {
@@ -173,13 +171,12 @@ onMounted(() => {
   }
 })
 const inputType = ref('password')
-const ho = ref('')
 </script>
 
 <template>
   <view class="login-page" :isHeaderFixed="true" :isLoginPage="true">
 
-
+    <view class="fixed"/>
     <view class="main-content">
       <cwg-match-media :min-width="991">
         <view class="global-header-bar pc-header">
@@ -240,7 +237,7 @@ const ho = ref('')
           <view class="account">
             <cwg-match-media :max-width="991">
               <view class="company u-flex-y u-flex-y-center">
-                <image src="/static/images/logo.png" class="company-icon" mode="widthFix"></image>
+                <image src="/static/images/logo-full.svg" class="company-icon" mode="widthFix"></image>
               </view>
             </cwg-match-media>
             <view class="title">
@@ -323,6 +320,13 @@ const ho = ref('')
   flex-direction: column;
 }
 
+.fixed {
+  width: 100%;
+  height: var(--status-bar-height);
+  background-color: var(--color-white);
+  z-index: 9;
+}
+
 .global-header-bar {
   width: 100%;
   height: px2rpx(60);
@@ -351,6 +355,9 @@ const ho = ref('')
   top: px2rpx(20);
   right: px2rpx(20);
   z-index: 10;
+  width: 100%;
+  display: flex;
+  justify-content: flex-end;
 }
 
 .main-content {

+ 16 - 4
pages/login/regist.vue

@@ -1,5 +1,6 @@
 <template>
   <view class="regist-page" :isHeaderFixed="true" :isLoginPage="true">
+    <view class="fixed"/>
     <view class="main-content">
       <!-- 全局顶部栏:占据一整行,带有占位和背景 -->
       <cwg-match-media :min-width="991">
@@ -14,6 +15,7 @@
       <!-- 移动端顶部栏:悬浮在上方,深色文字 -->
       <cwg-match-media :max-width="991">
         <view class="mobile-header-bar">
+
           <LoginHeaderGroup text-color="#141d22" icon-color="#141d22" />
         </view>
       </cwg-match-media>
@@ -65,7 +67,7 @@
         <view class="account">
           <cwg-match-media :max-width="991">
             <view class="company u-flex-y u-flex-y-center">
-              <image src="/static/images/logo.png" class="company-icon" mode="widthFix"></image>
+              <image src="/static/images/logo-full.svg" class="company-icon" mode="widthFix"></image>
             </view>
           </cwg-match-media>
           <view class="title">
@@ -617,6 +619,12 @@
     display: flex;
     flex-direction: column;
   }
+  .fixed {
+    width: 100%;
+    height: var(--status-bar-height);
+    background-color: var(--color-white);
+    z-index: 9;
+  }
 
   .global-header-bar {
     width: 100%;
@@ -641,10 +649,14 @@
   }
 
   .mobile-header-bar {
-    position: absolute;
-    top: px2rpx(20);
-    right: px2rpx(20);
+    //position: absolute;
+    //top: px2rpx(20);
+    //right: px2rpx(20);
     z-index: 10;
+    width: 100%;
+    background-color: var(--color-white);
+    display: flex;
+    justify-content: flex-end;
   }
 
   .main-content {