You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
2.4 KiB

4 months ago
4 months ago
4 months ago
  1. <template>
  2. <view class="topInfo">
  3. <view class="bg padding">
  4. <view class="status_bar"></view>
  5. <up-navbar title="投票表决" :safeAreaInsetTop="true" :autoBack="true" bgColor="transparent" ></up-navbar>
  6. <view class="tit">{{ detailInfo.title}}</view>
  7. <view class="textCon">
  8. <view class="p">
  9. <view class="txt">发起人{{ detailInfo.makerName }}</view>
  10. <view class="txt">创建时间{{ detailInfo.startTime }}</view>
  11. <view class="txt">截止时间{{ detailInfo.endTime }}</view>
  12. </view>
  13. <!-- <view class="status">进行中</view> -->
  14. <view class="status" v-if="detailInfo.voteStatus==0" style="opacity: 0.4;">未开始</view>
  15. <view class="status" v-if="detailInfo.voteStatus==1">我要投票</view>
  16. <view class="status" v-if="detailInfo.voteStatus==2" style="opacity: 0.4;">已结束</view>
  17. </view>
  18. </view>
  19. <view class="detail padding">
  20. {{detailInfo.detail}}
  21. </view>
  22. <view class="padding">
  23. <view class="row flex-b">
  24. <view class="flex">
  25. <view class="radionItem">{{ detailInfo.voteType==1?'单选': '多选'}}</view>
  26. </view>
  27. <view class="checkboxs">
  28. <text>{{detailInfo.userHiddenType?'实名': '匿名'}}</text>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <script setup>
  35. defineProps({
  36. detailInfo: {
  37. type: Object,
  38. default: {}
  39. }
  40. })
  41. </script>
  42. <style lang="scss" scoped>
  43. .topInfo {
  44. width: 100%;
  45. .detail {
  46. font-size: 28rpx;
  47. }
  48. .bg {
  49. width: 100%;
  50. background: linear-gradient(0deg, #ffffff 0%, #FFD4D3 100%);
  51. padding-top: 90rpx;
  52. padding-bottom: 20rpx;
  53. .tit {
  54. font-size: 36rpx;
  55. padding: 10rpx 0 20rpx 0;
  56. font-weight: 700;
  57. }
  58. .textCon {
  59. display: flex;
  60. .p {
  61. font-size: 24rpx;
  62. color: #9C9C9C;
  63. flex: 1;
  64. width: 0;
  65. .txt {
  66. margin-bottom: 14rpx;
  67. }
  68. }
  69. .status {
  70. width: 110rpx;
  71. font-size: 22rpx;
  72. height: 44rpx;
  73. background: #DE3A26;
  74. border-radius: 22rpx;
  75. line-height: 44rpx;
  76. text-align: center;
  77. color: #fff;
  78. }
  79. }
  80. }
  81. .row {
  82. height: 90rpx;
  83. margin-bottom: 40rpx;
  84. border-bottom: 1px solid #EFEFEF;
  85. .flex {
  86. flex: 1;
  87. width: 0;
  88. .radionItem {
  89. font-size: 28rpx;
  90. margin-right: 30rpx;
  91. color: $themC;
  92. &.hui {
  93. color: #9C9C9C;
  94. }
  95. }
  96. }
  97. .checkboxs {
  98. font-size: 28rpx;
  99. color: $themC;
  100. }
  101. }
  102. }
  103. </style>