model_2.vue 18 KB

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