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
14f06db6
Commit
14f06db6
authored
Jul 22, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 获取省份接口
parent
afd989c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
learn.js
src/api/learn.js
+3
-0
index.vue
src/components/answer-operation-tips/index.vue
+2
-2
examSetting.vue
src/pages/learn/examSetting.vue
+5
-0
No files found.
src/api/learn.js
View file @
14f06db6
...
@@ -15,12 +15,15 @@ let learnApiFun = function(vm) {
...
@@ -15,12 +15,15 @@ let learnApiFun = function(vm) {
'/rest/question/query/getQuestionWarehouse/'
+
subjectId
,
'/rest/question/query/getQuestionWarehouse/'
+
subjectId
,
params
params
)
)
let
getProvinceList
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
'/rest/question/getProvinceList'
,
params
)
const
learnApi
=
{
const
learnApi
=
{
getQuestion
,
getQuestion
,
getQuestionTotal
,
getQuestionTotal
,
answer
,
answer
,
subjectList
,
subjectList
,
getQuestionWarehouse
,
getQuestionWarehouse
,
getProvinceList
,
}
}
return
learnApi
return
learnApi
}
}
...
...
src/components/answer-operation-tips/index.vue
View file @
14f06db6
...
@@ -54,7 +54,7 @@ export default {
...
@@ -54,7 +54,7 @@ export default {
},
},
computed
:
{
computed
:
{
imageUrl
()
{
imageUrl
()
{
return
'/static/logo
.png'
return
process
.
uniEnv
.
qn_base_url
+
'zuoyouqiehuantishi
.png'
},
},
buttonStyle
()
{
buttonStyle
()
{
return
{
return
{
...
@@ -87,7 +87,7 @@ export default {
...
@@ -87,7 +87,7 @@ export default {
text-align
:
center
;
text-align
:
center
;
.tip-image
{
.tip-image
{
width
:
6
70
rpx
;
width
:
6
62
rpx
;
height
:
136rpx
;
height
:
136rpx
;
margin-bottom
:
60rpx
;
margin-bottom
:
60rpx
;
}
}
...
...
src/pages/learn/examSetting.vue
View file @
14f06db6
...
@@ -166,6 +166,7 @@ export default {
...
@@ -166,6 +166,7 @@ export default {
onLoad
(
e
)
{
onLoad
(
e
)
{
this
.
getPageInfo
()
this
.
getPageInfo
()
this
.
getLocation
()
this
.
getLocation
()
this
.
getProvinceList
()
},
},
methods
:
{
methods
:
{
handleClickArea
()
{
handleClickArea
()
{
...
@@ -198,6 +199,10 @@ export default {
...
@@ -198,6 +199,10 @@ export default {
handleClickSure
()
{
handleClickSure
()
{
this
.
showPop
=
true
this
.
showPop
=
true
},
},
async
getProvinceList
()
{
let
res
=
await
this
.
$u
.
api
.
getProvinceList
()
console
.
log
(
res
)
},
async
handleClickSubmit
()
{
async
handleClickSubmit
()
{
if
(
this
.
buttonDisabled
)
return
if
(
this
.
buttonDisabled
)
return
let
param
=
{
let
param
=
{
...
...
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