Procházet zdrojové kódy

NewIndex注释掉Utility.setStatusBarLight()
调整左侧滑动的参数

onecold před 1 rokem
rodič
revize
b5e0f5d014

+ 1 - 1
entry/src/main/ets/common/constants/CommonConstants.ets

@@ -21,7 +21,7 @@ import { VideoSpeed } from '../../viewmodel/VideoSpeed';
  */
 export class CommonConstants {
 
-  static readonly DEFAULT_THEME_COLOR: string = SettingPage.THEME_COLOR_LIST[3].color
+  static readonly DEFAULT_THEME_COLOR: string = SettingPage.THEME_COLOR_LIST[0].color
 
   static readonly OPEN_DATE: string = '2025-06-10';
 

+ 2 - 2
entry/src/main/ets/pages/NewIndex.ets

@@ -173,7 +173,7 @@ struct NewIndex{
     this.breakpointSystem.register();
     let params = router.getParams() as Record<string, Object>;
     this.videoLocalList = params.videoList as VideoItem[];
-    Utility.setStatusBarLight()
+    // Utility.setStatusBarLight()
     ScreenUtil.setScreenSize();
     this.bundleName =   AppUtil.getBundleName()
     this.versionName =  AppUtil.getVersionName();
@@ -305,7 +305,7 @@ struct NewIndex{
             })
             .onActionEnd(() => {
               // 手势结束判断是否关闭抽屉
-              if(this.offsetX<-DisplayUtil.getWidth()/9){
+              if(this.offsetX<-DisplayUtil.getWidth()/15){
                 animateTo({ duration: 555 }, () => {
                   this.isShowDrawer = false
                 })

+ 1 - 1
entry/src/main/ets/pages/SettingPage.ets

@@ -46,10 +46,10 @@ export struct SettingPage {
   public static THEME_COLOR_KEY: string = 'THEME_COLOR';
   public static TWO_FINGER_TYPE: string = 'twoFingerType';
   public static THEME_COLOR_LIST: Array<ThemeColorItem> = [
+    { name: '玫瑰粉', color: '#FF4081', isVip: false },
     { name: '经典蓝', color: '#0A59F7', isVip: false },
     { name: '活力黄', color: '#FFC107', isVip: true },
     { name: '枫叶红', color: '#F44336', isVip: true },
-    { name: '玫瑰粉', color: '#FF4081', isVip: false },
     { name: '幻影紫', color: '#9C27B0', isVip: true },
     { name: '翡翠绿', color: '#64BB5C', isVip: true },
     { name: '竹青蓝', color: '#00BCD4', isVip: true },

+ 7 - 0
entry/src/main/ets/view/LocalMusic.ets

@@ -1321,6 +1321,13 @@ export struct LocalMusic {
 
   //拉起音频
   goSelectMusic(){
+    if(DeviceUtil.getDeviceType()== resourceManager.DeviceType.DEVICE_TYPE_TABLET||
+      DeviceUtil.getDeviceType()== resourceManager.DeviceType.DEVICE_TYPE_PC||
+      DeviceUtil.getDeviceType()== resourceManager.DeviceType.DEVICE_TYPE_2IN1
+    ){
+      ToastUtil.showToast('暂时不支持该设备')
+      return
+    }
 
     try {
       let documentSelectOptions = new picker.DocumentSelectOptions();