receiveList.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view class="qbox adffc">
  3. <view class="list" v-if="list.length">
  4. <up-list @scrolltolower="scrolltolower" style="height: 100%;">
  5. <up-list-item class="list-item" v-for="(item, index) in list" :key="index">
  6. <view class="status adf" :class="{'dwc':item.status===0,'ywc':item.status===1}">
  7. <image :src="imgBase+'questionnaire_icon_dwc.png'" v-if="item.status===0"></image>
  8. <image :src="imgBase+'questionnaire_icon_ywc.png'" v-else-if="item.status===1"></image>
  9. <text>{{item.status===0?'待完成':item.status===1?'已完成':''}}</text>
  10. </view>
  11. <image class="expand" :src="imgBase+'questionnaire_icon_down.png'"></image>
  12. <view class="title">{{item.title||''}}</view>
  13. <view class="name">团队名称:{{item.teamName||''}}</view>
  14. <view class="bottom adfacjb">
  15. <view class="bottom-left">截止时间:{{item.endTime}}</view>
  16. <view class="bottom-right" v-if="item.status===0">立即作答</view>
  17. <view class="bottom-right" v-else-if="item.status===1">查看报告</view>
  18. </view>
  19. </up-list-item>
  20. </up-list>
  21. </view>
  22. <view class="empty" v-else>
  23. <page-empty></page-empty>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import PageEmpty from '@/components/pageEmpty/index.vue'
  29. export default {
  30. components:{ PageEmpty },
  31. props:{
  32. list:{
  33. typeof:Array,
  34. default:[]
  35. }
  36. },
  37. data(){
  38. return {
  39. }
  40. },
  41. methods:{
  42. scrolltolower(){
  43. this.$emit('scrolltolower')
  44. }
  45. }
  46. }
  47. </script>
  48. <style scoped lang="scss">
  49. .qbox{
  50. width: 100%;
  51. height: 100%;
  52. flex: 1;
  53. .list{
  54. flex: 1;
  55. margin-top: 20rpx;
  56. overflow: hidden;
  57. &-item{
  58. width: 100%;
  59. background: #FFFFFF;
  60. border-radius: 24rpx;
  61. margin-top: 20rpx;
  62. padding: 99rpx 24rpx 19rpx;
  63. box-sizing: border-box;
  64. position: relative;
  65. display: block;
  66. .status{
  67. width: 164rpx;
  68. height: 80rpx;
  69. padding: 14rpx 0 0 15rpx;
  70. box-sizing: border-box;
  71. position: absolute;
  72. left: 0;
  73. top: 0;
  74. image{
  75. width: 26rpx;
  76. height: 26rpx;
  77. }
  78. text{
  79. font-family: PingFangSC, PingFang SC;
  80. font-weight: 400;
  81. font-size: 24rpx;
  82. color: #FFFFFF;
  83. line-height: 24rpx;
  84. margin-left: 12rpx;
  85. }
  86. &.dwc{
  87. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/questionnaire_dwc.png') no-repeat;
  88. background-size: 100% 100%;
  89. }
  90. &.ywc{
  91. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/questionnaire_ywc.png') no-repeat;
  92. background-size: 100% 100%;
  93. }
  94. }
  95. .expand{
  96. width: 32rpx;
  97. height: 32rpx;
  98. position: absolute;
  99. top: 24rpx;
  100. right: 32rpx;
  101. }
  102. .title{
  103. font-family: PingFang-SC, PingFang-SC;
  104. font-weight: bold;
  105. font-size: 32rpx;
  106. color: #002846;
  107. line-height: 32rpx;
  108. }
  109. .name{
  110. font-family: PingFangSC, PingFang SC;
  111. font-weight: 400;
  112. font-size: 24rpx;
  113. color: #667E90;
  114. line-height: 24rpx;
  115. margin-top: 32rpx;
  116. }
  117. .bottom{
  118. margin-top: 30rpx;
  119. border-top: 1rpx solid #EFEFEF;
  120. padding-top: 20rpx;
  121. &-left{
  122. font-family: PingFangSC, PingFang SC;
  123. font-weight: 400;
  124. font-size: 24rpx;
  125. color: #667E90;
  126. line-height: 24rpx;
  127. }
  128. &-right{
  129. border-radius: 32rpx;
  130. background: rgba(144, 74, 135, .11);
  131. padding: 19rpx 22rpx;
  132. font-family: PingFangSC, PingFang SC;
  133. font-weight: 400;
  134. font-size: 26rpx;
  135. color: #761E6A;
  136. line-height: 26rpx;
  137. letter-spacing: 2rpx;
  138. }
  139. }
  140. }
  141. }
  142. .empty{
  143. flex: 1;
  144. }
  145. }
  146. </style>