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

修改优化

上级 fcb282d7
...@@ -6,7 +6,7 @@ ...@@ -6,7 +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> <!-- <div class="btn-go" v-if="item.name == 'apply'" @click="goEditForm">更改个人资料</div> -->
<van-field <van-field
class="field" class="field"
:border="false" :border="false"
...@@ -19,13 +19,16 @@ ...@@ -19,13 +19,16 @@
</template> </template>
</van-field> </van-field>
<img class="img" :src="item.examples" @click="onChange(item.examples)" alt=""> <img class="img" :src="item.examples" @click="onChange(item.examples)" alt="">
<div class="back-edit" v-if="item.name == 'apply'" @click="goEditForm">
<div class="icon"></div>
<div class="txt">返回修改</div>
</div>
</div> </div>
</template> </template>
</div> </div>
</template> </template>
<slot></slot> <slot></slot>
<van-image-preview v-model="show" :images="images"> <van-image-preview v-model="show" :images="images">
<!-- <template v-slot:index>第{{ index }}页</template> -->
</van-image-preview> </van-image-preview>
</van-form> </van-form>
</template> </template>
...@@ -194,4 +197,23 @@ export default { ...@@ -194,4 +197,23 @@ export default {
margin-left: 20px; margin-left: 20px;
} }
} }
.back-edit{
width: 50px;
-webkit-transform: translateX(10px);
.icon{
margin: 20px auto 0 auto;
width: 13px;
height: 15px;
background: url(https://zws-imgs-pub.ezijing.com/static/public/940a2bd840eb4dc85cb8d1ddab1ddcbe.png);
background-size: 100% 100%;
}
.txt{
font-size: 10px;
font-weight: bold;
color: #AF1B40;
line-height: 10px;
margin-top: 12px;
text-align: center;
}
}
</style> </style>
...@@ -146,9 +146,9 @@ ...@@ -146,9 +146,9 @@
/> />
</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 btn-style">生成预览</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="b btn-style" @click="revokes">撤销</div>
</div> </div>
</van-form> </van-form>
<div class="sele" v-if="seleIsShow"> <div class="sele" v-if="seleIsShow">
...@@ -353,4 +353,15 @@ export default { ...@@ -353,4 +353,15 @@ export default {
width: 1.2rem; width: 1.2rem;
} }
} }
.btn-style{
display: block;
height: 40px;
line-height: 40px;
text-align: center;
color: #fff;
background: #af1b40;
border-radius: 20px;
cursor: pointer;
border: none;
}
</style> </style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<img @click="imgShow = true" :src="images[0]" alt=""> <img @click="imgShow = true" :src="images[0]" alt="">
</div> </div>
<van-image-preview v-model="imgShow" :images="images"></van-image-preview> <van-image-preview v-model="imgShow" :images="images"></van-image-preview>
<div class="tips">确认资料信息无误后,可长按图片保存下载,将信息页打印后,请在个人签名处签名后上传,注意签名不要连笔。</div> <div class="tips">确认资料信息无误后,<span>请长按图片保存下载</span>,将信息页打印后,请在个人签名处签名后上传,注意签名不要连笔。</div>
<div class="btn-box"> <div class="btn-box">
<van-button class="b" @click="backEdit" color="linear-gradient(180deg, #FF9B96 0%, #CE3E3A 100%)">返回修改</van-button> <van-button class="b" @click="backEdit" color="linear-gradient(180deg, #FF9B96 0%, #CE3E3A 100%)">返回修改</van-button>
<van-button @click="goUpload" class="b" color="linear-gradient(180deg, #FF9B96 0%, #CE3E3A 100%)">已签名,去上传</van-button> <van-button @click="goUpload" class="b" color="linear-gradient(180deg, #FF9B96 0%, #CE3E3A 100%)">已签名,去上传</van-button>
...@@ -12,13 +12,14 @@ ...@@ -12,13 +12,14 @@
</div> </div>
</template> </template>
<script> <script>
import { ImagePreview } from 'vant' import { ImagePreview, Dialog } from 'vant'
export default { export default {
metaInfo: { metaInfo: {
title: '预览' title: '预览'
}, },
components: { components: {
[ImagePreview.name]: ImagePreview [ImagePreview.name]: ImagePreview,
[Dialog.name]: Dialog
}, },
data() { data() {
return { return {
...@@ -51,13 +52,25 @@ export default { ...@@ -51,13 +52,25 @@ export default {
// } // }
}, },
goUpload() { goUpload() {
this.$router.replace({ Dialog.confirm({
path: '/attestation/upload', title: '',
query: { message: '上传前,请长按本页图片将图保存下载至本地相册。',
id: this.$route.query.id, confirmButtonText: '已保存',
edit: 1 cancelButtonText: '未保存'
}
}) })
.then(() => {
// on confirm
this.$router.replace({
path: '/attestation/upload',
query: {
id: this.$route.query.id,
edit: 1
}
})
})
.catch(() => {
// on cancel
})
// if (this.$route.query.edit) { // if (this.$route.query.edit) {
// } else { // } else {
// this.$router.replace({ // this.$router.replace({
...@@ -79,6 +92,10 @@ export default { ...@@ -79,6 +92,10 @@ export default {
} }
.tips{ .tips{
padding: .1rem; padding: .1rem;
span{
color: red;
font-weight: bold;
}
} }
.btn-box{ .btn-box{
margin-top: .8rem; margin-top: .8rem;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论