index.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. <template>
  2. <view class="container">
  3. <image class="bg" src="@/static/images/bg.png" mode="aspectFill"></image>
  4. <!-- 顶部搜索栏 -->
  5. <view class="top-bar" :style="{ marginTop: statusBarHeight }">
  6. <view class="search-row" @click="onSearch">
  7. <image src="@/static/images/new/search.png" mode=""></image>
  8. <text class="search-placeholder">搜索你感兴趣的内容</text>
  9. </view>
  10. <!-- <view class="top-actions">
  11. <text class="action-icon">⋯</text>
  12. <text class="action-icon scan">⊙</text>
  13. </view> -->
  14. </view>
  15. <!-- 应用标题与副标题 -->
  16. <view class="brand">
  17. <image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/class/title2.png" mode="widthFix"></image>
  18. <!-- <text class="brand-title">品质韶华·乐享朝夕</text>
  19. <text class="brand-subtitle">全国89%的中老年人都在用的兴趣内容社区</text> -->
  20. </view>
  21. <!-- 主题横幅 Banner -->
  22. <scroll-view scroll-y class="scroll-content" :show-scrollbar="false" @scrolltolower="getPageFreeCoursesData">
  23. <view class="banner" @click="onBannerClick">
  24. <!-- <image class="banner-bg" src="/static/images/new/banner.png" mode="aspectFill"></image> -->
  25. <view class="inner">
  26. <swiper class="swiper" :indicator-dots="true" :circular="true" :autoplay="true" :interval="3000"
  27. :duration="1000" indicator-color="rgba(255, 255, 255, 0.6)" indicator-active-color="#ffffff">
  28. <!-- <swiper-item class="swiper-item" v-for="(item,index) in advList" :key="index"
  29. @click="handleAdvClick(item)">
  30. <image :src="item.imageUrl" mode=""></image>
  31. </swiper-item> -->
  32. <swiper-item class="swiper-item">
  33. <image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/class/banner2.jpg" mode=""></image>
  34. </swiper-item>
  35. </swiper>
  36. </view>
  37. </view>
  38. <!-- 央广原乡行 视频推荐区 -->
  39. <view class="section video-section">
  40. <view class="section-head">
  41. <view class="section-title-wrap">
  42. <image class="play-icon" src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/class/yxbofang.png" mode=""></image>
  43. <image class="section-title" src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/class/yxy2.png"></image>
  44. </view>
  45. <view class="section-more" @click="onMoreVideos">查看更多
  46. <image src="/static/images/new/back.png"></image>
  47. </view>
  48. </view>
  49. <view class="feature-video-card">
  50. <scroll-view scroll-x class="tag-scroll" :show-scrollbar="false">
  51. <view v-for="(tag, idx) in videoTags" :key="idx" class="tag-item"
  52. :class="{ active: videoTagId === tag.cateId }" @click="handleSelectOneType(tag)">
  53. <text>{{ tag.cateName }}</text>
  54. <view v-if="videoTagId === tag.cateId" class="triangle"></view>
  55. </view>
  56. </scroll-view>
  57. <template v-if="oneCourseListData.length > 0">
  58. <view v-for="(item, index) in oneCourseListData" :key="index" class="x-bc"
  59. @click="onWatchLive(item)">
  60. <view class="fv-thumb">
  61. <image class="fv-img" :src="item.imgUrl || '/static/images/new/banner.png'"
  62. mode="aspectFill"></image>
  63. <view v-if="false" class="live-tag">
  64. <text class="live-dot"></text>
  65. <text>直播中</text>
  66. </view>
  67. </view>
  68. <view class="fv-info">
  69. <text class="fv-title ellipsis">{{ item.courseName }}</text>
  70. <text class="fv-desc">{{ item.courseDesc }}</text>
  71. <view class="btn-watch" @click.stop="onWatchLive(item)">立即观看</view>
  72. </view>
  73. </view>
  74. </template>
  75. <view class="emptyCourse" v-else>暂无课程~</view>
  76. </view>
  77. </view>
  78. <!-- 免费精品课 -->
  79. <view class="section course-section">
  80. <view class="section-head">
  81. <view class="section-title-wrap">
  82. <image class="play-icon" src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/class/bofang2.png" mode=""></image>
  83. <image class="section-title" src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/class/jpk2.png"></image>
  84. </view>
  85. <view class="section-more" @click="onMoreCourses">更多课程
  86. <image src="/static/images/new/back.png"></image>
  87. </view>
  88. </view>
  89. <view class="courseTabViewClass">
  90. <u-tabs :list="courseTabList" :current="courseCurrentIndex" lineWidth="0" lineHeight="0"
  91. lineColor="#FF233CFF" :activeStyle="courseTabActiveStyle"
  92. :inactiveStyle="courseTabInactiveStyle" @click="handleSelectCourseTab">
  93. </u-tabs>
  94. </view>
  95. <view v-if="courses.length > 0" class="course-list">
  96. <view v-for="(course, idx) in courses" :key="idx" class="course-card" @click="onWatchLive(course)">
  97. <view class="course-thumb">
  98. <image class="course-img" :src="course.imgUrl || '/static/logo.jpg'" mode="aspectFill">
  99. </image>
  100. <!-- <text class="course-tag">{{ course.tag }}</text> -->
  101. </view>
  102. <view class="course-info">
  103. <text class="course-name">{{ course.courseName }}</text>
  104. <view class="x-end" style="justify-content: space-between;">
  105. <view class="course-meta">
  106. <image src="@/static/images/new/renshu.png"></image>
  107. <text class="meta-count">{{ $formattedViewCount(course.watchUserCount) }}</text>
  108. </view>
  109. <view class="btn-watch2" @click.stop="onWatchLive(course)">立即观看</view>
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. <view class="emptyCourse" v-else>暂无课程~</view>
  115. </view>
  116. <view class="bottom-placeholder"></view>
  117. </scroll-view>
  118. </view>
  119. </template>
  120. <script>
  121. import {
  122. courseTypeDataApi, courseListDataApi
  123. } from '@/api/home'
  124. export default {
  125. data() {
  126. return {
  127. statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px',
  128. videoTagId: null,
  129. videoTags: [],
  130. oneCourseListData: [],
  131. courseTabId: null,
  132. courseCurrentIndex: 0,
  133. courses: [],
  134. courseTabList: [],
  135. freePage: {
  136. pageNum: 1,
  137. pageSize: 10,
  138. total: 0,
  139. },
  140. courseTabActiveStyle: {
  141. color: '#FFFFFFFF',
  142. fontSize: '32rpx',
  143. padding: '8rpx 20rpx 10rpx',
  144. background: 'linear-gradient( 135deg, #FF5267 0%, #FF233C 100%)',
  145. borderRadius: '32rpx'
  146. },
  147. courseTabInactiveStyle: {
  148. color: '#000000D9',
  149. fontSize: '32rpx',
  150. background: '#FFFFFFFF',
  151. padding: '8rpx 20rpx 10rpx',
  152. borderRadius: '32rpx'
  153. }
  154. }
  155. },
  156. onLoad() {
  157. this.getOneCourseTypeData()
  158. this.getFreeCourseTypeData()
  159. },
  160. methods: {
  161. onSearch() {
  162. uni.navigateTo({
  163. url: '/pages/index/homePageSearch'
  164. })
  165. },
  166. onBannerClick() {
  167. return
  168. uni.navigateTo({
  169. url: '/pages/index/course'
  170. })
  171. },
  172. onMoreVideos() {
  173. uni.navigateTo({
  174. url: '/pages/index/video'
  175. })
  176. },
  177. // 获取央广原乡行-类型
  178. async getOneCourseTypeData() {
  179. const params = {
  180. pageNum: 1,
  181. pageSize: 4,
  182. isShow: 1,
  183. cateType: 1,
  184. yxxTag: 1,
  185. homePage: 1
  186. };
  187. const res = await courseTypeDataApi(params);
  188. if (res.code === 200) {
  189. this.videoTags = res.data.list;
  190. if (this.videoTags.length > 0) {
  191. this.videoTagId = this.videoTags[0].cateId;
  192. this.oneCourseListData = [];
  193. // 获取原乡行课程列表
  194. this.getYxxCourseList(this.videoTags[0].cateId)
  195. }
  196. }
  197. },
  198. // 获取免费精品课-类型
  199. async getFreeCourseTypeData() {
  200. const params = {
  201. pageNum: 1,
  202. pageSize: 10,
  203. isShow: 1,
  204. cateType: 1,
  205. yxxTag: 0,
  206. homePage: 1
  207. };
  208. const res = await courseTypeDataApi(params);
  209. if (res.code === 200) {
  210. this.courseTabList = res.data.list.map(item => ({
  211. id: item.cateId,
  212. name: item.cateName
  213. }));
  214. this.courseTabList = [
  215. {
  216. id: 0,
  217. name: '精选'
  218. },
  219. ...this.courseTabList
  220. ]
  221. if (this.courseTabList.length > 0) {
  222. this.courseTabId = this.courseTabList[0].id;
  223. this.courses = [];
  224. // 获取免费精品课课程列表
  225. this.getFreeCourseList(this.courseTabId)
  226. }
  227. }
  228. },
  229. // 点击切换央广原乡行-类型
  230. handleSelectOneType(e) {
  231. this.videoTagId = e.cateId;
  232. this.oneCourseListData = [];
  233. // 获取原乡行课程列表
  234. this.getYxxCourseList(this.videoTagId)
  235. },
  236. // 点击切换免费精品课-类型
  237. handleSelectCourseTab(item) {
  238. this.courseCurrentIndex = item.index;
  239. this.courseTabId = item.id;
  240. this.courses = [];
  241. this.freePage.pageNum = 1;
  242. this.freePage.total = 0;
  243. // 获取免费精品课课程列表
  244. this.getFreeCourseList(this.courseTabId)
  245. },
  246. // 获取原乡行课程列表
  247. async getYxxCourseList(cateId) {
  248. const params = {
  249. pageNum: 1,
  250. pageSize: 10,
  251. subCateId: cateId,
  252. yxxTag: 1,
  253. recommendSlot: 1,
  254. };
  255. const res = await courseListDataApi(params);
  256. if (res.code === 200 && res.data.list.length > 0) {
  257. this.oneCourseListData = [res.data.list[0]];
  258. }
  259. },
  260. // 获取免费精品课课程列表
  261. async getFreeCourseList(cateId) {
  262. let params = {
  263. pageNum: this.freePage.pageNum,
  264. pageSize: this.freePage.pageSize,
  265. subCateId: cateId,
  266. yxxTag: 0,
  267. recommendSlot: 3,
  268. };
  269. if (params.subCateId == 0) {
  270. delete params.subCateId;
  271. }
  272. const res = await courseListDataApi(params);
  273. if (res.code === 200) {
  274. this.freePage.total = res.data.total;
  275. this.courses = [...this.courses, ...res.data.list];
  276. }
  277. },
  278. onWatchLive(e) {
  279. uni.navigateTo({
  280. url: `/pages/course/info?courseId=${e.courseId}`
  281. })
  282. },
  283. onMoreCourses() {
  284. uni.navigateTo({
  285. url: '/pages/index/course'
  286. })
  287. },
  288. // 分页获取免费精品课课程列表
  289. getPageFreeCoursesData() {
  290. if (this.freePage.total <= this.courses.length) {
  291. return;
  292. }
  293. this.freePage.pageNum = this.freePage.pageNum + 1;
  294. this.getFreeCourseList(this.courseTabId)
  295. },
  296. }
  297. }
  298. </script>
  299. <style lang="scss" scoped>
  300. .bg {
  301. width: 100%;
  302. height: 380rpx;
  303. position: absolute;
  304. top: 0;
  305. left: 0;
  306. z-index: 0;
  307. }
  308. .container {
  309. display: flex;
  310. flex-direction: column;
  311. min-height: 100vh;
  312. background: #F4F6F7;
  313. }
  314. /* 顶部搜索 */
  315. .top-bar {
  316. display: flex;
  317. align-items: center;
  318. padding: 24rpx 24rpx 30rpx;
  319. position: relative;
  320. }
  321. .search-row {
  322. flex: 1;
  323. display: flex;
  324. align-items: center;
  325. height: 76rpx;
  326. padding: 0 24rpx;
  327. background: rgba(255, 255, 255, 0.5);
  328. border-radius: 38rpx;
  329. image {
  330. width: 44rpx;
  331. height: 44rpx;
  332. }
  333. }
  334. .search-placeholder {
  335. margin-left: 12rpx;
  336. font-size: 32rpx;
  337. color: rgba(0, 0, 0, 0.25);
  338. }
  339. .top-actions {
  340. display: flex;
  341. align-items: center;
  342. margin-left: 20rpx;
  343. }
  344. .action-icon {
  345. font-size: 36rpx;
  346. color: #333;
  347. margin-right: 16rpx;
  348. }
  349. .action-icon.scan {
  350. font-size: 40rpx;
  351. }
  352. /* 品牌标题 */
  353. .brand {
  354. padding: 0 68rpx 30rpx;
  355. background: #fff;
  356. image {
  357. width: 100%;
  358. }
  359. }
  360. .brand-title {
  361. display: block;
  362. font-size: 40rpx;
  363. font-weight: bold;
  364. color: #333;
  365. margin-bottom: 8rpx;
  366. }
  367. .brand-subtitle {
  368. font-size: 24rpx;
  369. color: #999;
  370. }
  371. /* Banner */
  372. .banner {
  373. position: relative;
  374. height: 210rpx;
  375. margin: 0 24rpx 40rpx;
  376. border-radius: 16rpx;
  377. overflow: hidden;
  378. //background: linear-gradient(135deg, #87CEEB 0%, #E0F4FF 100%);
  379. .inner {
  380. width: 100%;
  381. height: 210rpx;
  382. border-radius: 10rpx;
  383. overflow: hidden;
  384. .swiper,
  385. .swiper-item,
  386. .swiper-item image {
  387. width: 100%;
  388. height: 100%;
  389. }
  390. }
  391. }
  392. .banner-bg {
  393. position: absolute;
  394. left: 0;
  395. top: 0;
  396. width: 100%;
  397. height: 100%;
  398. }
  399. .banner-overlay {
  400. position: absolute;
  401. left: 0;
  402. top: 0;
  403. width: 100%;
  404. height: 100%;
  405. display: flex;
  406. flex-direction: column;
  407. align-items: center;
  408. justify-content: center;
  409. background: rgba(0, 0, 0, 0.15);
  410. }
  411. .banner-title {
  412. font-size: 48rpx;
  413. font-weight: bold;
  414. color: #fff;
  415. text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.2);
  416. margin-bottom: 8rpx;
  417. }
  418. .banner-desc {
  419. font-size: 24rpx;
  420. color: rgba(255, 255, 255, 0.95);
  421. }
  422. /* 滚动内容区 */
  423. .scroll-content {
  424. flex: 1;
  425. height: 0;
  426. }
  427. .section {
  428. padding-bottom: 32rpx;
  429. }
  430. .section-head {
  431. display: flex;
  432. align-items: center;
  433. justify-content: space-between;
  434. margin-bottom: 20rpx;
  435. padding: 0 24rpx;
  436. }
  437. .section-title {
  438. width: 226rpx;
  439. height: 36rpx;
  440. }
  441. .section-title-wrap {
  442. display: flex;
  443. align-items: center;
  444. }
  445. .play-icon {
  446. width: 36rpx;
  447. height: 36rpx;
  448. margin-right: 10rpx;
  449. }
  450. .section-more {
  451. font-size: 26rpx;
  452. color: #999;
  453. image {
  454. width: 16rpx;
  455. height: 20rpx;
  456. }
  457. }
  458. /* 横向标签 */
  459. .tag-scroll {
  460. height: 80rpx;
  461. white-space: nowrap;
  462. margin-bottom: 5rpx;
  463. }
  464. .tag-item {
  465. position: relative;
  466. display: inline-block;
  467. padding: 6rpx 24rpx;
  468. margin-right: 24rpx;
  469. border-radius: 10rpx;
  470. background: rgba(255, 255, 255, 0.5);
  471. }
  472. .tag-item text {
  473. font-family: PingFangSC, PingFang SC;
  474. font-weight: 400;
  475. font-size: 36rpx;
  476. color: #FFFFFF;
  477. }
  478. .tag-item.active {
  479. background: linear-gradient(135deg, #FF5267 0%, #FF233C 100%);
  480. }
  481. /* 底部小三角核心 */
  482. .triangle {
  483. z-index: 10;
  484. position: absolute;
  485. left: 50%;
  486. transform: translateX(-50%);
  487. bottom: -5px;
  488. width: 0;
  489. height: 0;
  490. border-left: 30rpx solid transparent;
  491. border-right: 30rpx solid transparent;
  492. border-top: 20rpx solid #FF233C;
  493. }
  494. .tag-item.active text {
  495. color: #fff;
  496. }
  497. /* 特色视频卡片 */
  498. .feature-video-card {
  499. display: flex;
  500. //align-items: center;
  501. flex-direction: column;
  502. background: linear-gradient(135deg, #5F111A 0%, #37050B 100%);
  503. border-radius: 30rpx;
  504. overflow: hidden;
  505. padding: 30rpx 20rpx;
  506. margin-left: 24rpx;
  507. margin-right: 24rpx;
  508. }
  509. .fv-thumb {
  510. position: relative;
  511. width: 360rpx;
  512. height: 240rpx;
  513. border-radius: 20rpx;
  514. overflow: hidden;
  515. margin-right: 20rpx;
  516. }
  517. .fv-img {
  518. width: 100%;
  519. height: 100%;
  520. background: #e0e0e0;
  521. }
  522. .live-tag {
  523. position: absolute;
  524. left: 0;
  525. top: 20rpx;
  526. display: flex;
  527. align-items: center;
  528. width: 130rpx;
  529. height: 44rpx;
  530. background: linear-gradient(135deg, #FF5267 0%, #FF233C 100%);
  531. border-radius: 0rpx 8rpx 8rpx 0rpx;
  532. }
  533. .live-tag text {
  534. font-size: 28rpx;
  535. color: #fff;
  536. margin-left: 6rpx;
  537. }
  538. .live-dot {
  539. width: 12rpx;
  540. height: 12rpx;
  541. background: #fff;
  542. border-radius: 50%;
  543. animation: blink 1s infinite;
  544. }
  545. @keyframes blink {
  546. 50% {
  547. opacity: 0.5;
  548. }
  549. }
  550. .fv-info {
  551. flex: 1;
  552. //padding: 20rpx 24rpx;
  553. display: flex;
  554. flex-direction: column;
  555. justify-content: space-between;
  556. align-items: center;
  557. min-width: 0;
  558. }
  559. .fv-title {
  560. font-family: PingFangSC, PingFang SC;
  561. font-weight: 600;
  562. font-size: 36rpx;
  563. color: #FFFFFF;
  564. line-height: 50rpx;
  565. text-align: center;
  566. font-style: normal;
  567. margin-bottom: 8rpx;
  568. }
  569. .fv-desc {
  570. font-family: PingFangSC, PingFang SC;
  571. font-weight: 400;
  572. font-size: 32rpx;
  573. color: #FFFFFF;
  574. line-height: 44rpx;
  575. text-align: justify;
  576. overflow: hidden;
  577. text-overflow: ellipsis;
  578. display: -webkit-box;
  579. -webkit-line-clamp: 2;
  580. -webkit-box-orient: vertical;
  581. }
  582. /* 红色按钮 */
  583. .btn-watch {
  584. width: 188rpx;
  585. height: 64rpx;
  586. line-height: 64rpx;
  587. text-align: center;
  588. background: #FFFFFF;
  589. border-radius: 12rpx;
  590. margin-top: 28rpx;
  591. font-family: PingFangSC, PingFang SC;
  592. font-weight: 600;
  593. font-size: 32rpx;
  594. color: #3F040B;
  595. }
  596. .btn-watch2 {
  597. width: 168rpx;
  598. height: 64rpx;
  599. line-height: 60rpx;
  600. text-align: center;
  601. background: linear-gradient(135deg, #FF5267 0%, #FF233C 100%);
  602. border-radius: 32rpx;
  603. font-family: PingFangSC, PingFang SC;
  604. font-weight: 600;
  605. font-size: 32rpx;
  606. color: #FFFFFF;
  607. }
  608. .courseTabViewClass {
  609. width: 100%;
  610. padding-left: 14rpx;
  611. margin-top: 8rpx;
  612. margin-bottom: 24rpx;
  613. }
  614. /* 课程列表 */
  615. .course-list {
  616. display: flex;
  617. flex-direction: column;
  618. gap: 24rpx;
  619. padding: 0 24rpx
  620. }
  621. .course-card {
  622. display: flex;
  623. background: #fff;
  624. border-radius: 20rpx;
  625. overflow: hidden;
  626. padding: 20rpx;
  627. }
  628. .course-thumb {
  629. position: relative;
  630. width: 296rpx;
  631. height: 222rpx;
  632. border-radius: 20rpx;
  633. overflow: hidden;
  634. flex-shrink: 0;
  635. }
  636. .course-img {
  637. width: 100%;
  638. height: 100%;
  639. background: #BB6D6D;
  640. }
  641. .course-tag {
  642. position: absolute;
  643. left: 0;
  644. bottom: 0;
  645. right: 0;
  646. padding: 8rpx 12rpx;
  647. background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  648. font-size: 22rpx;
  649. color: #fff;
  650. }
  651. .course-info {
  652. flex: 1;
  653. padding-left: 24rpx;
  654. // padding: 20rpx 24rpx;
  655. display: flex;
  656. flex-direction: column;
  657. justify-content: space-between;
  658. min-width: 0;
  659. }
  660. .course-name {
  661. font-family: PingFangSC, PingFang SC;
  662. font-weight: 600;
  663. font-size: 36rpx;
  664. color: #222222;
  665. line-height: 50rpx;
  666. text-align: justify;
  667. overflow: hidden;
  668. text-overflow: ellipsis;
  669. display: -webkit-box;
  670. -webkit-line-clamp: 2;
  671. -webkit-box-orient: vertical;
  672. }
  673. .course-meta {
  674. display: flex;
  675. align-items: center;
  676. image {
  677. width: 30rpx;
  678. height: 30rpx;
  679. }
  680. }
  681. .meta-icon {
  682. font-size: 24rpx;
  683. margin-right: 6rpx;
  684. color: #999;
  685. }
  686. .meta-count {
  687. margin-left: 10rpx;
  688. font-family: PingFangSC, PingFang SC;
  689. font-weight: 400;
  690. font-size: 32rpx;
  691. color: #666666;
  692. }
  693. /* 底部占位(为全局 tabBar 留出空间) */
  694. .bottom-placeholder {
  695. height: 120rpx;
  696. }
  697. ::v-deep .u-tabs__wrapper__nav__item {
  698. padding: 0 10rpx !important;
  699. }
  700. .emptyCourse {
  701. display: flex;
  702. align-items: center;
  703. justify-content: center;
  704. height: 200rpx;
  705. padding: 24rpx 50rpx;
  706. color: #999999;
  707. }
  708. </style>