index.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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">
  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. // onShareAppMessage() {
  104. // return {
  105. // title: '分销小助手',
  106. // path:'/pages/index/index?scene=' + getApp().globalData.user_id
  107. // }
  108. // },
  109. methods: {
  110. bindDateChange(e){
  111. this.dateYear = e.target.value
  112. },
  113. bindDateMonthChange(e){
  114. this.dateMonth = this.arrayMonth[e.target.value]
  115. },
  116. change(e) {
  117. this.single = e;
  118. console.log("-change事件:", e);
  119. },
  120. }
  121. }
  122. </script>
  123. <style lang="scss" scoped>
  124. .page-box {
  125. width: 100%;
  126. height: 100%;
  127. .title-img {
  128. width: 98%;
  129. height: 340rpx;
  130. margin-left: 1%;
  131. }
  132. .content-title {
  133. width: 100%;
  134. height: 100rpx;
  135. border-bottom: 1px solid #cccccc;
  136. .line {
  137. width: 60rpx;
  138. height: 2rpx;
  139. background-color: #cccccc;
  140. }
  141. .circle {
  142. width: 10rpx;
  143. height: 10rpx;
  144. border-radius: 50%;
  145. background-color: #cccccc;
  146. margin: 0 10rpx 0 10rpx;
  147. }
  148. .title {
  149. color: #000;
  150. font-size: 36rpx;
  151. margin: 0 20rpx 0 20rpx;
  152. }
  153. }
  154. .hood-box {
  155. .hood-child {
  156. width: 48%;
  157. height: 160rpx;
  158. background-color: #fafafa;
  159. margin-bottom: 20rpx;
  160. image {
  161. width: 120rpx;
  162. height: 120rpx;
  163. border-radius: 50%;
  164. }
  165. }
  166. }
  167. .hood-bottom {
  168. width: 100%;
  169. height: 80rpx;
  170. }
  171. .title-img2 {
  172. width: 98%;
  173. height: 220rpx;
  174. margin-left: 1%;
  175. }
  176. .goods-box {
  177. .goods-child {
  178. width: 100%;
  179. height: 280rpx;
  180. background-color: #fafafa;
  181. border-bottom: 1px solid #cccccc;
  182. .margin-goods {
  183. margin: 80rpx 0 10rpx 0;
  184. }
  185. image {
  186. width: 240rpx;
  187. height: 230rpx;
  188. border-radius: 6rpx;
  189. }
  190. }
  191. }
  192. }
  193. </style>