Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mt-education-mobile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王旭
mt-education-mobile
Commits
8beefa98
Commit
8beefa98
authored
Dec 12, 2019
by
yun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
980d4057
94734d5c
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
714 additions
and
194 deletions
+714
-194
test.js
src/api/test.js
+10
-1
DOCX.png
src/assets/images/MyInformation/DOCX.png
+0
-0
PPTX.png
src/assets/images/MyInformation/PPTX.png
+0
-0
RAR.png
src/assets/images/MyInformation/RAR.png
+0
-0
XLSX.png
src/assets/images/MyInformation/XLSX.png
+0
-0
resetui.less
src/assets/style/resetui.less
+3
-0
Coursediscuss.vue
src/components/CourseDiscuss/Coursediscuss.vue
+14
-1
labelMyInformation.vue
src/components/MyInformation/labelMyInformation.vue
+12
-0
NavBar.vue
src/components/NavBar.vue
+4
-22
hSelector.vue
src/components/addTrain/hSelector.vue
+2
-0
main.js
src/main.js
+3
-1
index.js
src/utils/index.js
+12
-0
index.vue
src/views/CourseDetail/index.vue
+142
-110
index.vue
src/views/Home/index.vue
+11
-10
startExamination.vue
src/views/OnlineExamination/startExamination.vue
+1
-1
index.vue
src/views/PersonalCenter/index.vue
+1
-0
SignCode.vue
src/views/TrainDetail/SignCode.vue
+3
-0
TrainSign.vue
src/views/TrainDetail/TrainSign.vue
+19
-19
index.vue
src/views/addTrain/index.vue
+477
-29
No files found.
src/api/test.js
View file @
8beefa98
...
@@ -50,7 +50,8 @@ const api = {
...
@@ -50,7 +50,8 @@ const api = {
deleteCourseDiscuss
:
'/bdiscuss/delete'
,
// 删除评论
deleteCourseDiscuss
:
'/bdiscuss/delete'
,
// 删除评论
getMyInfo
:
'/user/queryMyInfo'
,
// 获取当前登陆人信息 我的智学 个人中心
getMyInfo
:
'/user/queryMyInfo'
,
// 获取当前登陆人信息 我的智学 个人中心
learning
:
'/BLesson/learning'
,
// 判断是正在学该课程 643
learning
:
'/BLesson/learning'
,
// 判断是正在学该课程 643
queryCourse
:
'/BCourse/queryCourse'
// 301 查询课程分类
queryCourse
:
'/BCourse/queryCourse'
,
// 301 查询课程分类
imgUpload
:
process
.
env
.
VUE_APP_BASE_API2
+
'/api/oss/v1/file/upload'
// 美腾方面图片上传接口
}
}
export
default
api
export
default
api
...
@@ -352,6 +353,14 @@ export const post = {
...
@@ -352,6 +353,14 @@ export const post = {
method
:
'post'
,
method
:
'post'
,
params
:
params
params
:
params
})
})
},
// 新建培训 图片上传
postImgUpload
:
(
params
)
=>
{
return
axios
({
url
:
api
.
imgUpload
,
method
:
'post'
,
params
:
params
})
}
}
}
}
...
...
src/assets/images/MyInformation/DOCX.png
0 → 100644
View file @
8beefa98
5.33 KB
src/assets/images/MyInformation/PPTX.png
0 → 100644
View file @
8beefa98
4.73 KB
src/assets/images/MyInformation/RAR.png
0 → 100644
View file @
8beefa98
4.66 KB
src/assets/images/MyInformation/XLSX.png
0 → 100644
View file @
8beefa98
5.23 KB
src/assets/style/resetui.less
View file @
8beefa98
...
@@ -270,6 +270,9 @@
...
@@ -270,6 +270,9 @@
color: #cccccc;
color: #cccccc;
}
}
}
}
.form-data-field:active{
background: #ffffff !important;
}
.describe-field{
.describe-field{
display: block;
display: block;
.van-field__control{
.van-field__control{
...
...
src/components/CourseDiscuss/Coursediscuss.vue
View file @
8beefa98
...
@@ -412,7 +412,9 @@ export default {
...
@@ -412,7 +412,9 @@ export default {
.discussContent{
.discussContent{
padding: 0 16px 15px 20px;
padding: 0 16px 15px 20px;
}
}
.discussContent::-webkit-scrollbar{
width: 0;
}
.discussBasic{
.discussBasic{
width: 100%;
width: 100%;
margin-bottom: 19px;
margin-bottom: 19px;
...
@@ -449,6 +451,7 @@ export default {
...
@@ -449,6 +451,7 @@ export default {
.Coursediscuss::-webkit-scrollbar {/*滚动条整体样式*/
.Coursediscuss::-webkit-scrollbar {/*滚动条整体样式*/
width: 0px; /*高宽分别对应横竖滚动条的尺寸*/
width: 0px; /*高宽分别对应横竖滚动条的尺寸*/
}
}
.bubble{
.bubble{
width: 0;
width: 0;
height: 0;
height: 0;
...
@@ -459,3 +462,13 @@ export default {
...
@@ -459,3 +462,13 @@ export default {
left: 20px;
left: 20px;
}
}
</
style
>
</
style
>
<
style
lang=
"less"
>
.Coursediscuss::-webkit-scrollbar{
width: 0;
}
.Coursediscuss{
.discussContent::-webkit-scrollbar{
width: 0;
}
}
</
style
>
src/components/MyInformation/labelMyInformation.vue
View file @
8beefa98
...
@@ -111,6 +111,18 @@ export default {
...
@@ -111,6 +111,18 @@ export default {
case
'zip'
:
case
'zip'
:
this
.
imgName
=
require
(
'@assets/images/MyInformation/ZIP.png'
)
this
.
imgName
=
require
(
'@assets/images/MyInformation/ZIP.png'
)
break
break
case
'docx'
:
this
.
imgName
=
require
(
'@assets/images/MyInformation/DOCX.png'
)
break
case
'pptx'
:
this
.
imgName
=
require
(
'@assets/images/MyInformation/PPTX.png'
)
break
case
'xlsx'
:
this
.
imgName
=
require
(
'@assets/images/MyInformation/XLSX.png'
)
break
case
'rar'
:
this
.
imgName
=
require
(
'@assets/images/MyInformation/RAR.png'
)
break
default
:
default
:
this
.
imgName
=
require
(
'@assets/images/MyInformation/未知.png'
)
this
.
imgName
=
require
(
'@assets/images/MyInformation/未知.png'
)
break
break
...
...
src/components/NavBar.vue
View file @
8beefa98
...
@@ -77,28 +77,10 @@ export default {
...
@@ -77,28 +77,10 @@ export default {
methods
:
{
methods
:
{
// 返回按钮
// 返回按钮
back
()
{
back
()
{
if
(
this
.
$route
.
name
===
'Home'
)
{
alert
(
this
.
$route
.
query
.
goindex
)
sendInfoToJava
(
'close'
)
if
(
this
.
$route
.
name
===
'Home'
||
this
.
$route
.
query
.
goindex
===
'true'
)
{
// } else if (this.$route.name === 'CourseDetail' || this.$route.name === 'TrainDetail') {
alert
(
'进入关闭方法'
)
// if (this.fromName === 'More') {
// sendInfoToJava('close')
// this.$router.replace({
// name: this.fromName
// // params: JSON.parse(sessionStorage.getItem('moreObj'))
// })
// } else if (this.fromName === 'ClassificationResult') {
// this.$router.replace({
// name: this.fromName,
// params: JSON.parse(sessionStorage.getItem('classificationResultObj'))
// })
// } else {
// this.$router.replace({
// name: this.fromName
// })
// }
// if (this.fromName === 'Home') {
// return false
// }
// this.$router.go(-1)
}
else
if
(
this
.
$route
.
name
===
'Zcdsh'
)
{
}
else
if
(
this
.
$route
.
name
===
'Zcdsh'
)
{
this
.
$router
.
replace
({
this
.
$router
.
replace
({
name
:
'Home'
name
:
'Home'
...
...
src/components/addTrain/hSelector.vue
View file @
8beefa98
...
@@ -122,6 +122,7 @@ export default {
...
@@ -122,6 +122,7 @@ export default {
white-space: nowrap;
white-space: nowrap;
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
display: none;
}
}
.h-selector-container {
.h-selector-container {
position: absolute;
position: absolute;
...
@@ -129,6 +130,7 @@ export default {
...
@@ -129,6 +130,7 @@ export default {
left: 0;
left: 0;
bottom: 0;
bottom: 0;
width: 100%;
width: 100%;
height: 100%;
background: #fff;
background: #fff;
}
}
.h-selector-layer {
.h-selector-layer {
...
...
src/main.js
View file @
8beefa98
...
@@ -8,7 +8,7 @@ import * as _ from 'lodash'
...
@@ -8,7 +8,7 @@ import * as _ from 'lodash'
import
'vant/lib/icon/local.css'
import
'vant/lib/icon/local.css'
import
{
PullRefresh
,
Field
,
Image
,
Toast
,
Dialog
}
from
'vant'
import
{
PullRefresh
,
Field
,
Image
,
Toast
,
Dialog
}
from
'vant'
import
wnsdk
from
'@tjmt/wnsdk'
import
wnsdk
from
'@tjmt/wnsdk'
import
{
curriculumTrainRouter
}
from
'./utils'
import
{
curriculumTrainRouter
,
setgoindex
}
from
'./utils'
import
'./assets/style/resetui.less'
import
'./assets/style/resetui.less'
// 定义全局过滤器
// 定义全局过滤器
...
@@ -30,6 +30,8 @@ Vue.use(PullRefresh)
...
@@ -30,6 +30,8 @@ Vue.use(PullRefresh)
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
// 定义线上课程 线下培训 跳转方法
// 定义线上课程 线下培训 跳转方法
Vue
.
prototype
.
$curriculumTrainRouter
=
curriculumTrainRouter
Vue
.
prototype
.
$curriculumTrainRouter
=
curriculumTrainRouter
// 判断当前页面的历史记录是不是小于等于1
Vue
.
prototype
.
$setgoindex
=
setgoindex
Vue
.
prototype
.
_
=
_
Vue
.
prototype
.
_
=
_
Vue
.
prototype
.
$wnsdk
=
wnsdk
Vue
.
prototype
.
$wnsdk
=
wnsdk
...
...
src/utils/index.js
View file @
8beefa98
...
@@ -449,4 +449,16 @@ export function curriculumTrainRouter(lessonType, id, fromName, valueConsume, le
...
@@ -449,4 +449,16 @@ export function curriculumTrainRouter(lessonType, id, fromName, valueConsume, le
}
}
})
})
}
}
// 判断首次进入项目 路由路径数量(通知进入页面,点击返回箭头关闭项目)
export
function
setgoindex
()
{
console
.
log
(
window
.
history
.
length
)
alert
(
window
.
history
.
length
)
if
(
window
.
history
.
length
<=
1
)
{
if
(
location
.
href
.
indexOf
(
'?'
)
===
-
1
)
{
window
.
location
.
href
=
location
.
href
+
'?goindex=true'
}
else
if
(
location
.
href
.
indexOf
(
'?'
)
!==
-
1
&&
location
.
href
.
indexOf
(
'goindex'
)
===
-
1
)
{
window
.
location
.
href
=
location
.
href
+
'&goindex=true'
}
}
}
src/views/CourseDetail/index.vue
View file @
8beefa98
This diff is collapsed.
Click to expand it.
src/views/Home/index.vue
View file @
8beefa98
...
@@ -62,16 +62,6 @@
...
@@ -62,16 +62,6 @@
</swipe>
</swipe>
<!--分类-->
<!--分类-->
<div
class=
"classification"
>
<div
class=
"classification"
>
<router-link
v-for=
"(item,index) in zcdshList"
:key=
"index"
:to=
"{name: 'Zcdsh', params:{url: item.url, title: item.menuName}}"
>
<div>
<img
src=
"~@assets/images/index/01_03.png"
>
<span>
{{ item.menuName }}
</span>
</div>
</router-link>
<router-link
:to=
"{name: 'OnlineExamination', params:{fromName: 'Home'}}"
>
<router-link
:to=
"{name: 'OnlineExamination', params:{fromName: 'Home'}}"
>
<div>
<div>
<img
src=
"~@assets/images/index/02_03.png"
>
<img
src=
"~@assets/images/index/02_03.png"
>
...
@@ -84,6 +74,16 @@
...
@@ -84,6 +74,16 @@
<span>
我的智学
</span>
<span>
我的智学
</span>
</div>
</div>
</router-link>
</router-link>
<router-link
v-for=
"(item,index) in zcdshList"
:key=
"index"
:to=
"{name: 'Zcdsh', params:{url: item.url, title: item.menuName}}"
>
<div>
<img
src=
"~@assets/images/index/01_03.png"
>
<span>
{{ item.menuName }}
</span>
</div>
</router-link>
</div>
</div>
<!--企业推荐-->
<!--企业推荐-->
<div
<div
...
@@ -657,6 +657,7 @@ export default {
...
@@ -657,6 +657,7 @@ export default {
this
.
HomeBLessons
(
this
.
tabsName
)
this
.
HomeBLessons
(
this
.
tabsName
)
this
.
queryMenuById
()
this
.
queryMenuById
()
window
.
addEventListener
(
'scroll'
,
this
.
handleScroll
)
window
.
addEventListener
(
'scroll'
,
this
.
handleScroll
)
this
.
$setgoindex
()
},
},
destroyed
()
{
destroyed
()
{
window
.
removeEventListener
(
'scroll'
,
this
.
handleScroll
,
false
)
window
.
removeEventListener
(
'scroll'
,
this
.
handleScroll
,
false
)
...
...
src/views/OnlineExamination/startExamination.vue
View file @
8beefa98
...
@@ -838,7 +838,7 @@ export default {
...
@@ -838,7 +838,7 @@ export default {
.nav-box{
.nav-box{
width: 100%;
width: 100%;
height: 80px;
height: 80px;
margin-top: 1
2
px;
margin-top: 1
0
px;
background: #4498F0;
background: #4498F0;
border-radius: 4px;
border-radius: 4px;
& > p{
& > p{
...
...
src/views/PersonalCenter/index.vue
View file @
8beefa98
...
@@ -186,6 +186,7 @@ export default {
...
@@ -186,6 +186,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
myInfo
()
this
.
myInfo
()
this
.
$setgoindex
()
}
}
}
}
</
script
>
</
script
>
...
...
src/views/TrainDetail/SignCode.vue
View file @
8beefa98
...
@@ -46,9 +46,12 @@ export default {
...
@@ -46,9 +46,12 @@ export default {
methods
:
{
methods
:
{
},
},
mounted
()
{
mounted
()
{
debugger
this
.
businessId
=
this
.
$route
.
query
.
businessId
this
.
businessId
=
this
.
$route
.
query
.
businessId
this
.
title
=
this
.
$route
.
query
.
title
this
.
title
=
this
.
$route
.
query
.
title
this
.
fromName
=
this
.
$route
.
query
.
fromName
this
.
fromName
=
this
.
$route
.
query
.
fromName
console
.
log
(
this
.
businessId
,
'22222222222'
)
console
.
log
(
this
.
title
,
'11111111111'
)
QRCode
.
toCanvas
(
this
.
$refs
.
qRCode
,
process
.
env
.
VUE_APP_BASE_API4
+
'/#/TrainSign?MT_ZX_QR_CODE=userCode&businessId='
+
this
.
businessId
+
'&courseName='
+
encodeURI
(
this
.
title
)
+
'&corpId=6'
,
{
margin
:
1
},
function
(
error
)
{
QRCode
.
toCanvas
(
this
.
$refs
.
qRCode
,
process
.
env
.
VUE_APP_BASE_API4
+
'/#/TrainSign?MT_ZX_QR_CODE=userCode&businessId='
+
this
.
businessId
+
'&courseName='
+
encodeURI
(
this
.
title
)
+
'&corpId=6'
,
{
margin
:
1
},
function
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
})
})
...
...
src/views/TrainDetail/TrainSign.vue
View file @
8beefa98
...
@@ -3,28 +3,28 @@
...
@@ -3,28 +3,28 @@
class=
"course-detail"
class=
"course-detail"
>
>
<div
v-if=
"!loading"
>
<div
v-if=
"!loading"
>
<div
class=
"sign-class-name"
>
<div
class=
"sign-class-name"
>
{{
courseName
}}
{{
courseName
}}
</div>
</div>
<img
<img
v-if=
"isSucess==='success'"
v-if=
"isSucess==='success'"
class=
"status-img"
class=
"status-img"
src=
"~@/assets/images/sign_success.png"
src=
"~@/assets/images/sign_success.png"
>
>
<img
<img
v-else
v-else
class=
"status-img"
class=
"status-img"
src=
"~@/assets/images/sign_error.png"
src=
"~@/assets/images/sign_error.png"
>
>
<div
:class=
"['status-text',isSucess==='success'?'success-color':'fail-color']"
>
<div
:class=
"['status-text',isSucess==='success'?'success-color':'fail-color']"
>
{{
isSucess
===
'success'
?
'签到成功'
:
'签到失败'
}}
{{
isSucess
===
'success'
?
'签到成功'
:
'签到失败'
}}
</div>
</div>
<div
class=
"sign-date"
>
<div
class=
"sign-date"
>
{{
new
Date
()
|
dateTime
}}
{{
new
Date
()
|
dateTime
}}
</div>
</div>
<div
class=
"sign-date"
v-if=
"isSucess !== 'success'"
>
<div
class=
"sign-date"
v-if=
"isSucess !== 'success'"
>
失败原因:
{{
isSucess
===
'fail1'
?
'您已签到,请勿重复签到'
:
(
isSucess
===
'fail2'
?
'未报名该培训'
:
(
isSucess
===
'fail3'
?
'当前时间不在签到时间范围内'
:
(
isSucess
===
'fail4'
?
'该课程不存在'
:
'网络错误'
)))
}}
失败原因:
{{
isSucess
===
'fail1'
?
'您已签到,请勿重复签到'
:
(
isSucess
===
'fail2'
?
'未报名该培训'
:
(
isSucess
===
'fail3'
?
'当前时间不在签到时间范围内'
:
(
isSucess
===
'fail4'
?
'该课程不存在'
:
'网络错误'
)))
}}
</div>
</div>
</div>
</div>
<Loading
<Loading
class=
"full-load"
class=
"full-load"
...
...
src/views/addTrain/index.vue
View file @
8beefa98
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment