liushengqiang 2 年之前
父节点
当前提交
005d1e5346
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 3 0
      src/page-instrument/view-figner/index.module.less
  2. 3 1
      src/page-instrument/view-figner/index.tsx

+ 3 - 0
src/page-instrument/view-figner/index.module.less

@@ -278,6 +278,9 @@
         background: rgba(255, 255, 255, 0.53);
         border: 1px solid rgba(255, 255, 255, 0.81);
         overflow: hidden;
+        &.huaweiPad{
+            border-radius: 8px;
+        }
 
         &.noteContentWrap {
             &::before {

+ 3 - 1
src/page-instrument/view-figner/index.tsx

@@ -74,6 +74,8 @@ export default defineComponent({
 
 			tnoteShow: false,
 			loadingSoundFonts: true,
+
+			huaweiPad: navigator?.userAgent?.includes('UAWEIVRD-W09') ? true : false
 		});
 		const fingerData = reactive({
 			relationshipIndex: 0,
@@ -366,7 +368,7 @@ export default defineComponent({
 								<Button class={styles.noteBtn} onClick={() => scrollNoteBox("left")}>
 									<Icon name="arrow-left" />
 								</Button>
-								<div class={[styles.noteContent, browsInfo.ios ? "" : styles.noteContentWrap]}>
+								<div class={[styles.noteContent, browsInfo.ios ? "" : styles.noteContentWrap, data.huaweiPad && styles.huaweiPad]}>
 									<div ref={noteBoxRef} class={styles.noteBox}>
 										{data.notes.map((note: IFIGNER_INSTRUMENT_Note, index: number) => {
 											const steps = new Array(Math.abs(note.step)).fill(1);