model_1.vue 17 KB

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