|
|
@@ -0,0 +1,156 @@
|
|
|
+<template>
|
|
|
+ <view class="qbox adffc">
|
|
|
+ <view class="list" v-if="list.length">
|
|
|
+ <up-list @scrolltolower="scrolltolower" style="height: 100%;">
|
|
|
+ <up-list-item class="list-item" v-for="(item, index) in list" :key="index">
|
|
|
+ <view class="status adf" :class="{'dwc':item.status===0,'ywc':item.status===1}">
|
|
|
+ <image :src="imgBase+'questionnaire_icon_dwc.png'" v-if="item.status===0"></image>
|
|
|
+ <image :src="imgBase+'questionnaire_icon_ywc.png'" v-else-if="item.status===1"></image>
|
|
|
+ <text>{{item.status===0?'待完成':item.status===1?'已完成':''}}</text>
|
|
|
+ </view>
|
|
|
+ <image class="expand" :src="imgBase+'questionnaire_icon_down.png'"></image>
|
|
|
+ <view class="title">{{item.title||''}}</view>
|
|
|
+ <view class="name">团队名称:{{item.teamName||''}}</view>
|
|
|
+ <view class="bottom adfacjb">
|
|
|
+ <view class="bottom-left">截止时间:{{item.endTime}}</view>
|
|
|
+ <view class="bottom-right" v-if="item.status===0">立即作答</view>
|
|
|
+ <view class="bottom-right" v-else-if="item.status===1">查看报告</view>
|
|
|
+ </view>
|
|
|
+ </up-list-item>
|
|
|
+ </up-list>
|
|
|
+ </view>
|
|
|
+ <view class="empty" v-else>
|
|
|
+ <page-empty></page-empty>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import PageEmpty from '@/components/pageEmpty/index.vue'
|
|
|
+ export default {
|
|
|
+ components:{ PageEmpty },
|
|
|
+ props:{
|
|
|
+ list:{
|
|
|
+ typeof:Array,
|
|
|
+ default:[]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data(){
|
|
|
+ return {
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ scrolltolower(){
|
|
|
+ this.$emit('scrolltolower')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="scss">
|
|
|
+ .qbox{
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ flex: 1;
|
|
|
+
|
|
|
+ .list{
|
|
|
+ flex: 1;
|
|
|
+ margin-top: 20rpx;
|
|
|
+ overflow: hidden;
|
|
|
+ &-item{
|
|
|
+ width: 100%;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 24rpx;
|
|
|
+ margin-top: 20rpx;
|
|
|
+ padding: 99rpx 24rpx 19rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ position: relative;
|
|
|
+ display: block;
|
|
|
+
|
|
|
+ .status{
|
|
|
+ width: 164rpx;
|
|
|
+ height: 80rpx;
|
|
|
+ padding: 14rpx 0 0 15rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ image{
|
|
|
+ width: 26rpx;
|
|
|
+ height: 26rpx;
|
|
|
+ }
|
|
|
+ text{
|
|
|
+ font-family: PingFangSC, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: #FFFFFF;
|
|
|
+ line-height: 24rpx;
|
|
|
+ margin-left: 12rpx;
|
|
|
+ }
|
|
|
+ &.dwc{
|
|
|
+ background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/questionnaire_dwc.png') no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
+ &.ywc{
|
|
|
+ background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/questionnaire_ywc.png') no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .expand{
|
|
|
+ width: 32rpx;
|
|
|
+ height: 32rpx;
|
|
|
+ position: absolute;
|
|
|
+ top: 24rpx;
|
|
|
+ right: 32rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .title{
|
|
|
+ font-family: PingFang-SC, PingFang-SC;
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #002846;
|
|
|
+ line-height: 32rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .name{
|
|
|
+ font-family: PingFangSC, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: #667E90;
|
|
|
+ line-height: 24rpx;
|
|
|
+ margin-top: 32rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .bottom{
|
|
|
+ margin-top: 30rpx;
|
|
|
+ border-top: 1rpx solid #EFEFEF;
|
|
|
+ padding-top: 20rpx;
|
|
|
+ &-left{
|
|
|
+ font-family: PingFangSC, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: #667E90;
|
|
|
+ line-height: 24rpx;
|
|
|
+ }
|
|
|
+ &-right{
|
|
|
+ border-radius: 32rpx;
|
|
|
+ background: rgba(144, 74, 135, .11);
|
|
|
+ padding: 19rpx 22rpx;
|
|
|
+ font-family: PingFangSC, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #761E6A;
|
|
|
+ line-height: 26rpx;
|
|
|
+ letter-spacing: 2rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .empty{
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|