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.

116 lines
2.5 KiB

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 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. <u-parse :content="detailInfo.detail" :tagStyle="style"></u-parse>
  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. let style = {
  42. // p: 'font-size:32rpx',
  43. // span: 'font-size: 30rpx',
  44. img: 'max-width: 100%'
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .topInfo {
  49. width: 100%;
  50. .detail {
  51. font-size: 28rpx;
  52. }
  53. .bg {
  54. width: 100%;
  55. background: linear-gradient(0deg, #ffffff 0%, #FFD4D3 100%);
  56. padding-top: 90rpx;
  57. padding-bottom: 20rpx;
  58. .tit {
  59. font-size: 36rpx;
  60. padding: 10rpx 0 20rpx 0;
  61. font-weight: 700;
  62. }
  63. .textCon {
  64. display: flex;
  65. .p {
  66. font-size: 24rpx;
  67. color: #9C9C9C;
  68. flex: 1;
  69. width: 0;
  70. .txt {
  71. margin-bottom: 14rpx;
  72. }
  73. }
  74. .status {
  75. width: 110rpx;
  76. font-size: 22rpx;
  77. height: 44rpx;
  78. background: #DE3A26;
  79. border-radius: 22rpx;
  80. line-height: 44rpx;
  81. text-align: center;
  82. color: #fff;
  83. }
  84. }
  85. }
  86. .row {
  87. height: 90rpx;
  88. margin-bottom: 40rpx;
  89. border-bottom: 1px solid #EFEFEF;
  90. .flex {
  91. flex: 1;
  92. width: 0;
  93. .radionItem {
  94. font-size: 28rpx;
  95. margin-right: 30rpx;
  96. color: $themC;
  97. &.hui {
  98. color: #9C9C9C;
  99. }
  100. }
  101. }
  102. .checkboxs {
  103. font-size: 28rpx;
  104. color: $themC;
  105. }
  106. }
  107. }
  108. </style>