Commit 51a7a47a by cocomilk2012

update

parent c5a932f9
Showing with 9 additions and 15 deletions
......@@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>员工自助</title>
<title></title>
</head>
<body>
......
......@@ -36,7 +36,7 @@
<script lang='ts'>
import { Component, Vue } from "vue-property-decorator";
import { Toast } from "vant";
import { Toast, Dialog } from "vant";
@Component({
components: {}
})
......@@ -44,7 +44,7 @@ export default class SelectIdentity extends Vue {
private id_no: string = "";
private dispatch_list: any[] = [];
private no_data: boolean = false;
private loading:any;
private loading: any;
get id_no_encrytion(): string {
return encodeURI(window.btoa(this.id_no));
......@@ -91,7 +91,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) {
if (false&&res.data && res.data.uthStatus && res.data.uthStatus > 0) {
console.log(res);
this.id_no = res.data.personalIdCardNo;
......@@ -101,15 +101,9 @@ export default class SelectIdentity extends Vue {
localStorage.setItem("birthday", res.data.birthday);
} else {
//TODO: 跳转到实名认证
console.log(
"您还未实名认证,不可进行查询,请先去【我】的页面,点击头像,进行实名认证后再查询"
);
this.no_data = true;
Toast.fail({
duration: 0,
message:
"您还未实名认证,不可进行查询,请先去【我】的页面,点击头像,进行实名认证后再查询"
Dialog.alert({
message: "您还未实名认证,不可进行查询,请先去【我】的页面,点击头像,进行实名认证后再查询"
});
}
})
......@@ -123,7 +117,6 @@ export default class SelectIdentity extends Vue {
.then(res => {
console.log("getDispatchList res=", res);
this.dispatch_list = res;
})
.catch(err => {
console.log("err=", err);
......@@ -131,8 +124,9 @@ export default class SelectIdentity extends Vue {
}
async created() {
this.loading=Toast.loading({
duration:0,
this.loading = Toast.loading({
duration: 0,
message: "加载中...",
forbidClick: true
});
......
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