adopt.vue 2.18 KB
Newer Older
1 2 3 4 5 6 7
<template>
  <div class="full-page">
    <div class="container">
      <div class="p-title">
        <span class="label">审核不通过原因:</span>
      </div>
      <div class="block">
8 9
        <ol v-if="data.length > 0">
          <li v-for="(item, index) in data" :key="index">{{item}}</li>
10
        </ol>
11
        <h4 v-else class="text-center">暂无数据!</h4>
12
      </div>
13 14 15
      <!-- <div class="block">
        <textarea disabled="true" rows="5">{{}}</textarea>
      </div> -->
16 17 18 19 20 21 22 23 24
      <div class="footer">
        <button class="confirm-btn" @click="handelConfirm">我知道了</button>
      </div>
    </div>
  </div>
</template>

<script>
// import { getStore } from '@/util/store'
25
import { getSignFailedMsg } from '@/api/wxTemplate/wxTemplate'
26 27 28 29 30 31
const wx = require('weixin-js-sdk')

export default {
  name: 'adoptTemplate',
  data () {
    return {
32 33
      signId: this.$route.query.signId,
      data: []
34 35 36
    }
  },
  created () {
37
    this.getSignFailedMsgFn()
38 39 40 41 42 43 44 45
  },
  mounted: function () {
  },
  computed: {
  },
  components: {
  },
  methods: {
46 47 48 49 50 51 52 53
    getSignFailedMsgFn () {
      let params = {
        signId: this.signId
      }
      getSignFailedMsg(params).then(res => {
        this.data = res.data.codeMsg
      })
    },
54 55 56 57 58 59 60 61 62 63
    handelConfirm () {
      wx.closeWindow()
    }
  }
}
</script>

<style scoped>
  .full-page {
    background-color: #f5f6f7;
64
    font-size: 1.3em;
65 66
  }
  .p-title > .label {
67
    font-size: 1.35em;
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
    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;
  }
107 108 109
  .text-center {
    text-align: center;
  }
110
</style>