|
|
@@ -4,6 +4,7 @@ import { fetchSubjectConfigInfo } from '@/services/subject/info'
|
|
|
import type { SubjectCatalogResult } from '@/services/subject/catalog'
|
|
|
import Progress from '../catalog/components/progress.uvue'
|
|
|
import Back from '@/components/back.uvue'
|
|
|
+import Lock from '@/components/lock.uvue'
|
|
|
import Loading from '@/components/loading.uvue'
|
|
|
import { config } from '@/config'
|
|
|
import { router } from "@/.cool";
|
|
|
@@ -32,6 +33,13 @@ function handleSelect(item: SubjectCatalogResult) {
|
|
|
visible.value = false
|
|
|
}
|
|
|
function handleDetail(item: SubjectCatalogResult) {
|
|
|
+ if (!item.payFlag && !item.trialPlay) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '请先购买',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
router.push({
|
|
|
path: "/pages/english/detail",
|
|
|
query: {
|
|
|
@@ -69,9 +77,10 @@ function handleDetail(item: SubjectCatalogResult) {
|
|
|
course.mainTitle }}</text>
|
|
|
<text class="text-[14px] text-[#666]">{{
|
|
|
course.assistantTitle }}</text>
|
|
|
- <view>
|
|
|
+ <!-- <view>
|
|
|
<Progress :progress="30" />
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
+ <Lock v-if="!course.trialPlay && !course.payFlag" :record="course" />
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
@@ -124,7 +133,7 @@ function handleDetail(item: SubjectCatalogResult) {
|
|
|
}
|
|
|
|
|
|
.scroll-view-item_H {
|
|
|
- @apply w-[40vh] h-[50vh] mr-[20px] rounded-2xl border-[5px] border-[#1D4BD9] border-solid border-b-[10px] p-1 flex items-center;
|
|
|
+ @apply w-[40vh] h-[50vh] mr-[20px] rounded-2xl border-[5px] border-[#1D4BD9] border-solid border-b-[10px] p-1 flex items-center justify-between pb-[20px];
|
|
|
}
|
|
|
|
|
|
.light-tag {
|