zhuangJia.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <template>
  2. <view class="box">
  3. <u-navbar :autoBack="true" title="专家介绍" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#121212"></u-navbar>
  4. <view class="box_2">
  5. <view class="text-group_4">
  6. <text lines="1" class="text_2">{{ expertInfo.title }}</text>
  7. <text lines="1" class="text_3">文史专家</text>
  8. </view>
  9. <view class="box_6">
  10. <view class="image-text_2">
  11. <text lines="1" decode="true" class="text-group_2">&nbsp;教学指数</text>
  12. <uni-icons style="" type="star-filled" size="18" color="#CA5642"></uni-icons>
  13. <uni-icons style="" type="star-filled" size="18" color="#CA5642"></uni-icons>
  14. <uni-icons style="" type="star-filled" size="18" color="#CA5642"></uni-icons>
  15. <uni-icons style="" type="star-filled" size="18" color="#CA5642"></uni-icons>
  16. <uni-icons style="" type="star-filled" size="18" color="#CA5642"></uni-icons>
  17. </view>
  18. </view>
  19. <view class="box_4">
  20. <view class="group_4">
  21. <image
  22. style="width: 100%; height: 100%; border-radius: 50%"
  23. :src="expertInfo.image || 'https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/gj_wxstx.png'"
  24. ></image>
  25. </view>
  26. </view>
  27. </view>
  28. <text class="text_4">个人简介</text>
  29. <view class="text-wrapper_1">
  30. <view class="text_5">
  31. <u-parse :content="expertInfo.content ? expertInfo.content : '暂无介绍'"></u-parse>
  32. </view>
  33. </view>
  34. <text class="text_4">成就</text>
  35. <view class="text-wrapper_1">
  36. <view class="text_5">
  37. <u-parse :content="expertInfo.prize"></u-parse>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. let that;
  44. export default {
  45. data() {
  46. return {
  47. expertInfo: {}
  48. };
  49. },
  50. onLoad(o) {
  51. that = this;
  52. this.getContentDetail(o.id);
  53. },
  54. methods: {
  55. getContentDetail(id) {
  56. this.$api.getContentDetail({ main_body_id: 1, id: id }, function (res) {
  57. console.log(res, '专家详情');
  58. that.expertInfo = res.data;
  59. });
  60. }
  61. // getPeopleList(id) {
  62. // console.log(id, 666);
  63. // uni.request({
  64. // url: 'https://huli-app.wenlvti.net/api/wuyuan/biographies/details',
  65. // data: {
  66. // id: id
  67. // },
  68. // success: function (res) {
  69. // console.log(res, 545);
  70. // that.expertInfo = res.data.data;
  71. // }
  72. // });
  73. // }
  74. }
  75. };
  76. </script>
  77. <style>
  78. .box {
  79. height: auto;
  80. width: 100%;
  81. padding-bottom: 50rpx;
  82. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/xy_bgt.png');
  83. background-repeat: repeat-y;
  84. background-attachment: fixed;
  85. background-size: 100% 100%;
  86. min-height: 100%;
  87. height: auto;
  88. /* background-color: #fff9e9; */
  89. }
  90. .box_2 {
  91. box-shadow: 0px 30px 60px 0px rgba(19, 104, 158, 0.1);
  92. background-color: rgba(255, 255, 255, 1);
  93. border-radius: 20rpx;
  94. position: relative;
  95. width: 690rpx;
  96. height: 322rpx;
  97. display: flex;
  98. flex-direction: column;
  99. margin: 116rpx 0 40rpx 30rpx;
  100. box-shadow: rgba(0, 0, 0, 0.1) 0px 20rpx 15px -6rpx, rgba(0, 0, 0, 0.05) 0px 8rpx 12rpx -4rpx;
  101. }
  102. .text-group_4 {
  103. width: 263rpx;
  104. height: 61rpx;
  105. display: flex;
  106. flex-direction: column;
  107. justify-content: space-between;
  108. margin: 163rpx 0 0 180rpx;
  109. }
  110. .text_2 {
  111. width: 87rpx;
  112. height: 29rpx;
  113. overflow-wrap: break-word;
  114. color: rgba(49, 37, 32, 1);
  115. font-size: 30rpx;
  116. font-family: SourceHanSansCN-Bold;
  117. font-weight: 700;
  118. white-space: nowrap;
  119. line-height: 30rpx;
  120. margin-left: 115rpx;
  121. }
  122. .text_3 {
  123. width: 263rpx;
  124. height: 23rpx;
  125. overflow-wrap: break-word;
  126. color: rgba(102, 102, 102, 1);
  127. font-size: 24rpx;
  128. font-family: SourceHanSansCN-Regular;
  129. font-weight: normal;
  130. text-align: center;
  131. margin-left: 30rpx;
  132. white-space: nowrap;
  133. line-height: 24rpx;
  134. margin-top: 9rpx;
  135. }
  136. .box_6 {
  137. width: 245rpx;
  138. height: 24rpx;
  139. flex-direction: row;
  140. display: flex;
  141. justify-content: space-between;
  142. margin: 23rpx 0 51rpx 222rpx;
  143. }
  144. .image-text_2 {
  145. width: 163rpx;
  146. height: 24rpx;
  147. line-height: 30rpx;
  148. flex-direction: row;
  149. display: flex;
  150. justify-content: space-between;
  151. }
  152. .text-group_2 {
  153. width: 95rpx;
  154. height: 22rpx;
  155. overflow-wrap: break-word;
  156. color: rgba(102, 102, 102, 1);
  157. font-size: 24rpx;
  158. font-family: SourceHanSansCN-ExtraLight;
  159. font-weight: 250;
  160. text-align: left;
  161. white-space: nowrap;
  162. line-height: 24rpx;
  163. margin-top: 2rpx;
  164. }
  165. .box_4 {
  166. border-radius: 50%;
  167. height: 216rpx;
  168. border: 3px solid rgba(202, 86, 66, 1);
  169. display: flex;
  170. flex-direction: column;
  171. width: 216rpx;
  172. position: absolute;
  173. left: 237rpx;
  174. top: -81rpx;
  175. }
  176. .group_4 {
  177. background-color: rgba(255, 255, 255, 1);
  178. border-radius: 50%;
  179. width: 182rpx;
  180. height: 182rpx;
  181. display: flex;
  182. flex-direction: column;
  183. margin: 12rpx 0 0 12rpx;
  184. }
  185. .text_4 {
  186. width: 112rpx;
  187. height: 28rpx;
  188. overflow-wrap: break-word;
  189. color: rgba(49, 37, 32, 1);
  190. font-size: 32rpx;
  191. font-family: SourceHanSansCN-Bold;
  192. font-weight: 700;
  193. text-align: left;
  194. white-space: nowrap;
  195. line-height: 28rpx;
  196. margin: 60rpx 0 0 47rpx;
  197. }
  198. .text-wrapper_1 {
  199. /* background-color: rgba(255, 255, 255, 1); */
  200. display: flex;
  201. flex-direction: column;
  202. width: 686rpx;
  203. margin: 10rpx 0 80rpx 32rpx;
  204. /* box-shadow: rgba(0, 0, 0, 0.1) 0px 20rpx 15px -6rpx, rgba(0, 0, 0, 0.05) 0px 8rpx 12rpx -4rpx; */
  205. }
  206. .text_5 {
  207. width: 652rpx;
  208. overflow-wrap: break-word;
  209. font-size: 28rpx;
  210. font-family: SourceHanSansCN-Regular;
  211. font-weight: normal;
  212. text-align: justifyLeft;
  213. line-height: 48rpx;
  214. margin: 44rpx 0 0 16rpx;
  215. text-indent: 2rem;
  216. }
  217. .paragraph_1 {
  218. width: 652rpx;
  219. height: 279rpx;
  220. overflow-wrap: break-word;
  221. color: rgba(49, 37, 32, 1);
  222. font-size: 28rpx;
  223. font-family: SourceHanSansCN-Regular;
  224. font-weight: normal;
  225. text-align: left;
  226. line-height: 48rpx;
  227. }
  228. </style>