Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
caac2f82
提交
caac2f82
authored
7月 27, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 增加下载资料;知识点增加返回顶部;
上级
cc8ce306
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
100 行增加
和
38 行删除
+100
-38
.config.dev.js
.config.dev.js
+3
-13
.config.pro.js
.config.pro.js
+8
-10
.config.test.js
.config.test.js
+8
-10
download_bg.png
src/assets/images/download_bg.png
+0
-0
icon_backtop.png
src/assets/images/icon_backtop.png
+0
-0
index.vue
src/pages/course/tag/index.vue
+30
-1
index.vue
src/pages/download/index.vue
+45
-0
login.vue
src/pages/login/login.vue
+1
-4
routes.js
src/router/routes.js
+5
-0
没有找到文件。
.config.dev.js
浏览文件 @
caac2f82
...
...
@@ -13,18 +13,6 @@ module.exports = {
},
devServer
:
{
proxy
:
{
// '/api/passport': {
// target: 'https://passport.ezijing.com',
// pathRewrite: {
// '^/api/passport': '/' // 需要rewrite重写的
// }
// },
// '/usercenter': {
// target: 'https://api-usercenter.ezijing.com',
// pathRewrite: {
// '^/usercenter': '/' // 需要rewrite重写的
// }
// }
/* 多个代理 */
// '/api': {
// target: $GLOBAL.webConf.url,
...
...
@@ -45,5 +33,7 @@ module.exports = {
}
},
ProvidePlugin
:
{},
others
:
{}
others
:
{
WECHAT_REDIRECT_URL
:
'https://passport2.ezijing.com'
}
}
.config.pro.js
浏览文件 @
caac2f82
...
...
@@ -5,18 +5,16 @@ module.exports = {
isUploadStatic
:
false
,
webpack
:
{
externals
:
{
'CKEDITOR'
:
'window.CKEDITOR'
,
'Base64'
:
'window.Base64'
,
'md5'
:
'window.md5'
,
'regeneratorRuntime'
:
'window.regeneratorRuntime'
,
'wx'
:
'window.wx'
,
'WeixinJSBridge'
:
'window.WeixinJSBridge'
CKEDITOR
:
'window.CKEDITOR'
,
Base64
:
'window.Base64'
,
md5
:
'window.md5'
,
regeneratorRuntime
:
'window.regeneratorRuntime'
,
wx
:
'window.wx'
,
WeixinJSBridge
:
'window.WeixinJSBridge'
}
},
ProvidePlugin
:
{
},
ProvidePlugin
:
{},
others
:
{
WECHAT_REDIRECT_URL
:
'https://passport.ezijing.com'
}
}
.config.test.js
浏览文件 @
caac2f82
...
...
@@ -5,18 +5,16 @@ module.exports = {
isUploadStatic
:
false
,
webpack
:
{
externals
:
{
'CKEDITOR'
:
'window.CKEDITOR'
,
'Base64'
:
'window.Base64'
,
'md5'
:
'window.md5'
,
'regeneratorRuntime'
:
'window.regeneratorRuntime'
,
'wx'
:
'window.wx'
,
'WeixinJSBridge'
:
'window.WeixinJSBridge'
CKEDITOR
:
'window.CKEDITOR'
,
Base64
:
'window.Base64'
,
md5
:
'window.md5'
,
regeneratorRuntime
:
'window.regeneratorRuntime'
,
wx
:
'window.wx'
,
WeixinJSBridge
:
'window.WeixinJSBridge'
}
},
ProvidePlugin
:
{
},
ProvidePlugin
:
{},
others
:
{
WECHAT_REDIRECT_URL
:
'https://passport2.ezijing.com'
}
}
src/assets/images/download_bg.png
0 → 100644
浏览文件 @
caac2f82
89.5 KB
src/assets/images/icon_backtop.png
0 → 100644
浏览文件 @
caac2f82
12.4 KB
src/pages/course/tag/index.vue
浏览文件 @
caac2f82
...
...
@@ -31,6 +31,7 @@
</form>
</div>
</div>
<div
class=
"backtop"
@
click=
"scrollTop"
v-show=
"showBacktop"
></div>
</div>
</template>
...
...
@@ -47,7 +48,8 @@ export default {
return
{
detail
:
{
chapters
:
[]
},
messageList
:
[],
// {id:'', type: 1, payload: {}}
searchValue
:
''
searchValue
:
''
,
showBacktop
:
false
}
},
watch
:
{
...
...
@@ -149,10 +151,27 @@ export default {
this
.
$nextTick
(()
=>
{
window
.
scrollTo
(
0
,
document
.
body
.
scrollHeight
)
})
},
// 滚到到顶部
scrollTop
()
{
window
.
scrollTo
(
0
,
0
)
},
handleScroll
()
{
const
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
this
.
showBacktop
=
scrollTop
>=
10
}
},
beforeMount
()
{
this
.
getCourseTagList
()
},
mounted
()
{
window
.
addEventListener
(
'scroll'
,
this
.
handleScroll
)
},
destroyed
()
{
window
.
removeEventListener
(
'scroll'
,
this
.
handleScroll
)
}
}
</
script
>
...
...
@@ -178,4 +197,14 @@ export default {
background-color
:
#fff
;
}
}
.backtop
{
position
:
fixed
;
right
:
15px
;
bottom
:
64px
;
width
:
46px
;
height
:
46px
;
background
:
url('../../../assets/images/icon_backtop.png')
no-repeat
;
background-size
:
contain
;
cursor
:
pointer
;
}
</
style
>
src/pages/download/index.vue
0 → 100644
浏览文件 @
caac2f82
<
template
>
<div
class=
"download"
>
<h2>
学习资料
</h2>
<h3>
请您自行下载
</h3>
<p>
下载链接:https://pan.baidu.com
</p>
<p>
提取码:mp91
</p>
</div>
</
template
>
<
script
>
export
default
{
metaInfo
:
{
title
:
'下载资料'
},
data
()
{
return
{}
},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.download
{
min-height
:
100vh
;
padding
:
5
.04rem
20px
0
;
background
:
url('../../assets/images/download_bg.png')
no-repeat
center
top
;
background-size
:
100%
;
box-sizing
:
border-box
;
h2
{
font-size
:
0
.3rem
;
font-weight
:
bold
;
color
:
#f7a746
;
text-align
:
center
;
}
h3
{
margin-top
:
40px
;
font-size
:
0
.3rem
;
font-weight
:
bold
;
color
:
#222
;
}
p
{
margin-top
:
40px
;
font-size
:
0
.3rem
;
color
:
#222
;
}
}
</
style
>
src/pages/login/login.vue
浏览文件 @
caac2f82
...
...
@@ -137,10 +137,7 @@ export default {
},
wechatLogin
()
{
const
appId
=
'wxc6044475caf2805a'
const
wechatRedirectURL
=
webConf
.
isDev
===
'production'
?
'https://passport.ezijing.com'
:
'https://passport2.ezijing.com'
const
wechatRedirectURL
=
webConf
.
others
.
WECHAT_REDIRECT_URL
// 回调地址
const
redirectURI
=
`
${
wechatRedirectURL
}
/rest/wechat/oauth-callback?needCheck=false&identity=transport&redirectUrl=
${
window
.
location
.
href
}
`
// 微信的地址
...
...
src/router/routes.js
浏览文件 @
caac2f82
...
...
@@ -134,5 +134,10 @@ export default [
path
:
'/pay'
,
name
:
'pay'
,
component
:
()
=>
import
(
'../pages/pay/index.vue'
)
},
{
path
:
'/download'
,
name
:
'download'
,
component
:
()
=>
import
(
'../pages/download/index.vue'
)
}
]
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论