model_1.vue 16 KB

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