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
2640416a
Commit
2640416a
authored
Aug 02, 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
b0e175db
de370eef
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
95 additions
and
24 deletions
+95
-24
learn.js
src/api/learn.js
+8
-0
detailLearn.vue
src/pages/cert/detailLearn.vue
+5
-2
index.vue
src/pages/index/index.vue
+5
-1
examSetting.vue
src/pages/learn/examSetting.vue
+4
-4
manualBinding.vue
src/pages/learn/manualBinding.vue
+12
-0
record.vue
src/pages/learn/record.vue
+42
-9
selectedList.vue
src/pages/learn/selectedList.vue
+1
-0
setting.vue
src/pages/mine/setting.vue
+18
-8
No files found.
src/api/learn.js
View file @
2640416a
...
@@ -97,6 +97,13 @@ let learnApiFun = function(vm) {
...
@@ -97,6 +97,13 @@ let learnApiFun = function(vm) {
'/rest/question/query/everyTaskList/'
+
questionWarehouseId
,
'/rest/question/query/everyTaskList/'
+
questionWarehouseId
,
params
params
)
)
// 练习分析
let
studyRecord
=
async
(
questionWarehouseId
,
params
=
{})
=>
await
vm
.
$u
.
get
(
'/rest/question/query/studyRecord/'
+
questionWarehouseId
,
params
)
const
learnApi
=
{
const
learnApi
=
{
getQuestion
,
getQuestion
,
getQuestionTotal
,
getQuestionTotal
,
...
@@ -120,6 +127,7 @@ let learnApiFun = function(vm) {
...
@@ -120,6 +127,7 @@ let learnApiFun = function(vm) {
searchQuestion
,
searchQuestion
,
checkGetQuestion
,
checkGetQuestion
,
everyTaskList
,
everyTaskList
,
studyRecord
,
}
}
return
learnApi
return
learnApi
}
}
...
...
src/pages/cert/detailLearn.vue
View file @
2640416a
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
</view>
</view>
<view
class=
"cert-foot"
>
<view
class=
"cert-foot"
>
<text
class=
"cert-top"
style=
"line-height: 60rpx;"
>
{{
institutionName
}}
</text>
<text
class=
"cert-top"
style=
"line-height: 60rpx;"
>
{{
institutionName
}}
</text>
<text
class=
"cert-bottom"
>
{{
start
Date
}}
</text>
<text
class=
"cert-bottom"
>
{{
end
Date
}}
</text>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -111,6 +111,9 @@ export default {
...
@@ -111,6 +111,9 @@ export default {
startDate
()
{
startDate
()
{
return
this
.
learnData
.
startDate
||
' '
return
this
.
learnData
.
startDate
||
' '
},
},
endDate
()
{
return
this
.
learnData
.
endDate
||
' '
},
learnDate
()
{
learnDate
()
{
return
String
(
this
.
learnData
.
startDate
).
length
>
1
&&
(
this
.
learnData
.
startDate
+
'~'
+
this
.
learnData
.
endDate
)
||
' '
return
String
(
this
.
learnData
.
startDate
).
length
>
1
&&
(
this
.
learnData
.
startDate
+
'~'
+
this
.
learnData
.
endDate
)
||
' '
},
},
...
@@ -208,7 +211,7 @@ export default {
...
@@ -208,7 +211,7 @@ export default {
background-image
:
url('https://qn-static.banshouhui.com/study/biantiao@2x.png')
;
background-image
:
url('https://qn-static.banshouhui.com/study/biantiao@2x.png')
;
.head-photo
{
.head-photo
{
height
:
145rpx
;
height
:
145rpx
;
padding-left
:
2
60
rpx
;
padding-left
:
2
45
rpx
;
}
}
.table-list
{
.table-list
{
padding
:
160rpx
40rpx
0
40rpx
;
padding
:
160rpx
40rpx
0
40rpx
;
...
...
src/pages/index/index.vue
View file @
2640416a
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<u-navbar
<u-navbar
back-icon-color=
"#333333"
back-icon-color=
"#333333"
background=
"transparent"
background=
"transparent"
title=
"
题库平台
"
title=
"
模考大师
"
titleColor=
"#191C27"
titleColor=
"#191C27"
:border-bottom=
"false"
:border-bottom=
"false"
title-bold
title-bold
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
<text
v-else
>
{{
title
}}
</text>
<text
v-else
>
{{
title
}}
</text>
<u-icon
class=
"icon-view"
name=
"arrow-up-fill"
></u-icon>
<u-icon
class=
"icon-view"
name=
"arrow-up-fill"
></u-icon>
</view>
</view>
<view>
{{
orgIdText
}}
</view>
<view
v-if=
"noExam"
class=
"tip-view"
>
<view
v-if=
"noExam"
class=
"tip-view"
>
<text>
您还未选择题库,请先选择题库
</text>
<text>
您还未选择题库,请先选择题库
</text>
</view>
</view>
...
@@ -128,6 +129,9 @@ export default {
...
@@ -128,6 +129,9 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
orgIdText
()
{
return
getApp
().
globalData
.
orgId
},
title
()
{
title
()
{
return
this
.
selected
.
title
||
'请选择题库'
return
this
.
selected
.
title
||
'请选择题库'
},
},
...
...
src/pages/learn/examSetting.vue
View file @
2640416a
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
>
>
<view
class=
"select-area"
>
<view
class=
"select-area"
>
<view
@
click=
"handleClickArea"
class=
"area-text-view"
>
<view
@
click=
"handleClickArea"
class=
"area-text-view"
>
<text>
{{
currentProvince
.
label
}}
</text>
<text>
{{
currentProvince
.
label
||
'请选择'
}}
</text>
<u-icon
name=
"arrow-down"
></u-icon>
<u-icon
name=
"arrow-down"
></u-icon>
</view>
</view>
<view
class=
"loading-view"
v-if=
"loading"
>
<view
class=
"loading-view"
v-if=
"loading"
>
...
@@ -112,7 +112,7 @@ export default {
...
@@ -112,7 +112,7 @@ export default {
{
id
:
'1'
,
name
:
'初训(初次考试)'
,
selected
:
false
},
{
id
:
'1'
,
name
:
'初训(初次考试)'
,
selected
:
false
},
{
id
:
'2'
,
name
:
'复训(年审或换证)'
,
selected
:
false
},
{
id
:
'2'
,
name
:
'复训(年审或换证)'
,
selected
:
false
},
],
],
currentProvince
:
{
label
:
'
北京市
'
},
currentProvince
:
{
label
:
''
},
loading
:
true
,
loading
:
true
,
showPop
:
false
,
showPop
:
false
,
range
:
[],
range
:
[],
...
@@ -218,7 +218,7 @@ export default {
...
@@ -218,7 +218,7 @@ export default {
// if (this.buttonDisabled) return
// if (this.buttonDisabled) return
if
(
this
.
range
.
length
<=
0
||
this
.
range
.
length
==
null
)
{
if
(
this
.
range
.
length
<=
0
||
this
.
range
.
length
==
null
)
{
this
.
$refs
.
uToast
.
show
({
this
.
$refs
.
uToast
.
show
({
title
:
'该类型和区域没有题库'
,
title
:
'该类型和区域没有
该
题库'
,
type
:
'warning'
,
type
:
'warning'
,
duration
:
1500
,
duration
:
1500
,
callback
:
()
=>
{
callback
:
()
=>
{
...
@@ -273,7 +273,7 @@ export default {
...
@@ -273,7 +273,7 @@ export default {
})
})
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
this
.
$refs
.
uToast
.
show
({
title
:
'该类型和区域没有题库'
,
title
:
'该类型和区域没有
该
题库'
,
type
:
'warning'
,
type
:
'warning'
,
duration
:
1500
,
duration
:
1500
,
callback
:
()
=>
{
callback
:
()
=>
{
...
...
src/pages/learn/manualBinding.vue
View file @
2640416a
...
@@ -111,6 +111,18 @@ export default {
...
@@ -111,6 +111,18 @@ export default {
},
},
methods
:
{
methods
:
{
handleClick
()
{
handleClick
()
{
if
(
!
this
.
code
||
!
this
.
password
)
{
this
.
$refs
.
uToast
.
show
({
title
:
'请输入正确的卡号、密码'
,
type
:
'warning'
,
duration
:
1500
,
callback
:
()
=>
{
this
.
showPop
=
false
},
})
return
}
this
.
loading
=
true
this
.
loading
=
true
this
.
$u
.
api
this
.
$u
.
api
.
bindCard
({
.
bindCard
({
...
...
src/pages/learn/record.vue
View file @
2640416a
...
@@ -169,23 +169,23 @@ export default {
...
@@ -169,23 +169,23 @@ export default {
onLoad
(
e
)
{
onLoad
(
e
)
{
if
(
e
&&
e
.
key
)
{
if
(
e
&&
e
.
key
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
setTimeout
(()
=>
{
//
setTimeout(() => {
this
.
scrollId
=
'part-'
+
e
.
key
this
.
scrollId
=
'part-'
+
e
.
key
},
500
)
//
}, 500)
})
})
}
}
this
.
queryExamRecord
()
this
.
chartInit
()
this
.
chartInit
()
this
.
queryExamRecord
()
},
},
methods
:
{
methods
:
{
chartInit
()
{
chartInit
()
{
this
.
chartData
.
series
=
[
this
.
chartData
.
series
=
[
{
{
name
:
'
时间轴1
'
,
name
:
'
答题数
'
,
pointShape
:
'circle'
,
pointShape
:
'circle'
,
legendShape
:
'circle'
,
legendShape
:
'circle'
,
data
:
[
data
:
[
[
10000
,
55
],
[
10000
,
55
],
// 【日期, 数值】
[
30000
,
25
],
[
30000
,
25
],
[
50000
,
55
],
[
50000
,
55
],
[
70000
,
25
],
[
70000
,
25
],
...
@@ -193,7 +193,7 @@ export default {
...
@@ -193,7 +193,7 @@ export default {
],
],
},
},
{
{
name
:
'
时间轴2
'
,
name
:
'
正确率
'
,
pointShape
:
'circle'
,
pointShape
:
'circle'
,
legendShape
:
'circle'
,
legendShape
:
'circle'
,
data
:
[
data
:
[
...
@@ -205,6 +205,7 @@ export default {
...
@@ -205,6 +205,7 @@ export default {
],
],
},
},
]
]
this
.
studyRecord
()
},
},
// 每日一练统计
// 每日一练统计
everyTaskList
(
year
,
month
)
{
everyTaskList
(
year
,
month
)
{
...
@@ -230,6 +231,37 @@ export default {
...
@@ -230,6 +231,37 @@ export default {
console
.
log
(
err
)
console
.
log
(
err
)
})
})
},
},
// 练习分析
studyRecord
(
start
,
end
)
{
var
params
=
{}
if
(
!
start
||
!
end
)
{
// 近七天
end
=
new
Date
().
getTime
()
start
=
new
Date
().
setDate
(
new
Date
().
getDay
()
-
6
)
}
console
.
log
(
'---------start---------'
,
start
,
'---------start---------'
,
end
)
params
=
{
startDate
:
this
.
$u
.
timeFormat
(
start
,
'yyyy-mm-dd'
),
endDate
:
this
.
$u
.
timeFormat
(
end
,
'yyyy-mm-dd'
),
}
this
.
$u
.
api
.
studyRecord
(
this
.
questionWarehouseId
,
params
)
.
then
((
res
)
=>
{
console
.
log
(
'----------studyRecord------------'
,
res
)
// this.days = []
// for (var item of res) {
// this.days.push(item.time.replace(/\-0/g, '\-'))
// }
})
.
catch
((
err
)
=>
{
console
.
log
(
err
)
})
},
// 模考记录
// 模考记录
queryExamRecord
()
{
queryExamRecord
()
{
this
.
recordParams
.
current
+=
1
this
.
recordParams
.
current
+=
1
...
@@ -406,6 +438,7 @@ export default {
...
@@ -406,6 +438,7 @@ export default {
.charts-content
{
.charts-content
{
width
:
100%
;
width
:
100%
;
height
:
570rpx
;
height
:
570rpx
;
padding
:
0
24rpx
10rpx
0rpx
;
.charts-box
{
.charts-box
{
width
:
100%
;
width
:
100%
;
height
:
570rpx
;
height
:
570rpx
;
...
@@ -413,10 +446,10 @@ export default {
...
@@ -413,10 +446,10 @@ export default {
}
}
}
}
.list-view
{
.list-view
{
padding-bottom
:
20
rpx
;
padding-bottom
:
44
rpx
;
.list-content
{
.list-content
{
padding
:
0
30rpx
20rpx
30rpx
;
padding
:
0
30rpx
20rpx
30rpx
;
min-height
:
44rpx
;
.show-more
{
.show-more
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
...
...
src/pages/learn/selectedList.vue
View file @
2640416a
...
@@ -83,6 +83,7 @@ export default {
...
@@ -83,6 +83,7 @@ export default {
},
},
handleAction
(
info
)
{
handleAction
(
info
)
{
this
.
setPageInfo
(
info
)
this
.
setPageInfo
(
info
)
this
.
$u
.
vuex
(
'searchHistory'
,
[])
this
.
$u
.
route
({
this
.
$u
.
route
({
type
:
'back'
,
type
:
'back'
,
})
})
...
...
src/pages/mine/setting.vue
View file @
2640416a
...
@@ -42,14 +42,24 @@ export default {
...
@@ -42,14 +42,24 @@ export default {
})
})
},
},
logout
()
{
logout
()
{
this
.
$u
.
vuex
(
'vuex_token'
,
''
)
let
that
=
this
this
.
$u
.
vuex
(
'openId'
,
''
)
uni
.
showModal
({
this
.
$u
.
vuex
(
'userInfo'
,
{})
title
:
'提示'
,
setTimeout
(()
=>
{
content
:
'确认退出当前账号'
,
this
.
$u
.
route
({
success
:
function
(
res
)
{
type
:
'back'
,
if
(
res
.
confirm
)
{
})
that
.
$u
.
vuex
(
'vuex_token'
,
''
)
},
1000
)
that
.
$u
.
vuex
(
'openId'
,
''
)
that
.
$u
.
vuex
(
'userInfo'
,
{})
setTimeout
(()
=>
{
that
.
$u
.
route
({
type
:
'back'
,
})
},
800
)
}
else
if
(
res
.
cancel
)
{
}
},
})
},
},
},
},
}
}
...
...
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