receiveList.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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 @click.prevent="showDialog(item)">
  7. <view class="status adf" :class="{'dwc':item.status===0,'ywc':item.status===1}">
  8. <image :src="imgBase+'questionnaire_icon_dwc.png'" v-if="item.status===0"></image>
  9. <image :src="imgBase+'questionnaire_icon_ywc.png'" v-else-if="item.status===1"></image>
  10. <text>{{item.status===0?'待完成':item.status===1?'已完成':''}}</text>
  11. </view>
  12. <image class="expand" :src="imgBase+'questionnaire_icon_down.png'"></image>
  13. <view class="title">{{item.title||''}}</view>
  14. <view class="name">团队名称:{{item.teamName||''}}</view>
  15. <view class="bottom adfacjb">
  16. <view class="bottom-left">截止时间:{{item.endTime}}</view>
  17. <view class="bottom-right" v-if="item.status===0">立即作答</view>
  18. <view class="bottom-right" v-else-if="item.status===1">查看报告</view>
  19. </view>
  20. </view>
  21. </up-list-item>
  22. </up-list>
  23. </view>
  24. <view class="empty" v-else>
  25. <page-empty></page-empty>
  26. </view>
  27. <view class="dialog adffc" v-if="show">
  28. <view class="dbox">
  29. <view class="dbox-top adfacjb">
  30. <view class="dbox-top-title">{{dto.title||''}}</view>
  31. <image class="dbox-top-expand" :src="imgBase+'questionnaire_icon_down.png'" @click="show=false"></image>
  32. </view>
  33. <view class="dbox-status adfac" :class="{'dwc':dto.status===0,'ywc':dto.status===1}">
  34. <image :src="imgBase+'questionnaire_icon_dwc.png'" v-if="dto.status===0"></image>
  35. <image :src="imgBase+'questionnaire_icon_ywc.png'" v-else-if="dto.status===1"></image>
  36. <text>{{dto.status===0?'待完成':dto.status===1?'已完成':''}}</text>
  37. </view>
  38. <view class="dbox-menu adf">
  39. <view class="dbox-menu-pre adffcac" v-for="(item,index) in menuList" :key="index">
  40. <image :src="item.img"></image>
  41. <text>{{item.text}}</text>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. import PageEmpty from '@/components/pageEmpty/index.vue'
  50. export default {
  51. components:{ PageEmpty },
  52. props:{
  53. list:{
  54. typeof:Array,
  55. default:[]
  56. }
  57. },
  58. data(){
  59. return {
  60. show:false,
  61. dto:null,
  62. menuList:[
  63. {
  64. img:this.$imgBase+'questionnaire_users.png',
  65. text:'团队成员'
  66. },
  67. {
  68. img:this.$imgBase+'questionnaire_share.png',
  69. text:'分享问卷'
  70. },
  71. {
  72. img:this.$imgBase+'questionnaire_info.png',
  73. text:'团队信息'
  74. },
  75. {
  76. img:this.$imgBase+'questionnaire_report.png',
  77. text:'查看报告'
  78. }
  79. ]
  80. }
  81. },
  82. methods:{
  83. scrolltolower(){
  84. this.$emit('scrolltolower')
  85. },
  86. showDialog(item){
  87. this.dto = item;
  88. this.show = true;
  89. }
  90. }
  91. }
  92. </script>
  93. <style scoped lang="scss">
  94. .qbox{
  95. width: 100%;
  96. height: 100%;
  97. flex: 1;
  98. .list{
  99. flex: 1;
  100. margin-top: 20rpx;
  101. overflow: hidden;
  102. &-item{
  103. width: 100%;
  104. background: #FFFFFF;
  105. border-radius: 24rpx;
  106. margin-top: 20rpx;
  107. padding: 99rpx 24rpx 19rpx;
  108. box-sizing: border-box;
  109. position: relative;
  110. display: block;
  111. .status{
  112. width: 164rpx;
  113. height: 80rpx;
  114. padding: 14rpx 0 0 15rpx;
  115. box-sizing: border-box;
  116. position: absolute;
  117. left: 0;
  118. top: 0;
  119. image{
  120. width: 26rpx;
  121. height: 26rpx;
  122. }
  123. text{
  124. font-family: PingFangSC, PingFang SC;
  125. font-weight: 400;
  126. font-size: 24rpx;
  127. color: #FFFFFF;
  128. line-height: 24rpx;
  129. margin-left: 12rpx;
  130. }
  131. &.dwc{
  132. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/questionnaire_dwc.png') no-repeat;
  133. background-size: 100% 100%;
  134. }
  135. &.ywc{
  136. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/questionnaire_ywc.png') no-repeat;
  137. background-size: 100% 100%;
  138. }
  139. }
  140. .expand{
  141. width: 32rpx;
  142. height: 32rpx;
  143. position: absolute;
  144. top: 24rpx;
  145. right: 32rpx;
  146. }
  147. .title{
  148. font-family: PingFang-SC, PingFang-SC;
  149. font-weight: bold;
  150. font-size: 32rpx;
  151. color: #002846;
  152. line-height: 32rpx;
  153. }
  154. .name{
  155. font-family: PingFangSC, PingFang SC;
  156. font-weight: 400;
  157. font-size: 24rpx;
  158. color: #667E90;
  159. line-height: 24rpx;
  160. margin-top: 32rpx;
  161. }
  162. .bottom{
  163. margin-top: 30rpx;
  164. border-top: 1rpx solid #EFEFEF;
  165. padding-top: 20rpx;
  166. &-left{
  167. font-family: PingFangSC, PingFang SC;
  168. font-weight: 400;
  169. font-size: 24rpx;
  170. color: #667E90;
  171. line-height: 24rpx;
  172. }
  173. &-right{
  174. border-radius: 32rpx;
  175. background: rgba(144, 74, 135, .11);
  176. padding: 19rpx 22rpx;
  177. font-family: PingFangSC, PingFang SC;
  178. font-weight: 400;
  179. font-size: 26rpx;
  180. color: #761E6A;
  181. line-height: 26rpx;
  182. letter-spacing: 2rpx;
  183. }
  184. }
  185. }
  186. }
  187. .empty{
  188. flex: 1;
  189. }
  190. .dialog{
  191. position: fixed;
  192. left: 0;
  193. right: 0;
  194. top: 0;
  195. bottom: 0;
  196. background: rgba(0, 0, 0, .4);
  197. z-index: 1001;
  198. justify-content: flex-end;
  199. .dbox{
  200. width: 100%;
  201. height: 738rpx;
  202. background: #FFFFFF;
  203. box-shadow: 0rpx -2rpx 6rpx 0rpx rgba(0,0,0,0.07);
  204. border-radius: 24rpx 24rpx 0rpx 0rpx;
  205. padding: 48rpx 30rpx 0;
  206. box-sizing: border-box;
  207. &-top{
  208. &-title{
  209. width: calc(100% - 60rpx);
  210. font-family: PingFang-SC, PingFang-SC;
  211. font-weight: bold;
  212. font-size: 32rpx;
  213. color: #002846;
  214. line-height: 40rpx;
  215. }
  216. &-expand{
  217. width: 32rpx;
  218. height: 32rpx;
  219. transform: rotate(180deg);
  220. }
  221. }
  222. &-status{
  223. width: 140rpx;
  224. margin-top: 28rpx;
  225. border-radius: 16rpx;
  226. padding: 11rpx 15rpx;
  227. box-sizing: border-box;
  228. &.dwc{
  229. background: #AD78A6;
  230. }
  231. &.ywc{
  232. background: #64BBBB;
  233. }
  234. image{
  235. width: 26rpx;
  236. height: 26rpx;
  237. }
  238. text{
  239. font-family: PingFangSC, PingFang SC;
  240. font-weight: 400;
  241. font-size: 24rpx;
  242. color: #FFFFFF;
  243. line-height: 24rpx;
  244. margin-left: 12rpx;
  245. }
  246. }
  247. &-menu{
  248. margin-top: 43rpx;
  249. overflow: hidden;
  250. flex-wrap: wrap;
  251. justify-content: space-between;
  252. &-pre{
  253. width: calc(25% - 22.5rpx);
  254. background: #F7F8FA;
  255. border-radius: 24rpx;
  256. padding: 30rpx 20rpx;
  257. margin-top: 24rpx;
  258. box-sizing: border-box;
  259. image{
  260. width: 42rpx;
  261. height: 42rpx;
  262. }
  263. text{
  264. font-family: PingFangSC, PingFang SC;
  265. font-weight: 400;
  266. font-size: 24rpx;
  267. color: #002846;
  268. line-height: 24rpx;
  269. text-align: center;
  270. margin-top: 24rpx;
  271. }
  272. }
  273. }
  274. }
  275. }
  276. }
  277. </style>