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

修改bug

上级 115b2ec0
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<template> <template>
<div class="label">{{ item.label }}</div> <div class="label">{{ item.label }}</div>
<div class="up-box"> <div class="up-box">
<div class="btn-go" v-if="item.name == 'apply'" @click="goEditForm">更改个人资料</div>
<van-field <van-field
class="field" class="field"
:border="false" :border="false"
...@@ -95,6 +96,12 @@ export default { ...@@ -95,6 +96,12 @@ export default {
} }
}, },
methods: { methods: {
goEditForm() {
this.$router.push({
path: '/attestation/form',
query: this.$route.query
})
},
onChange(src) { onChange(src) {
this.images = [src] this.images = [src]
this.show = true this.show = true
...@@ -152,10 +159,24 @@ export default { ...@@ -152,10 +159,24 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.up-box{ .up-box{
position: relative;
display: flex; display: flex;
padding-top: 10px; padding-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;
height: 90px; height: 90px;
.btn-go{
position: absolute;
bottom: 0;
left: 0;
z-index: 999;
width: 40%;
height: 27px;
color: #fff;
text-align: center;
line-height: 27px;
text-align: center;
background: linear-gradient(100deg, rgba(0, 0, 0, .1) 0%, #000000 200%);
}
.field{ .field{
width: 40%; width: 40%;
padding: 0; padding: 0;
......
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
/> />
</div> </div>
<div class="btn-box"> <div class="btn-box">
<van-button native-type="submit" class="b" color="linear-gradient(180deg, #FF9B96 0%, #CE3E3A 100%)">提交</van-button> <van-button native-type="submit" class="b" color="linear-gradient(180deg, #FF9B96 0%, #CE3E3A 100%)">生成预览</van-button>
<!-- <van-button class="b" @click="revokes">撤销</van-button> --> <!-- <van-button class="b" @click="revokes">撤销</van-button> -->
<div class="revokes" @click="revokes">撤销</div> <div class="revokes" @click="revokes">撤销</div>
</div> </div>
...@@ -168,6 +168,9 @@ ...@@ -168,6 +168,9 @@
import * as api from '@/api/attestation' import * as api from '@/api/attestation'
import { Form, Button, Dialog, Toast, Picker } from 'vant' import { Form, Button, Dialog, Toast, Picker } from 'vant'
export default { export default {
metaInfo: {
title: '三级认证个人信息填写'
},
components: { components: {
[Form.name]: Form, [Form.name]: Form,
[Button.name]: Button, [Button.name]: Button,
......
...@@ -42,6 +42,9 @@ import h5Pay from './buy/components/h5Pay.vue' ...@@ -42,6 +42,9 @@ import h5Pay from './buy/components/h5Pay.vue'
import { ImagePreview, Toast, Empty, Dialog } from 'vant' import { ImagePreview, Toast, Empty, Dialog } from 'vant'
import * as api from '@/api/attestation' import * as api from '@/api/attestation'
export default { export default {
metaInfo: {
title: '三级认证个人信息申请'
},
components: { components: {
[ImagePreview.name]: ImagePreview, [ImagePreview.name]: ImagePreview,
[Toast.name]: Toast, [Toast.name]: Toast,
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
<script> <script>
import { ImagePreview } from 'vant' import { ImagePreview } from 'vant'
export default { export default {
metaInfo: {
title: '预览'
},
components: { components: {
[ImagePreview.name]: ImagePreview [ImagePreview.name]: ImagePreview
}, },
......
...@@ -82,6 +82,11 @@ import { Toast, Dialog, ImagePreview } from 'vant' ...@@ -82,6 +82,11 @@ import { Toast, Dialog, ImagePreview } from 'vant'
import * as api from '@/api/attestation' import * as api from '@/api/attestation'
export default { export default {
metaInfo() {
return {
title: this.isLook ? '查看信息' : '上传'
}
},
name: 'submitStudent', name: 'submitStudent',
components: { components: {
Card, Card,
...@@ -224,7 +229,7 @@ export default { ...@@ -224,7 +229,7 @@ export default {
console.log(ruleForm) console.log(ruleForm)
for (let i = 0; i < Object.values(ruleForm).length; i++) { for (let i = 0; i < Object.values(ruleForm).length; i++) {
if (Object.values(ruleForm)[i] === '') { if (Object.values(ruleForm)[i] === '') {
Toast('请上传') Toast('上传资料不完整。请将资料补充完整,再确认提交')
return return
} }
} }
...@@ -235,7 +240,7 @@ export default { ...@@ -235,7 +240,7 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
message: '上传成功' message: '上传成功'
}) })
.then(() => { .then(() => { //ganniniangde
// queding // queding
this.isLook = true this.isLook = true
this.getCertificationDetail() this.getCertificationDetail()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论