mn_jingshen.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="box">
  3. <u-navbar :autoBack="true" title="闽南精神" bgColor="rgba(255,255,255,255)" :placeholder="true" titleStyle="font-weight:bold;color:#121212"></u-navbar>
  4. <view class="header">
  5. <image style="width: 100%; height: 100%" src="http://mms2.baidu.com/it/u=4012979722,1550976495&fm=253&app=120&f=JPEG?w=1080&h=324"></image>
  6. </view>
  7. <view class="banner" v-for="item in list" :key="item.name">
  8. <view class="box_img">
  9. <image style="width: 100%; height: 100%; border-radius: 50%" :src="item.img" mode=""></image>
  10. </view>
  11. <view class="" style="line-height: 65rpx">
  12. <view class="">{{ item.name }}</view>
  13. <view class="" style="width: 450rpx">{{ item.title }}</view>
  14. </view>
  15. <view class="">
  16. <uni-icons type="forward" size="24"></uni-icons>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. list: [
  26. {
  27. img: 'https://img2.baidu.com/it/u=2106717653,1595552958&fm=253&fmt=auto&app=138&f=JPEG?w=400&h=337',
  28. name: '郑成功',
  29. title: '汉族,明末清初军事家,民族英雄'
  30. },
  31. {
  32. img: 'https://img2.baidu.com/it/u=2734408568,2157410577&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=318',
  33. name: '人文精神',
  34. title: '追寻先人精神,品读闽南文化 '
  35. },
  36. {
  37. img: 'https://img2.baidu.com/it/u=2106717653,1595552958&fm=253&fmt=auto&app=138&f=JPEG?w=400&h=337',
  38. name: '闽南华侨华人人文精神探析',
  39. title: '拼搏进取,敢打敢拼的奋进精神'
  40. },
  41. {
  42. img: 'https://img1.baidu.com/it/u=2520995424,4290269983&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto?sec=1698858000&t=09b27eddc6fdec5ea15fb8c979a60ba6',
  43. name: '李光地',
  44. title: '名相故里安溪湖头'
  45. }
  46. ]
  47. };
  48. },
  49. methods: {}
  50. };
  51. </script>
  52. <style>
  53. .box {
  54. height: auto;
  55. width: 100%;
  56. background-color: #f8f8f8;
  57. background-attachment: fixed;
  58. border-radius: 16px 16px 0 0;
  59. position: relative;
  60. display: flex;
  61. flex-direction: column;
  62. }
  63. .header {
  64. width: 100%;
  65. height: 255rpx;
  66. }
  67. .banner {
  68. display: flex;
  69. justify-content: space-around;
  70. align-items: center;
  71. margin-left: 32rpx;
  72. margin-bottom: 20rpx;
  73. height: 198rpx;
  74. background: #ffffff;
  75. border-radius: 99rpx 0rpx 0rpx 99rpx;
  76. padding-left: 10rpx;
  77. }
  78. .box_img {
  79. width: 160rpx;
  80. height: 160rpx;
  81. border-radius: 50%;
  82. }
  83. </style>