model_2.vue 18 KB

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