Commit 130c09ba authored by chenqikuai's avatar chenqikuai

fix: 修复选择模板时的预览无法展示完整模板的bug、修改部分UI

parent aaf9bf7c
<template> <template>
<div class="van-hairline--bottom type-seven" style="padding-bottom:15px;"> <div class="van-hairline--bottom type-seven">
<div class="title" style="margin-bottom: 10px;color:#666C70;"> <div class="title" style="margin-bottom: 10px;color:#666C70;">
{{ proofSubItem.label }} {{ proofSubItem.label }}
</div> </div>
...@@ -38,20 +38,10 @@ export default class TypeSeven extends Vue { ...@@ -38,20 +38,10 @@ export default class TypeSeven extends Vue {
<style lang="scss" scoped> <style lang="scss" scoped>
.type-seven { .type-seven {
text-align: left; text-align: left;
padding-bottom: 10px; padding: 10px 0px 15px;
a { a {
word-break: break-all; word-break: break-all;
white-space: wrap; white-space: wrap;
} }
.uploader {
display: flex;
flex-direction: row;
align-items: center;
.title {
flex: auto;
align-content: flex-start;
// margin-left: 12px;
}
}
} }
</style> </style>
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
<li @click="reSendBlockChain(id)">重新上链</li> <li @click="reSendBlockChain(id)">重新上链</li>
</ul> </ul>
</div> </div>
<van-field v-model="name" label="填写存证名称" placeholder="请输入" v-if="!proofName" /> <div class="px-4 bg-white">
<van-field v-model="name" label="填写存证名称" placeholder="请输入" v-if="!proofName" />
</div>
<template-detail :detailInformation="detail" class="detail" style="margin-bottom:70px;"></template-detail> <template-detail :detailInformation="detail" class="detail" style="margin-bottom:70px;"></template-detail>
<div class="btn-group" v-if="!baseProof"> <div class="btn-group" v-if="!baseProof">
<div style="overflow:hidden;color:#B6B5BA;font-size:14px;white-space:nowrap;margin-right: 10px;flex:auto;text-align:left;">已选模板:<span style="color:#3F79FE;margin-left:10px;">{{proofType}}</span></div> <div style="overflow:hidden;color:#B6B5BA;font-size:14px;white-space:nowrap;margin-right: 10px;flex:auto;text-align:left;">已选模板:<span style="color:#3F79FE;margin-left:10px;">{{proofType}}</span></div>
...@@ -374,9 +376,15 @@ export default class Detail extends Vue { ...@@ -374,9 +376,15 @@ export default class Detail extends Vue {
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.px-4{
padding: 0 16px;
}
.bg-white{
background: white;
}
.proof-detail{ .proof-detail{
padding: 9px 18px; padding: 9px 0px;
background: #FFFFFF; background: #F9F9FB;
min-height: 100vh; min-height: 100vh;
::v-deep .van-field{ ::v-deep .van-field{
flex-direction: column; flex-direction: column;
......
...@@ -54,7 +54,7 @@ export default class Index extends Vue { ...@@ -54,7 +54,7 @@ export default class Index extends Vue {
async handleClickPreview() { async handleClickPreview() {
const id = this.selectedId; const id = this.selectedId;
const ret = await this.$api.template.get(id); const ret = await this.$api.template.get(id);
this.detail = JSON.parse(ret.detail)[0]; this.detail = JSON.parse(ret.detail);
this.previewVisible = true; this.previewVisible = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment