瀏覽代碼

样式修改

黄琪勇 11 月之前
父節點
當前提交
3d3cd63d54
共有 3 個文件被更改,包括 13 次插入3 次删除
  1. 12 2
      src/views/creation/edit/index.tsx
  2. 二進制
      src/views/download/images/student-center.png
  3. 1 1
      src/views/download/index.module.less

+ 12 - 2
src/views/creation/edit/index.tsx

@@ -1,6 +1,6 @@
 import MHeader from '@/components/m-header';
 import MSticky from '@/components/m-sticky';
-import { defineComponent, onMounted, reactive } from 'vue';
+import { defineComponent, onMounted, reactive, onBeforeUnmount } from 'vue';
 import styles from './index.module.less';
 import { Button, Field, showToast } from 'vant';
 import MUploader from '@/components/m-uploader';
@@ -56,8 +56,15 @@ export default defineComponent({
         }
       );
     };
-
+    // 设置导航栏颜色
+    function setStatusBarTextColor(isWhite:boolean){
+      postMessage({
+        api: 'setStatusBarTextColor',
+        content: { statusBarTextColor: isWhite }
+      })
+    }
     onMounted(async () => {
+      setStatusBarTextColor(false)
       try {
         const { data } = await api_userMusicDetail(state.id);
         state.musicDetail = data;
@@ -73,6 +80,9 @@ export default defineComponent({
         //
       }
     });
+    onBeforeUnmount(()=>{
+      setStatusBarTextColor(true)
+    })
     return () => (
       <div>
         <MSticky position="top">

二進制
src/views/download/images/student-center.png


+ 1 - 1
src/views/download/index.module.less

@@ -3,7 +3,7 @@
   background: url('./images/download_bg.png') no-repeat top center;
   background-size: cover;
   min-height: 100vh;
-  padding: 6px 15px 0 23px;
+  padding: 30px 34px 0 34px;
   text-align: center;
 
   :global {