zhuangJia.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. <template>
  2. <view class="body2">
  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="">
  5. <view class="group_1">
  6. <view class="block_1">
  7. <view class="box_2">
  8. <view class="text-group_4">
  9. <text lines="1" class="text_2">{{ expertInfo.name }}</text>
  10. <text lines="1" class="text_3">{{ expertInfo.zc }}</text>
  11. </view>
  12. <view class="box_6">
  13. <view class="image-text_2">
  14. <text lines="1" decode="true" class="text-group_2">&nbsp;教学指数</text>
  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. <uni-icons style="" type="star-filled" size="18" color="#CA5642"></uni-icons>
  18. <uni-icons style="" type="star-filled" size="18" color="#CA5642"></uni-icons>
  19. <uni-icons style="" type="star-filled" size="18" color="#CA5642"></uni-icons>
  20. </view>
  21. </view>
  22. <view class="box_4">
  23. <view class="group_4">
  24. <image style="width: 100%; height: 100%; border-radius: 50%" :src="expertInfo.img"></image>
  25. </view>
  26. </view>
  27. </view>
  28. <text lines="1" class="text_4">个人简介</text>
  29. <view class="text-wrapper_1">
  30. <view class="text_5">
  31. <text lines="1" decode="true" class="paragraph_1">{{ expertInfo.title }}</text>
  32. </view>
  33. </view>
  34. <view class="text-wrapper_7">
  35. <text lines="1" class="text_7">相关活动</text>
  36. <text lines="1" class="text_8">查看更多》</text>
  37. </view>
  38. <view class="list_3">
  39. <view @click="xqBtn" class="list-items_1-0" v-for="item in 2" :key="item">
  40. <view class="section_1-0"></view>
  41. <uni-icons style="margin-top: 50rpx; margin-left: 20rpx" type="paperclip" size="22"></uni-icons>
  42. <view class="text-wrapper_8-0">
  43. <text lines="1" class="text_9-0">“答嘴鼓”夏令营第三期活动</text>
  44. <text lines="1" decode="true" class="text_10-0">2023-01-12&nbsp;&nbsp;&nbsp;&nbsp;08:30</text>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="text-wrapper_9">
  49. <text lines="1" class="text_11">视频课程</text>
  50. <text lines="1" class="text_8">查看更多》</text>
  51. </view>
  52. <view class="list-items_2" v-for="item in 2" :key="item">
  53. <view class="group_5">
  54. <image style="width: 100%; height: 100%" src="https://huli-app.wenlvti.net/app_static/minnanhun/image/kctp.png"></image>
  55. </view>
  56. <view class="group_7">
  57. <view class="text-group_5">
  58. <text lines="1" decode="true" class="text_13">奋进新征程&nbsp;永远跟党走</text>
  59. <text lines="1" class="text_14">讲师:郭建居</text>
  60. </view>
  61. <view class="group_8">
  62. <text lines="1" class="text_16">免费</text>
  63. <view class="text-wrapper_6">
  64. <text lines="1" class="text_17">立即观看</text>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </template>
  74. <script>
  75. export default {
  76. data() {
  77. return {
  78. expertInfo: null // 存储人员信息的对象
  79. };
  80. },
  81. onLoad(options) {
  82. const itemId = options.id; // 获取从上一个页面传递过来的id参数
  83. // 调用方法加载人员信息
  84. this.loadExpertInfo(itemId);
  85. },
  86. methods: {
  87. xqBtn() {
  88. uni.navigateTo({
  89. url: '/xueyuan_fenbao/zhuangJia/huodongXq'
  90. });
  91. },
  92. loadExpertInfo(itemId) {
  93. // 模拟数据源,使用临时数据
  94. const expertData = [
  95. {
  96. id: '1',
  97. zc: '文史专家',
  98. img: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/lxq.jpg',
  99. name: '李向群老师',
  100. title: '福建省闽南文化研究会副会长,厦门市教育学会原副会长、厦门市语言学会原副会长、厦门大学出版社特约编审、集美大学客座教授。著作有《厦门谚语》、《自由行踪----我的二十载台湾行》、《厦门教育史话》、《沧浪---海沧影像纪事》和《见证:厦门1938----日寇侵占厦门前后史料汇刊》等。'
  101. },
  102. {
  103. id: '2',
  104. zc: '文史专家',
  105. img: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/hgf.jpg',
  106. name: '黄国富老师',
  107. title: '湖里区政协特邀研究员、非物质文化遗产保护专家组成员,《湖里区志》特约编审,《湖里文史资料》主编。多年来专注于闽南文化、乡土文化、地名文化、红色文化等方面的研究。主要有《湖里乡村记忆》《故乡家园》等七八部专著。'
  108. }
  109. ];
  110. // 根据itemId查找对应的人员信息
  111. const selectedExpert = expertData.find((expert) => expert.id === itemId);
  112. if (selectedExpert) {
  113. // console.log(selectedExpert, 'selectedExpert');
  114. // 将查找到的人员信息赋值给页面的对象数据属性,用于渲染
  115. this.expertInfo = selectedExpert;
  116. }
  117. }
  118. }
  119. };
  120. </script>
  121. <style>
  122. .body2 {
  123. background-size: 100% 100%;
  124. background-attachment: fixed;
  125. background-repeat: repeat-y;
  126. background-color: #efefef;
  127. padding-bottom: 50rpx;
  128. background-color: #efefef;
  129. }
  130. .group_1 {
  131. width: 750rpx;
  132. display: flex;
  133. flex-direction: column;
  134. background-color: #efefef;
  135. }
  136. .block_1 {
  137. width: 750rpx;
  138. display: flex;
  139. flex-direction: column;
  140. }
  141. .box_2 {
  142. box-shadow: 0px 30px 60px 0px rgba(19, 104, 158, 0.1);
  143. background-color: rgba(255, 255, 255, 1);
  144. border-radius: 20rpx;
  145. position: relative;
  146. width: 690rpx;
  147. height: 322rpx;
  148. display: flex;
  149. flex-direction: column;
  150. margin: 116rpx 0 0 30rpx;
  151. }
  152. .text-group_4 {
  153. width: 263rpx;
  154. height: 61rpx;
  155. display: flex;
  156. flex-direction: column;
  157. justify-content: space-between;
  158. margin: 163rpx 0 0 180rpx;
  159. }
  160. .text_2 {
  161. width: 87rpx;
  162. height: 29rpx;
  163. overflow-wrap: break-word;
  164. color: rgba(49, 37, 32, 1);
  165. font-size: 30rpx;
  166. font-family: SourceHanSansCN-Bold;
  167. font-weight: 700;
  168. text-align: left;
  169. white-space: nowrap;
  170. line-height: 30rpx;
  171. margin-left: 88rpx;
  172. }
  173. .text_3 {
  174. width: 263rpx;
  175. height: 23rpx;
  176. overflow-wrap: break-word;
  177. color: rgba(102, 102, 102, 1);
  178. font-size: 24rpx;
  179. font-family: SourceHanSansCN-Regular;
  180. font-weight: normal;
  181. text-align: center;
  182. margin-left: 30rpx;
  183. white-space: nowrap;
  184. line-height: 24rpx;
  185. margin-top: 9rpx;
  186. }
  187. .box_6 {
  188. width: 245rpx;
  189. height: 24rpx;
  190. flex-direction: row;
  191. display: flex;
  192. justify-content: space-between;
  193. margin: 23rpx 0 51rpx 222rpx;
  194. }
  195. .image-text_2 {
  196. width: 163rpx;
  197. height: 24rpx;
  198. line-height: 30rpx;
  199. flex-direction: row;
  200. display: flex;
  201. justify-content: space-between;
  202. }
  203. .text-group_2 {
  204. width: 95rpx;
  205. height: 22rpx;
  206. overflow-wrap: break-word;
  207. color: rgba(102, 102, 102, 1);
  208. font-size: 24rpx;
  209. font-family: SourceHanSansCN-ExtraLight;
  210. font-weight: 250;
  211. text-align: left;
  212. white-space: nowrap;
  213. line-height: 24rpx;
  214. margin-top: 2rpx;
  215. }
  216. .box_4 {
  217. border-radius: 50%;
  218. height: 216rpx;
  219. border: 3px solid rgba(202, 86, 66, 1);
  220. display: flex;
  221. flex-direction: column;
  222. width: 216rpx;
  223. position: absolute;
  224. left: 237rpx;
  225. top: -81rpx;
  226. }
  227. .group_4 {
  228. background-color: rgba(255, 255, 255, 1);
  229. border-radius: 50%;
  230. width: 182rpx;
  231. height: 182rpx;
  232. display: flex;
  233. flex-direction: column;
  234. margin: 12rpx 0 0 12rpx;
  235. }
  236. .text_4 {
  237. width: 112rpx;
  238. height: 28rpx;
  239. overflow-wrap: break-word;
  240. color: rgba(49, 37, 32, 1);
  241. font-size: 28rpx;
  242. font-family: SourceHanSansCN-Bold;
  243. font-weight: 700;
  244. text-align: left;
  245. white-space: nowrap;
  246. line-height: 28rpx;
  247. margin: 51rpx 0 0 47rpx;
  248. }
  249. .text-wrapper_1 {
  250. background-color: rgba(255, 255, 255, 1);
  251. border-radius: 20rpx;
  252. height: 371rpx;
  253. display: flex;
  254. flex-direction: column;
  255. width: 686rpx;
  256. margin: 32rpx 0 0 32rpx;
  257. }
  258. .text_5 {
  259. width: 652rpx;
  260. height: 279rpx;
  261. overflow-wrap: break-word;
  262. font-size: 0rpx;
  263. font-family: SourceHanSansCN-Regular;
  264. font-weight: normal;
  265. text-align: justifyLeft;
  266. line-height: 48rpx;
  267. margin: 44rpx 0 0 16rpx;
  268. overflow: scroll;
  269. text-indent: 2rem;
  270. }
  271. .paragraph_1 {
  272. width: 652rpx;
  273. height: 279rpx;
  274. overflow-wrap: break-word;
  275. color: rgba(49, 37, 32, 1);
  276. font-size: 28rpx;
  277. font-family: SourceHanSansCN-Regular;
  278. font-weight: normal;
  279. text-align: left;
  280. line-height: 48rpx;
  281. }
  282. .text-wrapper_7 {
  283. width: 668rpx;
  284. height: 28rpx;
  285. flex-direction: row;
  286. display: flex;
  287. justify-content: space-between;
  288. margin: 41rpx 0 0 47rpx;
  289. }
  290. .text_7 {
  291. width: 111rpx;
  292. height: 28rpx;
  293. overflow-wrap: break-word;
  294. color: rgba(49, 37, 32, 1);
  295. font-size: 28rpx;
  296. font-family: SourceHanSansCN-Bold;
  297. font-weight: 700;
  298. text-align: left;
  299. white-space: nowrap;
  300. line-height: 28rpx;
  301. }
  302. .text_8 {
  303. width: 89rpx;
  304. height: 20rpx;
  305. color: rgba(18, 18, 18, 1);
  306. font-size: 22rpx;
  307. white-space: nowrap;
  308. line-height: 20rpx;
  309. margin-top: 4rpx;
  310. }
  311. .list_3 {
  312. width: 686rpx;
  313. display: flex;
  314. flex-direction: column;
  315. justify-content: space-between;
  316. margin: 32rpx 0 0 32rpx;
  317. }
  318. .list-items_1-0 {
  319. background-color: rgba(255, 255, 255, 1);
  320. border-radius: 20rpx;
  321. width: 686rpx;
  322. height: 149rpx;
  323. margin-bottom: 32rpx;
  324. flex-direction: row;
  325. display: flex;
  326. }
  327. .section_1-0 {
  328. background-color: rgba(202, 86, 66, 1);
  329. width: 8rpx;
  330. height: 80rpx;
  331. margin-top: 35rpx;
  332. display: flex;
  333. flex-direction: column;
  334. }
  335. .text-wrapper_8-0 {
  336. width: 389rpx;
  337. height: 73rpx;
  338. display: flex;
  339. flex-direction: column;
  340. justify-content: space-between;
  341. margin: 36rpx 197rpx 0 20rpx;
  342. }
  343. .text_9-0 {
  344. width: 371rpx;
  345. height: 30rpx;
  346. overflow-wrap: break-word;
  347. color: rgba(49, 37, 32, 1);
  348. font-size: 30rpx;
  349. font-family: SourceHanSansCN-Bold;
  350. font-weight: 700;
  351. text-align: left;
  352. white-space: nowrap;
  353. line-height: 30rpx;
  354. margin-left: 18rpx;
  355. }
  356. .text_10-0 {
  357. width: 198rpx;
  358. height: 18rpx;
  359. overflow-wrap: break-word;
  360. color: rgba(153, 153, 153, 1);
  361. font-size: 24rpx;
  362. font-family: SourceHanSansCN-Regular;
  363. font-weight: normal;
  364. text-align: left;
  365. white-space: nowrap;
  366. line-height: 24rpx;
  367. margin-top: 25rpx;
  368. }
  369. .text-wrapper_9 {
  370. width: 666rpx;
  371. height: 27rpx;
  372. flex-direction: row;
  373. display: flex;
  374. justify-content: space-between;
  375. margin: 32rpx 0 0 49rpx;
  376. }
  377. .text_11 {
  378. width: 111rpx;
  379. height: 27rpx;
  380. overflow-wrap: break-word;
  381. color: rgba(49, 37, 32, 1);
  382. font-size: 28rpx;
  383. font-family: SourceHanSansCN-Bold;
  384. font-weight: 700;
  385. text-align: left;
  386. white-space: nowrap;
  387. line-height: 28rpx;
  388. }
  389. .list-items_2 {
  390. background-color: rgba(255, 255, 255, 1);
  391. border-radius: 10rpx;
  392. width: 686rpx;
  393. flex-direction: row;
  394. display: flex;
  395. margin: 20rpx 0 10rpx 34rpx;
  396. }
  397. .group_5 {
  398. border-radius: 10rpx;
  399. width: 307rpx;
  400. height: 170rpx;
  401. margin-left: -1rpx;
  402. display: flex;
  403. flex-direction: column;
  404. }
  405. .group_7 {
  406. width: 341rpx;
  407. height: 130rpx;
  408. display: flex;
  409. flex-direction: column;
  410. justify-content: space-between;
  411. margin: 24rpx 22rpx 0 17rpx;
  412. }
  413. .text-group_5 {
  414. width: 285rpx;
  415. height: 61rpx;
  416. display: flex;
  417. flex-direction: column;
  418. justify-content: space-between;
  419. }
  420. .text_13 {
  421. width: 285rpx;
  422. height: 26rpx;
  423. overflow-wrap: break-word;
  424. color: rgba(49, 37, 32, 1);
  425. font-size: 28rpx;
  426. font-family: SourceHanSansCN-Regular;
  427. font-weight: normal;
  428. text-align: left;
  429. white-space: nowrap;
  430. line-height: 28rpx;
  431. }
  432. .text_14 {
  433. width: 129rpx;
  434. height: 21rpx;
  435. overflow-wrap: break-word;
  436. color: rgba(102, 102, 102, 1);
  437. font-size: 22rpx;
  438. font-family: SourceHanSansCN-Regular;
  439. font-weight: normal;
  440. text-align: left;
  441. white-space: nowrap;
  442. line-height: 22rpx;
  443. margin-top: 14rpx;
  444. }
  445. .group_8 {
  446. width: 340rpx;
  447. height: 44rpx;
  448. flex-direction: row;
  449. display: flex;
  450. justify-content: space-between;
  451. margin: 25rpx 0 0 1rpx;
  452. }
  453. .text_16 {
  454. width: 55rpx;
  455. height: 27rpx;
  456. overflow-wrap: break-word;
  457. color: rgba(202, 86, 66, 1);
  458. font-size: 28rpx;
  459. font-family: SourceHanSansCN-Bold;
  460. font-weight: 700;
  461. text-align: left;
  462. white-space: nowrap;
  463. line-height: 28rpx;
  464. margin-top: 11rpx;
  465. }
  466. .text-wrapper_6 {
  467. background-color: rgba(202, 86, 66, 1);
  468. border-radius: 10rpx;
  469. height: 44rpx;
  470. display: flex;
  471. flex-direction: column;
  472. width: 129rpx;
  473. }
  474. .text_17 {
  475. width: 94rpx;
  476. height: 23rpx;
  477. overflow-wrap: break-word;
  478. color: rgba(248, 226, 175, 1);
  479. font-size: 24rpx;
  480. font-family: SourceHanSansCN-Regular;
  481. font-weight: normal;
  482. text-align: left;
  483. white-space: nowrap;
  484. line-height: 24rpx;
  485. margin: 10rpx 0 0 18rpx;
  486. }
  487. </style>