Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-fi
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-fi
Commits
8d338dbf
提交
8d338dbf
authored
11月 24, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
08f385cd
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
47 行增加
和
32 行删除
+47
-32
CourseFooter.vue
src/modules/shop/components/CourseFooter.vue
+44
-29
TeacherCard.vue
src/modules/shop/components/TeacherCard.vue
+3
-3
没有找到文件。
src/modules/shop/components/CourseFooter.vue
浏览文件 @
8d338dbf
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
ContactDialog
from
'../components/ContactDialog.vue'
import
ContactDialog
from
'../components/ContactDialog.vue'
import
{
useDevice
}
from
'@/composables/useDevice'
import
{
useDevice
}
from
'@/composables/useDevice'
import
{
useUserStore
}
from
'@/stores/user'
import
{
useUserStore
}
from
'@/stores/user'
const
user
=
useUserStore
()
const
user
=
useUserStore
()
...
@@ -35,7 +34,7 @@ const handleBuyCourse = () => {
...
@@ -35,7 +34,7 @@ const handleBuyCourse = () => {
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"detail_footer"
>
<div
class=
"detail_footer"
v-if=
"!mobile"
>
<div
<div
class=
"left_status"
class=
"left_status"
v-if=
"payStatus === '4' || shopItem?.isBuy === true"
v-if=
"payStatus === '4' || shopItem?.isBuy === true"
...
@@ -53,33 +52,46 @@ const handleBuyCourse = () => {
...
@@ -53,33 +52,46 @@ const handleBuyCourse = () => {
</div>
</div>
</
template
>
</
template
>
<div
v-if=
"!mobile"
>
<div
class=
"footer_btn"
@
click=
"handleBuyCourse"
>
<div
class=
"footer_btn"
@
click=
"handleBuyCourse"
>
{{
{{
payStatus === '4' || shopItem?.isBuy === true ? '立即学习' : '立即购买'
payStatus === '4' || shopItem?.isBuy === true
}}
? '立即学习'
</div>
: '立即购买'
</div>
}}
<div
class=
"detail_footer"
v-else
>
</div>
<div
class=
"left_status"
v-if=
"payStatus === '4' || shopItem?.isBuy === true"
>
已购买
</div>
</div>
<div
v-else
>
<
template
v-else
>
<div
<div
class=
"footer_left"
>
class=
"footer_btn"
<div
class=
"left_tit"
>
全部课程价格
</div>
@
click=
"handleBuyCourse"
<div
class=
"left_desc"
>
根据课程价格累积计算
</div>
v-if=
"payStatus === '4' || shopItem?.isBuy === true"
</div>
>
<div
class=
"footer_price"
v-if=
"!mobile"
>
<div
class=
"btn_buy"
>
立即学习
</div>
<div
class=
"price_icon"
>
¥
</div>
<div
class=
"price_price"
>
{{
shopItem
?.
price
}}
</div>
</div>
</div>
<div
class=
"footer_btn"
@
click=
"handleBuyCourse"
v-else
>
</
template
>
<div
class=
"footer_price"
>
<div
class=
"price_icon"
>
¥
</div>
<div
<div
class=
"price_price"
>
{{ shopItem?.price }}
</div>
class=
"footer_btn"
</div>
@
click=
"handleBuyCourse"
<div
class=
"btn_buy"
>
立即购买
</div>
v-if=
"payStatus === '4' || shopItem?.isBuy === true"
>
<div
class=
"btn_buy"
>
立即学习
</div>
</div>
<div
class=
"footer_btn"
@
click=
"handleBuyCourse"
v-else
>
<div
class=
"footer_price"
>
<div
class=
"price_icon"
>
¥
</div>
<div
class=
"price_price"
>
{{ shopItem?.price }}
</div>
</div>
</div>
<div
class=
"btn_buy"
>
立即购买
</div>
</div>
</div>
<ContactDialog
v-model:buyDialogVisible=
"buyDialogVisible"
/>
</div>
</div>
<ContactDialog
v-model:buyDialogVisible=
"buyDialogVisible"
/>
</template>
</template>
...
@@ -108,13 +120,11 @@ const handleBuyCourse = () => {
...
@@ -108,13 +120,11 @@ const handleBuyCourse = () => {
.left_tit
{
.left_tit
{
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
400
;
font-weight
:
400
;
line-height
:
34px
;
color
:
#333333
;
color
:
#333333
;
}
}
.left_desc
{
.left_desc
{
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
400
;
font-weight
:
400
;
line-height
:
34px
;
color
:
#999999
;
color
:
#999999
;
}
}
}
}
...
@@ -127,6 +137,7 @@ const handleBuyCourse = () => {
...
@@ -127,6 +137,7 @@ const handleBuyCourse = () => {
font-weight
:
500
;
font-weight
:
500
;
line-height
:
34px
;
line-height
:
34px
;
color
:
#aa1941
;
color
:
#aa1941
;
margin-top
:
5px
;
}
}
.price_price
{
.price_price
{
font-size
:
40px
;
font-size
:
40px
;
...
@@ -152,12 +163,15 @@ const handleBuyCourse = () => {
...
@@ -152,12 +163,15 @@ const handleBuyCourse = () => {
}
}
.is-h5
{
.is-h5
{
.detail_footer
{
.detail_footer
{
width
:
100%
;
border-radius
:
0
.2rem
0
.2rem
0
0
;
border-radius
:
0
.2rem
0
.2rem
0
0
;
background
:
#ffffff
;
background
:
#ffffff
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin
:
0
.28rem
0
0
.54rem
0
;
padding
:
0
.3rem
;
padding
:
0
.3rem
;
box-sizing
:
border-box
;
.left_status
{
.left_status
{
font-size
:
0
.24rem
;
font-size
:
0
.24rem
;
font-weight
:
normal
;
font-weight
:
normal
;
...
@@ -177,7 +191,6 @@ const handleBuyCourse = () => {
...
@@ -177,7 +191,6 @@ const handleBuyCourse = () => {
}
}
}
}
.footer_btn
{
.footer_btn
{
width
:
4
.08rem
;
height
:
0
.8rem
;
height
:
0
.8rem
;
background
:
linear-gradient
(
102deg
,
#f2ca8c
0%
,
#e69b1c
100%
);
background
:
linear-gradient
(
102deg
,
#f2ca8c
0%
,
#e69b1c
100%
);
border-radius
:
0
.4rem
;
border-radius
:
0
.4rem
;
...
@@ -185,11 +198,12 @@ const handleBuyCourse = () => {
...
@@ -185,11 +198,12 @@ const handleBuyCourse = () => {
line-height
:
0
.8rem
;
line-height
:
0
.8rem
;
color
:
#ffffff
;
color
:
#ffffff
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
justify-content
:
center
;
cursor
:
pointer
;
cursor
:
pointer
;
padding
:
0
0
.56rem
;
.footer_price
{
.footer_price
{
display
:
flex
;
display
:
flex
;
padding-left
:
0
.48rem
;
justify-content
:
flex-start
;
margin-right
:
0
.18rem
;
margin-right
:
0
.18rem
;
.price_icon
{
.price_icon
{
font-size
:
0
.24rem
;
font-size
:
0
.24rem
;
...
@@ -198,6 +212,7 @@ const handleBuyCourse = () => {
...
@@ -198,6 +212,7 @@ const handleBuyCourse = () => {
}
}
.price_price
{
.price_price
{
font-size
:
0
.4rem
;
font-size
:
0
.4rem
;
font-weight
:
bold
;
}
}
}
}
.btn_buy
{
.btn_buy
{
...
...
src/modules/shop/components/TeacherCard.vue
浏览文件 @
8d338dbf
...
@@ -258,17 +258,17 @@ const list = [
...
@@ -258,17 +258,17 @@ const list = [
}
}
}
}
ol
{
ol
{
margin-top
:
0
.2rem
;
margin-top
:
0
.2
8
rem
;
li
{
li
{
list-style-type
:
disc
;
list-style-type
:
disc
;
color
:
#c1ab85
!
important
;
color
:
#c1ab85
!
important
;
margin-left
:
0
.3rem
;
margin-left
:
0
.3rem
;
p
{
p
{
font-size
:
0
.
1
4rem
;
font-size
:
0
.
2
4rem
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#666666
;
color
:
#666666
;
width
:
4
.89rem
;
width
:
4
.89rem
;
white-space
:
wrap
;
white-space
:
now
wrap
;
}
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论