Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
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
Damon
study
Commits
1db7461c
Commit
1db7461c
authored
Jul 30, 2021
by
Damon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-v1.0.0' of git.banshouhui.com:wuzhenzhe/study into dev-v1.0.0
parents
ab6b09d4
4ce3aa8d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
37 deletions
+62
-37
detailLearn.vue
src/pages/cert/detailLearn.vue
+1
-1
index.vue
src/pages/index/index.vue
+39
-32
examSetting.vue
src/pages/learn/examSetting.vue
+2
-2
manualBinding.vue
src/pages/learn/manualBinding.vue
+20
-2
No files found.
src/pages/cert/detailLearn.vue
View file @
1db7461c
...
...
@@ -136,7 +136,7 @@ export default {
return
String
(
this
.
learnData
.
startDate
).
length
>
0
?
this
.
learnData
.
time
:
''
},
resultForTest
()
{
return
String
(
this
.
learnData
.
startDate
).
length
>
0
?
((
this
.
learnData
.
maxPoint
>
80
&&
'合格'
)
||
'不合格'
)
:
''
return
String
(
this
.
learnData
.
startDate
).
length
>
0
?
((
this
.
learnData
.
maxPoint
>
=
80
&&
'合格'
)
||
'不合格'
)
:
''
},
},
methods
:
{
...
...
src/pages/index/index.vue
View file @
1db7461c
...
...
@@ -351,6 +351,12 @@ export default {
},
// 每日一练
handleAnswer
()
{
if
(
!
this
.
vuex_token
)
{
this
.
$u
.
route
({
url
:
'pages/login/index'
,
})
return
}
if
(
this
.
info
.
cardId
)
{
// 练习
this
.
$u
.
route
({
...
...
@@ -378,9 +384,6 @@ export default {
},
})
}
else
{
// 绑卡提示
// this.type = 'bound'
// this.show = true
this
.
$u
.
route
({
url
:
'pages/learn/detail'
,
params
:
{
...
...
@@ -391,12 +394,15 @@ export default {
}
}
else
{
this
.
show
=
true
// this.$u.route({
// url: 'pages/learn/selectCategory',
// })
}
},
handleClickLeftTop
()
{
if
(
!
this
.
vuex_token
)
{
this
.
$u
.
route
({
url
:
'pages/login/index'
,
})
return
}
this
.
$u
.
route
({
url
:
'pages/learn/selectCategory'
,
})
...
...
@@ -413,6 +419,12 @@ export default {
})
},
handleClickItem
(
key
)
{
if
(
!
this
.
vuex_token
)
{
this
.
$u
.
route
({
url
:
'pages/login/index'
,
})
return
}
if
(
this
.
info
.
id
)
{
// 跳转到学练记录
this
.
$u
.
route
({
...
...
@@ -429,8 +441,6 @@ export default {
}
},
handleClickExperience
()
{
// this.selected.state = false
// this.$u.vuex('experience', false)
// 体验
// 1.顺序答题 2.随机练习 3.模拟考试 4.收藏答题 5.错题答题 6.专项练习-单选 7.专项练习-多选 8.专项练习-判断 9.专项练习-答案是
this
.
$u
.
route
({
...
...
@@ -444,6 +454,12 @@ export default {
})
},
handleClickExam
(
index
)
{
if
(
!
this
.
vuex_token
)
{
this
.
$u
.
route
({
url
:
'pages/login/index'
,
})
return
}
if
(
this
.
info
.
cardId
)
{
// 已绑卡
if
(
index
==
0
)
{
...
...
@@ -462,10 +478,6 @@ export default {
}
}
else
if
(
this
.
info
.
id
)
{
// 已选题库
// 绑卡
// this.type = 'bound'
// this.show = true
this
.
$u
.
route
({
url
:
'pages/learn/detail'
,
params
:
{
...
...
@@ -476,12 +488,15 @@ export default {
}
else
{
// 未选题库
this
.
show
=
true
// this.$u.route({
// url: 'pages/learn/selectCategory',
// })
}
},
handleClick
(
path
,
params
)
{
if
(
!
this
.
vuex_token
)
{
this
.
$u
.
route
({
url
:
'pages/login/index'
,
})
return
}
if
(
this
.
info
.
cardId
)
{
if
(
params
)
{
this
.
setPageInfo
(
params
)
...
...
@@ -492,9 +507,6 @@ export default {
})
}
else
if
(
this
.
info
.
id
)
{
// 已选题库未绑卡
// 绑卡
// this.type = 'bound'
// this.show = true
this
.
$u
.
route
({
url
:
'pages/learn/detail'
,
params
:
{
...
...
@@ -504,9 +516,6 @@ export default {
})
}
else
{
this
.
show
=
true
// this.$u.route({
// url: 'pages/learn/selectCategory',
// })
}
},
// getProvinceList() {
...
...
@@ -527,17 +536,15 @@ export default {
}
},
chagefinishCount
()
{
this
.
finishCount
=
this
.
questionList
[
this
.
questionWarehouseId
]
?
this
.
questionList
[
this
.
questionWarehouseId
].
reduce
(
(
accumulator
,
currentValue
)
=>
{
if
(
currentValue
.
submitStatus
)
accumulator
++
return
accumulator
},
0
)
:
0
this
.
finishCount
=
this
.
answerCount
[
this
.
questionWarehouseId
]
||
0
},
handleSelectTip
()
{
if
(
!
this
.
vuex_token
)
{
this
.
$u
.
route
({
url
:
'pages/login/index'
,
})
return
}
this
.
$u
.
route
({
url
:
'pages/learn/detail'
,
params
:
{
...
...
@@ -654,7 +661,7 @@ export default {
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin
:
6
0rpx
0
160rpx
0
;
margin
:
3
0rpx
0
160rpx
0
;
.sub-content-item
{
color
:
#5a6073
;
font-size
:
26rpx
;
...
...
@@ -680,7 +687,7 @@ export default {
align-items
:
center
;
justify-content
:
space-between
;
.list-view
{
width
:
3
4
0rpx
;
width
:
3
3
0rpx
;
height
:
136rpx
;
border-radius
:
16rpx
;
display
:
flex
;
...
...
src/pages/learn/examSetting.vue
View file @
1db7461c
...
...
@@ -218,7 +218,7 @@ export default {
// if (this.buttonDisabled) return
if
(
this
.
range
.
length
<=
0
||
this
.
range
.
length
==
null
)
{
this
.
$refs
.
uToast
.
show
({
title
:
'该类型和区域没有
的
题库'
,
title
:
'该类型和区域没有题库'
,
type
:
'warning'
,
duration
:
1500
,
callback
:
()
=>
{
...
...
@@ -273,7 +273,7 @@ export default {
})
}
else
{
this
.
$refs
.
uToast
.
show
({
title
:
'该类型和区域没有
的
题库'
,
title
:
'该类型和区域没有题库'
,
type
:
'warning'
,
duration
:
1500
,
callback
:
()
=>
{
...
...
src/pages/learn/manualBinding.vue
View file @
1db7461c
...
...
@@ -31,7 +31,7 @@
<view
class=
"field-view"
>
<u-input
class=
"input-view"
password
type=
"password"
input-align=
"center"
v-model=
"password"
placeholder=
"请输入密码"
...
...
@@ -145,7 +145,25 @@ export default {
},
}
</
script
>
<
style
lang=
"scss"
>
.bound-questions
{
.u-flex
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
// background-color: green;
}
.u-input__right-icon__item
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
height
:
100%
;
// background-color: red;
width
:
60rpx
;
flex-shrink
:
0
;
}
}
</
style
>
<
style
lang=
"scss"
scoped
>
::-webkit-scrollbar
{
width
:
0
;
...
...
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