club-visit.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <template>
  2. <view class="container ">
  3. <au-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></au-custom>
  4. <view class="vsit-content">
  5. <view class="list" v-for="(item,index) in list" :key="index" >
  6. <view class="list-title">{{ item.year }}年</view>
  7. <view class="list-main clear">
  8. <view class="list-main-item" v-for="(visit,index) in item.data">
  9. <view class="item-le">
  10. <view class="item-le-t none">{{ visit.month }}</view>
  11. <view class="item-le-t">{{ visit.day }}</view>
  12. </view>
  13. <view class="item-ri">
  14. <view class="item-ri-i">访问记录</view>
  15. <view class="item-ri-i none">{{ visit.num }}条</view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default{
  25. data(){
  26. return{
  27. nvabarData: { //顶部自定义导航
  28. haveHome:true,
  29. haveBack:true,
  30. textColor:'#ffffff',
  31. showCapsule:1, // 是否显示左上角图标 1表示显示 0表示不显示,
  32. showSearch: 0,
  33. title: '', // 导航栏 中间的标题
  34. textLeft:this.$store.state.isIphone
  35. },
  36. list:[
  37. {
  38. year:"2023",
  39. data:[
  40. {
  41. month:'三月',
  42. day:'03-27',
  43. num:5
  44. },
  45. {
  46. month:'三月',
  47. day:'03-27',
  48. num:5
  49. },
  50. {
  51. month:'三月',
  52. day:'03-27',
  53. num:5
  54. },
  55. {
  56. month:'三月',
  57. day:'03-27',
  58. num:5
  59. }
  60. ]
  61. },
  62. {
  63. year:"2022",
  64. data:[
  65. {
  66. month:'十二月',
  67. day:'12-27',
  68. num:5
  69. },
  70. {
  71. month:'十二月',
  72. day:'12-27',
  73. num:15
  74. },
  75. {
  76. month:'十二月',
  77. day:'12-27',
  78. num:50
  79. },
  80. {
  81. month:'十二月',
  82. day:'12-27',
  83. num:5
  84. }
  85. ]
  86. },
  87. ]
  88. }
  89. },
  90. filters:{
  91. },
  92. onLoad(option) {
  93. },
  94. methods:{
  95. hanldNavigateBack(){
  96. uni.navigateBack({
  97. delta: 1
  98. })
  99. }
  100. },
  101. onShow() {
  102. }
  103. }
  104. </script>
  105. <style lang="scss">
  106. page{
  107. width: 100%;
  108. height: auto;
  109. background-color: #F7F7F7 !important;
  110. }
  111. .container{
  112. width: 100%;
  113. min-height: 700rpx;
  114. background: url(https://static.caimei365.com/app/img/bg/bg_visit@2x.png) top center no-repeat;
  115. background-size: contain;
  116. box-sizing: border-box;
  117. padding: 0 24rpx;
  118. padding-top: 441rpx;
  119. }
  120. .vsit-content{
  121. width: 100%;
  122. min-height: 1000rpx;
  123. background: #FFFFFF;
  124. border-radius: 24rpx;
  125. padding: 52rpx 24rpx;
  126. box-sizing: border-box;
  127. .list{
  128. width: 100%;
  129. height: auto;
  130. margin-bottom: 80rpx;
  131. .list-title{
  132. width: 100%;
  133. height: 58rpx;
  134. margin-bottom: 20rpx;
  135. font-size: 42rpx;
  136. color: #333;
  137. }
  138. .list-main{
  139. width: 100%;
  140. height: auto;
  141. padding: 24rpx 16rpx 24rpx 70rpx;
  142. box-sizing: border-box;
  143. position: relative;
  144. &::before{
  145. content:'';
  146. height: 100%;
  147. border-left: 2px dashed #FFA880;
  148. position: absolute;
  149. left: 37rpx;
  150. top: 0;
  151. }
  152. .list-main-item{
  153. width: 565rpx;
  154. height: 120rpx;
  155. box-sizing: border-box;
  156. padding: 12rpx 35rpx;
  157. background: url(https://static.caimei365.com/app/img/bg/bg_visit_list@2x.png)no-repeat;
  158. background-size: cover;
  159. margin-bottom: 40rpx;
  160. position: relative;
  161. border-radius: 16rpx;
  162. &::after{
  163. content:'';
  164. width: 40rpx;
  165. height: 40rpx;
  166. background: url(https://static.caimei365.com/app/img/bg/bg_visit_radius@2x.png)no-repeat;
  167. background-size: cover;
  168. position: absolute;
  169. left: -52rpx;
  170. }
  171. .item-le{
  172. height: 100%;
  173. box-sizing: border-box;
  174. padding-right: 30rpx;
  175. position: relative;
  176. float: left;
  177. &::before{
  178. content: '';
  179. width: 1px;
  180. height: 48rpx;
  181. background-color: #CCC;
  182. position: absolute;
  183. top: 24rpx;
  184. right: 0;
  185. }
  186. .item-le-t{
  187. width: 120rpx;
  188. height: 48rpx;
  189. line-height: 48rpx;
  190. font-size: 30rpx;
  191. text-align: center;
  192. color: #333333;
  193. &.none{
  194. color: #999;
  195. }
  196. }
  197. }
  198. .item-ri{
  199. height: 96rpx;
  200. padding-left: 48rpx;
  201. float: left;
  202. .item-ri-i{
  203. padding-right: 60rpx;
  204. line-height: 96rpx;
  205. font-size: 28rpx;
  206. text-align: center;
  207. color: #999;
  208. float: left;
  209. &.none{
  210. font-size: 30rpx;
  211. color: #E15616;
  212. }
  213. }
  214. }
  215. }
  216. }
  217. }
  218. }
  219. </style>