|
@@ -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">
|