提交 bc88ede3 authored 作者: lihuihui's avatar lihuihui

三级认证修改bug

上级 6f543383
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
v-model="form.name" v-model="form.name"
name="pattern" name="pattern"
placeholder="请填写" placeholder="请填写"
:rules="[{ pattern, message: '请用英文大写填写资料' }]" :rules="[{ pattern, message: '输入有误,请检查并重新填写' }]"
/> />
</div> </div>
<div class="item"> <div class="item">
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
@click="seleIsShow = true" @click="seleIsShow = true"
disabled disabled
class="bor" class="bor"
:value="form.gender == 1 ? '男 man' : '女 woman'" :value="form.gender == 1 ? '男 MALE' : '女 FEMALE'"
name="pattern" name="pattern"
placeholder="" placeholder=""
/> />
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
v-model="form.birth_place" v-model="form.birth_place"
name="pattern" name="pattern"
placeholder="请填写" placeholder="请填写"
:rules="[{ pattern, message: '请用英文大写填写资料' }]" :rules="[{ pattern, message: '输入有误,请检查并重新填写' }]"
/> />
</div> </div>
<div class="item"> <div class="item">
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
v-model="form.nationality" v-model="form.nationality"
name="pattern" name="pattern"
placeholder="请填写" placeholder="请填写"
:rules="[{ pattern, message: '请用英文大写填写资料' }]" :rules="[{ pattern, message: '输入有误,请检查并重新填写' }]"
/> />
</div> </div>
<div class="item"> <div class="item">
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
v-model="form.occupatio" v-model="form.occupatio"
name="pattern" name="pattern"
placeholder="请填写" placeholder="请填写"
:rules="[{ pattern, message: '请用英文大写填写资料' }]" :rules="[{ pattern, message: '输入有误,请检查并重新填写' }]"
/> />
</div> </div>
<div class="item"> <div class="item">
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
v-model="form.address" v-model="form.address"
name="pattern" name="pattern"
placeholder="请填写" placeholder="请填写"
:rules="[{ pattern, message: '请用英文大写填写资料' }]" :rules="[{ pattern, message: '输入有误,请检查并重新填写' }]"
/> />
</div> </div>
<div class="item"> <div class="item">
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
data() { data() {
return { return {
seleIsShow: false, seleIsShow: false,
columns: ['男 man', '女 woman'], columns: ['男 MALE', '女 FEMALE'],
form: { form: {
name: '', name: '',
gender: '1', gender: '1',
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
} }
}, },
created() { created() {
if (this.$route.query.edit) { if (this.$route.query.edit || this.$route.query.back) {
this.getCertificationDetail() this.getCertificationDetail()
} }
}, },
...@@ -273,7 +273,7 @@ export default { ...@@ -273,7 +273,7 @@ export default {
Dialog.confirm({ Dialog.confirm({
message: '你确定要撤回申请吗?撤回后,需要重新填写资料提交申请。' message: '你确定要撤回申请吗?撤回后,需要重新填写资料提交申请。'
}).then(() => { }).then(() => {
const id = window.sessionStorage.dataId const id = this.$route.query.id
if (id) { if (id) {
api.revoke(id, { status: -2 }).then(response => { api.revoke(id, { status: -2 }).then(response => {
if (response.success) { if (response.success) {
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<div class="btn" v-if="item.pay == 0" @click="orderPays">支付</div> <div class="btn" v-if="item.pay == 0" @click="orderPays">支付</div>
</template> </template>
</div> </div>
<div class="icon-yes" v-if="item.approve_status"></div> <!-- <div class="icon-yes" v-if="item.approve_status"></div> -->
</div> </div>
</template> </template>
<!-- <div class="btn" @click="orderPays" style="font-size:30px;position: relative;z-index: 999;">支付</div> --> <!-- <div class="btn" @click="orderPays" style="font-size:30px;position: relative;z-index: 999;">支付</div> -->
...@@ -68,15 +68,15 @@ export default { ...@@ -68,15 +68,15 @@ export default {
} }
switch(types) { switch(types) {
case -1: case -1:
cont.text = '待审' cont.text = '待审'
cont.class = 'tag' cont.class = 'tag'
break break
case 0: case 0:
cont.text = '审驳回' cont.text = '审驳回'
cont.class = 'tag stu2' cont.class = 'tag stu2'
break break
case 1: case 1:
cont.text = '审通过' cont.text = '审通过'
cont.class = 'tag stu3' cont.class = 'tag stu3'
break break
} }
...@@ -111,7 +111,7 @@ export default { ...@@ -111,7 +111,7 @@ export default {
Dialog.confirm({ Dialog.confirm({
message: '你确定要撤回申请吗?撤回后,需要重新填写资料提交申请。' message: '你确定要撤回申请吗?撤回后,需要重新填写资料提交申请。'
}).then(() => { }).then(() => {
const id = window.sessionStorage.dataId // const id = window.sessionStorage.dataId
if (id) { if (id) {
api.revoke(id, { status: -2 }).then(response => { api.revoke(id, { status: -2 }).then(response => {
if (response.success) { if (response.success) {
......
...@@ -29,22 +29,23 @@ export default { ...@@ -29,22 +29,23 @@ export default {
methods: { methods: {
backEdit() { backEdit() {
// this.$router.go(-1) // this.$router.go(-1)
if (this.$route.query.edit) { this.$router.replace({
this.$router.replace({ path: '/attestation/form',
path: '/attestation/form', query: {
query: { id: this.$route.query.id,
id: this.$route.query.id, edit: 1
edit: 1 }
} })
}) // if (this.$route.query.edit) {
} else { // } else {
this.$router.replace({ // this.$router.replace({
path: '/attestation/form', // path: '/attestation/form',
query: { // query: {
id: this.$route.query.id // id: this.$route.query.id,
} // back: 1
}) // }
} // })
// }
}, },
goUpload() { goUpload() {
if (this.$route.query.edit) { if (this.$route.query.edit) {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<div class="form-item"> <div class="form-item">
<div class="label">1,已签字确认的个人资料页</div> <div class="label">1,已签字确认的个人资料页</div>
<div class="up-box"> <div class="up-box">
<img :src="formModel.apply" alt=""> <img :src="formModel.apply" alt="" @click="imgViewShow(formModel.apply)">
</div> </div>
</div> </div>
</div> </div>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<div class="form-item"> <div class="form-item">
<div class="label">2,个人护照信息页</div> <div class="label">2,个人护照信息页</div>
<div class="up-box"> <div class="up-box">
<img :src="formModel.passport" alt=""> <img :src="formModel.passport" alt="" @click="imgViewShow(formModel.passport)">
</div> </div>
</div> </div>
</div> </div>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<div class="form-item"> <div class="form-item">
<div class="label">3,学位证书页</div> <div class="label">3,学位证书页</div>
<div class="up-box"> <div class="up-box">
<img :src="formModel.degree" alt=""> <img :src="formModel.degree" alt="" @click="imgViewShow(formModel.degree)">
</div> </div>
</div> </div>
</div> </div>
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
</div> </div>
</template> </template>
<h5-pay :productId="productId" ref="h5pay"></h5-pay> <h5-pay :productId="productId" ref="h5pay"></h5-pay>
<van-image-preview v-model="imagePreview" :images="imgView"></van-image-preview>
</div> </div>
</template> </template>
...@@ -77,7 +78,7 @@ ...@@ -77,7 +78,7 @@
import h5Pay from './buy/components/h5Pay.vue' import h5Pay from './buy/components/h5Pay.vue'
import Card from '@/components/Card' import Card from '@/components/Card'
import VForm from '@/components/attestationFormUpload' import VForm from '@/components/attestationFormUpload'
import { Toast, Dialog } from 'vant' import { Toast, Dialog, ImagePreview } from 'vant'
import * as api from '@/api/attestation' import * as api from '@/api/attestation'
export default { export default {
...@@ -87,10 +88,13 @@ export default { ...@@ -87,10 +88,13 @@ export default {
VForm, VForm,
[Toast.name]: Toast, [Toast.name]: Toast,
[Dialog.name]: Dialog, [Dialog.name]: Dialog,
[ImagePreview.name]: ImagePreview,
h5Pay h5Pay
}, },
data() { data() {
return { return {
imagePreview: false,
imgView: [],
productId: '6734697826573352960', productId: '6734697826573352960',
approveRemark: '', approveRemark: '',
auditStatus: 2, auditStatus: 2,
...@@ -151,13 +155,15 @@ export default { ...@@ -151,13 +155,15 @@ export default {
} }
}, },
mounted() { mounted() {
this.$route.query.look && (this.isLook = true)
this.$route.query.edit && (this.isLook = true)
if (this.$route.query.edit) { if (this.$route.query.edit) {
this.getCertificationDetail() this.getCertificationDetail()
} }
}, },
methods: { methods: {
imgViewShow(img) {
this.imgView = [img]
this.imagePreview = true
},
orderPays() { orderPays() {
this.$refs.h5pay.pay() this.$refs.h5pay.pay()
}, },
...@@ -167,12 +173,17 @@ export default { ...@@ -167,12 +173,17 @@ export default {
getCertificationDetail() { getCertificationDetail() {
api.getAttestationDetail(this.$route.query.id).then(response => { api.getAttestationDetail(this.$route.query.id).then(response => {
// formModel: { apply: '', passport: '', degree:''} // formModel: { apply: '', passport: '', degree:''}
this.formModel.apply = response.apply if (response.apply !== '') {
this.formModel.passport = response.passport this.formModel.apply = response.apply
this.formModel.degree = response.degree this.formModel.passport = response.passport
this.auditStatus = response.approve_status this.formModel.degree = response.degree
this.ispay = response.pay this.auditStatus = response.approve_status
this.approveRemark = response.approve_remark this.ispay = response.pay
this.approveRemark = response.approve_remark
if (this.$route.query.look || this.$route.query.edit) {
this.isLook = true
}
}
}) })
}, },
revoke() { revoke() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论