lex 1 год назад
Родитель
Сommit
0747e66a32
3 измененных файлов с 30 добавлено и 13 удалено
  1. 13 11
      src/views/co-ai/baseIndex.module.less
  2. 7 0
      src/views/co-ai/baseIndex.tsx
  3. 10 2
      src/views/co-ai/index.tsx

+ 13 - 11
src/views/co-ai/baseIndex.module.less

@@ -3,8 +3,7 @@
   // width: 100vw;
   height: 100vh;
   overflow: hidden;
-  background: url('../../common/images/icon_bg.png') no-repeat center center /
-    cover;
+  background: url('../../common/images/icon_bg.png') no-repeat center center / cover;
   display: flex;
   flex-direction: column;
   padding: 61px 18px 18px 37px;
@@ -17,7 +16,7 @@
   width: 31px;
   height: 31px;
 
-  & > img {
+  &>img {
     width: 100%;
     height: 100%;
     object-fit: cover;
@@ -134,8 +133,15 @@
 
     &.emtpyWrap {
       width: 100%;
+      height: 100%;
       padding-top: 0;
     }
+
+    :global {
+      .van-empty__description {
+        color: #777;
+      }
+    }
   }
 
   :global {
@@ -275,18 +281,14 @@
     height: 100%;
     z-index: 2;
     background-repeat: no-repeat;
-    background-image: linear-gradient(
-        to right,
+    background-image: linear-gradient(to right,
         rgba(0, 0, 0, 0.2) 0,
         rgba(255, 255, 255, 0.08) 0%,
-        transparent 0.5%
-      ),
-      linear-gradient(
-        to right,
+        transparent 0.5%),
+      linear-gradient(to right,
         rgba(0, 0, 0, 0.1) 0.3%,
         rgba(255, 255, 255, 0.09) 1.1%,
-        transparent 1.3%
-      );
+        transparent 1.3%);
     background-size: 50% 100%, 50% 100%;
     background-position: 0% top, 9% top;
   }

+ 7 - 0
src/views/co-ai/baseIndex.tsx

@@ -100,6 +100,13 @@ export default defineComponent({
       // });
     };
     onMounted(async () => {
+      // 安卓的状态栏
+      postMessage({
+        api: 'setStatusBarVisibility',
+        content: {
+          isVisibility: 0
+        }
+      });
       data.loading = true;
       await getTanentList();
       await getList();

+ 10 - 2
src/views/co-ai/index.tsx

@@ -250,6 +250,14 @@ export default defineComponent({
       }
     };
     onMounted(async () => {
+      // 安卓的状态栏
+      postMessage({
+        api: 'setStatusBarVisibility',
+        content: {
+          isVisibility: 0
+        }
+      });
+
       await getMusicSheetCategories();
       getMusicList();
 
@@ -297,8 +305,8 @@ export default defineComponent({
             showArrow={false}
             onSelect={(item: any) => {
               // data.showMusicImg = item.value;
-              if(item.value ==  musicForms.musicSheetCategoriesId){
-                return
+              if (item.value == musicForms.musicSheetCategoriesId) {
+                return;
               }
               data.musics = [];
               musicForms.musicSheetCategoriesId = item.value;