|
@@ -11,14 +11,14 @@
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 顶部右侧光标签 -->
|
|
<!-- 顶部右侧光标签 -->
|
|
|
<view class="light-tag" @tap="visible = true">
|
|
<view class="light-tag" @tap="visible = true">
|
|
|
- <image class="light-icon" :src="catalog?.fileList?.[0]?.url"></image>
|
|
|
|
|
|
|
+ <image class="light-icon" :src="config.baseUrl + catalog?.fileList?.[0]?.url"></image>
|
|
|
<text class="light-text">{{ catalog?.name }}</text>
|
|
<text class="light-text">{{ catalog?.name }}</text>
|
|
|
<cl-icon name="arrow-left-right-line" color="primary"></cl-icon>
|
|
<cl-icon name="arrow-left-right-line" color="primary"></cl-icon>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="boxs">
|
|
<view class="boxs">
|
|
|
<scroll-view class="scroll-view_H" direction="horizontal" :show-scrollbar="false">
|
|
<scroll-view class="scroll-view_H" direction="horizontal" :show-scrollbar="false">
|
|
|
<view class="scroll-view-item_H bg-[white]" v-for="course in catalog?.courseList || []" :key="course.id">
|
|
<view class="scroll-view-item_H bg-[white]" v-for="course in catalog?.courseList || []" :key="course.id">
|
|
|
- <cl-image :src="course?.fileList?.[0]?.url" mode="heightFix"
|
|
|
|
|
|
|
+ <cl-image :src="config.baseUrl + course?.fileList?.[0]?.url" mode="heightFix"
|
|
|
class="!w-full !h-[26vh] mb-[2px] rounded-xl"></cl-image>
|
|
class="!w-full !h-[26vh] mb-[2px] rounded-xl"></cl-image>
|
|
|
<text class="text-[16px] font-bold">{{
|
|
<text class="text-[16px] font-bold">{{
|
|
|
course.mainTitle }}</text>
|
|
course.mainTitle }}</text>
|
|
@@ -54,7 +54,7 @@
|
|
|
className: '!p-2'
|
|
className: '!p-2'
|
|
|
}" @tap="handleSelect(item)">
|
|
}" @tap="handleSelect(item)">
|
|
|
<view class="select-item" :class="{ selected: item.id === catalog?.id }">
|
|
<view class="select-item" :class="{ selected: item.id === catalog?.id }">
|
|
|
- <image :src="item?.fileList?.[0]?.url" class="w-[30rpx] h-[30rpx] mb-[2px]"></image>
|
|
|
|
|
|
|
+ <image :src="config.baseUrl + item?.fileList?.[0]?.url" class="w-[30rpx] h-[30rpx] mb-[2px]"></image>
|
|
|
<text>{{ item.name }}</text>
|
|
<text>{{ item.name }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</cl-col>
|
|
</cl-col>
|
|
@@ -71,6 +71,7 @@ import type { SubjectCatalogResult } from '@/services/subject/catalog'
|
|
|
import Progress from './components/progress.uvue'
|
|
import Progress from './components/progress.uvue'
|
|
|
import Back from '@/components/back.uvue'
|
|
import Back from '@/components/back.uvue'
|
|
|
import Loading from '@/components/loading.uvue'
|
|
import Loading from '@/components/loading.uvue'
|
|
|
|
|
+import { config } from '@/config'
|
|
|
|
|
|
|
|
const isLoading = ref(true)
|
|
const isLoading = ref(true)
|
|
|
|
|
|
|
@@ -100,6 +101,7 @@ function handleSelect(item: SubjectCatalogResult) {
|
|
|
|
|
|
|
|
.scroll-view_H {
|
|
.scroll-view_H {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
|
|
+ height: 100%;
|
|
|
flex-direction: row;
|
|
flex-direction: row;
|
|
|
}
|
|
}
|
|
|
|
|
|