commend.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <template>
  2. <view>
  3. <u-navbar title="公司表彰"></u-navbar>
  4. <view class="tabs">
  5. <u-tabs bar-width="60" inactive-color="#777777" active-color="#018bb9" height="88" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
  6. </view>
  7. <view class="commend-box">
  8. <view class="commend-content">
  9. <view class="title">
  10. 表彰类型
  11. </view>
  12. <view class="commendation">
  13. 表彰词内容表彰词内容表彰词内容表彰词内容
  14. </view>
  15. <view class="integral">
  16. <view class="icon">
  17. <img src="../../assets/img/riFill-copper-diamond-fill@2x.png" alt="">
  18. </view>
  19. <view class="text">
  20. 100积分
  21. </view>
  22. </view>
  23. </view>
  24. <view class="gainer">
  25. <img src="../../assets/img/photo.png" alt="">
  26. <view class="name">
  27. 赵晓婧
  28. </view>
  29. </view>
  30. </view>
  31. <view class="commend-box">
  32. <view class="commend-content">
  33. <view class="title">
  34. 表彰类型
  35. </view>
  36. <view class="commendation">
  37. 表彰词内容表彰词内容表彰词内容表彰词内容
  38. </view>
  39. <view class="integral">
  40. <view class="icon">
  41. <img src="../../assets/img/riFill-copper-diamond-fill@2x.png" alt="">
  42. </view>
  43. <view class="text">
  44. 50积分
  45. </view>
  46. </view>
  47. </view>
  48. <view class="gainer">
  49. <img src="../../assets/img/dmr.png" alt="">
  50. <view class="name">
  51. 丁曼容
  52. </view>
  53. </view>
  54. </view>
  55. <u-divider bg-color="#F2F4F4" border-color="#CFD2D5">已经到底了</u-divider>
  56. </view>
  57. </template>
  58. <script>
  59. export default {
  60. data() {
  61. return {
  62. list: [{
  63. name: '全部'
  64. }, {
  65. name: '员工成长'
  66. }, {
  67. name: '业绩认可',
  68. }],
  69. current: 0
  70. }
  71. },
  72. methods: {
  73. change(index) {
  74. this.current = index;
  75. }
  76. }
  77. }
  78. </script>
  79. <style lang="scss" scoped>
  80. .tabs{
  81. background-color: rgba(255, 255, 255, 1);
  82. /deep/.u-tabs{
  83. width: 408rpx;
  84. }
  85. margin-bottom: 24rpx;
  86. }
  87. .commend-box{
  88. background-color: #fff;
  89. border-radius: 8px;
  90. margin: 0 32rpx 24rpx 32rpx;
  91. padding: 24rpx;
  92. display: flex;
  93. justify-content: space-between;
  94. .commend-content{
  95. .title{
  96. color: rgba(51, 51, 51, 1);
  97. font-size: 16px;
  98. line-height: 23px;
  99. font-family: 'Medium';
  100. }
  101. .commendation{
  102. color: rgba(119, 119, 119, 1);
  103. font-size: 12px;
  104. line-height: 17px;
  105. margin-top: 4rpx;
  106. width: 480rpx;
  107. font-family: 'Regular';
  108. }
  109. .integral{
  110. margin-top: 48rpx;
  111. display: flex;
  112. align-items: center;
  113. justify-content: center;
  114. background-color: rgba(230, 239, 255, 1);
  115. width: 164rpx;
  116. border-radius: 50px;
  117. height: 28px;
  118. .icon{
  119. width: 32rpx;
  120. height: 32rpx;
  121. img{
  122. width: 100%;
  123. }
  124. }
  125. .text{
  126. font-size: 12px;
  127. color: rgba(119, 119, 119, 1);
  128. font-family: 'Regular';
  129. }
  130. }
  131. }
  132. .gainer{
  133. img{
  134. width: 120rpx;
  135. height: 120rpx;
  136. border-radius: 50px;
  137. }
  138. .name{
  139. text-align: center;
  140. color: rgba(51, 51, 51, 1);
  141. margin-top: 8rpx;
  142. }
  143. }
  144. }
  145. </style>