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
de960bd0
Commit
de960bd0
authored
Jul 23, 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
10783d78
a1efe6ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
25 deletions
+70
-25
user.js
src/api/user.js
+7
-0
bank.vue
src/pages/mine/bank.vue
+63
-25
No files found.
src/api/user.js
View file @
de960bd0
...
@@ -18,12 +18,19 @@ let userApiFun = function(vm) {
...
@@ -18,12 +18,19 @@ let userApiFun = function(vm) {
let
getCertList
=
async
(
params
=
{})
=>
let
getCertList
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
apiUrl
+
'/rest/certificate/query'
,
params
)
await
vm
.
$u
.
post
(
apiUrl
+
'/rest/certificate/query'
,
params
)
let
getUserQuestionWareHouse
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
apiUrl
+
'/rest/question/query/getMyQuestionWarehouseList'
,
params
)
const
userApi
=
{
const
userApi
=
{
updateUserInfo
,
updateUserInfo
,
getUserInfo
,
getUserInfo
,
checkIdCardFront
,
checkIdCardFront
,
checkIdCardBack
,
checkIdCardBack
,
getCertList
,
getCertList
,
getUserQuestionWareHouse
,
}
}
return
userApi
return
userApi
}
}
...
...
src/pages/mine/bank.vue
View file @
de960bd0
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
:border-bottom=
"false"
:border-bottom=
"false"
title-bold
title-bold
></u-navbar>
></u-navbar>
<view
class=
"content"
>
<view
class=
"content"
v-if=
"lists.length > 0"
>
<!--
<text
class=
"title"
>
{{
title
}}
</text>
-->
<!--
<text
class=
"title"
>
{{
title
}}
</text>
-->
<my-subject
<my-subject
class=
"subject-item"
class=
"subject-item"
...
@@ -21,6 +21,17 @@
...
@@ -21,6 +21,17 @@
:statusStyle=
"item.statusStyle"
:statusStyle=
"item.statusStyle"
></my-subject>
></my-subject>
</view>
</view>
<view
class=
"content"
v-else
>
<u-image
width=
"374rpx"
height=
"322rpx"
:src=
"nothing"
style=
"margin-top: 100rpx;"
></u-image>
<text
style=
"margin-top: 20rpx;font-size: 28rpx;color: #9EA5BB;"
>
当前暂无题库内容
</text
>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -33,30 +44,57 @@ export default {
...
@@ -33,30 +44,57 @@ export default {
data
()
{
data
()
{
return
{
return
{
title
:
'我的题库'
,
title
:
'我的题库'
,
lists
:
[
nothing
:
process
.
uniEnv
.
qn_base_url
+
'zanwucuoti@3x.png'
,
{
lists
:
[],
time
:
'2021.06.25 18:06'
,
}
status
:
'已激活'
,
title
:
'高处安装、维护、拆除作业人员'
,
subtitle
:
'题库将于48天后到期'
,
statusStyle
:
{
color
:
'#2953FF'
},
},
{
time
:
'2021.05.25 14:05'
,
status
:
'已绑定'
,
title
:
'高处安装、维护、拆除作业人员'
,
subtitle
:
'题库将于88天后到期'
,
statusStyle
:
{
color
:
'#2953FF'
},
},
{
time
:
'2021.07.25 11:06'
,
status
:
'已失效'
,
title
:
'高处安装、维护、拆除作业人员'
,
subtitle
:
'题库已过期'
,
statusStyle
:
{
color
:
'#9EA5BB'
},
},
},
],
onLoad
()
{
this
.
$u
.
api
.
getUserQuestionWareHouse
().
then
((
res
)
=>
{
let
length
=
res
.
length
if
(
res
.
length
<=
0
)
{
this
.
lists
=
[]
}
let
data
=
[]
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
data
[
i
]
=
{}
if
(
!
res
[
i
].
echoMap
||
!
res
[
i
].
echoMap
.
questionWarehouseId
||
!
res
[
i
].
echoMap
.
cardId
)
{
continue
}
//绑卡或支付时间
data
[
i
].
title
=
res
[
i
].
echoMap
.
questionWarehouseId
.
title
data
[
i
].
subtitle
=
res
[
i
].
echoMap
.
questionWarehouseId
.
subtitle
data
[
i
].
time
=
res
[
i
].
echoMap
.
cardId
.
bindingTime
||
res
[
i
].
echoMap
.
cardId
.
buyTime
||
''
let
status
=
''
switch
(
res
[
i
].
echoMap
.
cardId
.
cardStatus
)
{
case
0
:
status
=
'未绑定'
break
case
5
:
status
=
'已绑定'
break
case
10
:
status
=
'已激活'
break
case
15
:
status
=
'已失效'
break
default
:
break
}
data
[
i
].
status
=
status
data
[
i
].
statusStyle
=
{
color
:
'#2953FF'
}
}
}
this
.
lists
=
data
console
.
log
(
data
)
})
},
},
}
}
</
script
>
</
script
>
...
@@ -76,7 +114,7 @@ page {
...
@@ -76,7 +114,7 @@ page {
.begin-answer
{
.begin-answer
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
background-image
:
linear-gradient
(
to
top
,
#f7f9fc
0%
,
#e9f3ff
4
0%
);
background-image
:
linear-gradient
(
to
top
,
#f7f9fc
0%
,
#e9f3ff
2
0%
);
background-color
:
#f7f9fc
;
background-color
:
#f7f9fc
;
background-size
:
100%
920rpx
;
background-size
:
100%
920rpx
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
...
...
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