提交 848c28d1 authored 作者: 王鹏飞's avatar 王鹏飞

chore: 新增报名费

上级 c3bee65e
...@@ -21,23 +21,25 @@ export default function(_this) { ...@@ -21,23 +21,25 @@ export default function(_this) {
return Object.assign({}, basicInfo, attachment) return Object.assign({}, basicInfo, attachment)
} }
}, },
update: { // update: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/submit/${process.env.projectId}`, // action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/submit/${process.env.projectId}`,
beforeRequest(data) { // beforeRequest(data) {
return { submission_stage: 'INTERVIEW_APPLICATION' } // return { submission_stage: 'INTERVIEW_APPLICATION' }
}, // },
callback() { // // callback() {
this.form.options.disabled = true // // _this.changeSubmissionStage(() => {
}, // // this.form.options.disabled = true
errorCallback() { // // })
_this.completeVisible = true // // },
} // errorCallback() {
}, // _this.completeVisible = true
// }
// },
form: { form: {
prev: { to: { query: { active: 'interview_byzs' } } }, prev: { to: { query: { active: 'interview_byzs' } } },
// next: { to: { query: { active: 'application_pay' } } }, next: { to: { query: { active: 'application_pay' } } },
submitText: '申请面试', submitText: '申请面试',
// hasButton: false, hasButton: false,
model: { submission_stage: 'INTERVIEW_APPLICATION' }, model: { submission_stage: 'INTERVIEW_APPLICATION' },
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
items: [ items: [
......
...@@ -21,11 +21,11 @@ export default function(_this) { ...@@ -21,11 +21,11 @@ export default function(_this) {
grcs(_this), grcs(_this),
byzs(_this), byzs(_this),
form(_this), form(_this),
// { {
// required: true, required: true,
// id: 'application_pay', id: 'application_pay',
// title: '缴报名费' title: '缴报名费'
// } }
// ywcjd(_this), tjx(_this), grcs(_this), byzs(_this), form(_this) // ywcjd(_this), tjx(_this), grcs(_this), byzs(_this), form(_this)
] ]
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</template> </template>
<!-- 报名缴费 --> <!-- 报名缴费 -->
<template #content v-if="currentActive === 'application_pay'"> <template #content v-if="currentActive === 'application_pay'">
<app-pay @submit="changeSubmissionStage" /> <app-pay :disabled="isSubmitted" @submit="changeSubmissionStage" />
</template> </template>
</vue-form> </vue-form>
<app-complete :type="1" v-model="completeVisible"></app-complete> <app-complete :type="1" v-model="completeVisible"></app-complete>
......
<template> <template>
<div class="pay"> <div>
<div class="pay" v-if="!dialogVisible">
<h5-pay @update="handleUpdateOrder" v-if="isWechat"></h5-pay> <h5-pay @update="handleUpdateOrder" v-if="isWechat"></h5-pay>
<qrcode-pay @update="handleUpdateOrder" v-else></qrcode-pay> <qrcode-pay @update="handleUpdateOrder" v-else></qrcode-pay>
<div class="pay-ft"> <div class="pay-ft">
<p class="t2">注释:<br />此处为微信二维码<br />申请费不退还</p> <p class="t2">注释:<br />此处为微信二维码<br />申请费不退还</p>
</div> </div>
<el-dialog title="报名费缴费成功" :visible.sync="dialogVisible" :center="true" :close-on-click-modal="false" width="348px"> <!-- <el-dialog title="报名费缴费成功" :visible.sync="dialogVisible" :center="true" :close-on-click-modal="false" width="348px">
<div class="dialog-pay"> <div class="dialog-pay">
<div class="icon"><img src="https://webapp-pub.ezijing.com/project/application/images/icon_success.png" /></div> <div class="icon"><img src="https://webapp-pub.ezijing.com/project/application/images/icon_success.png" /></div>
<p>报名费已成功缴纳,请点击申请面试并等待招生办进一步通知</p> <p>报名费已成功缴纳,请点击申请面试并等待招生办进一步通知</p>
...@@ -13,7 +14,15 @@ ...@@ -13,7 +14,15 @@
<template #footer> <template #footer>
<el-button type="primary" @click="$emit('submit')">申请面试</el-button> <el-button type="primary" @click="$emit('submit')">申请面试</el-button>
</template> </template>
</el-dialog> </el-dialog> -->
</div>
<div v-else>
<div class="dialog-pay">
<div class="icon"><img src="https://webapp-pub.ezijing.com/project/application/images/icon_success.png" /></div>
<p>报名费已成功缴纳,请点击申请面试并等待招生办进一步通知</p>
<el-button type="primary" :disabled="disabled" @click="$emit('submit')">申请面试</el-button>
</div>
</div>
</div> </div>
</template> </template>
...@@ -24,6 +33,7 @@ import h5Pay from './components/h5Pay' ...@@ -24,6 +33,7 @@ import h5Pay from './components/h5Pay'
export default { export default {
name: 'AppPay', name: 'AppPay',
components: { qrcodePay, h5Pay }, components: { qrcodePay, h5Pay },
props: { disabled: { type: Boolean, default: false } },
data() { data() {
const UA = window.navigator.userAgent const UA = window.navigator.userAgent
const isMobile = /android|iphone|ipad|ipod/i.test(UA) const isMobile = /android|iphone|ipad|ipod/i.test(UA)
...@@ -150,11 +160,12 @@ export default { ...@@ -150,11 +160,12 @@ export default {
.dialog-pay { .dialog-pay {
text-align: center; text-align: center;
p { p {
margin: 10px 0 20px;
color: #262626; color: #262626;
line-height: 20px; line-height: 20px;
} }
.icon { .icon {
margin-top: 20px; margin-top: 80px;
text-align: center; text-align: center;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论