reject-detail.vue 1.75 KB
Newer Older
linxin's avatar
linxin committed
1 2 3 4 5 6 7 8 9 10 11
<template>
  <h-view id="rejectDetail">
    <h-header :proportion="[5,1,1]" class="bar-custom">
      <div slot="left" class="h-header-btn">
        <img src="@/assets/userBind/arrow.png" @click="$routeGo()" >
        <span>消息详情</span>
      </div>
    </h-header>
    <h-content>
      <div class="userInfo">审批意见</div>
      <div class="info-content">
linxin's avatar
linxin committed
12
        <p>{{ notice_detail }}</p>
linxin's avatar
linxin committed
13 14 15 16 17 18
      </div>
    </h-content>
  </h-view>
</template>
<script>
export default {
linxin's avatar
linxin committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
  data () {
    return {
      notice_detail: '',
    }
  },
  beforeRouteEnter (to, from, next) {
    next(vm => {
      vm.getDetail()
    })
  },
  methods: {
    getDetail () {
      let vm = this
      let url = process.env.basePath + 'app_notice_detail_query'
      let param = {
        notice_id: vm.$route.params.notice_id,
      }
      hlsPopup.showLoading('请稍候')
      vm.$post(url, param).then(function (res) {
Jennie Shi's avatar
Jennie Shi committed
38
        vm.hlsPopup.hideLoading()
linxin's avatar
linxin committed
39
        if (res.result === 'S') {
linxin's avatar
linxin committed
40
          vm.notice_detail = res.info.notice_body
linxin's avatar
linxin committed
41 42 43 44 45 46
        } else {
          hlsPopup.showLongCenter(res.message)
        }
      })
    },
  },
linxin's avatar
linxin committed
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
}
</script>
<style lang="less" >
#rejectDetail{
 .userInfo {
      height: 45px;
      line-height: 45px;
      color: @headerColor;
      margin-top: 5px;
      font-size: 15px;
      margin-left: 16px;
      position: relative;
    }
    .userInfo::before {
      content: "";
      display: block;
      width: 4px;
      height: 20px;
      background-color: @headerColor;
      position: absolute;
      left: -15px;
      top: 12px;
    }
    .info-content{
        width:90%;
        margin: 0 auto;
        line-height: 20px;
        p{
            text-indent: 35px;
linxin's avatar
linxin committed
76 77
            color: #666666;
            font-size: 14px;
linxin's avatar
linxin committed
78 79 80 81
        }
    }
}
</style>