Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
frontend
/
qqxb-self-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e66ecc7a
authored
Jun 30, 2020
by
cocomilk2012
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
5b68a579
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
38 deletions
src/views/FlexEmployee.vue
src/views/SelectIdentity.vue
src/views/FlexEmployee.vue
View file @
e66ecc7a
<
template
>
<!-- 1、已接单 进行中 #077AEC 2、已拒回 #FF9100 3、已完成 #95989E-->
<div
class=
"fe-bigbox"
>
<div
v-if=
"showList == 1"
>
<div
>
<div
class=
"person-information"
>
<div
class=
"person-information-top"
>
<div
class=
"person-information-left"
>
...
...
@@ -52,7 +52,7 @@
<div
class=
"close-box"
@
click=
"expand_click"
>
<img
src=
"../assets/images/ic_unfold@2x.png"
/>
</div>
<div
class=
"green-bg"
>
<div
class=
"green-bg"
v-if=
"showList == 1"
>
<div
class=
"fe-list-box"
>
<div
class=
"fe-list-title"
>
<h3>
任务记录
</h3>
...
...
@@ -92,15 +92,15 @@
</a>
</div>
</div>
</van-popup>
</div>
<div
class=
"empty_data"
v-if=
"showList == 0"
>
<div
class=
"empty_data"
v-if=
"showList == 0"
>
<p>
您在亲亲小保未从事灵活用工的相关任务
<br
/>
暂无相关记录
</p>
</div>
<div
class=
"white_slide"
></div>
</van-popup>
</div>
</div>
</
template
>
...
...
@@ -166,24 +166,13 @@ export default class FlexEmployee extends Vue {
console
.
log
(
"res="
,
res
);
this
.
accept_work
=
res
.
alCount
;
// 已接任务
this
.
perform_work
=
res
.
comCount
;
// 完成任务
this
.
Payment_receivable
=
res
.
receivableSalary
?
res
.
receivableSalary
.
toFixed
(
2
)
:
0.0
;
// 应收报酬
this
.
receive_receivable
=
res
.
receivedSalary
?
res
.
receivedSalary
.
toFixed
(
2
)
:
0.0
;
// 已收报酬
this
.
taskRecordList
=
res
.
taskList
==
null
?[]:
res
.
taskList
;
// 任务记录
this
.
Payment_receivable
=
res
.
receivableSalary
?
res
.
receivableSalary
.
toFixed
(
2
)
:
0.0
;
// 应收报酬
this
.
receive_receivable
=
res
.
receivedSalary
?
res
.
receivedSalary
.
toFixed
(
2
)
:
0.0
;
// 已收报酬
this
.
taskRecordList
=
res
.
taskList
==
null
?
[]
:
res
.
taskList
;
// 任务记录
this
.
taskRecordList
.
length
>
0
?
(
this
.
showList
=
1
)
:
(
this
.
showList
=
0
);
this
.
taskRecordList
.
length
>=
3
?
this
.
expand
=
false
:
this
.
expand
=
true
;
if
(
this
.
taskRecordList
.
length
>=
3
)
{
this
.
expand
=
false
;
}
else
{
this
.
expand
=
true
;
}
const
temp
=
this
.
taskRecordList
[
0
]
this
.
taskRecordList
=
[];
this
.
taskRecordList
[
0
]
=
temp
;
localStorage
.
setItem
(
"taskList"
,
JSON
.
stringify
(
this
.
taskRecordList
));
});
}
}
...
...
@@ -216,10 +205,10 @@ export default class FlexEmployee extends Vue {
.empty_data
p
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#
fff
;
color
:
#
999999
;
line-height
:
24px
;
text-align
:
center
;
margin-top
:
2
56px
;
margin-top
:
1
56px
;
}
.person-information
{
...
...
@@ -357,23 +346,23 @@ export default class FlexEmployee extends Vue {
}
.van-popup--bottom.van-popup--round
{
border-radius
:
0.53333rem
0.53333rem
0
0
;
border-radius
:
0.53333rem
0.53333rem
0
0
;
}
.van-popup--bottom
{
bottom
:
0
;
left
:
0
;
width
:
100%
;
bottom
:
0
;
left
:
0
;
width
:
100%
;
}
.van-popup
{
position
:
fixed
;
max-height
:
100%
;
overflow-y
:
auto
;
background-color
:
#fff
;
-webkit-transition
:
-webkit-transform
.3s
;
transition
:
-webkit-transform
.3s
;
transition
:
transform
.3s
;
transition
:
transform
.3s
,
-webkit-transform
.3s
;
transition
:
transform
.3s
,
-webkit-transform
.3s
;
-webkit-overflow-scrolling
:
touch
;
position
:
fixed
;
max-height
:
100%
;
overflow-y
:
auto
;
background-color
:
#fff
;
-webkit-transition
:
-webkit-transform
0
.3s
;
transition
:
-webkit-transform
0
.3s
;
transition
:
transform
0
.3s
;
transition
:
transform
0.3s
,
-webkit-transform
0
.3s
;
transition
:
transform
0.3s
,
-webkit-transform
0
.3s
;
-webkit-overflow-scrolling
:
touch
;
}
</
style
>
\ No newline at end of file
src/views/SelectIdentity.vue
View file @
e66ecc7a
...
...
@@ -104,6 +104,7 @@ export default class SelectIdentity extends Vue {
private
async
getUserInfo
()
{
await
this
.
$server
.
EmployeeService
.
getUserInfo
({})
.
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
uthStatus
&&
res
.
data
.
uthStatus
>
0
)
{
this
.
id_no
=
res
.
data
.
personalIdCardNo
;
...
...
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