|  | @@ -9,7 +9,7 @@ import {
 | 
	
		
			
				|  |  |  } from 'vue';
 | 
	
		
			
				|  |  |  import styles from './index.module.less';
 | 
	
		
			
				|  |  |  import icon_back from '../../image/icon_back.svg';
 | 
	
		
			
				|  |  | -import icon_play from '../../image/icon_play.svg';
 | 
	
		
			
				|  |  | +import icon_play from '../../image/icon_class.png';
 | 
	
		
			
				|  |  |  import { useRouter } from 'vue-router';
 | 
	
		
			
				|  |  |  import { listenerMessage, postMessage } from '@/helpers/native-message';
 | 
	
		
			
				|  |  |  import { showToast } from 'vant';
 | 
	
	
		
			
				|  | @@ -35,7 +35,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |    emits: ['close'],
 | 
	
		
			
				|  |  |    setup(props, { emit }) {
 | 
	
		
			
				|  |  |      const router = useRouter();
 | 
	
		
			
				|  |  | -    
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      const data = reactive({
 | 
	
		
			
				|  |  |        show: false,
 | 
	
		
			
				|  |  |        width: 0,
 | 
	
	
		
			
				|  | @@ -142,8 +142,8 @@ export default defineComponent({
 | 
	
		
			
				|  |  |      onMounted(async () => {
 | 
	
		
			
				|  |  |        await init();
 | 
	
		
			
				|  |  |        listenerMessage('webViewOnResume', () => {
 | 
	
		
			
				|  |  | -        data.lastTime = localStorage.getItem('lastTime')
 | 
	
		
			
				|  |  | -      })
 | 
	
		
			
				|  |  | +        data.lastTime = localStorage.getItem('lastTime');
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |      const getList = () => {
 | 
	
		
			
				|  |  |        if (!props.bookData?.lessonList) return;
 | 
	
	
		
			
				|  | @@ -229,35 +229,37 @@ export default defineComponent({
 | 
	
		
			
				|  |  |                    <div class="page">
 | 
	
		
			
				|  |  |                      <div class="gradient"></div>
 | 
	
		
			
				|  |  |                      <div class={styles.wrap}>
 | 
	
		
			
				|  |  | -                      {list.map((item: any, index: number) => {
 | 
	
		
			
				|  |  | -                        return (
 | 
	
		
			
				|  |  | -                          <>
 | 
	
		
			
				|  |  | -                            <div
 | 
	
		
			
				|  |  | -                              class={[styles.item, item.id && styles.des]}
 | 
	
		
			
				|  |  | -                              onTouchstart={(e: TouchEvent) => {
 | 
	
		
			
				|  |  | -                                e.stopPropagation();
 | 
	
		
			
				|  |  | -                              }}
 | 
	
		
			
				|  |  | -                              onClick={(e: Event) => {
 | 
	
		
			
				|  |  | -                                e.stopPropagation();
 | 
	
		
			
				|  |  | -                                handleOpenPlay(item);
 | 
	
		
			
				|  |  | -                              }}>
 | 
	
		
			
				|  |  | -                              <div class={styles.name}>
 | 
	
		
			
				|  |  | -                                {item.name}
 | 
	
		
			
				|  |  | -                                {data.lastTime === item.id && (
 | 
	
		
			
				|  |  | -                                  <span class={styles.last}>上次观看</span>
 | 
	
		
			
				|  |  | -                                )}
 | 
	
		
			
				|  |  | +                      <div class={styles.wrapItem}>
 | 
	
		
			
				|  |  | +                        {list.map((item: any, index: number) => {
 | 
	
		
			
				|  |  | +                          return (
 | 
	
		
			
				|  |  | +                            <>
 | 
	
		
			
				|  |  | +                              <div
 | 
	
		
			
				|  |  | +                                class={[styles.item, item.id && styles.des]}
 | 
	
		
			
				|  |  | +                                onTouchstart={(e: TouchEvent) => {
 | 
	
		
			
				|  |  | +                                  e.stopPropagation();
 | 
	
		
			
				|  |  | +                                }}
 | 
	
		
			
				|  |  | +                                onClick={(e: Event) => {
 | 
	
		
			
				|  |  | +                                  e.stopPropagation();
 | 
	
		
			
				|  |  | +                                  handleOpenPlay(item);
 | 
	
		
			
				|  |  | +                                }}>
 | 
	
		
			
				|  |  | +                                {item.id ? (
 | 
	
		
			
				|  |  | +                                  <img
 | 
	
		
			
				|  |  | +                                    id={index == 1 ? 'coursewareDetail-0' : ''}
 | 
	
		
			
				|  |  | +                                    class={styles.icon}
 | 
	
		
			
				|  |  | +                                    src={icon_play}
 | 
	
		
			
				|  |  | +                                  />
 | 
	
		
			
				|  |  | +                                ) : null}
 | 
	
		
			
				|  |  | +                                <div class={styles.name}>
 | 
	
		
			
				|  |  | +                                  {item.name}
 | 
	
		
			
				|  |  | +                                  {data.lastTime === item.id && (
 | 
	
		
			
				|  |  | +                                    <span class={styles.last}>上次观看</span>
 | 
	
		
			
				|  |  | +                                  )}
 | 
	
		
			
				|  |  | +                                </div>
 | 
	
		
			
				|  |  |                                </div>
 | 
	
		
			
				|  |  | -                              {item.id ? (
 | 
	
		
			
				|  |  | -                                <img
 | 
	
		
			
				|  |  | -                                  id={index == 1 ? 'coursewareDetail-0' : ''}
 | 
	
		
			
				|  |  | -                                  class={styles.icon}
 | 
	
		
			
				|  |  | -                                  src={icon_play}
 | 
	
		
			
				|  |  | -                                />
 | 
	
		
			
				|  |  | -                              ) : null}
 | 
	
		
			
				|  |  | -                            </div>
 | 
	
		
			
				|  |  | -                          </>
 | 
	
		
			
				|  |  | -                        );
 | 
	
		
			
				|  |  | -                      })}
 | 
	
		
			
				|  |  | +                            </>
 | 
	
		
			
				|  |  | +                          );
 | 
	
		
			
				|  |  | +                        })}
 | 
	
		
			
				|  |  | +                      </div>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                    </div>
 | 
	
		
			
				|  |  |                  );
 |