xjy_XiangQing.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template>
  2. <view class="box">
  3. <u-navbar title="宣讲员介绍" autoBack :placeholder="true" bgColor="#fee1b9"></u-navbar>
  4. <view class="ban">
  5. <view class="top_box">
  6. <img src="https://img2.baidu.com/it/u=443975182,626431415&fm=253&fmt=auto&app=120&f=JPEG?w=627&h=418" class="img" />
  7. <view class="name_box">
  8. <view class="">徐有群</view>
  9. <view class="name_js">男,来自福建厦门,擅长中国历史文物讲解</view>
  10. </view>
  11. </view>
  12. <view class="xxjs">
  13. 徐有群,男,来自福建厦门,擅长中国古代历史文物的讲解。他在多次大型展览中担任讲解员,深受观众喜爱。李明不仅对文物有深入的研究,还能生动地讲述文物背后的故事使观众在轻松愉快的氛围中了解历史。
  14. </view>
  15. <view class="" style="display: flex">
  16. <img class="left_img" src="https://img2.baidu.com/it/u=443975182,626431415&fm=253&fmt=auto&app=120&f=JPEG?w=627&h=418" style="" />
  17. <view class="">
  18. <view class="">
  19. <img src="https://img2.baidu.com/it/u=443975182,626431415&fm=253&fmt=auto&app=120&f=JPEG?w=627&h=418" class="img_js" />
  20. </view>
  21. <view class="">
  22. <img src="https://img2.baidu.com/it/u=443975182,626431415&fm=253&fmt=auto&app=120&f=JPEG?w=627&h=418" class="img_js" />
  23. </view>
  24. </view>
  25. </view>
  26. <!-- -->
  27. <view class="ld">历史讲解</view>
  28. <scroll-view scroll-x enable-flex class="scroll-view_H" type="list">
  29. <view class="goods-item" v-for="item in 6" :key="item">
  30. <image class="img" style="" src="http://t13.baidu.com/it/u=2921758692,2069247658&fm=224&app=112&f=JPEG?w=500&h=500" />
  31. <view style="margin-left: 20rpx">
  32. <view>故事</view>
  33. <view class="gs_js">精彩瞬间</view>
  34. </view>
  35. </view>
  36. </scroll-view>
  37. <view class="ld">用户评价</view>
  38. <view class="">
  39. <view class="top_box">
  40. <img src="https://img2.baidu.com/it/u=443975182,626431415&fm=253&fmt=auto&app=120&f=JPEG?w=627&h=418" class="img" />
  41. <view class="name_box">
  42. <view class="">
  43. 赵丽
  44. <view class="" style="margin-top: 6rpx; display: flex; align-items: center">
  45. <u-icon v-for="item in 5" :key="item" name="star-fill" color="#86827c" size="12"></u-icon>
  46. <view class="name_js" style="margin-left: 6rpx; font-size: 22rpx">2023-5-13</view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <view class="" style="margin-top: 10rpx; font-size: 26rpx">讲解生动形象非常生动有趣,内容丰富,值得推荐!</view>
  52. <view class="icon_box" style="">
  53. <u-icon name="thumb-up" color="#86827c" size="20"></u-icon>
  54. <u-icon name="thumb-down" color="#86827c" size="20"></u-icon>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </template>
  60. <script>
  61. export default {
  62. data() {
  63. return {};
  64. },
  65. methods: {}
  66. };
  67. </script>
  68. <style>
  69. .box {
  70. height: auto;
  71. width: 100%;
  72. padding-bottom: 50rpx;
  73. background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/gj_bg.png');
  74. background-repeat: repeat-y;
  75. background-size: 100%;
  76. }
  77. .ban {
  78. width: 92%;
  79. margin: auto;
  80. }
  81. .img {
  82. width: 80rpx;
  83. height: 80rpx;
  84. border-radius: 50%;
  85. }
  86. .top_box {
  87. display: flex;
  88. margin-top: 10rpx;
  89. }
  90. .name_box {
  91. margin-left: 30rpx;
  92. }
  93. .name_js {
  94. color: #8a8787;
  95. font-size: 24rpx;
  96. margin-top: 10rpx;
  97. }
  98. .xxjs {
  99. margin-top: 20rpx;
  100. text-indent: 2em;
  101. color: black;
  102. font-size: 28rpx;
  103. line-height: 40rpx;
  104. margin-bottom: 26rpx;
  105. }
  106. .img_js {
  107. width: 330rpx;
  108. height: 200rpx;
  109. border-radius: 4rpx 10rpx 4rpx 10rpx;
  110. }
  111. .left_img {
  112. width: 330rpx;
  113. height: 400rpx;
  114. margin-right: 20rpx;
  115. border-radius: 10rpx 4rpx 4rpx 10rpx;
  116. }
  117. .scroll-view_H {
  118. width: 100%;
  119. white-space: nowrap;
  120. /* height: 480rpx; */
  121. flex-direction: row;
  122. }
  123. .scroll-view_H {
  124. white-space: nowrap; /* 确保子元素在同一行显示 */
  125. width: 100%; /* 设置 scroll-view 的宽度 */
  126. }
  127. .scroll-view_H .goods-item {
  128. display: inline-block; /* 使用 inline-block 确保子元素在同一行显示 */
  129. width: 320rpx;
  130. height: 400rpx;
  131. border-radius: 10rpx;
  132. flex-direction: column;
  133. background-color: #fcedd6;
  134. margin-right: 20rpx; /* 添加右边距,最后一个子元素的右边距为 0 */
  135. }
  136. .scroll-view_H .goods-item:last-child {
  137. margin-right: 0;
  138. }
  139. .goods-item .img {
  140. width: 100%;
  141. height: 300rpx;
  142. border-radius: 10rpx;
  143. }
  144. .gs_js {
  145. font-size: 28rpx;
  146. color: #aba89a;
  147. margin-top: 10rpx;
  148. }
  149. .ld {
  150. font-size: 30rpx;
  151. font-weight: 700;
  152. margin-top: 20rpx;
  153. margin-bottom: 20rpx;
  154. }
  155. .icon_box {
  156. width: 100rpx;
  157. margin-top: 10rpx;
  158. display: flex;
  159. align-items: center;
  160. justify-content: space-between;
  161. }
  162. </style>