Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
598cf073
提交
598cf073
authored
7月 09, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
8a2c6a36
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
21 行增加
和
13 行删除
+21
-13
courseTagMessage.vue
src/pages/course/tag/courseTagMessage.vue
+12
-7
index.vue
src/pages/pay/index.vue
+8
-3
routes.js
src/router/routes.js
+1
-2
style.scss
src/style.scss
+0
-1
没有找到文件。
src/pages/course/tag/courseTagMessage.vue
浏览文件 @
598cf073
...
...
@@ -7,7 +7,9 @@
<template
v-if=
"data.tag && data.tag.length"
>
<ul
class=
"message-tag-list"
ref=
"content"
>
<template
v-for=
"item in data.tag"
>
<li
class=
"course-tag-item"
:key=
"item.id"
@
click=
"onClick(item)"
>
{{
item
.
title
}}
</li>
<li
class=
"course-tag-item"
:key=
"item.id"
@
click=
"onClick(item)"
>
<p>
{{
item
.
title
}}
</p>
</li>
</
template
>
</ul>
</template>
...
...
@@ -109,18 +111,21 @@ export default {
}
.course-tag-item
{
display
:
inline-block
;
max-width
:
100%
;
height
:
24px
;
margin
:
0
10px
10px
0
;
padding
:
0
15px
;
font-size
:
13px
;
color
:
#fff
;
line-height
:
24px
;
background
:
#67a8ff
;
border-radius
:
12px
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
cursor
:
pointer
;
p
{
font-size
:
13px
;
color
:
#fff
;
line-height
:
24px
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
}
}
.more
{
padding-top
:
10px
;
...
...
src/pages/pay/index.vue
浏览文件 @
598cf073
...
...
@@ -37,6 +37,13 @@ export default {
}
},
methods
:
{
async
init
()
{
const
isLogin
=
await
this
.
$store
.
dispatch
(
'checkLogin'
)
if
(
isLogin
)
{
this
.
getOrderStatus
()
this
.
orderStatusTime
=
setInterval
(
this
.
getOrderStatus
,
1000
)
}
},
// 已购买
goHome
()
{
this
.
$toast
(
'您已购买!'
)
...
...
@@ -74,9 +81,7 @@ export default {
}
},
beforeMount
()
{
this
.
getOrderStatus
()
this
.
orderStatusTime
&&
clearInterval
(
this
.
orderStatusTime
)
this
.
orderStatusTime
=
setInterval
(
this
.
getOrderStatus
,
1000
)
this
.
init
()
},
destroyed
()
{
this
.
orderStatusTime
&&
clearInterval
(
this
.
orderStatusTime
)
...
...
src/router/routes.js
浏览文件 @
598cf073
...
...
@@ -122,7 +122,6 @@ export default [
{
path
:
'/pay'
,
name
:
'pay'
,
component
:
()
=>
import
(
'../pages/pay/index.vue'
),
meta
:
{
requiredLogin
:
true
}
component
:
()
=>
import
(
'../pages/pay/index.vue'
)
}
]
src/style.scss
浏览文件 @
598cf073
...
...
@@ -101,7 +101,6 @@ body {
.main-container
{
margin
:
0
0
.4rem
;
padding-bottom
:
env
(
safe-area-inset-bottom
);
overflow
:
hidden
;
}
.
main-tabs
.
van-hairline--top-bottom
:
:
after
{
border-top
:
0
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论