|
@@ -1,31 +1,7 @@
|
|
import request from '@/helpers/request'
|
|
import request from '@/helpers/request'
|
|
import { state } from '@/state'
|
|
import { state } from '@/state'
|
|
-import {
|
|
|
|
- Button,
|
|
|
|
- Cell,
|
|
|
|
- CellGroup,
|
|
|
|
- Dialog,
|
|
|
|
- Empty,
|
|
|
|
- Grid,
|
|
|
|
- GridItem,
|
|
|
|
- Icon,
|
|
|
|
- Image,
|
|
|
|
- Loading,
|
|
|
|
- showConfirmDialog,
|
|
|
|
- showToast,
|
|
|
|
- Skeleton,
|
|
|
|
- SkeletonImage,
|
|
|
|
- Space
|
|
|
|
-} from 'vant'
|
|
|
|
-import {
|
|
|
|
- defineComponent,
|
|
|
|
- onMounted,
|
|
|
|
- reactive,
|
|
|
|
- onUnmounted,
|
|
|
|
- nextTick,
|
|
|
|
- Transition,
|
|
|
|
- TransitionGroup
|
|
|
|
-} from 'vue'
|
|
|
|
|
|
+import { Button, Cell, CellGroup, Dialog, Icon, showConfirmDialog } from 'vant'
|
|
|
|
+import { defineComponent, onMounted, reactive, onUnmounted, TransitionGroup } from 'vue'
|
|
import styles from './index.module.less'
|
|
import styles from './index.module.less'
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
import {
|
|
import {
|
|
@@ -171,11 +147,11 @@ export default defineComponent({
|
|
|
|
|
|
if (!item.hasCache) {
|
|
if (!item.hasCache) {
|
|
const hasFree = String(item.accessScope) === '0'
|
|
const hasFree = String(item.accessScope) === '0'
|
|
- if (!hasFree){
|
|
|
|
|
|
+ if (!hasFree) {
|
|
const hasVip = handleCheckVip()
|
|
const hasVip = handleCheckVip()
|
|
if (!hasVip) return
|
|
if (!hasVip) return
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
// 下载中不提示
|
|
// 下载中不提示
|
|
if (item.downloadStatus == 1) {
|
|
if (item.downloadStatus == 1) {
|
|
return
|
|
return
|
|
@@ -328,7 +304,8 @@ export default defineComponent({
|
|
<div key="list" class={styles.periodList}>
|
|
<div key="list" class={styles.periodList}>
|
|
<CellGroup inset>
|
|
<CellGroup inset>
|
|
{data.list.map((item: any) => {
|
|
{data.list.map((item: any) => {
|
|
- let isLock = item.lockFlag ||
|
|
|
|
|
|
+ const isLock =
|
|
|
|
+ item.lockFlag ||
|
|
((route.query.code == 'select' || state.platformType == 'STUDENT') &&
|
|
((route.query.code == 'select' || state.platformType == 'STUDENT') &&
|
|
!item.unlock)
|
|
!item.unlock)
|
|
const isSelect = route.query.code === 'select'
|
|
const isSelect = route.query.code === 'select'
|
|
@@ -344,8 +321,10 @@ export default defineComponent({
|
|
icon: () => (
|
|
icon: () => (
|
|
<div class={styles.periodItem}>
|
|
<div class={styles.periodItem}>
|
|
<div class={styles.periodItemModel}>
|
|
<div class={styles.periodItemModel}>
|
|
- <img src={ isLock ? iconCourseLock : iconCourse} />
|
|
|
|
- {!isLock && String(item.accessScope) === '0' && <img class={styles.periodTip} src={iconTip} />}
|
|
|
|
|
|
+ <img src={isLock ? iconCourseLock : iconCourse} />
|
|
|
|
+ {!isLock && String(item.accessScope) === '0' && (
|
|
|
|
+ <img class={styles.periodTip} src={iconTip} />
|
|
|
|
+ )}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
),
|
|
),
|