Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
2dc09731
提交
2dc09731
authored
7月 08, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://gitlab.ezijing.com/ezijing/transport-weapp-h5
上级
552cd0c9
d84b28eb
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
19 行增加
和
4 行删除
+19
-4
CourseItem.vue
src/components/CourseItem.vue
+1
-0
FreeCourseItem.vue
src/components/FreeCourseItem.vue
+1
-0
main.js
src/main.js
+4
-3
tagMessage.vue
src/pages/course/tag/tagMessage.vue
+10
-1
index.vue
src/pages/search/index.vue
+3
-0
没有找到文件。
src/components/CourseItem.vue
浏览文件 @
2dc09731
...
@@ -51,6 +51,7 @@ export default {
...
@@ -51,6 +51,7 @@ export default {
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
space-between
;
justify-content
:
space-between
;
overflow
:
hidden
;
}
}
.course-item-pic
{
.course-item-pic
{
width
:
2
.4rem
;
width
:
2
.4rem
;
...
...
src/components/FreeCourseItem.vue
浏览文件 @
2dc09731
...
@@ -46,6 +46,7 @@ export default {
...
@@ -46,6 +46,7 @@ export default {
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
space-between
;
justify-content
:
space-between
;
overflow
:
hidden
;
}
}
.course-item-pic
{
.course-item-pic
{
width
:
2
.4rem
;
width
:
2
.4rem
;
...
...
src/main.js
浏览文件 @
2dc09731
...
@@ -11,7 +11,7 @@ import './assets/rem/rem.js'
...
@@ -11,7 +11,7 @@ import './assets/rem/rem.js'
import
MetaInfo
from
'vue-meta-info'
import
MetaInfo
from
'vue-meta-info'
import
modules
from
'./modules'
import
modules
from
'./modules'
import
createBefore
from
'./components/beforeEnter'
//
import createBefore from './components/beforeEnter'
// vant
// vant
import
Vant
from
'vant'
import
Vant
from
'vant'
...
@@ -45,10 +45,11 @@ Vue.prototype.VueEvent = new Vue()
...
@@ -45,10 +45,11 @@ Vue.prototype.VueEvent = new Vue()
Vue
.
prototype
.
wx
=
window
.
wx
.
miniProgram
Vue
.
prototype
.
wx
=
window
.
wx
.
miniProgram
/* 创建实例之前,通过导航守卫,处理部分逻辑,如:是否直接进入系统 */
/* 创建实例之前,通过导航守卫,处理部分逻辑,如:是否直接进入系统 */
const
before
=
createBefore
()
//
const before = createBefore()
/* 导航守卫 */
/* 导航守卫 */
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
before
.
update
(
to
,
from
,
next
)
// before.update(to, from, next)
next
()
})
})
window
.
G
.
$instance_vue
=
new
Vue
({
window
.
G
.
$instance_vue
=
new
Vue
({
store
,
store
,
...
...
src/pages/course/tag/tagMessage.vue
浏览文件 @
2dc09731
...
@@ -59,7 +59,16 @@ export default {
...
@@ -59,7 +59,16 @@ export default {
this
.
showMore
=
!
this
.
showMore
this
.
showMore
=
!
this
.
showMore
},
},
viewMore
()
{
viewMore
()
{
this
.
$router
.
push
({
name
:
'courseTagItem'
,
params
:
{
id
:
this
.
data
.
id
}
})
if
(
this
.
isWeapp
)
{
wx
.
miniProgram
.
navigateTo
({
url
:
`/pages/web/index?src=
${
window
.
location
.
origin
}
/course/tag/
${
this
.
data
.
id
}
`
})
}
else
{
this
.
$router
.
push
({
name
:
'courseTagItem'
,
params
:
{
id
:
this
.
data
.
id
}
})
}
},
},
// 去知识点考试页面
// 去知识点考试页面
toExamPage
()
{
toExamPage
()
{
...
...
src/pages/search/index.vue
浏览文件 @
2dc09731
...
@@ -105,6 +105,9 @@ export default {
...
@@ -105,6 +105,9 @@ export default {
this
.
$router
.
replace
({
query
:
{
tab
:
name
,
keywords
:
this
.
searchValue
}
})
this
.
$router
.
replace
({
query
:
{
tab
:
name
,
keywords
:
this
.
searchValue
}
})
},
},
onSearch
()
{
onSearch
()
{
if
(
!
this
.
searchValue
.
trim
())
{
return
}
this
.
$router
.
replace
({
this
.
$router
.
replace
({
query
:
{
tab
:
this
.
tabActive
,
keywords
:
this
.
searchValue
}
query
:
{
tab
:
this
.
tabActive
,
keywords
:
this
.
searchValue
}
})
})
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论