model_3.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. <template>
  2. <view class="mone">
  3. <view class="top-left-icon-1"></view>
  4. <view class="top-center-icon-1"></view>
  5. <view class="top-center-icon-2"></view>
  6. <view class="top-right-icon-1 icon-box-border">
  7. <view class="top-right-content icon-box-content">
  8. </view>
  9. </view>
  10. <view class="user-bottom-icon icon-box-border">
  11. <view class="user-bottom-content icon-box-content">
  12. </view>
  13. </view>
  14. <image class="user-top-icon" :src="baseURL + '/resource/model/static/model3/tap3.png'" mode="scaleToFill">
  15. </image>
  16. <image class="user-right-logo" :src="baseURL + '/resource/model/model3/tap13.png'" mode="widthFix"></image>
  17. <view class="user-img">
  18. <image class="image" :src="cardInfo.avatar" mode="widthFix"></image>
  19. </view>
  20. <image class="content-left-icon" :src="baseURL + '/resource/model/model3/tap6.png'" mode="widthFix"></image>
  21. <image class="page-bottom-right" :src="baseURL + '/resource/model/model3/tap7.png'" mode="widthFix"></image>
  22. <view class="share-number">
  23. 浏览:{{shareNumber}}
  24. </view>
  25. <view class="right-content">
  26. <view class="name">
  27. {{cardInfo.name || '暂无'}}
  28. </view>
  29. <view class="career margin-t-10">
  30. 职业:{{cardInfo.user_work_type_title || '暂无'}}
  31. </view>
  32. <view class="career margin-t-10">
  33. 编号:{{cardInfo.no}}
  34. </view>
  35. <image class="line-icon margin-t-10" :src="baseURL + '/resource/model/model3/tap11.png'" mode="widthFix">
  36. </image>
  37. </view>
  38. <image class="right-center-icon" :src="baseURL + '/resource/model/model3/tap5.png'" mode="widthFix"></image>
  39. <view class="content ">
  40. <view class="icon-round-min">
  41. </view>
  42. <view class="icon-round-base">
  43. </view>
  44. <view class="content-icon-right icon-box-border">
  45. <view class="content-right-content icon-box-content">
  46. </view>
  47. </view>
  48. <view class="center-data flex">
  49. <view class="left">
  50. <view class="list-item">
  51. 年龄: {{cardInfo.age|| '暂无'}}
  52. </view>
  53. <view class="list-item">
  54. 从业: {{(cardInfo.work_year + '年')|| '暂无'}}
  55. </view>
  56. <view class="list-item">
  57. 籍贯: {{cardInfo.ancestral_place || '暂无'}}
  58. </view>
  59. <view class="list-item">
  60. 学历: {{cardInfo.education || '暂无'}}
  61. </view>
  62. </view>
  63. <view class="right">
  64. <view class="list-item">
  65. 属相:{{cardInfo.twelve|| '暂无'}}
  66. </view>
  67. <view class="list-item">
  68. 星座:{{cardInfo.constellation || '暂无'}}
  69. </view>
  70. <view class="list-item">
  71. 民族: {{cardInfo.minority || '暂无'}}
  72. </view>
  73. <view class="list-item">
  74. 服务次数: {{cardInfo.service_count || '0'}}
  75. </view>
  76. </view>
  77. </view>
  78. <view class="list-item padding-l-30 margin-b-30 flex-start">
  79. <view class="fwdqTop">
  80. 服务地区:
  81. </view>
  82. <view>
  83. <view class="fwdq" v-if="cardInfo.is_china == 1">
  84. <view v-for="(fwitem,fwindex) in cardInfo.service_area_all">
  85. {{fwitem}}{{fwindex ==(cardInfo.service_area_all.length -1) ?'': '' }}
  86. </view>
  87. </view>
  88. <view v-if="cardInfo.is_china == 0">
  89. 海外
  90. </view>
  91. <view v-if="cardInfo.is_china == 2">
  92. 全国
  93. </view>
  94. </view>
  95. </view>
  96. <view class="info-item-q flex-start ">
  97. <text class="flex-shrink-false">服务价格: </text>
  98. <view class="gzt">
  99. <view class="line-box flex">
  100. <view class="item" v-for="i in 18"></view>
  101. </view>
  102. <view class="gzt-price">
  103. <text
  104. class="money">{{cardInfo.service_min_price}}</text>元/{{ cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}
  105. </view>
  106. <view class=" gzt-price-b">
  107. <text
  108. class="money">{{cardInfo.service_max_price}}</text>元/{{cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}
  109. </view>
  110. </view>
  111. <image :src="baseURL + '/resource/icon/model1/yrz.png'" mode="" class="rz"
  112. v-if="cardInfo.is_type_audit == 1"></image>
  113. </view>
  114. </view>
  115. <view class="content-text">
  116. <view class="flex margin-b-20">
  117. <view class="name">
  118. 自我评价
  119. </view>
  120. <image class="icon" :src="baseURL + '/resource/model/model3/tap13.png'" mode="widthFix"></image>
  121. </view>
  122. <view class="flex">
  123. <view></view>
  124. <image class="line" :src="baseURL + '/resource/model/model3/tap11.png'" mode="widthFix"></image>
  125. </view>
  126. <view class="text margin-t-20">
  127. <rich-text :nodes="cardInfo.service_intro_content"></rich-text>
  128. </view>
  129. <view class="img-list flex">
  130. <image @click="$emit('openImage',siiitem)" :src="siiitem" mode="scaleToFill" v-for="siiitem in cardInfo.service_intro_imgs"></image>
  131. </view>
  132. </view>
  133. <view class="content-text">
  134. <view class="flex margin-b-20">
  135. <view class="name">
  136. 我的证书
  137. </view>
  138. <image class="icon" :src="baseURL + '/resource/model/model3/tap13.png'" mode="widthFix"></image>
  139. </view>
  140. <view class="flex">
  141. <view></view>
  142. <image class="line" :src="baseURL + '/resource/model/model3/tap11.png'" mode="widthFix"></image>
  143. </view>
  144. <view class="img-list flex">
  145. <image @click="$emit('openImage',siiitem)" :src="siiitem" mode="scaleToFill" v-for="siiitem in cardInfo.service_audit_imgs"></image>
  146. </view>
  147. </view>
  148. <view class="content-text">
  149. <view class="flex margin-b-20">
  150. <view class="name">
  151. 服务内容
  152. </view>
  153. <image class="icon" :src="baseURL + '/resource/model/model3/tap13.png'" mode="widthFix"></image>
  154. </view>
  155. <view class="flex">
  156. <view></view>
  157. <image class="line" :src="baseURL + '/resource/model/model3/tap11.png'" mode="widthFix"></image>
  158. </view>
  159. <view class="card-content">
  160. <view class="fw" v-for="spaitem in cardInfo.service_project_ar">
  161. <view class="fw-tit">
  162. <text class="yg"></text>{{spaitem.title}}
  163. </view>
  164. <view class="fw-content">
  165. {{spaitem.content}}
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. <view class="content-text">
  171. <view class="flex margin-b-20">
  172. <view class="name">
  173. 服务照片
  174. </view>
  175. <image class="icon" :src="baseURL + '/resource/model/model3/tap13.png'" mode="widthFix"></image>
  176. </view>
  177. <view class="flex">
  178. <view></view>
  179. <image class="line" :src="baseURL + '/resource/model/model3/tap11.png'" mode="widthFix"></image>
  180. </view>
  181. <view class="img-list flex">
  182. <image @click="$emit('openImage',siiitem)" :src="siiitem" mode="scaleToFill" v-for="siiitem in cardInfo.service_imgs"></image>
  183. </view>
  184. </view>
  185. </view>
  186. </template>
  187. <script>
  188. import {
  189. mapState,
  190. } from 'vuex';
  191. export default {
  192. props: {
  193. // 浏览数量
  194. shareNumber: {
  195. type: Number,
  196. default: 0
  197. },
  198. // 是否显示默认数据
  199. isDefault: {
  200. type: Boolean,
  201. default: true
  202. },
  203. isShare: {
  204. type: Boolean,
  205. default: false
  206. },
  207. //1为模板2为用户
  208. isLook: {
  209. type: Number,
  210. default: 0
  211. },
  212. templateDetail: {
  213. type: Object,
  214. default: () => {
  215. return {}
  216. }
  217. }
  218. },
  219. data() {
  220. return {
  221. defaultDate: {
  222. user_work_type_title: '母婴护理师',
  223. name: '陈旦',
  224. avatar: 'https://api.myjie.cn/resource/user/user3/ld.png',
  225. age: '40',
  226. twelve: '猪',
  227. work_year: '9',
  228. constellation: '处女座',
  229. ancestral_place: '广西',
  230. minority: '汉族',
  231. education: '初中',
  232. no: 'myj23031421',
  233. service_area_all: ['上海市'],
  234. service_min_price: 16800,
  235. service_max_price: 19800,
  236. user_work_type_title: '母婴师',
  237. service_time_type_title: '每月',
  238. service_intro_content: '本人从事月嫂工作已经9年多了,顺产剖腹产的妈妈都照顾过,宝宝方面的新生儿,早产儿足月生产儿、双胞胎都照顾过,累积了丰富的经验,现在对于月嫂的这份工作得心应手。我秉承着不怕苦,不怕累,对工作认真负责的态度,帮助过很多需要的家庭。这些年也一直靠客户的口碑宣传接单工作,很感谢客户对我工作的认可。我严格要求自己待客户如家人,视宝宝如己出,我会用自己的爱心,细心,耐心和学到的专业知识去赢得每一个客户的认可。',
  239. service_intro_imgs: ['https://api.myjie.cn/resource/user/user3/zwpj1.png',
  240. 'https://api.myjie.cn/resource/user/user3/zwpj2.png',
  241. 'https://api.myjie.cn/resource/user/user3/zwpj3.png',
  242. 'https://api.myjie.cn/resource/user/user3/zwpj4.png',
  243. 'https://api.myjie.cn/resource/user/user3/zwpj5.png',
  244. 'https://api.myjie.cn/resource/user/user3/zwpj6.png'
  245. ],
  246. service_audit_imgs: ['https://api.myjie.cn/resource/user/user3/zs1.png',
  247. 'https://api.myjie.cn/resource/user/user3/zs2.png',
  248. 'https://api.myjie.cn/resource/user/user3/zs3.png',
  249. 'https://api.myjie.cn/resource/user/user3/zs4.png'
  250. ],
  251. service_project_ar: [{
  252. title: '婴幼儿睡眠管理',
  253. content: '如:日夜颠倒、睡眠不规律、乳头混淆、奶睡、抱睡等问题,帮助宝爸宝妈规律孩子作息、解决婴幼儿喂养困扰,培养良好的生活、学习习惯。'
  254. }, {
  255. title: '特色月子餐',
  256. content: '套用客户的一句话“养眼、养心更养胃”!家常菜、面食、点心、甜品、靓汤、五谷杂粮粥、婴幼儿花样辅食等。'
  257. },
  258. {
  259. title: '早产儿特殊护理',
  260. content: '包括早产儿基础护理、安全喂养方法、追赶性生长、消化与免疫系统等技能,根据宝宝具体情况给予早产儿家长的科学入户指导。'
  261. },
  262. {
  263. title: '0-6岁早期教育',
  264. content: '在婴孩最敏感最能接受的时期进行事半功倍的适时教育,针对不同年龄段的孩子,开发婴幼儿潜能的教育,为孩子多元化和健康人格打下良好基础。'
  265. }
  266. ],
  267. service_imgs: [
  268. 'https://api.myjie.cn/resource/user/user3/fw1.png',
  269. 'https://api.myjie.cn/resource/user/user3/fw2.png',
  270. 'https://api.myjie.cn/resource/user/user3/fw3.png',
  271. 'https://api.myjie.cn/resource/user/user3/fw4.png',
  272. 'https://api.myjie.cn/resource/user/user3/fw5.png',
  273. 'https://api.myjie.cn/resource/user/user3/fw6.png',
  274. ],
  275. is_type_audit: 1,
  276. service_count: 0,
  277. is_china: 1
  278. }
  279. }
  280. },
  281. computed: {
  282. ...mapState(['baseURL']),
  283. cardInfo() {
  284. if (this.isDefault) {
  285. return this.defaultDate
  286. } else {
  287. return this.templateDetail
  288. }
  289. }
  290. },
  291. }
  292. </script>
  293. <style lang="scss" scoped>
  294. .mone {
  295. padding-bottom: 150rpx;
  296. background-color: #FFFFFF;
  297. min-height: 100vh;
  298. padding-top: 580rpx;
  299. position: relative;
  300. .top-left-icon-1 {
  301. background-color: rgba(15, 61, 96, 1);
  302. border-bottom-right-radius: 110rpx;
  303. width: 250rpx;
  304. height: 200rpx;
  305. position: absolute;
  306. top: -120rpx;
  307. left: -130rpx;
  308. }
  309. .top-center-icon-1 {
  310. border-radius: 100rpx;
  311. width: 60rpx;
  312. height: 60rpx;
  313. position: absolute;
  314. border: 1px solid rgba(43, 117, 180, 1);
  315. top: 50rpx;
  316. left: 310rpx;
  317. }
  318. .top-center-icon-2 {
  319. border-radius: 100rpx;
  320. width: 35rpx;
  321. height: 35rpx;
  322. position: absolute;
  323. border: 1px solid rgba(215, 215, 215, 1);
  324. top: 125rpx;
  325. left: 525rpx;
  326. }
  327. .top-right-icon-1 {
  328. padding: 30rpx;
  329. width: 200rpx;
  330. height: 200rpx;
  331. border: 1px dashed rgba(215, 215, 215, 1);
  332. top: -100rpx;
  333. right: -50rpx;
  334. .top-right-content {
  335. background-color: rgba(215, 215, 215, 1);
  336. }
  337. }
  338. .user-top-icon {
  339. width: 106rpx;
  340. height: 97rpx;
  341. position: absolute;
  342. top: 157rpx;
  343. left: 205rpx;
  344. }
  345. .user-right-logo {
  346. width: 235rpx;
  347. position: absolute;
  348. top: 246rpx;
  349. right: 154rpx;
  350. }
  351. .user-img {
  352. width: 280rpx;
  353. height: 280rpx;
  354. border: 3px solid #FFFFFF;
  355. border-radius: 200rpx;
  356. position: absolute;
  357. top: 186rpx;
  358. left: 50rpx;
  359. overflow: hidden;
  360. .image {
  361. width: 100%;
  362. }
  363. }
  364. .user-bottom-icon {
  365. padding: 30rpx;
  366. width: 210rpx;
  367. height: 210rpx;
  368. border: 1px dashed rgba(15, 61, 96, 1);
  369. top: 380rpx;
  370. left: 36rpx;
  371. .user-bottom-content {
  372. background-color: rgba(15, 61, 96, 1);
  373. }
  374. }
  375. .share-number {
  376. border-top-left-radius: 99rpx;
  377. border-bottom-left-radius: 99rpx;
  378. font-size: $font-base;
  379. color: #266B9E;
  380. border: 2px solid #266B9E;
  381. position: absolute;
  382. top: 150rpx;
  383. right: 0rpx;
  384. line-height: 1;
  385. padding: 10rpx;
  386. padding-left: 25rpx;
  387. }
  388. .right-content {
  389. position: absolute;
  390. right: 0;
  391. top: 350rpx;
  392. width: 390rpx;
  393. .name {
  394. font-size: 60rpx;
  395. font-family: FZYanSongS-DB-GB;
  396. color: #266B9E;
  397. }
  398. .career {
  399. font-size: 30rpx;
  400. font-family: FZYanSongS-DB-GB;
  401. color: #266B9E;
  402. }
  403. .line-icon {
  404. width: 360rpx;
  405. }
  406. }
  407. .right-center-icon {
  408. width: 190rpx;
  409. position: absolute;
  410. top: 900rpx;
  411. right: 0;
  412. }
  413. .page-bottom-right {
  414. width: 188rpx;
  415. position: absolute;
  416. bottom: 130rpx;
  417. right: 0;
  418. }
  419. }
  420. .icon-box-border {
  421. border-radius: 1000rpx;
  422. position: absolute;
  423. .icon-box-content {
  424. width: 100%;
  425. height: 100%;
  426. border-radius: 900rpx;
  427. }
  428. }
  429. .content-left-icon {
  430. width: 86rpx;
  431. position: absolute;
  432. top: 1800rpx;
  433. left: 0rpx;
  434. }
  435. .content-text {
  436. margin: 30rpx;
  437. padding: 55rpx;
  438. background-color: rgba(245, 248, 250, 1);
  439. position: relative;
  440. .card-content {
  441. font-size: 26rpx;
  442. font-weight: 500;
  443. color: #2C2E35;
  444. position: relative;
  445. .fw {
  446. font-size: 26rpx;
  447. font-weight: 500;
  448. color: #2C2E35;
  449. padding: 10rpx 0;
  450. .fw-tit {
  451. color: #266B9E;
  452. display: flex;
  453. align-items: center;
  454. .yg {
  455. background-color: #266B9E;
  456. display: inline-block;
  457. width: 10rpx;
  458. height: 10rpx;
  459. border-radius: 50%;
  460. margin-right: 10rpx;
  461. }
  462. }
  463. .fw-content {
  464. padding-top: 10rpx;
  465. padding-left: 18rpx;
  466. text-align: justify;
  467. word-wrap: break-word;
  468. white-space: pre-line;
  469. }
  470. }
  471. }
  472. .name {
  473. font-size: 65rpx;
  474. font-family: FZYanSongS-DB-GB;
  475. font-weight: bold;
  476. background-color: #266B9E;
  477. line-height: 60rpx;
  478. padding: 20rpx 40rpx;
  479. padding-bottom: 25rpx;
  480. color: #FFF;
  481. }
  482. .icon {
  483. width: 223rpx;
  484. }
  485. .line {
  486. width: 400rpx;
  487. }
  488. .text {
  489. line-height: 1.5;
  490. font-size: 26rpx;
  491. font-family: Adobe Heiti Std;
  492. }
  493. }
  494. .content {
  495. padding: 36rpx;
  496. line-height: 1;
  497. font-size: $font-base;
  498. color: #266B9E;
  499. font-weight: bold;
  500. position: relative;
  501. padding-bottom: 50rpx;
  502. margin-bottom: 30rpx;
  503. .content-icon-right {
  504. position: absolute;
  505. right: 50rpx;
  506. top: 100rpx;
  507. border: 1px solid #266B9E;
  508. width: 75rpx;
  509. height: 75rpx;
  510. padding: 10rpx;
  511. .content-right-content {
  512. background-color: rgb(217, 217, 217);
  513. }
  514. }
  515. .icon-round-min {
  516. background-color: rgb(28, 109, 161);
  517. border-radius: 100rpx;
  518. width: 30rpx;
  519. height: 30rpx;
  520. position: absolute;
  521. top: 30rpx;
  522. left: 300rpx;
  523. }
  524. .icon-round-base {
  525. background-color: rgb(28, 109, 161);
  526. border-radius: 100rpx;
  527. width: 60rpx;
  528. height: 60rpx;
  529. position: absolute;
  530. top: 160rpx;
  531. left: 280rpx;
  532. }
  533. .center-data {
  534. align-items: flex-start;
  535. border-left: 1px dashed #E6E6E6;
  536. .left,
  537. .right {
  538. width: 50%;
  539. padding-left: 30rpx;
  540. text-align: left;
  541. }
  542. .list-item {
  543. margin-bottom: 20rpx;
  544. .fwdq {
  545. flex-direction: column;
  546. }
  547. }
  548. }
  549. .info-item-q {
  550. width: 100%;
  551. display: flex;
  552. align-items: flex-start;
  553. justify-content: start;
  554. padding-left: 30rpx;
  555. .gzt {
  556. width: 350rpx;
  557. height: 24rpx;
  558. position: relative;
  559. .line-box {
  560. width: 350rpx;
  561. height: 24rpx;
  562. position: relative;
  563. background-color: rgb(36, 109, 179);
  564. border-radius: 50rpx;
  565. overflow: hidden;
  566. .item {
  567. margin-left: 10rpx;
  568. background-color: #5294C9;
  569. width: 10rpx;
  570. height: 50rpx;
  571. transform: rotate(18deg);
  572. }
  573. }
  574. .gzt-price,
  575. .gzt-price-b {
  576. width: 200rpx;
  577. text-align: center;
  578. position: absolute;
  579. padding-top: 20rpx;
  580. color: $font-color-dark;
  581. &::after {
  582. content: '';
  583. width: 0px;
  584. height: 0rpx;
  585. border: 14rpx solid;
  586. border-color: transparent transparent #FEB8C6;
  587. position: absolute;
  588. top: -14rpx;
  589. left: 0;
  590. right: 0;
  591. margin: auto;
  592. }
  593. text {
  594. color: #236BA5;
  595. }
  596. }
  597. .gzt-price {
  598. left: -100rpx;
  599. }
  600. .gzt-price-b {
  601. right: -100rpx;
  602. }
  603. }
  604. .rz {
  605. margin-left: 10rpx;
  606. width: 87rpx;
  607. height: 26rpx;
  608. }
  609. }
  610. }
  611. .img-list {
  612. justify-content: space-between;
  613. flex-wrap: wrap;
  614. margin: auto;
  615. position: relative;
  616. padding-top: 50rpx;
  617. image {
  618. width: 270rpx;
  619. height: 270rpx;
  620. background-color: #fff;
  621. margin-bottom: 30rpx;
  622. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.6);
  623. }
  624. }
  625. .fwdqTop {
  626. align-self: flex-start;
  627. }
  628. </style>