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
7e4a486a
authored
Jul 03, 2020
by
cocomilk2012
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
918e6d20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
11 deletions
src/views/FlexEmployee.vue
src/views/FlexEmployee.vue
View file @
7e4a486a
<
template
>
<!-- 1、已接单 进行中 #077AEC 2、已拒回 #FF9100 3、已完成 #95989E-->
<div
class=
"fe-bigbox"
>
<div
>
<div>
<div
class=
"person-information"
>
<div
class=
"person-information-top"
>
<div
class=
"person-information-left"
>
...
...
@@ -93,14 +93,13 @@
</div>
</div>
<div
class=
"empty_data"
v-if=
"showList == 0"
>
<p>
您在亲亲小保未从事灵活用工的相关任务
<br
/>
暂无相关记录
</p>
</div>
<p>
您在亲亲小保未从事灵活用工的相关任务
<br
/>
暂无相关记录
</p>
</div>
</van-popup>
</div>
</div>
</
template
>
...
...
@@ -155,7 +154,37 @@ export default class FlexEmployee extends Vue {
};
}
private
callJSBridage
()
{
const
userAgent
=
navigator
.
userAgent
.
toLowerCase
();
console
.
log
(
"userAgent="
,
userAgent
);
try
{
if
(
userAgent
.
indexOf
(
"qqxbua"
)
!=
-
1
)
{
console
.
log
(
"setPageNavState"
);
//@ts-ignore
this
.
$bridge
.
setPageNavState
({
isShowClose
:
false
,
isShowBack
:
true
,
isCloseLeft
:
false
,
isShowTitle
:
true
,
isShowNav
:
true
,
isCloseWebView
:
false
})
//@ts-ignore
.
then
(
res
=>
{
console
.
log
(
"couponlist setpageNavState callback"
,
res
);
});
}
}
catch
(
error
)
{
console
.
log
(
error
);
}
}
mounted
()
{
setTimeout
(()
=>
{
this
.
callJSBridage
();
},
500
);
this
.
name
=
localStorage
.
getItem
(
"name"
)
as
string
;
this
.
birthday
=
localStorage
.
getItem
(
"birthday"
)
as
string
;
const
idNo
=
window
.
atob
(
decodeURI
(
String
(
this
.
$route
.
query
.
id_no
)));
...
...
@@ -166,12 +195,20 @@ 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
.
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
;
this
.
taskRecordList
.
length
>
0
?
(
this
.
showList
=
1
)
:
(
this
.
showList
=
0
);
this
.
taskRecordList
.
length
>=
3
?
(
this
.
expand
=
false
)
:
(
this
.
expand
=
true
);
localStorage
.
setItem
(
"taskList"
,
JSON
.
stringify
(
this
.
taskRecordList
));
});
}
...
...
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