model_1.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724
  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/model/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/model/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/model/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/model/model1/m1.png'" mode="" class="tit-logo"></image>个人信息
  31. </view>
  32. <view class="u-bh flex">
  33. <image :src="baseURL + '/resource/model/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. 服务次数: {{cardInfo.service_count || '0'}}
  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" v-if="cardInfo.is_china == 1">
  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 class="fwdz flex" v-if="cardInfo.is_china == 0">
  73. <view >
  74. 海外
  75. </view>
  76. </view>
  77. </view>
  78. <view class="info-item-q flex" style="align-items: flex-start;">
  79. <text style="flex-shrink: 0;">服务价格: </text>
  80. <view class="gzt">
  81. <image :src="baseURL + '/resource/model/model1/tiao.png'" mode=""></image>
  82. <view class="gzt-price">
  83. <text>{{cardInfo.service_min_price}}</text>元/{{ cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}
  84. </view>
  85. <view class=" gzt-price-b">
  86. <text>{{cardInfo.service_max_price}}</text>元/{{cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}
  87. </view>
  88. </view>
  89. <image :src="baseURL + '/resource/model/model1/yrz.png'" mode="" class="rz"
  90. v-if="cardInfo.is_type_audit == 1"></image>
  91. </view>
  92. </view>
  93. </view>
  94. <view class="" style="height: 80rpx;"></view>
  95. </view>
  96. </view>
  97. <!-- 自我评价 -->
  98. <view class="hua4">
  99. <view class="hua3">
  100. <view class="m-card">
  101. <image :src="baseURL + '/resource/model/model1/card-bg.png'" mode="" class="card-bg"></image>
  102. <view class="card-tit flex">
  103. <image :src="baseURL + '/resource/model/model1/m2.png'" mode="" class="tit-logo"></image>自我展示
  104. </view>
  105. <view class="card-content">
  106. <rich-text :nodes="cardInfo.service_intro_content"></rich-text>
  107. </view>
  108. <view class="img-list flex" style="padding-top: 0;">
  109. <image :src="siiitem" mode="" v-for="siiitem in cardInfo.service_intro_imgs"></image>
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. <!-- 我的证书 -->
  115. <view class="hua5" v-if="cardInfo.service_audit_imgs && cardInfo.service_audit_imgs.length > 0">
  116. <view class="m-card">
  117. <image :src="baseURL + '/resource/model/model1/card-bg.png'" mode="" class="card-bg"></image>
  118. <view class="card-tit flex">
  119. <image :src="baseURL + '/resource/model/model1/m3.png'" mode="" class="tit-logo"></image>我的证书
  120. </view>
  121. <view class="img-list flex">
  122. <image :src="saiitem" mode="" v-for="saiitem in cardInfo.service_audit_imgs"></image>
  123. </view>
  124. </view>
  125. </view>
  126. <!-- 服务内容 -->
  127. <view class="hua6">
  128. <view class="m-card">
  129. <image :src="baseURL + '/resource/model/model1/card-bg.png'" mode="" class="card-bg"></image>
  130. <view class="card-tit flex">
  131. <image :src="baseURL + '/resource/model/model1/m4.png'" mode="" class="tit-logo"></image>服务内容
  132. </view>
  133. <view class="card-content">
  134. <view class="fw" v-for="spaitem in cardInfo.service_project_ar">
  135. <view class="fw-tit">
  136. <text class="yg"></text>{{spaitem.title}}
  137. </view>
  138. <view class="fw-content">
  139. {{spaitem.content}}
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. <!-- 服务照片 -->
  146. <view class="m-card" v-if="cardInfo.service_imgs && cardInfo.service_imgs.length > 0">
  147. <image :src="baseURL + '/resource/model/model1/card-bg.png'" mode="" class="card-bg"></image>
  148. <view class="card-tit flex">
  149. <image :src="baseURL + '/resource/model/model1/m5.png'" mode="" class="tit-logo"></image>服务照片
  150. </view>
  151. <view class="img-list flex">
  152. <image :src="siitem" mode="" v-for="siitem in cardInfo.service_imgs"></image>
  153. </view>
  154. </view>
  155. <!-- 底部图片 -->
  156. <image :src="baseURL + '/resource/model/model1/m-btm.png'" mode="" class="m-btm"></image>
  157. </view>
  158. </view>
  159. </template>
  160. <script>
  161. import {
  162. mapState,
  163. } from 'vuex';
  164. export default {
  165. props: {
  166. // 浏览数量
  167. shareNumber: {
  168. type: Number,
  169. default:0
  170. },
  171. // 是否显示默认数据
  172. isDefault: {
  173. type: Boolean,
  174. default: true
  175. },
  176. isShare: {
  177. type: Boolean,
  178. default: false
  179. },
  180. //1为模板2为用户
  181. isLook: {
  182. type: Number,
  183. default: 0
  184. },
  185. templateDetail: {
  186. type: Object,
  187. default: () => {
  188. return {}
  189. }
  190. },
  191. },
  192. data() {
  193. return {
  194. defaults: {
  195. user_work_type_title: '母婴护理师',
  196. name: '詹继红',
  197. avatar: 'https://api.myjie.cn/resource/user/user1/zjh.png',
  198. age: '49',
  199. twelve: '牛',
  200. work_year: '10',
  201. constellation: '巨蟹座',
  202. ancestral_place: '湖北',
  203. minority: '汉族',
  204. education: '大学',
  205. service_area_all: ['上海市'],
  206. service_min_price: 16800,
  207. service_max_price: 19800,
  208. service_time_type_title: '每月',
  209. service_intro_content: '高级育婴师证|高级催乳师证|早产儿护理师母婴护理证|金牌月嫂证|产后恢复师证|公共营养师证|月子药膳调理师证|国际宝宝睡眠咨询师证|普通话二级甲等|中央广播电视大学学历|学前教育专业,深耕幼教十年,技能全面,性格活泼,有亲和力,做事干净利落,有很强的责任心。对宝宝有爱心,体贴新手妈妈。专业技能熟练。应急能力强。让家人放心、产妇舒心的坐好月子。',
  210. service_intro_imgs: ['https://api.myjie.cn/resource/user/user1/pj1.png',
  211. 'https://api.myjie.cn/resource/user/user1/pj2.png',
  212. 'https://api.myjie.cn/resource/user/user1/pj3.png',
  213. 'https://api.myjie.cn/resource/user/user1/pj4.png'
  214. ],
  215. service_audit_imgs: ['https://api.myjie.cn/resource/user/user1/zs1.png',
  216. 'https://api.myjie.cn/resource/user/user1/zs2.png',
  217. 'https://api.myjie.cn/resource/user/user1/zs3.png',
  218. 'https://api.myjie.cn/resource/user/user1/zs4.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/user1/fw1.png',
  238. 'https://api.myjie.cn/resource/user/user1/fw2.png',
  239. 'https://api.myjie.cn/resource/user/user1/fw3.png',
  240. 'https://api.myjie.cn/resource/user/user1/fw4.png'
  241. ],
  242. is_type_audit: 1,
  243. service_count: 0,
  244. is_china: 1
  245. }
  246. }
  247. },
  248. computed: {
  249. ...mapState(['baseURL']),
  250. cardInfo() {
  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: #f8e1df;
  263. padding-bottom: 30rpx;
  264. .m-top {
  265. width: 750rpx;
  266. position: relative;
  267. width: 750rpx;
  268. height: 450rpx;
  269. .top-bg {
  270. position: absolute;
  271. width: 207rpx;
  272. height: 123rpx;
  273. bottom: 11rpx;
  274. left:32rpx;
  275. }
  276. .readme {
  277. width: 534rpx;
  278. height: 83rpx;
  279. position: absolute;
  280. top: 172rpx;
  281. left: 0;
  282. right: 0;
  283. margin: auto;
  284. }
  285. .u-zy {
  286. position: absolute;
  287. top: 375rpx;
  288. left: 0;
  289. right: 0;
  290. margin: auto;
  291. display: flex;
  292. justify-content: center;
  293. view {
  294. display: inline-block;
  295. padding: 8rpx 8rpx 8rpx 16rpx;
  296. border: 1px solid #F46C85;
  297. border-radius: 10rpx;
  298. font-size: 26rpx;
  299. font-weight: 500;
  300. color: #F46C85;
  301. }
  302. }
  303. .top-user {
  304. width: 222rpx;
  305. height: 222rpx;
  306. background: #FEFEFE;
  307. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  308. border-radius: 50%;
  309. position: absolute;
  310. left: 0;
  311. right: 0;
  312. top: 80rpx;
  313. justify-content: center;
  314. align-items: center;
  315. margin: auto;
  316. .user-logo {
  317. width: 200rpx;
  318. height: 200rpx;
  319. border-radius: 50%;
  320. background-color: #fff;
  321. }
  322. .gp {
  323. width: 133rpx;
  324. height: 38rpx;
  325. position: absolute;
  326. bottom: 0;
  327. left: 0;
  328. right: 0;
  329. margin: auto;
  330. }
  331. }
  332. .user-name {
  333. width: 750rpx;
  334. font-size: 38rpx;
  335. font-weight: bold;
  336. color: #000000;
  337. text-align: center;
  338. position: absolute;
  339. top: 318rpx;
  340. }
  341. .fx-btn {
  342. padding: 0;
  343. &::after {
  344. border: none;
  345. }
  346. border-radius: 24rpx 0 0 24rpx;
  347. image {
  348. width: 150rpx;
  349. height: 48rpx;
  350. display: block;
  351. }
  352. }
  353. .top-btn {
  354. height: 48rpx;
  355. position: absolute;
  356. right: 0;
  357. top: 70rpx;
  358. line-height: 48rpx;
  359. font-size: 24rpx;
  360. }
  361. .visit {
  362. border-radius: 24rpx 0 0 24rpx;
  363. top: 130rpx;
  364. border: 1px solid #f65486;
  365. color: #f65486;
  366. padding-left: 24rpx;
  367. }
  368. .mvisit {
  369. top: 70rpx;
  370. }
  371. }
  372. }
  373. .m-body {
  374. width: 705rpx;
  375. margin: auto;
  376. margin-top: 20rpx;
  377. background-color: #fff;
  378. border-left: 8rpx solid #efa0ab;
  379. border-right: 8rpx solid #efa0ab;
  380. padding: 45rpx 0;
  381. }
  382. .gr {
  383. position: relative;
  384. &::before {
  385. content: '';
  386. position: absolute;
  387. // left: 75px;
  388. right: 0;
  389. top: -30rpx;
  390. width: 120px;
  391. height: 174px;
  392. background: url($base-url + '/resource/model/model1/hua1.png') no-repeat;
  393. background-size: 100% 100%;
  394. }
  395. }
  396. .m-card {
  397. width: 640rpx;
  398. background: #fcf4f1;
  399. border-radius: 20rpx;
  400. position: relative;
  401. // min-height: 270rpx;
  402. margin: 0 auto 46rpx;
  403. .card-tit {
  404. width: 219rpx;
  405. height: 57rpx;
  406. background: #F46C85;
  407. border-radius: 20rpx 28rpx 29rpx 0rpx;
  408. justify-content: flex-start;
  409. align-items: center;
  410. padding: 0 20rpx;
  411. font-size: 32rpx;
  412. font-weight: bold;
  413. color: #FFFFFF;
  414. .tit-logo {
  415. width: 32rpx;
  416. height: 32rpx;
  417. margin-right: 18rpx;
  418. }
  419. }
  420. .card-bg {
  421. width: 100%;
  422. height: 270rpx;
  423. position: absolute;
  424. bottom: 0rpx;
  425. }
  426. .card-content {
  427. padding: 25rpx 35rpx;
  428. font-size: 26rpx;
  429. font-weight: 500;
  430. color: #2C2E35;
  431. position: relative;
  432. }
  433. .img-list {
  434. justify-content: space-between;
  435. flex-wrap: wrap;
  436. margin: auto;
  437. padding: 30rpx 30rpx 0;
  438. position: relative;
  439. image {
  440. width: 270rpx;
  441. height: 270rpx;
  442. background-color: #fff;
  443. margin-bottom: 30rpx;
  444. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.6);
  445. }
  446. }
  447. .fw {
  448. font-size: 26rpx;
  449. font-weight: 500;
  450. color: #2C2E35;
  451. padding: 10rpx 0;
  452. .fw-tit {
  453. color: #F46C85;
  454. display: flex;
  455. align-items: center;
  456. .yg {
  457. background-color: #F46C85;
  458. display: inline-block;
  459. width: 10rpx;
  460. height: 10rpx;
  461. border-radius: 50%;
  462. margin-right: 10rpx;
  463. }
  464. }
  465. .fw-content {
  466. padding-top: 10rpx;
  467. padding-left: 18rpx;
  468. text-align: justify;
  469. word-wrap: break-word;
  470. white-space: pre-line;
  471. }
  472. }
  473. .user-info {
  474. flex-wrap: wrap;
  475. font-size: 26rpx;
  476. font-weight: 500;
  477. color: #000000;
  478. position: relative;
  479. .info-item-b,
  480. .info-item-q {
  481. padding: 10rpx 0;
  482. color: #000000;
  483. position: relative;
  484. padding-left: 20rpx;
  485. &::before {
  486. display: inline-block;
  487. content: '';
  488. width: 10rpx;
  489. height: 10rpx;
  490. border-radius: 50%;
  491. background-color: #F46C85;
  492. position: absolute;
  493. top: 22rpx;
  494. left: 0;
  495. }
  496. .qianger {
  497. width: 2em;
  498. display: inline-block;
  499. }
  500. .laner {
  501. width: 0.5em;
  502. display: inline-block;
  503. }
  504. }
  505. .info-item-b {
  506. width: 50%;
  507. }
  508. .info-item-q {
  509. width: 100%;
  510. display: flex;
  511. align-items: flex-start;
  512. justify-content: start;
  513. .fwdz {
  514. flex-direction: column;
  515. align-items: flex-start;
  516. }
  517. .gzt {
  518. width: 312rpx;
  519. height: 24rpx;
  520. padding-top: 10rpx;
  521. position: relative;
  522. image {
  523. width: 312rpx;
  524. height: 24rpx;
  525. position: relative;
  526. }
  527. .gzt-price,
  528. .gzt-price-b {
  529. width: 200rpx;
  530. text-align: center;
  531. position: absolute;
  532. padding-top: 20rpx;
  533. &::after {
  534. content: '';
  535. width: 0px;
  536. height: 0rpx;
  537. // background: #FEB8C6;
  538. border: 14rpx solid;
  539. border-color: transparent transparent #FEB8C6;
  540. // border-top:transparent;
  541. // border-left: transparent;
  542. // border-right: transparent;
  543. position: absolute;
  544. top: -14rpx;
  545. left: 0;
  546. right: 0;
  547. margin: auto;
  548. }
  549. text {
  550. color: #F46C85;
  551. }
  552. }
  553. .gzt-price {
  554. left: -100rpx;
  555. }
  556. .gzt-price-b {
  557. right: -100rpx;
  558. }
  559. }
  560. .rz {
  561. margin-top: 10rpx;
  562. margin-left: 10rpx;
  563. width: 87rpx;
  564. height: 26rpx;
  565. }
  566. }
  567. }
  568. }
  569. .m-btm {
  570. width: 660rpx;
  571. height: 384rpx;
  572. }
  573. .hua2 {
  574. position: relative;
  575. &::before {
  576. content: '';
  577. width: 199rpx;
  578. height: 298rpx;
  579. background: url($base-url + '/resource/model/model1/hua2.png') no-repeat;
  580. position: absolute;
  581. bottom: -100rpx;
  582. right: 0;
  583. background-size: 100% 100%;
  584. }
  585. }
  586. .hua3 {
  587. position: relative;
  588. &::before {
  589. content: '';
  590. width: 192rpx;
  591. height: 223rpx;
  592. background: url($base-url + '/resource/model/model1/hua3.png') no-repeat;
  593. position: absolute;
  594. top: 0;
  595. bottom: 0;
  596. left: 0;
  597. margin: auto;
  598. background-size: 100% 100%;
  599. }
  600. }
  601. .hua4 {
  602. position: relative;
  603. &::before {
  604. content: '';
  605. width: 128rpx;
  606. height: 145rpx;
  607. background: url($base-url + '/resource/model/model1/hua4.png') no-repeat;
  608. position: absolute;
  609. bottom: -70rpx;
  610. right: 0;
  611. background-size: 100% 100%;
  612. }
  613. }
  614. .hua5 {
  615. position: relative;
  616. &::before {
  617. content: '';
  618. width: 199rpx;
  619. height: 298rpx;
  620. background: url($base-url + '/resource/model/model1/hua2.png') no-repeat;
  621. position: absolute;
  622. bottom: -100rpx;
  623. left: 0;
  624. background-size: 100% 100%;
  625. transform: rotateY(180deg);
  626. }
  627. }
  628. .hua6 {
  629. position: relative;
  630. &::before {
  631. content: '';
  632. width: 192rpx;
  633. height: 223rpx;
  634. background: url($base-url + '/resource/model/model1/hua3.png') no-repeat;
  635. position: absolute;
  636. bottom: -110rpx;
  637. right: 0;
  638. background-size: 100% 100%;
  639. transform: rotateY(180deg);
  640. }
  641. }
  642. .u-bh {
  643. justify-content: flex-start;
  644. padding-right: 10rpx;
  645. image {
  646. width: 26rpx;
  647. height: 26rpx;
  648. margin-right: 10rpx;
  649. }
  650. font-size: 28rpx;
  651. font-weight: bold;
  652. color: #F46C85;
  653. }
  654. </style>