123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <template>
- <div id="policyrightcont">
- <el-row>
- <el-col :span="24" class="info">
- <el-col :span="24" class="top">
- <el-col :span="12" class="txt">
- <span> {{ policyInfo.name }}</span>
- </el-col>
- <el-col :span="12" class="btn">
- <el-button type="primary" size="mini" @click="back()">返回</el-button>
- </el-col>
- </el-col>
- <el-col :span="24" class="infoMess">
- <el-col :span="24" class="title">
- {{ policyInfo.name }}
- </el-col>
- <el-col :span="24" class="infoDate">
- <p>
- <span>发布人:{{ policyInfo.user_name }}</span>
- <span>信息类型 {{ policyInfo.infotype }}</span>
- <span>发布时间: {{ policyInfo.meta && policyInfo.meta.createdAt ? new Date(policyInfo.meta.createdAt).toLocaleDateString() : '' || '' }}</span>
- </p>
- </el-col>
- <el-col v-if="policyInfo.picture" class="image">
- <el-image style="width:50%" :src="policyInfo.picture"></el-image>
- </el-col>
- <el-col :span="24" class="content">
- <p v-html="policyInfo.content"></p>
- </el-col>
- </el-col>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- export default {
- name: 'policyrightcont',
- props: {
- columnTitle: null,
- policyInfo: null,
- },
- components: {},
- data: () => ({}),
- created() {},
- computed: {},
- methods: {
- back() {
- history.back(-1);
- },
- },
- };
- </script>
- <style lang="less" scoped>
- p {
- padding: 0;
- margin: 0;
- }
- .info {
- min-height: 800px;
- background-color: #fff;
- }
- .top {
- height: 60px;
- line-height: 60px;
- border-bottom: 1px solid #215299;
- }
- .top .txt span {
- display: inline-block;
- padding: 0 30px;
- background-color: #215299;
- color: #fff;
- }
- .top .btn {
- text-align: right;
- padding: 0 10px;
- }
- .infoMess {
- padding: 0 20px;
- }
- .infoMess .title {
- line-height: 30px;
- text-align: center;
- font-size: 16px;
- font-weight: bold;
- color: #000000;
- margin: 0 0 20px 0;
- }
- .infoDate {
- height: 36px;
- line-height: 36px;
- }
- .infoDate p {
- background: #eeeeee;
- margin: 0 105px;
- }
- .infoDate p span {
- font-size: 14px;
- color: #000;
- padding: 0 0 0 80px;
- }
- .infoMess .image {
- text-align: center;
- margin: 20px 0 0 0;
- }
- .content {
- padding: 0px 0 20px 0;
- }
- </style>
|