model_1.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715
  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. 综 <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/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. }
  239. }
  240. },
  241. computed: {
  242. ...mapState(['baseURL']),
  243. cardInfo() {
  244. if (this.isDefault) {
  245. return this.defaults
  246. } else {
  247. return this.templateDetail
  248. }
  249. }
  250. },
  251. }
  252. </script>
  253. <style lang="scss" scoped>
  254. .mone {
  255. background-color: #f8e1df;
  256. padding-bottom: 30rpx;
  257. .m-top {
  258. width: 750rpx;
  259. position: relative;
  260. width: 750rpx;
  261. height: 450rpx;
  262. .top-bg {
  263. position: absolute;
  264. width: 207rpx;
  265. height: 123rpx;
  266. bottom: 11rpx;
  267. left:32rpx;
  268. }
  269. .readme {
  270. width: 534rpx;
  271. height: 83rpx;
  272. position: absolute;
  273. top: 172rpx;
  274. left: 0;
  275. right: 0;
  276. margin: auto;
  277. }
  278. .u-zy {
  279. position: absolute;
  280. top: 375rpx;
  281. left: 0;
  282. right: 0;
  283. margin: auto;
  284. display: flex;
  285. justify-content: center;
  286. view {
  287. display: inline-block;
  288. padding: 8rpx 8rpx 8rpx 16rpx;
  289. border: 1px solid #F46C85;
  290. border-radius: 10rpx;
  291. font-size: 26rpx;
  292. font-weight: 500;
  293. color: #F46C85;
  294. }
  295. }
  296. .top-user {
  297. width: 222rpx;
  298. height: 222rpx;
  299. background: #FEFEFE;
  300. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  301. border-radius: 50%;
  302. position: absolute;
  303. left: 0;
  304. right: 0;
  305. top: 80rpx;
  306. justify-content: center;
  307. align-items: center;
  308. margin: auto;
  309. .user-logo {
  310. width: 200rpx;
  311. height: 200rpx;
  312. border-radius: 50%;
  313. background-color: #fff;
  314. }
  315. .gp {
  316. width: 133rpx;
  317. height: 38rpx;
  318. position: absolute;
  319. bottom: 0;
  320. left: 0;
  321. right: 0;
  322. margin: auto;
  323. }
  324. }
  325. .user-name {
  326. width: 750rpx;
  327. font-size: 38rpx;
  328. font-weight: bold;
  329. color: #000000;
  330. text-align: center;
  331. position: absolute;
  332. top: 318rpx;
  333. }
  334. .fx-btn {
  335. padding: 0;
  336. &::after {
  337. border: none;
  338. }
  339. border-radius: 24rpx 0 0 24rpx;
  340. image {
  341. width: 150rpx;
  342. height: 48rpx;
  343. display: block;
  344. }
  345. }
  346. .top-btn {
  347. height: 48rpx;
  348. position: absolute;
  349. right: 0;
  350. top: 70rpx;
  351. line-height: 48rpx;
  352. font-size: 24rpx;
  353. }
  354. .visit {
  355. border-radius: 24rpx 0 0 24rpx;
  356. top: 130rpx;
  357. border: 1px solid #f65486;
  358. color: #f65486;
  359. padding-left: 24rpx;
  360. }
  361. .mvisit {
  362. top: 70rpx;
  363. }
  364. }
  365. }
  366. .m-body {
  367. width: 705rpx;
  368. margin: auto;
  369. margin-top: 20rpx;
  370. background-color: #fff;
  371. border-left: 8rpx solid #efa0ab;
  372. border-right: 8rpx solid #efa0ab;
  373. padding: 45rpx 0;
  374. }
  375. .gr {
  376. position: relative;
  377. &::before {
  378. content: '';
  379. position: absolute;
  380. // left: 75px;
  381. right: 0;
  382. top: -30rpx;
  383. width: 120px;
  384. height: 174px;
  385. background: url($base-url + '/resource/model/model1/hua1.png') no-repeat;
  386. background-size: 100% 100%;
  387. }
  388. }
  389. .m-card {
  390. width: 640rpx;
  391. background: #fcf4f1;
  392. border-radius: 20rpx;
  393. position: relative;
  394. // min-height: 270rpx;
  395. margin: 0 auto 46rpx;
  396. .card-tit {
  397. width: 219rpx;
  398. height: 57rpx;
  399. background: #F46C85;
  400. border-radius: 20rpx 28rpx 29rpx 0rpx;
  401. justify-content: flex-start;
  402. align-items: center;
  403. padding: 0 20rpx;
  404. font-size: 32rpx;
  405. font-weight: bold;
  406. color: #FFFFFF;
  407. .tit-logo {
  408. width: 32rpx;
  409. height: 32rpx;
  410. margin-right: 18rpx;
  411. }
  412. }
  413. .card-bg {
  414. width: 100%;
  415. height: 270rpx;
  416. position: absolute;
  417. bottom: 0rpx;
  418. }
  419. .card-content {
  420. padding: 25rpx 35rpx;
  421. font-size: 26rpx;
  422. font-weight: 500;
  423. color: #2C2E35;
  424. position: relative;
  425. }
  426. .img-list {
  427. justify-content: space-between;
  428. flex-wrap: wrap;
  429. margin: auto;
  430. padding: 30rpx 30rpx 0;
  431. position: relative;
  432. image {
  433. width: 270rpx;
  434. height: 270rpx;
  435. background-color: #fff;
  436. margin-bottom: 30rpx;
  437. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.6);
  438. }
  439. }
  440. .fw {
  441. font-size: 26rpx;
  442. font-weight: 500;
  443. color: #2C2E35;
  444. padding: 10rpx 0;
  445. .fw-tit {
  446. color: #F46C85;
  447. display: flex;
  448. align-items: center;
  449. .yg {
  450. background-color: #F46C85;
  451. display: inline-block;
  452. width: 10rpx;
  453. height: 10rpx;
  454. border-radius: 50%;
  455. margin-right: 10rpx;
  456. }
  457. }
  458. .fw-content {
  459. padding-top: 10rpx;
  460. padding-left: 18rpx;
  461. text-align: justify;
  462. }
  463. }
  464. .user-info {
  465. flex-wrap: wrap;
  466. font-size: 26rpx;
  467. font-weight: 500;
  468. color: #000000;
  469. position: relative;
  470. .info-item-b,
  471. .info-item-q {
  472. padding: 10rpx 0;
  473. color: #000000;
  474. position: relative;
  475. padding-left: 20rpx;
  476. &::before {
  477. display: inline-block;
  478. content: '';
  479. width: 10rpx;
  480. height: 10rpx;
  481. border-radius: 50%;
  482. background-color: #F46C85;
  483. position: absolute;
  484. top: 22rpx;
  485. left: 0;
  486. }
  487. .qianger {
  488. width: 2em;
  489. display: inline-block;
  490. }
  491. .laner {
  492. width: 0.5em;
  493. display: inline-block;
  494. }
  495. }
  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. // background: #FEB8C6;
  529. border: 14rpx solid;
  530. border-color: transparent transparent #FEB8C6;
  531. // border-top:transparent;
  532. // border-left: transparent;
  533. // border-right: transparent;
  534. position: absolute;
  535. top: -14rpx;
  536. left: 0;
  537. right: 0;
  538. margin: auto;
  539. }
  540. text {
  541. color: #F46C85;
  542. }
  543. }
  544. .gzt-price {
  545. left: -100rpx;
  546. }
  547. .gzt-price-b {
  548. right: -100rpx;
  549. }
  550. }
  551. .rz {
  552. margin-top: 10rpx;
  553. margin-left: 10rpx;
  554. width: 87rpx;
  555. height: 26rpx;
  556. }
  557. }
  558. }
  559. }
  560. .m-btm {
  561. width: 660rpx;
  562. height: 384rpx;
  563. }
  564. .hua2 {
  565. position: relative;
  566. &::before {
  567. content: '';
  568. width: 199rpx;
  569. height: 298rpx;
  570. background: url($base-url + '/resource/model/model1/hua2.png') no-repeat;
  571. position: absolute;
  572. bottom: -100rpx;
  573. right: 0;
  574. background-size: 100% 100%;
  575. }
  576. }
  577. .hua3 {
  578. position: relative;
  579. &::before {
  580. content: '';
  581. width: 192rpx;
  582. height: 223rpx;
  583. background: url($base-url + '/resource/model/model1/hua3.png') no-repeat;
  584. position: absolute;
  585. top: 0;
  586. bottom: 0;
  587. left: 0;
  588. margin: auto;
  589. background-size: 100% 100%;
  590. }
  591. }
  592. .hua4 {
  593. position: relative;
  594. &::before {
  595. content: '';
  596. width: 128rpx;
  597. height: 145rpx;
  598. background: url($base-url + '/resource/model/model1/hua4.png') no-repeat;
  599. position: absolute;
  600. bottom: -70rpx;
  601. right: 0;
  602. background-size: 100% 100%;
  603. }
  604. }
  605. .hua5 {
  606. position: relative;
  607. &::before {
  608. content: '';
  609. width: 199rpx;
  610. height: 298rpx;
  611. background: url($base-url + '/resource/model/model1/hua2.png') no-repeat;
  612. position: absolute;
  613. bottom: -100rpx;
  614. left: 0;
  615. background-size: 100% 100%;
  616. transform: rotateY(180deg);
  617. }
  618. }
  619. .hua6 {
  620. position: relative;
  621. &::before {
  622. content: '';
  623. width: 192rpx;
  624. height: 223rpx;
  625. background: url($base-url + '/resource/model/model1/hua3.png') no-repeat;
  626. position: absolute;
  627. bottom: -110rpx;
  628. right: 0;
  629. background-size: 100% 100%;
  630. transform: rotateY(180deg);
  631. }
  632. }
  633. .u-bh {
  634. justify-content: flex-start;
  635. padding-right: 10rpx;
  636. image {
  637. width: 26rpx;
  638. height: 26rpx;
  639. margin-right: 10rpx;
  640. }
  641. font-size: 28rpx;
  642. font-weight: bold;
  643. color: #F46C85;
  644. }
  645. </style>