<template> <div class="full-page"> <div class="container"> <div class="p-title"> <span class="label">审核不通过原因:</span> </div> <div class="block"> <ol v-if="data.length > 0"> <li v-for="(item, index) in data" :key="index">{{item}}</li> </ol> <h4 v-else class="text-center">暂无数据!</h4> </div> <!-- <div class="block"> <textarea disabled="true" rows="5">{{}}</textarea> </div> --> <div class="footer"> <button class="confirm-btn" @click="handelConfirm">我知道了</button> </div> </div> </div> </template> <script> // import { getStore } from '@/util/store' import { getSignFailedMsg } from '@/api/wxTemplate/wxTemplate' const wx = require('weixin-js-sdk') export default { name: 'adoptTemplate', data () { return { signId: this.$route.query.signId, data: [] } }, created () { this.getSignFailedMsgFn() }, mounted: function () { }, computed: { }, components: { }, methods: { getSignFailedMsgFn () { let params = { signId: this.signId } getSignFailedMsg(params).then(res => { this.data = res.data.codeMsg }) }, handelConfirm () { wx.closeWindow() } } } </script> <style scoped> .full-page { background-color: #f5f6f7; font-size: 1.3em; } .p-title > .label { font-size: 1.35em; font-weight: normal; } .block { background-color: #ffffff; border-radius: 5px; -webkit-box-shadow: 1px 8px 10px #e2e3e4; box-shadow: 1px 8px 10px #e2e3e4; margin-bottom: 1.2em; padding: 1em; width: 100%; font-size: 1em; } .block textarea { width: 100%; } ol { padding-left: 15px; margin-bottom: 0; } ol > li { /* margin-bottom: 0.4em; */ padding: 0.4em 0; /* border-bottom: 1px solid #ccc; */ } .footer { position: fixed; bottom: 10%; left: 0; padding: 0 2em; width: 100%; } button.confirm-btn { background-color:#43d1be; color: #fff; border: none; width: 100%; padding: 0.7em 0; font-size: 1.2em; } .text-center { text-align: center; } </style>