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
5d886a48
Commit
5d886a48
authored
Jul 28, 2021
by
linwenqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:我的主页刷题量字段获取方法添加
parent
9d2e9d6c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
user.js
src/api/user.js
+4
-0
mine.vue
src/pages/index/mine.vue
+5
-1
info.vue
src/pages/mine/info.vue
+3
-9
No files found.
src/api/user.js
View file @
5d886a48
...
@@ -37,6 +37,9 @@ let userApiFun = function(vm) {
...
@@ -37,6 +37,9 @@ let userApiFun = function(vm) {
apiUrl
+
'/rest/question/query/allStudentQuestionWarehouse'
,
apiUrl
+
'/rest/question/query/allStudentQuestionWarehouse'
,
params
params
)
)
//获取用户刷题量
let
getUserDoQuestionNum
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
apiUrl
+
'/rest/question/total/question/count'
,
params
)
const
userApi
=
{
const
userApi
=
{
updateUserInfo
,
updateUserInfo
,
...
@@ -49,6 +52,7 @@ let userApiFun = function(vm) {
...
@@ -49,6 +52,7 @@ let userApiFun = function(vm) {
getCertFromOut
,
getCertFromOut
,
getCertifyInfoByType
,
getCertifyInfoByType
,
getUserQuestionWareHouse
,
getUserQuestionWareHouse
,
getUserDoQuestionNum
,
}
}
return
userApi
return
userApi
}
}
...
...
src/pages/index/mine.vue
View file @
5d886a48
...
@@ -109,6 +109,7 @@ export default {
...
@@ -109,6 +109,7 @@ export default {
'workUnit'
,
'workUnit'
,
],
],
student
:
{},
student
:
{},
shauTiCount
:
0
,
}
}
},
},
computed
:
{
computed
:
{
...
@@ -129,7 +130,7 @@ export default {
...
@@ -129,7 +130,7 @@ export default {
return
this
.
userInfo
.
nickName
!=
undefined
return
this
.
userInfo
.
nickName
!=
undefined
},
},
loginTips
()
{
loginTips
()
{
return
(
this
.
student
&&
this
.
student
.
consumeAmount
)
||
0
return
this
.
shauTiCount
||
0
},
},
avatar
()
{
avatar
()
{
return
(
return
(
...
@@ -161,6 +162,9 @@ export default {
...
@@ -161,6 +162,9 @@ export default {
this
.
$u
.
api
.
getUserInfo
().
then
((
res
)
=>
{
this
.
$u
.
api
.
getUserInfo
().
then
((
res
)
=>
{
this
.
student
=
res
this
.
student
=
res
getApp
().
globalData
.
student
=
res
getApp
().
globalData
.
student
=
res
this
.
$u
.
api
.
getUserDoQuestionNum
().
then
((
ret
)
=>
{
this
.
shauTiCount
=
ret
||
0
})
})
})
}
}
},
},
...
...
src/pages/mine/info.vue
View file @
5d886a48
...
@@ -24,12 +24,7 @@
...
@@ -24,12 +24,7 @@
></u-image>
></u-image>
</view>
</view>
</u-cell-item>
</u-cell-item>
<u-cell-item
<u-cell-item
title=
"证件照"
@
click=
"changeCertPhoto"
>
title=
"证件照"
@
click=
"changeCertPhoto"
:arrow=
"false"
:hover-class=
"none"
>
<view
slot=
"right-icon"
>
<view
slot=
"right-icon"
>
<u-image
<u-image
v-if=
"headCertPhoto"
v-if=
"headCertPhoto"
...
@@ -40,13 +35,12 @@
...
@@ -40,13 +35,12 @@
<text
v-else
style=
"color:#2953FF"
>
去上传
</text>
<text
v-else
style=
"color:#2953FF"
>
去上传
</text>
</view>
</view>
</u-cell-item>
</u-cell-item>
<u-cell-item
title=
"手机号"
:arrow=
"false"
:hover-class=
"none"
>
<u-cell-item
title=
"手机号"
>
<view
slot=
"right-icon"
>
<view
slot=
"right-icon"
>
<button
<button
hover-class=
"none"
class=
"mobile-button"
open-type=
"getPhoneNumber"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhonenumber"
@
getphonenumber=
"getPhonenumber"
style=
"background: none;font-size: 26rpx;padding-right: 0;"
>
>
<text
v-if=
"getMobile"
>
{{
getMobile
}}
</text>
<text
v-if=
"getMobile"
>
{{
getMobile
}}
</text>
<text
v-else
class=
"empty-value"
>
去绑定
</text>
<text
v-else
class=
"empty-value"
>
去绑定
</text>
...
...
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