liushengqiang 2 سال پیش
والد
کامیت
a080489ef5
2فایلهای تغییر یافته به همراه11 افزوده شده و 6 حذف شده
  1. 4 1
      src/helpers/native-message.ts
  2. 7 5
      src/views/co-ai/index.module.less

+ 4 - 1
src/helpers/native-message.ts

@@ -78,7 +78,10 @@ if (browserInfo.isApp) {
 }
 
 const instance: any =
-  (window as any).DAYA || (window as any).webkit?.messageHandlers?.DAYA;
+  (window as any).DAYA ||
+  (window as any).webkit?.messageHandlers?.DAYA ||
+  (window as any).COLEXIU ||
+  (window as any).webkit?.messageHandlers?.COLEXIU;
 
 export const postMessage = (data: IPostMessage, callback?: CallBack) => {
   if (browserInfo.isApp) {

+ 7 - 5
src/views/co-ai/index.module.less

@@ -49,7 +49,7 @@
     width: 102px;
     height: 100%;
     background: linear-gradient(48deg, #43B2FF 0%, #159AF7 100%);
-    border: 2px solid #fff;
+    border: 2Px solid #fff;
     border-radius: 18px;
     z-index: 1;
 }
@@ -62,13 +62,14 @@
     height: 100%;
     background: linear-gradient(134deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.34) 100%);
     border-radius: 18px;
-    border: 2px solid #fff;
+    border: 2Px solid #fff;
 }
 
 .types {
     position: relative;
+    top: 2px;
     width: 102px;
-    height: 100%;
+    height: calc(100% - 4Px);
     padding: 4px 0;
     overflow-x: hidden;
     overflow-y: auto;
@@ -90,6 +91,7 @@
                 border-color: #f4b482;
                 border-width: 3px;
                 box-shadow: 0px 0 4px 2px #fff;
+                animation: scaleBtn 1s ease-in-out;
             }
 
             .typeIndex {
@@ -153,9 +155,9 @@
 
 .musicContent {
     width: 100%;
-    height: calc(100% - var(--van-search-input-height) - 12px - 2px);
+    height: calc(100% - var(--van-search-input-height) - 12px - 1Px);
     margin-top: calc(var(--van-search-input-height) + 12px);
-    padding: 12px 24px 12px 12px;
+    padding: 6px 24px 12px 12px;
     overflow-x: hidden;
     overflow-y: auto;
     &::-webkit-scrollbar {