Pārlūkot izejas kodu

修改播放问题

lex 2 gadi atpakaļ
vecāks
revīzija
20478444ac

+ 21 - 15
src/school/mass-message/component/class-list/index.tsx

@@ -167,21 +167,23 @@ export default defineComponent({
         class={[styles.practiceClass, !forms.listState.dataShow && 'emptyRootContainer']}
         style={{ 'min-height': `calc(100vh - ${props.height}px - ${props.bottomHeight}px)` }}
       >
-        <Sticky position="top" offsetTop={props.height} style={{ width: '100%' }}>
-          <div
-            style={{
-              padding: '12px 13px',
-              background: '#f6f6f6',
-              display: 'flex',
-              alignItems: 'center'
-            }}
-          >
-            <div class={styles.searchBand} onClick={() => (forms.showPopover = true)}>
-              <div class={['van-ellipsis', styles.bandName]}>{forms.orchestraName}</div>
-              <Icon name={forms.showPopover ? 'arrow-up' : 'arrow-down'} />
+        {forms.orchestraList.length > 0 && (
+          <Sticky position="top" offsetTop={props.height} style={{ width: '100%' }}>
+            <div
+              style={{
+                padding: '12px 13px',
+                background: '#f6f6f6',
+                display: 'flex',
+                alignItems: 'center'
+              }}
+            >
+              <div class={styles.searchBand} onClick={() => (forms.showPopover = true)}>
+                <div class={['van-ellipsis', styles.bandName]}>{forms.orchestraName}</div>
+                <Icon name={forms.showPopover ? 'arrow-up' : 'arrow-down'} />
+              </div>
             </div>
-          </div>
-        </Sticky>
+          </Sticky>
+        )}
 
         {forms.listState.dataShow ? (
           <List
@@ -211,7 +213,11 @@ export default defineComponent({
               // }}
             >
               {forms.list.map((item: any) => (
-                <CellGroup class={styles.classCellGroup} onClick={() => onSelect(item.id)}>
+                <CellGroup
+                  class={styles.classCellGroup}
+                  onClick={() => onSelect(item.id)}
+                  border={false}
+                >
                   <Cell center titleStyle={{ flex: '0 auto' }} valueClass={styles.classCheckbox}>
                     {{
                       icon: () => <Image src={iconTeacher} class={styles.img} />,

+ 4 - 0
src/views/unit-test/model/unit-audio/index.tsx

@@ -38,6 +38,10 @@ export default defineComponent({
       state.duration = Math.ceil(htick.duration())
     })
 
+    htick.on('end', (val: any) => {
+      state.audioStatus = 'stopped'
+    })
+
     eventUnit.on('unitAudioStop', () => {
       htick.stop()
       state.audioStatus = 'stopped'

+ 1 - 1
src/views/unit-test/unit-list/index.module.less

@@ -66,7 +66,7 @@
     }
   }
   .liveList {
-    padding: 12px 13px 0;
+    padding: 0 13px 0;
   }
 }