diff --git a/src/views/jsxt/apply/index.vue b/src/views/jsxt/apply/index.vue index 1d9757474..8a4e5db1f 100644 --- a/src/views/jsxt/apply/index.vue +++ b/src/views/jsxt/apply/index.vue @@ -72,10 +72,10 @@
您的报名信息如下:
姓名:{{ formModel.name }} -
公司:{{ formModel.company }} +
公司:{{ formModel.organization }}
部门:{{ formModel.department }} -
职位:{{ formModel.job }} -
电话:{{ formModel.phone.replace(/^(\d{3})\d{4}(\d+)/,"$1****$2") }} +
职位:{{ formModel.position }} +
电话:{{ formModel.mobile.replace(/^(\d{3})\d{4}(\d+)/,"$1****$2") }}
@@ -91,8 +91,7 @@ import md5 from 'js-md5'; import Cookies from 'js-cookie'; import QrcodeVue from 'qrcode.vue'; import { getUserinfoMobileCode } from '@/api/management/user'; -import { postSignUp } from '@/api/competition'; -import { getIsSignUp } from '@/api/competition'; +import { postSignUp, getRaceUserById } from '@/api/competition'; import applyAlready from '@/assets/applyAlready.png'; import SAFS from '@/assets/SAFS.png'; @@ -205,9 +204,10 @@ export default { if (this.checkLogin) { this.clearTimer(this.checkLogin); } - getIsSignUp(this.$route.query.raceId).then(res => { + getRaceUserById(this.$route.query.raceId).then(res => { if (res.data) { // 已经报名过 + this.formModel = res.data; this.applyFlag = false; this.flag = false; }