diff --git a/src/components/course/PreviewCard.vue b/src/components/course/PreviewCard.vue index c94a2627..134073de 100644 --- a/src/components/course/PreviewCard.vue +++ b/src/components/course/PreviewCard.vue @@ -68,7 +68,7 @@ export default defineComponent({ height: 84px; overflow: hidden; .left { - width: 100px; + width: 80px; float: left; .thumbnail { text-align: center; @@ -81,10 +81,12 @@ export default defineComponent({ padding: 10px 0; color: white; float: left; - - width: calc(100% - 100px); + width: calc(100% - 80px); .title { cursor: pointer; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; } .info { color: rgb(120, 144, 156); diff --git a/src/i18n/zh/course/button.ts b/src/i18n/zh/course/button.ts index 0cff6dcc..ac8c9ca8 100644 --- a/src/i18n/zh/course/button.ts +++ b/src/i18n/zh/course/button.ts @@ -1,3 +1,4 @@ export default { - startStudy: '开始学习' + startStudy: '开始学习', + buy: '购买课程' }; diff --git a/src/pages/course/Detail.vue b/src/pages/course/Detail.vue index 0fe0074d..73e920b9 100644 --- a/src/pages/course/Detail.vue +++ b/src/pages/course/Detail.vue @@ -22,14 +22,14 @@

- - - {{ $t('course.button.startStudy') }} + + + {{ $t('course.button.buy') }}

- + {{ $t('course.button.startStudy') }}

@@ -110,7 +110,7 @@ import { episodeService } from '@/services/episode/service'; import { IEpisode, IEpisodeListResponse } from '@/services/episode/types'; import { orderService } from '@/services/order/service'; import { defineComponent } from 'vue'; -import { Clock, MagicStick, Collection, ArrowRight } from '@element-plus/icons-vue'; +import { Clock, MagicStick, Collection, VideoPlay, Goods } from '@element-plus/icons-vue'; import VerificationAlert from '@/components/common/VerificationAlert.vue'; import { IOrder, IOrderDetailResponse } from '@/services/order/types'; import { v4 as uuidv4 } from 'uuid'; @@ -130,7 +130,8 @@ export default defineComponent({ Collection, MagicStick, VerificationAlert, - ArrowRight + VideoPlay, + Goods }, data(): IData { return { diff --git a/src/pages/episode/Detail.vue b/src/pages/episode/Detail.vue index 6cbc3b7e..d0ddfc73 100644 --- a/src/pages/episode/Detail.vue +++ b/src/pages/episode/Detail.vue @@ -12,7 +12,7 @@
-
+
{{ $t('course.message.needPay') }}
@@ -101,7 +101,7 @@ $width: 300px; .side { background-color: #0d131d; - height: 100vh; + min-height: 100vh; overflow-y: scroll; width: $width; } diff --git a/src/store/index.ts b/src/store/index.ts index 1ff03109..7b1edda5 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -12,8 +12,7 @@ export interface IState { const store = createStore({ state(): IState { return { - accessToken: - 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjY1MTc5MTE2LCJqdGkiOiJlYjEzNGMzMjZlMTc0YzViODFhNGZlZDgxMjJlYzFhNiIsInVzZXJfaWQiOjQsInBlcm1pc3Npb25zIjpbInZpZXdfYWNhZGVteV9jb3Vyc2UiXSwiaXNfc3VwZXJ1c2VyIjpmYWxzZSwiaXNfdmVyaWZpZWQiOnRydWUsInJlYWxuYW1lIjoiXHU1ZDE0XHU1ZTg2XHU2MjRkIiwicGhvbmUiOiIxNzYwMDE1NTU2NyIsImlkY2FyZCI6IjM3MDc4MTE5OTQwNjI5MzI3MSJ9.Xc4B9GhgJ5i2I9R_6j7bD38yX3bPC_FI7kUVQzCDaq4', + accessToken: undefined, refreshToken: undefined, user: undefined };