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
7e984544
Commit
7e984544
authored
Jul 28, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement: 图库通过率同一次登录保持一致
parent
4accd242
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
index.vue
src/components/question-bank-cell/index.vue
+1
-1
index.vue
src/pages/index/index.vue
+6
-1
selectedList.vue
src/pages/learn/selectedList.vue
+7
-0
No files found.
src/components/question-bank-cell/index.vue
View file @
7e984544
...
...
@@ -6,7 +6,7 @@
共
<text
class=
"label-blue"
>
{{
info
.
number
}}
</text
>
道精编试题,通过率
<text
class=
"label-blue"
>
{{
$u
.
random
(
95
,
99
)
}}
%
</text>
<text
class=
"label-blue"
>
{{
info
.
pass
||
$u
.
random
(
95
,
99
)
}}
%
</text>
</view>
</view>
<u-button
...
...
src/pages/index/index.vue
View file @
7e984544
...
...
@@ -123,6 +123,7 @@ export default {
loading
:
false
,
canExperience
:
false
,
// 体验资格
finishCount
:
0
,
pass
:
this
.
$u
.
random
(
95
,
99
),
}
},
computed
:
{
...
...
@@ -169,7 +170,7 @@ export default {
this
.
data
.
questionWarehouse
.
echoMap
.
provinceId
&&
this
.
data
.
questionWarehouse
.
echoMap
.
provinceId
.
fullName
,
experience
:
this
.
canExperience
,
pass
:
this
.
$u
.
random
(
95
,
99
)
+
'%'
,
pass
:
this
.
pass
+
'%'
,
days
:
this
.
detail
.
totalDayCount
||
0
,
today
:
this
.
detail
.
todayCount
||
0
,
total
:
this
.
detail
.
totalCount
||
0
,
...
...
@@ -261,6 +262,7 @@ export default {
this
.
selected
=
info
page
.
info
=
null
this
.
visible
=
info
.
state
this
.
pass
=
this
.
$u
.
random
(
95
,
99
)
this
.
queryMyQuestionWarehouseDetail
(
this
.
selected
.
id
)
}
else
{
this
.
queryMyQuestionWarehouseDetail
(
this
.
info
.
id
||
0
)
...
...
@@ -339,6 +341,9 @@ export default {
var
str
=
this
.
info
.
id
?
'selectedList'
:
'selectCategory'
this
.
$u
.
route
({
url
:
'pages/learn/'
+
str
,
params
:
{
pass
:
this
.
pass
,
},
})
},
// 每日一练
...
...
src/pages/learn/selectedList.vue
View file @
7e984544
...
...
@@ -51,6 +51,7 @@ export default {
return
{
list
:
[],
// 已选题库列表
loading
:
true
,
currentPass
:
null
,
}
},
computed
:
{
...
...
@@ -68,6 +69,9 @@ export default {
},
},
onLoad
(
e
)
{
if
(
e
&&
e
.
pass
)
{
this
.
currentPass
=
e
.
pass
}
this
.
loadList
()
// 获取已选题库列表
},
methods
:
{
...
...
@@ -94,6 +98,9 @@ export default {
for
(
var
item
of
res
)
{
if
(
item
&&
item
.
echoMap
&&
item
.
echoMap
.
questionWarehouseId
)
{
item
.
echoMap
.
questionWarehouseId
.
number
=
item
.
number
if
(
item
.
questionWarehouseId
==
this
.
questionWarehouseId
)
{
item
.
echoMap
.
questionWarehouseId
.
pass
=
this
.
currentPass
}
}
}
this
.
list
=
res
...
...
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