model_2.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. <template>
  2. <view class="mone">
  3. <view class="m-top">
  4. <image :src="baseURL + '/resource/icon/model2/tli.png'" mode="" class="top-left-img"></image>
  5. <!-- <button type="default" class="top-btn fx-btn" v-if="isShare" open-type="share">
  6. <image :src="baseURL + '/resource/icon/model1/fx.png'" mode=""></image>
  7. </button> -->
  8. <view class="top-btn visit mvisit padding-r-10" v-if="isLook==1||isLook==2">
  9. 浏览:{{shareNumber}}
  10. </view>
  11. </view>
  12. <view class="m-body ">
  13. <!-- 个人信息 -->
  14. <view class="hua3">
  15. <view class="hua2 ">
  16. <view class="m-card m-card-t " >
  17. <!-- 用户名称 -->
  18. <view class="u-name">
  19. {{cardInfo.name || '暂无'}}
  20. </view>
  21. <!-- 编号 -->
  22. <view class="u-bh flex ">
  23. <image :src="baseURL + '/resource/icon/model2/bh.png'" mode=""></image>编号:{{cardInfo.no || "myj23031421"}}
  24. </view>
  25. <!-- 头像 -->
  26. <view class="user-img">
  27. <image :src="baseURL + '/resource/icon/model2/txk.png'" mode="" class="base-bg"></image>
  28. <image :src="cardInfo.avatar" mode="" class="user-av"></image>
  29. </view>
  30. <!-- 职业 -->
  31. <view class="zy-wrap" v-if="cardInfo.user_work_type_title">
  32. <view class="zy">
  33. 职业:{{cardInfo.user_work_type_title || '暂无'}}
  34. </view>
  35. </view>
  36. <view class="card-content card-content-t">
  37. <view class="user-info-t flex">
  38. <view class="info-item-b">
  39. 年龄:{{cardInfo.age|| '暂无'}}
  40. </view>
  41. <view class="info-item-b">
  42. 属相: {{cardInfo.twelve|| '暂无'}}
  43. </view>
  44. <view class="info-item-b">
  45. 从业:{{(cardInfo.work_year + '年')|| '暂无'}}
  46. </view>
  47. <view class="info-item-b">
  48. 星座:{{cardInfo.constellation.replace('座','') || '暂无'}}
  49. </view>
  50. <!-- <view class="info-item-b">
  51. 职业: {{cardInfo.user_work_type_title || '暂无'}}
  52. </view> -->
  53. <view class="info-item-b">
  54. 籍贯:{{cardInfo.ancestral_place || '暂无'}}
  55. </view>
  56. <view class="info-item-b">
  57. 民族:{{cardInfo.minority || '暂无'}}
  58. </view>
  59. <view class="info-item-b">
  60. 学历:{{cardInfo.education || '暂无'}}
  61. </view>
  62. <view class="info-item-b">
  63. 服务次数:{{cardInfo.service_count || '0'}}
  64. </view>
  65. </view>
  66. <view class="user-info flex">
  67. <view class="info-item-q flex" style="align-items: flex-start;">
  68. <text style="flex-shrink: 0;">服务地区:</text>
  69. <view class="fwdz flex" v-if="cardInfo.is_china == 1">
  70. <view v-for="(fwitem,fwindex) in cardInfo.service_area_all">
  71. {{fwitem}}{{fwindex ==(cardInfo.service_area_all.length -1) ?'': '、' }}
  72. </view>
  73. </view>
  74. <view class="fwdz flex" v-if="cardInfo.is_china == 0">
  75. <view>
  76. 海外
  77. </view>
  78. </view>
  79. </view>
  80. <view class="info-item-q flex" style="align-items: flex-start;height: 110rpx;">
  81. <text style="flex-shrink: 0;">服务价格: </text>
  82. <view class="gzt">
  83. <image :src="baseURL + '/resource/icon/model2/tiao.png'" mode=""></image>
  84. <view class="gzt-price">
  85. <text>{{cardInfo.service_min_price}}</text>元/{{ cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}
  86. </view>
  87. <view class=" gzt-price-b">
  88. <text>{{cardInfo.service_max_price}}</text>元/{{cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}
  89. </view>
  90. </view>
  91. <image :src="baseURL + '/resource/icon/model1/yrz.png'" mode="" class="rz"
  92. v-if="cardInfo.is_type_audit == 1"></image>
  93. </view>
  94. </view>
  95. </view>
  96. <!-- <view class="" style="height: 40rpx;"></view> -->
  97. </view>
  98. </view>
  99. </view>
  100. <!-- 自我评价 -->
  101. <view class="hua4">
  102. <view class="">
  103. <view class="m-card">
  104. <view class="card-tit flex">
  105. <image :src="baseURL + '/resource/icon/model2/zwpj.png'" mode="" class=""></image>
  106. </view>
  107. <view class="card-content">
  108. <rich-text :nodes="cardInfo.service_intro_content"></rich-text>
  109. </view>
  110. <view class="img-list flex" style="padding-top: 0;">
  111. <image :src="siiitem" mode="" v-for="siiitem in cardInfo.service_intro_imgs"></image>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <!-- 我的证书 -->
  117. <view class="hua5" v-if="cardInfo.service_audit_imgs && cardInfo.service_audit_imgs.length > 0">
  118. <view class="m-card">
  119. <view class="card-tit flex">
  120. <image :src="baseURL + '/resource/icon/model2/wdzs.png'" mode="" class=""></image>
  121. </view>
  122. <view class="img-list flex">
  123. <image :src="saiitem" mode="" v-for="saiitem in cardInfo.service_audit_imgs"></image>
  124. </view>
  125. </view>
  126. </view>
  127. <!-- 服务内容 -->
  128. <view class="hua6">
  129. <view class="m-card">
  130. <view class="card-tit flex">
  131. <image :src="baseURL + '/resource/icon/model2/fwnr.png'" mode="" class=""></image>
  132. </view>
  133. <view class="card-content">
  134. <view class="fw" v-for="spaitem in cardInfo.service_project_ar">
  135. <view class="fw-tit">
  136. <text class="yg"></text>{{spaitem.title}}
  137. </view>
  138. <view class="fw-content">
  139. {{spaitem.content}}
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. <!-- 服务照片 -->
  146. <view class="hua7" v-if="cardInfo.service_imgs && cardInfo.service_imgs.length > 0">
  147. <view class="hua8">
  148. <view class="m-card" >
  149. <view class="card-tit flex">
  150. <image :src="baseURL + '/resource/icon/model2/fwzp.png'" mode="" class=""></image>
  151. </view>
  152. <view class="img-list flex">
  153. <image :src="siitem" mode="" v-for="siitem in cardInfo.service_imgs"></image>
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. </template>
  161. <script>
  162. import {
  163. mapState,
  164. } from 'vuex';
  165. export default {
  166. props: {
  167. // 浏览数量
  168. shareNumber: {
  169. type: Number,
  170. default:0
  171. },
  172. // 是否显示默认数据
  173. isDefault: {
  174. type: Boolean,
  175. default: true
  176. },
  177. isShare: {
  178. type: Boolean,
  179. default: false
  180. },
  181. //1为模板2为用户
  182. isLook: {
  183. type: Number,
  184. default: 0
  185. },
  186. templateDetail: {
  187. type: Object,
  188. default: () => {
  189. return {}
  190. }
  191. }
  192. },
  193. data() {
  194. return {
  195. defaults: {
  196. user_work_type_title: '母婴护理师',
  197. name: '张腊枚',
  198. avatar: 'https://api.myjie.cn/resource/user/zlm.png',
  199. age: '48',
  200. twelve: '兔',
  201. work_year: '10',
  202. constellation: '水瓶座',
  203. ancestral_place: '湖南',
  204. minority: '汉族',
  205. education: '大学',
  206. service_area_all: ['上海市'],
  207. service_min_price: 16800,
  208. service_max_price: 19800,
  209. service_time_type_title: '每月',
  210. service_intro_content: ' 从事母婴护理行业十多年了,做培训讲师8年多,热爱本职工作。长沙民政职业技术学院家政服务管理系毕业,中职教师资格证,高级育婴师,高级保育员,高级养老护理,syb创业培训讲师,并进入湖南省家政服务专家师资库,蒙氏早教高级教师,高级催乳师,高级产后恢复师等。',
  211. service_intro_imgs: ['https://api.myjie.cn/resource/user/user2/zwpj1.png',
  212. 'https://api.myjie.cn/resource/user/user2/zwpj2.png',
  213. 'https://api.myjie.cn/resource/user/user2/zwpj3.png',
  214. 'https://api.myjie.cn/resource/user/user2/zwpj4.png',
  215. 'https://api.myjie.cn/resource/user/user2/zwpj5.png',
  216. 'https://api.myjie.cn/resource/user/user2/zwpj6.png'
  217. ],
  218. service_audit_imgs: ['https://api.myjie.cn/resource/user/user2/zs1.png',
  219. 'https://api.myjie.cn/resource/user/user2/zs2.png',
  220. 'https://api.myjie.cn/resource/user/user2/zs3.png',
  221. 'https://api.myjie.cn/resource/user/user2/zs4.png',
  222. 'https://api.myjie.cn/resource/user/user2/zs5.png',
  223. 'https://api.myjie.cn/resource/user/user2/zs6.png'
  224. ],
  225. service_project_ar: [{
  226. title: '婴幼儿睡眠管理',
  227. content: '如:日夜颠倒、睡眠不规律、乳头混淆、奶睡、抱睡等问题,帮助宝爸宝妈规律孩子作息、解决婴幼儿喂养困扰,培养良好的生活、学习习惯。'
  228. }, {
  229. title: '特色月子餐',
  230. content: '套用客户的一句话“养眼、养心更养胃”!家常菜、面食、点心、甜品、靓汤、五谷杂粮粥、婴幼儿花样辅食等。'
  231. },
  232. {
  233. title: '早产儿特殊护理',
  234. content: '包括早产儿基础护理、安全喂养方法、追赶性生长、消化与免疫系统等技能,根据宝宝具体情况给予早产儿家长的科学入户指导。'
  235. },
  236. {
  237. title: '0-6岁早期教育',
  238. content: '在婴孩最敏感最能接受的时期进行事半功倍的适时教育,针对不同年龄段的孩子,开发婴幼儿潜能的教育,为孩子多元化和健康人格打下良好基础。'
  239. }
  240. ],
  241. service_imgs: [
  242. 'https://api.myjie.cn/resource/user/user2/fw1.png',
  243. 'https://api.myjie.cn/resource/user/user2/fw2.png',
  244. 'https://api.myjie.cn/resource/user/user2/fw3.png',
  245. 'https://api.myjie.cn/resource/user/user2/fw4.png',
  246. 'https://api.myjie.cn/resource/user/user2/fw5.png',
  247. 'https://api.myjie.cn/resource/user/user2/fw6.png',
  248. 'https://api.myjie.cn/resource/user/user2/fw7.png',
  249. 'https://api.myjie.cn/resource/user/user2/fw8.png'
  250. ],
  251. is_type_audit: 1,
  252. service_count: 0,
  253. is_china: 1
  254. }
  255. }
  256. },
  257. computed: {
  258. ...mapState(['baseURL']),
  259. cardInfo() {
  260. console.log("进入");
  261. if (this.isDefault) {
  262. return this.defaults
  263. } else {
  264. return this.templateDetail
  265. }
  266. }
  267. },
  268. }
  269. </script>
  270. <style lang="scss" scoped>
  271. .mone {
  272. background-color: #fffbed;
  273. padding-bottom: 43rpx;
  274. .m-top {
  275. width: 750rpx;
  276. position: relative;
  277. width: 750rpx;
  278. height: 150rpx;
  279. background-color: #fffbed;
  280. .top-left-img {
  281. position: absolute;
  282. top: 0;
  283. left: 0;
  284. width: 280rpx;
  285. height: 248rpx;
  286. }
  287. .top-bg {
  288. position: relative;
  289. width: 750rpx;
  290. height: 370rpx;
  291. }
  292. .readme {
  293. width: 534rpx;
  294. height: 83rpx;
  295. position: absolute;
  296. top: 172rpx;
  297. left: 0;
  298. right: 0;
  299. margin: auto;
  300. }
  301. .fx-btn {
  302. padding: 0;
  303. &::after {
  304. border: none;
  305. }
  306. border-radius: 24rpx 0 0 24rpx;
  307. image {
  308. width: 150rpx;
  309. height: 48rpx;
  310. display: block;
  311. }
  312. }
  313. .top-btn {
  314. height: 48rpx;
  315. position: absolute;
  316. right: 0;
  317. top: 70rpx;
  318. line-height: 48rpx;
  319. font-size: 24rpx;
  320. }
  321. .visit {
  322. border-radius: 24rpx 0 0 24rpx;
  323. top: 130rpx;
  324. border: 1px solid #f65486;
  325. color: #f65486;
  326. padding-left: 24rpx;
  327. }
  328. .mvisit {
  329. top: 70rpx;
  330. }
  331. }
  332. }
  333. .m-body {
  334. width: 750rpx;
  335. margin: auto;
  336. margin-top: 20rpx;
  337. padding: 45rpx 0;
  338. }
  339. .info-item-b,
  340. .info-item-q {
  341. padding: 10rpx 0;
  342. color: #000000;
  343. position: relative;
  344. padding-left: 20rpx;
  345. &::before {
  346. display: inline-block;
  347. content: '';
  348. width: 15rpx;
  349. height: 15rpx;
  350. background: linear-gradient(225deg, #FE9E32, #FDE37D);
  351. border-radius: 50%;
  352. position: absolute;
  353. top: 22rpx;
  354. left: 0;
  355. }
  356. .qianger {
  357. width: 2em;
  358. display: inline-block;
  359. }
  360. .laner {
  361. width: 0.5em;
  362. display: inline-block;
  363. }
  364. }
  365. .m-card-t {
  366. border: none !important;
  367. background: transparent !important;
  368. }
  369. .m-card {
  370. width: 640rpx;
  371. background: rgba(255, 255, 255, 0.6);
  372. border-radius: 20rpx;
  373. position: relative;
  374. // min-height: 270rpx;
  375. border: 4px solid #fff;
  376. margin: 0 auto 46rpx;
  377. .user-img {
  378. position: absolute;
  379. right: -20rpx;
  380. top: -49rpx;
  381. width: 318rpx;
  382. height: 366rpx;
  383. .base-bg {
  384. width: 100%;
  385. height: 100%;
  386. }
  387. .user-av {
  388. width: 272rpx;
  389. height: 272rpx;
  390. position: absolute;
  391. bottom: 17rpx;
  392. left: 12rpx;
  393. }
  394. }
  395. .zy-wrap {
  396. position: absolute;
  397. right: 0;
  398. top: 330rpx;
  399. width: 300rpx;
  400. // background-color: #fea540;
  401. display: flex;
  402. justify-content: center;
  403. font-size: 26rpx;
  404. .zy {
  405. display: inline-block;
  406. margin: auto;
  407. border: 1px solid #fea540;
  408. border-radius: 10rpx;
  409. padding: 8rpx 16rpx;
  410. color: #fea540;
  411. margin: auto;
  412. }
  413. }
  414. .card-tit {
  415. justify-content: center;
  416. padding-top: 55rpx;
  417. position: relative;
  418. padding-bottom: 30rpx;
  419. &::after {
  420. content: '';
  421. width: 60rpx;
  422. height: 10rpx;
  423. background: #FE9E32;
  424. border-radius: 5rpx;
  425. position: absolute;
  426. bottom: 10rpx;
  427. left: 0;
  428. right: 0;
  429. margin: auto;
  430. }
  431. image {
  432. width: 213rpx;
  433. height: 47rpx;
  434. }
  435. }
  436. .card-bg {
  437. width: 100%;
  438. height: 270rpx;
  439. position: absolute;
  440. bottom: 0rpx;
  441. }
  442. .card-content {
  443. padding: 25rpx 35rpx;
  444. font-size: 26rpx;
  445. font-weight: 500;
  446. color: #2C2E35;
  447. position: relative;
  448. }
  449. .card-content-t {
  450. padding: 0;
  451. }
  452. .img-list {
  453. justify-content: space-between;
  454. flex-wrap: wrap;
  455. margin: auto;
  456. padding: 30rpx 30rpx 0;
  457. position: relative;
  458. image {
  459. width: 270rpx;
  460. height: 270rpx;
  461. background-color: #fff;
  462. margin-bottom: 30rpx;
  463. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.6);
  464. }
  465. }
  466. .fw {
  467. font-size: 26rpx;
  468. font-weight: 500;
  469. color: #2C2E35;
  470. padding: 10rpx 0;
  471. .fw-tit {
  472. color: #FE9E32;
  473. display: flex;
  474. align-items: center;
  475. .yg {
  476. background-color: #FE9E32;
  477. display: inline-block;
  478. width: 10rpx;
  479. height: 10rpx;
  480. border-radius: 50%;
  481. margin-right: 10rpx;
  482. }
  483. }
  484. .fw-content {
  485. padding-top: 10rpx;
  486. padding-left: 18rpx;
  487. text-align: justify;
  488. word-wrap: break-word;
  489. white-space: pre-line;
  490. }
  491. }
  492. }
  493. .user-info-t {
  494. width: 350rpx;
  495. }
  496. .user-info, .user-info-t {
  497. flex-wrap: wrap;
  498. font-size: 26rpx;
  499. font-weight: 500;
  500. color: #000000;
  501. position: relative;
  502. .info-item-b {
  503. width: 50%;
  504. }
  505. .info-item-q {
  506. width: 100%;
  507. display: flex;
  508. align-items: flex-start;
  509. justify-content: start;
  510. .fwdz {
  511. flex-direction: column;
  512. align-items: flex-start;
  513. }
  514. .gzt {
  515. width: 312rpx;
  516. height: 24rpx;
  517. padding-top: 10rpx;
  518. position: relative;
  519. image {
  520. width: 312rpx;
  521. height: 24rpx;
  522. position: relative;
  523. }
  524. .gzt-price,
  525. .gzt-price-b {
  526. width: 200rpx;
  527. text-align: center;
  528. position: absolute;
  529. padding-top: 20rpx;
  530. &::after {
  531. content: '';
  532. width: 0px;
  533. height: 0rpx;
  534. border: 14rpx solid;
  535. border-color: transparent transparent #FE9E32;
  536. position: absolute;
  537. top: -14rpx;
  538. left: 0;
  539. right: 0;
  540. margin: auto;
  541. }
  542. text {
  543. color:#FE9E32;
  544. }
  545. }
  546. .gzt-price {
  547. left: -100rpx;
  548. }
  549. .gzt-price-b {
  550. right: -100rpx;
  551. }
  552. }
  553. .rz {
  554. margin-top: 10rpx;
  555. margin-left: 10rpx;
  556. width: 87rpx;
  557. height: 26rpx;
  558. }
  559. }
  560. }
  561. .hua2 {
  562. position: relative;
  563. &::before {
  564. content: '';
  565. width: 370rpx;
  566. height: 629rpx;
  567. border-radius: 20rpx 314rpx 315rpx 20rpx;
  568. background: radial-gradient(ellipse at 0 50%, #e0f2f8,#f8f9ef, transparent);
  569. // background: url($base-url + '/resource/icon/model1/hua2.png') no-repeat;
  570. position: absolute;
  571. bottom: -315rpx;
  572. left: 0;
  573. background-size: 100% 100%;
  574. }
  575. }
  576. .hua3 {
  577. position: relative;
  578. &::before {
  579. content: '';
  580. width: 360rpx;
  581. height: 629rpx;
  582. background: radial-gradient(ellipse at 100% 50%, #FFE4E9,#fff4f5, transparent);
  583. position: absolute;
  584. bottom: -400rpx;
  585. right: 0;
  586. margin: auto;
  587. background-size: 100% 100%;
  588. }
  589. }
  590. .hua4 {
  591. position: relative;
  592. &::before {
  593. content: '';
  594. width: 272rpx;
  595. height: 621rpx;
  596. background: radial-gradient(ellipse at 100% 50%, #e0f2f8,#f8f9ef, transparent);
  597. position: absolute;
  598. bottom: -310rpx;
  599. right: 0;
  600. background-size: 100% 100%;
  601. }
  602. }
  603. .hua5 {
  604. position: relative;
  605. &::before {
  606. content: '';
  607. width: 199rpx;
  608. height: 298rpx;
  609. background: radial-gradient(ellipse at 100% 50%, #FFE4E9,#fff4f5, transparent);
  610. position: absolute;
  611. bottom: -100rpx;
  612. left: 0;
  613. background-size: 100% 100%;
  614. transform: rotateY(180deg);
  615. }
  616. }
  617. .hua6 {
  618. position: relative;
  619. &::before {
  620. content: '';
  621. width: 313rpx;
  622. height: 629rpx;
  623. position: absolute;
  624. background: radial-gradient(ellipse at 0 50%, #FFE4E9,#fff4f5, transparent);
  625. bottom: -315rpx;
  626. right: 0;
  627. background-size: 100% 100%;
  628. transform: rotateY(180deg);
  629. }
  630. }
  631. .hua7 {
  632. position: relative;
  633. &::before {
  634. content: '';
  635. width: 344rpx;
  636. height: 286rpx;
  637. position: absolute;
  638. background: url($base-url + '/resource/icon/model2/hua8.png') no-repeat;
  639. bottom: -143rpx;
  640. right: 0;
  641. background-size: 100% 100%;
  642. }
  643. }
  644. .hua8 {
  645. position: relative;
  646. &::before {
  647. content: '';
  648. width: 367rpx;
  649. height: 372rpx;
  650. position: absolute;
  651. border-radius: 20rpx 150rpx 150rpx 20rpx;
  652. background: radial-gradient(ellipse at 0% 50%, #FFE4E9,#fff7f2, transparent);
  653. bottom: -143rpx;
  654. left: 0;
  655. background-size: 100% 100%;
  656. }
  657. }
  658. .u-name {
  659. font-size: 73rpx;
  660. font-weight: 400;
  661. color: #202E4F;
  662. }
  663. .u-bh {
  664. justify-content: flex-start;
  665. image {
  666. width: 26rpx;
  667. height: 26rpx;
  668. margin-right: 10rpx;
  669. }
  670. font-size: 28rpx;
  671. font-weight: bold;
  672. color: #202e4f;
  673. }
  674. </style>