Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
20df603d
提交
20df603d
authored
9月 09, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
72517431
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
28 行增加
和
32 行删除
+28
-32
item.vue
src/pages/course/learn/item.vue
+1
-6
item.vue
src/pages/course/player/item.vue
+1
-6
courseTagMessage.vue
src/pages/course/tag/components/courseTagMessage.vue
+9
-7
searchTagMessage.vue
src/pages/course/tag/components/searchTagMessage.vue
+12
-6
index.vue
src/pages/my/alarm/index.vue
+4
-1
item.vue
src/pages/my/learn/item.vue
+1
-6
没有找到文件。
src/pages/course/learn/item.vue
浏览文件 @
20df603d
...
@@ -72,12 +72,7 @@ export default {
...
@@ -72,12 +72,7 @@ export default {
},
},
handleClick
(
data
)
{
handleClick
(
data
)
{
if
(
this
.
isWeapp
)
{
if
(
this
.
isWeapp
)
{
let
url
=
`/pages/course/item?id=
${
this
.
courseId
}
&chapter_id=
${
data
.
id
}
`
wx
.
miniProgram
.
navigateTo
({
url
:
`/pages/course/item?id=
${
this
.
courseId
}
&chapter_id=
${
data
.
id
}
`
})
// 未开通
if
(
!
data
.
free
&&
!
this
.
isVip
)
{
url
=
`/pages/web/index?src=
${
window
.
location
.
origin
}
/pay`
}
wx
.
miniProgram
.
navigateTo
({
url
})
}
else
{
}
else
{
window
.
alert
(
'请在微信小程序中打开'
)
window
.
alert
(
'请在微信小程序中打开'
)
}
}
...
...
src/pages/course/player/item.vue
浏览文件 @
20df603d
...
@@ -53,12 +53,7 @@ export default {
...
@@ -53,12 +53,7 @@ export default {
},
},
handleClick
(
data
)
{
handleClick
(
data
)
{
if
(
this
.
isWeapp
)
{
if
(
this
.
isWeapp
)
{
let
url
=
`/pages/course/player?course_id=
${
this
.
courseId
}
&chapter_id=
${
data
.
id
}
`
wx
.
miniProgram
.
navigateTo
({
url
:
`/pages/course/player?course_id=
${
this
.
courseId
}
&chapter_id=
${
data
.
id
}
`
})
// 未开通
if
(
!
data
.
free
&&
!
this
.
isVip
)
{
url
=
`/pages/web/index?src=
${
window
.
location
.
origin
}
/pay`
}
wx
.
miniProgram
.
navigateTo
({
url
})
}
else
{
}
else
{
window
.
alert
(
'请在微信小程序中打开'
)
window
.
alert
(
'请在微信小程序中打开'
)
}
}
...
...
src/pages/course/tag/components/courseTagMessage.vue
浏览文件 @
20df603d
...
@@ -34,7 +34,7 @@ export default {
...
@@ -34,7 +34,7 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
...
mapState
([
'isWeapp'
,
'isAndroid'
,
'isIos'
,
'isVip'
]),
...
mapState
([
'isWeapp'
,
'isAndroid'
,
'isIos'
,
'isVip'
,
'isLogin'
]),
hasMore
()
{
hasMore
()
{
return
this
.
data
.
tag
?
this
.
data
.
tag
.
length
>
this
.
maxCount
:
false
return
this
.
data
.
tag
?
this
.
data
.
tag
.
length
>
this
.
maxCount
:
false
},
},
...
@@ -59,14 +59,16 @@ export default {
...
@@ -59,14 +59,16 @@ export default {
},
},
methods
:
{
methods
:
{
onClick
(
data
)
{
onClick
(
data
)
{
// 未登录
if
(
!
data
.
free
&&
!
this
.
isLogin
)
{
this
.
isWeapp
?
wx
.
miniProgram
.
navigateTo
({
url
:
'/pages/login/index'
})
:
this
.
$router
.
push
({
name
:
'login'
})
return
}
// 未开通
// 未开通
if
(
!
data
.
free
&&
!
this
.
isVip
)
{
if
(
!
data
.
free
&&
!
this
.
isVip
)
{
if
(
this
.
isWeapp
)
{
this
.
isWeapp
const
url
=
`/pages/web/index?src=
${
window
.
location
.
origin
}
/pay`
?
wx
.
miniProgram
.
navigateTo
({
url
:
`/pages/web/index?src=
${
window
.
location
.
origin
}
/pay`
})
wx
.
miniProgram
.
navigateTo
({
url
})
:
this
.
$router
.
push
({
name
:
'pay'
})
}
else
{
this
.
$router
.
push
({
name
:
'pay'
})
}
return
return
}
}
if
(
this
.
isTest
)
{
if
(
this
.
isTest
)
{
...
...
src/pages/course/tag/components/searchTagMessage.vue
浏览文件 @
20df603d
...
@@ -45,6 +45,9 @@ export default {
...
@@ -45,6 +45,9 @@ export default {
isVip
()
{
isVip
()
{
return
this
.
$store
.
state
.
isVip
return
this
.
$store
.
state
.
isVip
},
},
isLogin
()
{
return
this
.
$store
.
state
.
isLogin
},
hasMore
()
{
hasMore
()
{
return
this
.
data
.
length
>
this
.
maxCount
return
this
.
data
.
length
>
this
.
maxCount
},
},
...
@@ -57,14 +60,17 @@ export default {
...
@@ -57,14 +60,17 @@ export default {
},
},
methods
:
{
methods
:
{
onClick
(
data
)
{
onClick
(
data
)
{
// 未登录
if
(
!
data
.
free
&&
!
this
.
isLogin
)
{
this
.
isWeapp
?
wx
.
miniProgram
.
navigateTo
({
url
:
'/pages/login/index'
})
:
this
.
$router
.
push
({
name
:
'login'
})
return
}
// 未开通
// 未开通
if
(
!
data
.
free
&&
!
this
.
isVip
)
{
if
(
!
data
.
free
&&
!
this
.
isVip
)
{
if
(
this
.
isWeapp
)
{
this
.
isWeapp
const
url
=
`/pages/web/index?src=
${
window
.
location
.
origin
}
/pay`
?
wx
.
miniProgram
.
navigateTo
({
url
:
`/pages/web/index?src=
${
window
.
location
.
origin
}
/pay`
})
wx
.
miniProgram
.
navigateTo
({
url
})
:
this
.
$router
.
push
({
name
:
'pay'
})
}
else
{
return
this
.
$router
.
push
({
name
:
'pay'
})
}
}
}
if
(
this
.
isTest
)
{
if
(
this
.
isTest
)
{
// 知识点测试
// 知识点测试
...
...
src/pages/my/alarm/index.vue
浏览文件 @
20df603d
...
@@ -26,7 +26,10 @@
...
@@ -26,7 +26,10 @@
<div
class=
"qrcode"
>
<div
class=
"qrcode"
>
<p>
开启学习提醒功能,需先关注紫荆职教公众号。
</p>
<p>
开启学习提醒功能,需先关注紫荆职教公众号。
</p>
<div
class=
"ui-button"
style=
"margin:40px 0 10px;"
>
<div
class=
"ui-button"
style=
"margin:40px 0 10px;"
>
<a
href=
"https://mp.weixin.qq.com/s/xcWMbYk5NgzUF3qxLzGTMg"
>
关注公众号
</a>
<a
href=
"https://mp.weixin.qq.com/s/xcWMbYk5NgzUF3qxLzGTMg"
@
click=
"followPopupVisible = false"
>
关注公众号
</a>
</div>
</div>
</div>
</div>
</van-popup>
</van-popup>
...
...
src/pages/my/learn/item.vue
浏览文件 @
20df603d
...
@@ -57,12 +57,7 @@ export default {
...
@@ -57,12 +57,7 @@ export default {
},
},
handleClick
(
data
)
{
handleClick
(
data
)
{
if
(
this
.
isWeapp
)
{
if
(
this
.
isWeapp
)
{
let
url
=
`/pages/course/item?id=
${
this
.
courseId
}
&chapter_id=
${
data
.
id
}
`
wx
.
miniProgram
.
navigateTo
({
url
:
`/pages/course/item?id=
${
this
.
courseId
}
&chapter_id=
${
data
.
id
}
`
})
// 未开通
if
(
!
data
.
free
&&
!
this
.
isVip
)
{
url
=
`/pages/web/index?src=
${
window
.
location
.
origin
}
/pay`
}
wx
.
miniProgram
.
navigateTo
({
url
})
}
else
{
}
else
{
window
.
alert
(
'请在微信小程序中打开'
)
window
.
alert
(
'请在微信小程序中打开'
)
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论