model_2.vue 18 KB

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