index.vue 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <view class="page HuoDongXiangQing flex-v">
  3. <view class="flex-item">
  4. <view>
  5. <!-- 活动主要信息 -->
  6. <view class="MainInfo">
  7. <text>活动名称</text>
  8. <view class="SubInfo flex-h">
  9. <view class="flex-item">
  10. <text class="iconfont iconxianshi"></text>
  11. <text>1245</text>
  12. </view>
  13. <view class="Time">
  14. <text class="iconfont iconshijian"></text>
  15. <text>2020-08-07</text>
  16. </view>
  17. </view>
  18. <view class="Line flex-h">
  19. <text>活动时间:</text>
  20. <text class="flex-item">2020-08-07 至 2020-08-08</text>
  21. </view>
  22. <view class="Line flex-h">
  23. <text>活动地址:</text>
  24. <text class="flex-item">南京市江宁区丽园荟广场</text>
  25. </view>
  26. <view class="Line flex-h">
  27. <text>报名截止:</text>
  28. <text class="flex-item">2020-08-06 18:30</text>
  29. </view>
  30. </view>
  31. <!-- 活动详情 -->
  32. <view class="DetailContainer">
  33. <image mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/huodongxiangqing.png"></image>
  34. <view class="Text"></view>
  35. </view>
  36. <!-- 投票 -->
  37. <view class="VoteContainer">
  38. <image mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/toupiao.png"></image>
  39. <view class="List">
  40. <view v-for="(item, index) in VoteList" :key="index">
  41. <text>{{index + 1}}.{{item.Question}}</text>
  42. <view class="flex-h" v-for="(subItem, subIndex) in item.Answer" :key="subIndex">
  43. <text class="iconfont iconweigouxuan" v-if="!subItem.active"></text>
  44. <text class="iconfont icongouxuan" v-else></text>
  45. <view class="flex-item">
  46. <text>{{subItem.name}}</text>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <text>提交</text>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 底部栏 -->
  56. <view class="Bottom flex-h">
  57. <view class="flex-item">
  58. <image class="centerLabel" mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/huishenghuo.png"></image>
  59. </view>
  60. <view class="flex-item">
  61. <image class="centerLabel" mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/fenxiang.png"></image>
  62. </view>
  63. <image mode="heightFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/lijibaomingbtn.png"></image>
  64. </view>
  65. </view>
  66. </template>
  67. <script>
  68. export default {
  69. name: 'HuoDongXiangQing',
  70. data () {
  71. return {
  72. DataLock: false,
  73. VoteList: [
  74. {
  75. Question: '问题1',
  76. Answer: [{ name: '答案1', active: false, id: '1' }, { name: '答案2', active: false, id: '2' }, { name: '答案3', active: false, id: '3' }]
  77. }, {
  78. Question: '问题2',
  79. Answer: [{ name: '答案1', active: false, id: '1' }, { name: '答案2', active: false, id: '2' }, { name: '答案3', active: false, id: '3' }]
  80. }, {
  81. Question: '问题3',
  82. Answer: [{ name: '答案1', active: false, id: '1' }, { name: '答案2', active: false, id: '2' }, { name: '答案3', active: false, id: '3' }]
  83. }, {
  84. Question: '问题4',
  85. Answer: [{ name: '答案1', active: false, id: '1' }, { name: '答案2', active: false, id: '2' }, { name: '答案3', active: false, id: '3' }]
  86. }, {
  87. Question: '问题5',
  88. Answer: [{ name: '答案1', active: false, id: '1' }, { name: '答案2', active: false, id: '2' }, { name: '答案3', active: false, id: '3' }]
  89. }
  90. ]
  91. }
  92. },
  93. components: {
  94. },
  95. created () {
  96. this.Init()
  97. },
  98. methods: {
  99. Init () {
  100. }
  101. }
  102. }
  103. </script>
  104. <style lang="scss">
  105. @import "page.scss";
  106. </style>