index.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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"></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. }
  110. }
  111. </script>
  112. <style lang="scss" scoped>
  113. .page-box {
  114. width: 100%;
  115. height: 100%;
  116. .title-img {
  117. width: 98%;
  118. height: 340rpx;
  119. margin-left: 1%;
  120. }
  121. .content-title {
  122. width: 100%;
  123. height: 100rpx;
  124. border-bottom: 1px solid #cccccc;
  125. .line {
  126. width: 60rpx;
  127. height: 2rpx;
  128. background-color: #cccccc;
  129. }
  130. .circle {
  131. width: 10rpx;
  132. height: 10rpx;
  133. border-radius: 50%;
  134. background-color: #cccccc;
  135. margin: 0 10rpx 0 10rpx;
  136. }
  137. .title {
  138. color: #000;
  139. font-size: 36rpx;
  140. margin: 0 20rpx 0 20rpx;
  141. }
  142. }
  143. .hood-box {
  144. .hood-child {
  145. width: 48%;
  146. height: 160rpx;
  147. background-color: #fafafa;
  148. margin-bottom: 20rpx;
  149. image {
  150. width: 120rpx;
  151. height: 120rpx;
  152. border-radius: 50%;
  153. }
  154. }
  155. }
  156. .hood-bottom {
  157. width: 100%;
  158. height: 80rpx;
  159. }
  160. .title-img2 {
  161. width: 98%;
  162. height: 220rpx;
  163. margin-left: 1%;
  164. }
  165. .goods-box {
  166. .goods-child {
  167. width: 100%;
  168. height: 280rpx;
  169. background-color: #fafafa;
  170. border-bottom: 1px solid #cccccc;
  171. .margin-goods {
  172. margin: 80rpx 0 10rpx 0;
  173. }
  174. image {
  175. width: 240rpx;
  176. height: 230rpx;
  177. border-radius: 6rpx;
  178. }
  179. }
  180. }
  181. }
  182. </style>