Commit 2903eb4d by cocomilk2012

update

parent 35e5169b
...@@ -93,8 +93,8 @@ import { Component, Vue } from "vue-property-decorator"; ...@@ -93,8 +93,8 @@ import { Component, Vue } from "vue-property-decorator";
// } // }
}) })
export default class FlexEmployee extends Vue { export default class FlexEmployee extends Vue {
private name: string = "迪丽热巴"; //入参 private name: string = ""; //入参
private birthday: string = "1987-10-16"; //入参 private birthday: string = ""; //
private accept_work: string = ""; private accept_work: string = "";
private perform_work: string = ""; private perform_work: string = "";
...@@ -122,6 +122,8 @@ export default class FlexEmployee extends Vue { ...@@ -122,6 +122,8 @@ export default class FlexEmployee extends Vue {
} }
mounted() { mounted() {
this.name = localStorage.getItem("name") as string;
this.birthday = localStorage.getItem("birthday") as string;
let params = { let params = {
idNo: this.$route.query.id_no //371327198511175134 idNo: this.$route.query.id_no //371327198511175134
}; };
......
...@@ -7,7 +7,12 @@ ...@@ -7,7 +7,12 @@
<p>可查看专项订单服务,使用职场小工具</p> <p>可查看专项订单服务,使用职场小工具</p>
</div> </div>
</a>--> </a>-->
<a v-if="company_num>0" class="si-child" id="dispatch-employee" @click="toIndex_click"> <a
v-if="company_num > 0"
class="si-child"
id="dispatch-employee"
@click="toIndex_click"
>
<img src="../assets/images/agent/dispatch-employee.png" alt /> <img src="../assets/images/agent/dispatch-employee.png" alt />
<div class="si-child-desc"> <div class="si-child-desc">
<h4>我是派遣员工</h4> <h4>我是派遣员工</h4>
...@@ -79,6 +84,8 @@ export default class SelectIdentity extends Vue { ...@@ -79,6 +84,8 @@ export default class SelectIdentity extends Vue {
.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;
localStorage.setItem("name", res.data.personalName);
localStorage.setItem("birthday", res.data.birthday);
} else { } else {
//TODO: 跳转到实名认证 //TODO: 跳转到实名认证
console.log("跳转到实名认证", res); console.log("跳转到实名认证", res);
......
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