Commit e66ecc7a by cocomilk2012

update

parent 5b68a579
<template> <template>
<!-- 1、已接单 进行中 #077AEC 2、已拒回 #FF9100 3、已完成 #95989E--> <!-- 1、已接单 进行中 #077AEC 2、已拒回 #FF9100 3、已完成 #95989E-->
<div class="fe-bigbox"> <div class="fe-bigbox">
<div v-if="showList == 1"> <div >
<div class="person-information"> <div class="person-information">
<div class="person-information-top"> <div class="person-information-top">
<div class="person-information-left"> <div class="person-information-left">
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<div class="close-box" @click="expand_click"> <div class="close-box" @click="expand_click">
<img src="../assets/images/ic_unfold@2x.png" /> <img src="../assets/images/ic_unfold@2x.png" />
</div> </div>
<div class="green-bg"> <div class="green-bg" v-if="showList == 1">
<div class="fe-list-box"> <div class="fe-list-box">
<div class="fe-list-title"> <div class="fe-list-title">
<h3>任务记录</h3> <h3>任务记录</h3>
...@@ -92,15 +92,15 @@ ...@@ -92,15 +92,15 @@
</a> </a>
</div> </div>
</div> </div>
</van-popup>
</div>
<div class="empty_data" v-if="showList == 0"> <div class="empty_data" v-if="showList == 0">
<p> <p>
您在亲亲小保未从事灵活用工的相关任务 您在亲亲小保未从事灵活用工的相关任务
<br />暂无相关记录 <br />暂无相关记录
</p> </p>
</div> </div>
<div class="white_slide"></div> </van-popup>
</div>
</div> </div>
</template> </template>
...@@ -166,24 +166,13 @@ export default class FlexEmployee extends Vue { ...@@ -166,24 +166,13 @@ export default class FlexEmployee extends Vue {
console.log("res=", res); console.log("res=", res);
this.accept_work = res.alCount; // 已接任务 this.accept_work = res.alCount; // 已接任务
this.perform_work = res.comCount; // 完成任务 this.perform_work = res.comCount; // 完成任务
this.Payment_receivable = res.receivableSalary this.Payment_receivable = res.receivableSalary ? res.receivableSalary.toFixed(2) : 0.0; // 应收报酬
? res.receivableSalary.toFixed(2) this.receive_receivable = res.receivedSalary ? res.receivedSalary.toFixed(2) : 0.0; // 已收报酬
: 0.0; // 应收报酬 this.taskRecordList = res.taskList == null ? [] : res.taskList; // 任务记录
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 > 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 { ...@@ -216,10 +205,10 @@ export default class FlexEmployee extends Vue {
.empty_data p { .empty_data p {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #fff; color: #999999;
line-height: 24px; line-height: 24px;
text-align: center; text-align: center;
margin-top: 256px; margin-top: 156px;
} }
.person-information { .person-information {
...@@ -369,11 +358,11 @@ export default class FlexEmployee extends Vue { ...@@ -369,11 +358,11 @@ export default class FlexEmployee extends Vue {
max-height: 100%; max-height: 100%;
overflow-y: auto; overflow-y: auto;
background-color: #fff; background-color: #fff;
-webkit-transition: -webkit-transform .3s; -webkit-transition: -webkit-transform 0.3s;
transition: -webkit-transform .3s; transition: -webkit-transform 0.3s;
transition: transform .3s; transition: transform 0.3s;
transition: transform .3s, -webkit-transform .3s; transition: transform 0.3s, -webkit-transform 0.3s;
transition: transform .3s,-webkit-transform .3s; transition: transform 0.3s, -webkit-transform 0.3s;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
</style> </style>
\ No newline at end of file
...@@ -104,6 +104,7 @@ export default class SelectIdentity extends Vue { ...@@ -104,6 +104,7 @@ export default class SelectIdentity extends Vue {
private async getUserInfo() { private async getUserInfo() {
await this.$server.EmployeeService.getUserInfo({}) await this.$server.EmployeeService.getUserInfo({})
.then(res => { .then(res => {
if (res.data && res.data.uthStatus && res.data.uthStatus > 0) { if (res.data && res.data.uthStatus && res.data.uthStatus > 0) {
this.id_no = res.data.personalIdCardNo; this.id_no = res.data.personalIdCardNo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment