newsEntry.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <view>
  3. <CompanyInfo ref="refCompanyInfo" v-show="showcompany" :vshow="showcompany" :companyId="companyId" :companyInfo="info.company" v-if="info.company" @back="showcompany=false" ></CompanyInfo>
  4. <view v-show="!showcompany">
  5. <u-navbar title="详情" >
  6. <view slot="right">
  7. <u-button size="mini" :type="info.isAgree?'success':'error'" v-if="info.isNeedAgree&&info.isAgree!=null" > {{info.isAgree?'已同意':'已拒绝'}}</u-button>
  8. </view>
  9. </u-navbar>
  10. <view class="company-logo" v-if="info.company"
  11. style="
  12. border-bottom: 1px inset;
  13. "
  14. @click="showcompany=true">
  15. <u-avatar :src="info.company.logo" size="100" mode="square"></u-avatar>
  16. <h3>{{info.company.name}}</h3>
  17. </view>
  18. <view class="servicesInfo" v-if="info.messageDetail" style="padding-bottom: 80px;">
  19. <view class="title">
  20. <h2>{{info.messageDetail.title}}</h2>
  21. </view>
  22. <view class="main" v-html="info.messageDetail.content">
  23. </view>
  24. </view>
  25. <view class="servicesInfo-foot" v-if="info.isNeedAgree&&info.isAgree==null">
  26. <u-button class="servicesInfo-btn" shape="circle" @click="changeAgree(0)">拒绝</u-button>
  27. <u-button class="servicesInfo-btn" type="success" @click="changeAgree(1)" shape="circle">同意</u-button>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. import api from './index.js'
  34. export default api;
  35. </script>
  36. <style scoped lang="scss">
  37. .company-logo{
  38. display: flex;
  39. align-items: center;
  40. padding: 30rpx;
  41. h3{
  42. font-size: 36rpx;
  43. margin-left: 20rpx;
  44. font-weight: normal;
  45. }
  46. }
  47. .servicesInfo{
  48. padding: 30rpx;
  49. .title{
  50. text-align: center;
  51. }
  52. .main{
  53. line-height:48rpx;
  54. margin-top:40rpx;
  55. }
  56. }
  57. .servicesInfo-foot{
  58. height: 120rpx;
  59. background-color: #fff;
  60. display: flex;
  61. justify-content: space-between;
  62. align-items: center;
  63. position: fixed;
  64. padding: 0 10rpx;
  65. bottom: 0;
  66. left: 0;
  67. right: 0;
  68. .servicesInfo-btn{
  69. flex: 0.5;
  70. margin: 0 10rpx;
  71. }
  72. }
  73. .newsList-time{
  74. display: flex;
  75. justify-content: center;
  76. margin-top: 40rpx;
  77. span{
  78. background-color: #c8c8c8;
  79. padding: 6rpx 16rpx;
  80. color:#fff;
  81. border-radius:10rpx;
  82. }
  83. }
  84. .newsList-item{
  85. padding: 20rpx;
  86. margin: 20rpx;
  87. background-color: #fff;
  88. border-radius: 20rpx;
  89. .newsList-head{
  90. display: flex;
  91. justify-content: space-between;
  92. padding-bottom: 20rpx;
  93. span{
  94. color:#FF6D58;
  95. min-width: 80rpx;
  96. text-align: right;
  97. }
  98. }
  99. .newsList-main{
  100. padding-bottom: 20rpx ;
  101. color:#999;
  102. }
  103. .newsList-foot{
  104. padding-top: 20rpx;
  105. border-top: 1px solid #f7f7f7;
  106. display: flex;
  107. justify-content: space-between;
  108. }
  109. }
  110. </style>