diff --git a/src/api/index.js b/src/api/index.js index 054dafe..884bcb1 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -27,6 +27,9 @@ export default { forgotPassword: `users/users/user/forgotPassword`, logout: `users/users/user/logout`, quickRegistration: `users/users/user/quickRegistration`, + customerSettingsList: `nakadai/nakadai/customer/customerSettingsList`, + getSchoolIdByToken: `competition/competition/registration/getSchoolIdByToken`, + updateRealSchoolId: `competition/competition/registration/updateRealSchoolId`, // 阿里云文件/视频管理 getPlayAuth: `nakadai/nakadai/oss/getPlayAuth`, // 获取播放凭证 diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index ca3b533..90d64e2 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -238,7 +238,7 @@ export default { `${location.origin}/admin/#${route}`) }).catch(err => { }) } else { - window.open(this.$router.resolve(path).href) + window.open(this.$router.resolve(path).href + (this.$route.query.q ? `?q=${Date.now()}` : '')) } }, // 免费试用 diff --git a/src/pages/account/login/accountApply.vue b/src/pages/account/login/accountApply.vue index 7dc0d21..c56bd1a 100644 --- a/src/pages/account/login/accountApply.vue +++ b/src/pages/account/login/accountApply.vue @@ -122,7 +122,7 @@ export default { } }, mounted () { - this.$store.state.match.toMatch && this.getSchool() + localStorage.getItem('toMatch') && this.getSchool() }, methods: { // 获取学校列表 @@ -131,7 +131,7 @@ export default { provinceId: '', cityId: '' }).then(({ list }) => { - this.setSchool(list) + this.schoolList = list }).catch(res => { }) }, // 学号输入完回调。学校和学号都输入完后,调这个接口查询是否有存在的学生,如果没有,才能继续输入,如果有,不让添加 diff --git a/src/pages/account/login/accountApplyMatch.vue b/src/pages/account/login/accountApplyMatch.vue new file mode 100644 index 0000000..cd80300 --- /dev/null +++ b/src/pages/account/login/accountApplyMatch.vue @@ -0,0 +1,188 @@ + + + + \ No newline at end of file diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue index 00defa6..ff930f5 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -61,7 +61,12 @@
{{ verCodeLogin ? '密码' : '验证码' }}登录 + 没有账号,点击申请 + + 暂无账号?点击申请 + 暂无账号?点击申请
@@ -194,6 +199,7 @@ + @@ -202,9 +208,8 @@ import vFooter from '@/layouts/footer' import { mapState, mapMutations, mapActions } from 'vuex' import Util from '@/libs/util' import Setting from "@/setting"; -import axios from "axios" -import { Loading } from 'element-ui' import AccountApply from './accountApply' +import AccountApplyMatch from './accountApplyMatch' export default { data: function () { return { @@ -218,6 +223,8 @@ export default { } ], person: false, + toMatch: localStorage.getItem('toMatch'), + fromOffical: !!this.$route.query.q, // 来自安财赛事 phoneReg: /^1[3456789]\d{9}$/, mailReg: /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/, verificationIMG: '', @@ -261,6 +268,7 @@ export default { infos: [], accountApplyVisible: false, + accountApplyMatchVisible: false, accountVisible: false, regDisable: true, regClientExist: false, @@ -292,15 +300,12 @@ export default { }; }, computed: { - ...mapState('match', [ - 'toMatch' - ]), ...mapState('project', [ 'courseId' ]) }, components: { - vFooter, AccountApply + vFooter, AccountApply, AccountApplyMatch }, mounted () { localStorage.removeItem('opened') @@ -320,9 +325,6 @@ export default { ...mapActions("user", [ "setInfo" ]), - ...mapMutations('match', [ - 'SET_SOURCE' - ]), getVerImg () { // 获取验证码图片 this.form.random = Math.floor(Math.random() * 999999999); this.verificationIMG = this.api.verification + "?random=" + `${this.form.random}`; @@ -384,7 +386,7 @@ export default { this.reloadIndex() Util.successMsg('登录成功') const { toMatch } = this - this.SET_SOURCE('') + localStorage.removeItem('toMatch') this.$router.replace(this.courseId ? `/preCourse/details?id=${this.courseId}` : toMatch ? diff --git a/src/pages/match/details/index.vue b/src/pages/match/details/index.vue index 50d1624..ba3409d 100644 --- a/src/pages/match/details/index.vue +++ b/src/pages/match/details/index.vue @@ -185,7 +185,16 @@ 学校: - {{ info.person.schoolName }} + +
+ + + + 保存 +
+ {{ info.person.realSchool }} +