book.vue 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <view class="main">
  3. <view class="indexswiper" style="margin-top: 10rpx;">
  4. <u-swiper :list="list" mode="none"></u-swiper>
  5. </view>
  6. <view class="tltleStyle">
  7. 推荐文章
  8. </view>
  9. <u-card :show-head="false" :show-foot="false" :border="false">
  10. <view class="" slot="body">
  11. <view class="u-border-bottom padding-bottom-sm">
  12. <view class="u-body-item u-flex u-col-between u-p-t-0">
  13. <view class="u-body-item-title u-line-2">瓶身描绘的牡丹一如你初妆,冉冉檀香透过窗心事我了然,宣纸上走笔至此搁一半</view>
  14. <image src="https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg"
  15. mode="aspectFill"></image>
  16. </view>
  17. <u-tag text="情感咨询" size="mini" shape="circle" mode="dark" type="info" />
  18. </view>
  19. <view class="padding-bottom-sm margin-top-sm">
  20. <view class="u-body-item u-flex u-col-between u-p-t-0">
  21. <view class="u-body-item-title u-line-2">瓶身描绘的牡丹一如你初妆,冉冉檀香透过窗心事我了然,宣纸上走笔至此搁一半</view>
  22. <image src="https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg"
  23. mode="aspectFill"></image>
  24. </view>
  25. <u-tag text="情感咨询" size="mini" shape="circle" mode="dark" type="info" />
  26. </view>
  27. </view>
  28. </u-card>
  29. <view class="margin-tb padding-tb-xs">
  30. <u-loadmore :status="nomore" :icon-type="flower" />
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. onLoad(options) {
  37. },
  38. data() {
  39. return {
  40. list: [{
  41. image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
  42. },
  43. {
  44. image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
  45. },
  46. {
  47. image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
  48. }
  49. ],
  50. }
  51. },
  52. methods: {
  53. }
  54. };
  55. </script>
  56. <style scoped lang="scss">
  57. .main {
  58. padding-top: 10rpx;
  59. padding-left: 20rpx;
  60. padding-right: 20rpx;
  61. }
  62. .tltleStyle {
  63. padding: 30rpx 30rpx 15rpx 15rpx;
  64. font-weight: bold;
  65. font-size: 40rpx;
  66. background-color: #fff;
  67. }
  68. .u-card-wrap {
  69. background-color: $u-bg-color;
  70. padding: 1px;
  71. }
  72. .u-body-item {
  73. font-size: 32rpx;
  74. color: #333;
  75. padding: 20rpx 10rpx;
  76. }
  77. .u-body-item image {
  78. width: 120rpx;
  79. flex: 0 0 120rpx;
  80. height: 120rpx;
  81. border-radius: 8rpx;
  82. margin-left: 12rpx;
  83. }
  84. </style>