index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <template>
  2. <view class="page-box">
  3. <image class="title-img" src="/static/taxation/poster.jpg" alt="海报"/>
  4. <view class="content-box">
  5. <view class="content-title display-flex-center items-center">
  6. <view class="line"></view><view class="circle"></view>
  7. <view class="title">社区活动</view>
  8. <view class="circle"></view><view class="line"></view>
  9. </view>
  10. <view class="display-around display-wrap hood-box">
  11. <view class="display-around items-center hood-child" v-for="(item,index) in hoodList" @click="goDetail()">
  12. <view class="display-around-column">
  13. <text>{{item.title}}</text>
  14. <text class="color-999">{{item.type === 'on' ? '线上课堂' : '线下活动'}}</text>
  15. </view>
  16. <image :src="item.imgSrc"></image>
  17. </view>
  18. </view>
  19. <view class="hood-bottom .items-center color-666 display-around">
  20. <text>大学生创业之路</text>
  21. <text>创业的五个思路</text>
  22. <text>创业经验少走两年弯路!</text>
  23. </view>
  24. <image class="title-img2" src="/static/taxation/poster2.png" @click="goTicket()"></image>
  25. <view class="content-title display-flex-center items-center">
  26. <view class="line"></view><view class="circle"></view>
  27. <view class="title">创业干货</view>
  28. <view class="circle"></view><view class="line"></view>
  29. </view>
  30. <view class="display-flex goods-box">
  31. <view class="display-around items-center goods-child" v-for="(item,index) in goodsList">
  32. <view class="display-around-column width-55">
  33. <text>{{item.title}}</text>
  34. <text class=" margin-goods color-666">{{item.type}}</text>
  35. <text class="color-999">{{item.time}}</text>
  36. </view>
  37. <image :src="item.imgSrc"></image>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import md5 from "@/common/md5.js";
  45. export default {
  46. components: {
  47. },
  48. data() {
  49. return {
  50. dateYear:new Date().getFullYear(),
  51. dateMonth:new Date().getMonth() + 1,
  52. hoodList:[
  53. {
  54. imgSrc:'/static/taxation/poster.jpg',
  55. title:'8月供需对接会',
  56. type:'off'
  57. },
  58. {
  59. imgSrc:'/static/taxation/poster2.png',
  60. title:'创业大讲堂',
  61. type:'on'
  62. },
  63. {
  64. imgSrc:'/static/taxation/poster.jpg',
  65. title:'职工素质讲座',
  66. type:'on'
  67. },
  68. {
  69. imgSrc:'/static/taxation/poster2.png',
  70. title:'创业分享会',
  71. type:'on'
  72. },
  73. ],
  74. goodsList:[
  75. {
  76. imgSrc:'/static/taxation/poster.jpg',
  77. title:'小微企业--全额返还',
  78. type:'鑫恩华创业社区',
  79. time:'2021-11-15 18:18:52'
  80. },
  81. {
  82. imgSrc:'/static/taxation/poster2.png',
  83. title:'政策直通--国科小那些事儿',
  84. type:'鑫恩华创业社区',
  85. time:'2021-11-15 18:18:52'
  86. },
  87. {
  88. imgSrc:'/static/taxation/poster.jpg',
  89. title:'税筹--劳务派遣与劳务分包',
  90. type:'鑫恩华创业社区',
  91. time:'2021-11-15 18:18:52'
  92. },
  93. ],
  94. }
  95. },
  96. onLoad(option) {
  97. if(option.id){
  98. }else {
  99. }
  100. },
  101. onShow() {
  102. },
  103. methods: {
  104. goDetail(){
  105. uni.navigateTo({
  106. url:'active'
  107. })
  108. },
  109. goTicket(){
  110. uni.navigateTo({
  111. url:'ticket'
  112. })
  113. }
  114. }
  115. }
  116. </script>
  117. <style lang="scss" scoped>
  118. .page-box {
  119. width: 100%;
  120. height: 100%;
  121. .title-img {
  122. width: 98%;
  123. height: 340rpx;
  124. margin-left: 1%;
  125. }
  126. .content-title {
  127. width: 100%;
  128. height: 100rpx;
  129. border-bottom: 1px solid #cccccc;
  130. .line {
  131. width: 60rpx;
  132. height: 2rpx;
  133. background-color: #cccccc;
  134. }
  135. .circle {
  136. width: 10rpx;
  137. height: 10rpx;
  138. border-radius: 50%;
  139. background-color: #cccccc;
  140. margin: 0 10rpx 0 10rpx;
  141. }
  142. .title {
  143. color: #000;
  144. font-size: 36rpx;
  145. margin: 0 20rpx 0 20rpx;
  146. }
  147. }
  148. .hood-box {
  149. .hood-child {
  150. width: 48%;
  151. height: 160rpx;
  152. background-color: #fafafa;
  153. margin-bottom: 20rpx;
  154. image {
  155. width: 120rpx;
  156. height: 120rpx;
  157. border-radius: 50%;
  158. }
  159. }
  160. }
  161. .hood-bottom {
  162. width: 100%;
  163. height: 80rpx;
  164. }
  165. .title-img2 {
  166. width: 98%;
  167. height: 220rpx;
  168. margin-left: 1%;
  169. }
  170. .goods-box {
  171. .goods-child {
  172. width: 100%;
  173. height: 280rpx;
  174. background-color: #fafafa;
  175. border-bottom: 1px solid #cccccc;
  176. .margin-goods {
  177. margin: 80rpx 0 10rpx 0;
  178. }
  179. image {
  180. width: 240rpx;
  181. height: 230rpx;
  182. border-radius: 6rpx;
  183. }
  184. }
  185. }
  186. }
  187. </style>