model_1.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  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">
  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/model/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/model/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/model/model1/card-bg.png'" mode="" class="card-bg"></image>
  97. <view class="card-tit flex">
  98. <image :src="baseURL + '/resource/model/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/model/model1/card-bg.png'" mode="" class="card-bg"></image>
  113. <view class="card-tit flex">
  114. <image :src="baseURL + '/resource/model/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/model/model1/card-bg.png'" mode="" class="card-bg"></image>
  125. <view class="card-tit flex">
  126. <image :src="baseURL + '/resource/model/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/model/model1/card-bg.png'" mode="" class="card-bg"></image>
  143. <view class="card-tit flex">
  144. <image :src="baseURL + '/resource/model/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/model/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. user_work_type_title: '母婴护理师',
  191. name: '詹继红',
  192. avatar: 'https://api.myjie.cn/resource/user/user1/zjh.png',
  193. age: '49',
  194. twelve: '牛',
  195. work_year: '10',
  196. constellation: '巨蟹座',
  197. ancestral_place: '湖北',
  198. minority: '汉族',
  199. education: '大学',
  200. service_area_all: ['上海市'],
  201. service_min_price: 16800,
  202. service_max_price: 19800,
  203. service_time_type_title: '每月',
  204. service_intro_content: '高级育婴师证|高级催乳师证|早产儿护理师母婴护理证|金牌月嫂证|产后恢复师证|公共营养师证|月子药膳调理师证|国际宝宝睡眠咨询师证|普通话二级甲等|中央广播电视大学学历|学前教育专业,深耕幼教十年,技能全面,性格活泼,有亲和力,做事干净利落,有很强的责任心。对宝宝有爱心,体贴新手妈妈。专业技能熟练。应急能力强。让家人放心、产妇舒心的坐好月子。',
  205. service_intro_imgs: ['https://api.myjie.cn/resource/user/user1/pj1.png',
  206. 'https://api.myjie.cn/resource/user/user1/pj2.png',
  207. 'https://api.myjie.cn/resource/user/user1/pj3.png',
  208. 'https://api.myjie.cn/resource/user/user1/pj4.png'
  209. ],
  210. service_audit_imgs: ['https://api.myjie.cn/resource/user/user1/zs1.png',
  211. 'https://api.myjie.cn/resource/user/user1/zs2.png',
  212. 'https://api.myjie.cn/resource/user/user1/zs3.png',
  213. 'https://api.myjie.cn/resource/user/user1/zs4.png'
  214. ],
  215. service_project_ar: [{
  216. title: '婴幼儿睡眠管理',
  217. content: '如:日夜颠倒、睡眠不规律、乳头混淆、奶睡、抱睡等问题,帮助宝爸宝妈规律孩子作息、解决婴幼儿喂养困扰,培养良好的生活、学习习惯。'
  218. }, {
  219. title: '特色月子餐',
  220. content: '套用客户的一句话“养眼、养心更养胃”!家常菜、面食、点心、甜品、靓汤、五谷杂粮粥、婴幼儿花样辅食等。'
  221. },
  222. {
  223. title: '早产儿特殊护理',
  224. content: '包括早产儿基础护理、安全喂养方法、追赶性生长、消化与免疫系统等技能,根据宝宝具体情况给予早产儿家长的科学入户指导。'
  225. },
  226. {
  227. title: '0-6岁早期教育',
  228. content: '在婴孩最敏感最能接受的时期进行事半功倍的适时教育,针对不同年龄段的孩子,开发婴幼儿潜能的教育,为孩子多元化和健康人格打下良好基础。'
  229. }
  230. ],
  231. service_imgs: [
  232. 'https://api.myjie.cn/resource/user/user1/fw1.png',
  233. 'https://api.myjie.cn/resource/user/user1/fw2.png',
  234. 'https://api.myjie.cn/resource/user/user1/fw3.png',
  235. 'https://api.myjie.cn/resource/user/user1/fw4.png'
  236. ],
  237. is_type_audit: 1,
  238. service_count: 0
  239. }
  240. }
  241. },
  242. computed: {
  243. ...mapState(['baseURL']),
  244. cardInfo() {
  245. if (this.isDefault) {
  246. return this.defaults
  247. } else {
  248. return this.templateDetail
  249. }
  250. }
  251. },
  252. }
  253. </script>
  254. <style lang="scss" scoped>
  255. .mone {
  256. background-color: #f8e1df;
  257. padding-bottom: 30rpx;
  258. .m-top {
  259. width: 750rpx;
  260. position: relative;
  261. width: 750rpx;
  262. height: 450rpx;
  263. .top-bg {
  264. position: absolute;
  265. width: 207rpx;
  266. height: 123rpx;
  267. bottom: 11rpx;
  268. left:32rpx;
  269. }
  270. .readme {
  271. width: 534rpx;
  272. height: 83rpx;
  273. position: absolute;
  274. top: 172rpx;
  275. left: 0;
  276. right: 0;
  277. margin: auto;
  278. }
  279. .u-zy {
  280. position: absolute;
  281. top: 375rpx;
  282. left: 0;
  283. right: 0;
  284. margin: auto;
  285. display: flex;
  286. justify-content: center;
  287. view {
  288. display: inline-block;
  289. padding: 8rpx 8rpx 8rpx 16rpx;
  290. border: 1px solid #F46C85;
  291. border-radius: 10rpx;
  292. font-size: 26rpx;
  293. font-weight: 500;
  294. color: #F46C85;
  295. }
  296. }
  297. .top-user {
  298. width: 222rpx;
  299. height: 222rpx;
  300. background: #FEFEFE;
  301. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  302. border-radius: 50%;
  303. position: absolute;
  304. left: 0;
  305. right: 0;
  306. top: 80rpx;
  307. justify-content: center;
  308. align-items: center;
  309. margin: auto;
  310. .user-logo {
  311. width: 200rpx;
  312. height: 200rpx;
  313. border-radius: 50%;
  314. background-color: #fff;
  315. }
  316. .gp {
  317. width: 133rpx;
  318. height: 38rpx;
  319. position: absolute;
  320. bottom: 0;
  321. left: 0;
  322. right: 0;
  323. margin: auto;
  324. }
  325. }
  326. .user-name {
  327. width: 750rpx;
  328. font-size: 38rpx;
  329. font-weight: bold;
  330. color: #000000;
  331. text-align: center;
  332. position: absolute;
  333. top: 318rpx;
  334. }
  335. .fx-btn {
  336. padding: 0;
  337. &::after {
  338. border: none;
  339. }
  340. border-radius: 24rpx 0 0 24rpx;
  341. image {
  342. width: 150rpx;
  343. height: 48rpx;
  344. display: block;
  345. }
  346. }
  347. .top-btn {
  348. height: 48rpx;
  349. position: absolute;
  350. right: 0;
  351. top: 70rpx;
  352. line-height: 48rpx;
  353. font-size: 24rpx;
  354. }
  355. .visit {
  356. border-radius: 24rpx 0 0 24rpx;
  357. top: 130rpx;
  358. border: 1px solid #f65486;
  359. color: #f65486;
  360. padding-left: 24rpx;
  361. }
  362. .mvisit {
  363. top: 70rpx;
  364. }
  365. }
  366. }
  367. .m-body {
  368. width: 705rpx;
  369. margin: auto;
  370. margin-top: 20rpx;
  371. background-color: #fff;
  372. border-left: 8rpx solid #efa0ab;
  373. border-right: 8rpx solid #efa0ab;
  374. padding: 45rpx 0;
  375. }
  376. .gr {
  377. position: relative;
  378. &::before {
  379. content: '';
  380. position: absolute;
  381. // left: 75px;
  382. right: 0;
  383. top: -30rpx;
  384. width: 120px;
  385. height: 174px;
  386. background: url($base-url + '/resource/model/model1/hua1.png') no-repeat;
  387. background-size: 100% 100%;
  388. }
  389. }
  390. .m-card {
  391. width: 640rpx;
  392. background: #fcf4f1;
  393. border-radius: 20rpx;
  394. position: relative;
  395. // min-height: 270rpx;
  396. margin: 0 auto 46rpx;
  397. .card-tit {
  398. width: 219rpx;
  399. height: 57rpx;
  400. background: #F46C85;
  401. border-radius: 20rpx 28rpx 29rpx 0rpx;
  402. justify-content: flex-start;
  403. align-items: center;
  404. padding: 0 20rpx;
  405. font-size: 32rpx;
  406. font-weight: bold;
  407. color: #FFFFFF;
  408. .tit-logo {
  409. width: 32rpx;
  410. height: 32rpx;
  411. margin-right: 18rpx;
  412. }
  413. }
  414. .card-bg {
  415. width: 100%;
  416. height: 270rpx;
  417. position: absolute;
  418. bottom: 0rpx;
  419. }
  420. .card-content {
  421. padding: 25rpx 35rpx;
  422. font-size: 26rpx;
  423. font-weight: 500;
  424. color: #2C2E35;
  425. position: relative;
  426. }
  427. .img-list {
  428. justify-content: space-between;
  429. flex-wrap: wrap;
  430. margin: auto;
  431. padding: 30rpx 30rpx 0;
  432. position: relative;
  433. image {
  434. width: 270rpx;
  435. height: 270rpx;
  436. background-color: #fff;
  437. margin-bottom: 30rpx;
  438. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.6);
  439. }
  440. }
  441. .fw {
  442. font-size: 26rpx;
  443. font-weight: 500;
  444. color: #2C2E35;
  445. padding: 10rpx 0;
  446. .fw-tit {
  447. color: #F46C85;
  448. display: flex;
  449. align-items: center;
  450. .yg {
  451. background-color: #F46C85;
  452. display: inline-block;
  453. width: 10rpx;
  454. height: 10rpx;
  455. border-radius: 50%;
  456. margin-right: 10rpx;
  457. }
  458. }
  459. .fw-content {
  460. padding-top: 10rpx;
  461. padding-left: 18rpx;
  462. text-align: justify;
  463. word-wrap: break-word;
  464. white-space: pre-line;
  465. }
  466. }
  467. .user-info {
  468. flex-wrap: wrap;
  469. font-size: 26rpx;
  470. font-weight: 500;
  471. color: #000000;
  472. position: relative;
  473. .info-item-b,
  474. .info-item-q {
  475. padding: 10rpx 0;
  476. color: #000000;
  477. position: relative;
  478. padding-left: 20rpx;
  479. &::before {
  480. display: inline-block;
  481. content: '';
  482. width: 10rpx;
  483. height: 10rpx;
  484. border-radius: 50%;
  485. background-color: #F46C85;
  486. position: absolute;
  487. top: 22rpx;
  488. left: 0;
  489. }
  490. .qianger {
  491. width: 2em;
  492. display: inline-block;
  493. }
  494. .laner {
  495. width: 0.5em;
  496. display: inline-block;
  497. }
  498. }
  499. .info-item-b {
  500. width: 50%;
  501. }
  502. .info-item-q {
  503. width: 100%;
  504. display: flex;
  505. align-items: flex-start;
  506. justify-content: start;
  507. .fwdz {
  508. flex-direction: column;
  509. align-items: flex-start;
  510. }
  511. .gzt {
  512. width: 312rpx;
  513. height: 24rpx;
  514. padding-top: 10rpx;
  515. position: relative;
  516. image {
  517. width: 312rpx;
  518. height: 24rpx;
  519. position: relative;
  520. }
  521. .gzt-price,
  522. .gzt-price-b {
  523. width: 200rpx;
  524. text-align: center;
  525. position: absolute;
  526. padding-top: 20rpx;
  527. &::after {
  528. content: '';
  529. width: 0px;
  530. height: 0rpx;
  531. // background: #FEB8C6;
  532. border: 14rpx solid;
  533. border-color: transparent transparent #FEB8C6;
  534. // border-top:transparent;
  535. // border-left: transparent;
  536. // border-right: transparent;
  537. position: absolute;
  538. top: -14rpx;
  539. left: 0;
  540. right: 0;
  541. margin: auto;
  542. }
  543. text {
  544. color: #F46C85;
  545. }
  546. }
  547. .gzt-price {
  548. left: -100rpx;
  549. }
  550. .gzt-price-b {
  551. right: -100rpx;
  552. }
  553. }
  554. .rz {
  555. margin-top: 10rpx;
  556. margin-left: 10rpx;
  557. width: 87rpx;
  558. height: 26rpx;
  559. }
  560. }
  561. }
  562. }
  563. .m-btm {
  564. width: 660rpx;
  565. height: 384rpx;
  566. }
  567. .hua2 {
  568. position: relative;
  569. &::before {
  570. content: '';
  571. width: 199rpx;
  572. height: 298rpx;
  573. background: url($base-url + '/resource/model/model1/hua2.png') no-repeat;
  574. position: absolute;
  575. bottom: -100rpx;
  576. right: 0;
  577. background-size: 100% 100%;
  578. }
  579. }
  580. .hua3 {
  581. position: relative;
  582. &::before {
  583. content: '';
  584. width: 192rpx;
  585. height: 223rpx;
  586. background: url($base-url + '/resource/model/model1/hua3.png') no-repeat;
  587. position: absolute;
  588. top: 0;
  589. bottom: 0;
  590. left: 0;
  591. margin: auto;
  592. background-size: 100% 100%;
  593. }
  594. }
  595. .hua4 {
  596. position: relative;
  597. &::before {
  598. content: '';
  599. width: 128rpx;
  600. height: 145rpx;
  601. background: url($base-url + '/resource/model/model1/hua4.png') no-repeat;
  602. position: absolute;
  603. bottom: -70rpx;
  604. right: 0;
  605. background-size: 100% 100%;
  606. }
  607. }
  608. .hua5 {
  609. position: relative;
  610. &::before {
  611. content: '';
  612. width: 199rpx;
  613. height: 298rpx;
  614. background: url($base-url + '/resource/model/model1/hua2.png') no-repeat;
  615. position: absolute;
  616. bottom: -100rpx;
  617. left: 0;
  618. background-size: 100% 100%;
  619. transform: rotateY(180deg);
  620. }
  621. }
  622. .hua6 {
  623. position: relative;
  624. &::before {
  625. content: '';
  626. width: 192rpx;
  627. height: 223rpx;
  628. background: url($base-url + '/resource/model/model1/hua3.png') no-repeat;
  629. position: absolute;
  630. bottom: -110rpx;
  631. right: 0;
  632. background-size: 100% 100%;
  633. transform: rotateY(180deg);
  634. }
  635. }
  636. .u-bh {
  637. justify-content: flex-start;
  638. padding-right: 10rpx;
  639. image {
  640. width: 26rpx;
  641. height: 26rpx;
  642. margin-right: 10rpx;
  643. }
  644. font-size: 28rpx;
  645. font-weight: bold;
  646. color: #F46C85;
  647. }
  648. </style>