model_2.vue 17 KB

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