model.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
  1. <template>
  2. <view class="content" :class="mtype==1?'mone':'mbase'" v-if="baseURL">
  3. <view class="m-top">
  4. <image :src="baseURL + '/resource/icon/model1/top-base.png'" mode="" class="top-bg"></image>
  5. <image :src="baseURL + '/resource/icon/model1/resume.png'" mode="" class="readme"></image>
  6. <view class="top-user flex">
  7. <image :src="cardInfo.avatar" mode="" class="user-logo"></image>
  8. <image :src="baseURL + '/resource/icon/model1/jpfw.png'" mode="" class="gp"></image>
  9. </view>
  10. <view class="user-name">
  11. {{cardInfo.name || '詹继红'}}
  12. </view>
  13. <button type="default" class="fx-btn">
  14. <image :src="baseURL + '/resource/icon/model1/fx.png'" mode=""></image>
  15. </button>
  16. </view>
  17. <view class="m-body gr">
  18. <!-- 个人信息 -->
  19. <view class="hua2">
  20. <view class="m-card">
  21. <image :src="baseURL + '/resource/icon/model1/card-bg.png'" mode="" class="card-bg"></image>
  22. <view class="card-tit flex">
  23. <image :src="baseURL + '/resource/icon/model1/m1.png'" mode="" class="tit-logo"></image>个人信息
  24. </view>
  25. <view class="card-content">
  26. <view class="user-info flex">
  27. <view class="info-item-b">
  28. 年<text class="qianger"></text>龄: {{cardInfo.age|| '暂无'}}
  29. </view>
  30. <view class="info-item-b">
  31. 属<text class="qianger"></text>相: {{cardInfo.twelve|| '暂无'}}
  32. </view>
  33. <view class="info-item-b">
  34. 从<text class="qianger"></text>业: {{(cardInfo.work_year + '年')|| '暂无'}}
  35. </view>
  36. <view class="info-item-b">
  37. 星<text class="qianger"></text>座: {{cardInfo.constellation || '暂无'}}
  38. </view>
  39. <view class="info-item-b">
  40. 籍<text class="qianger"></text>贯: {{cardInfo.ancestral_place || '暂无'}}
  41. </view>
  42. <view class="info-item-b">
  43. 民<text class="qianger"></text>族: {{cardInfo.minority || '暂无'}}
  44. </view>
  45. <view class="info-item-b">
  46. 学<text class="qianger"></text>历: {{cardInfo.education || '暂无'}}
  47. </view>
  48. <!-- <view class="info-item-b">
  49. 综 <text class="laner"></text> 合<text class="laner"></text>分: 50
  50. </view> -->
  51. <view class="info-item-q flex" style="align-items: flex-start;">
  52. <text style="flex-shrink: 0;">服务地区: </text><text>椒江区、黄岩区、路桥区</text>
  53. </view>
  54. <view class="info-item-q flex" style="align-items: flex-start;">
  55. <text style="flex-shrink: 0;">服务价格: </text>
  56. <view class="gzt">
  57. <image :src="baseURL + '/resource/icon/model1/tiao.png'" mode=""></image>
  58. <view class="gzt-price">
  59. <text>{{cardInfo.service_min_price}}</text>元/{{cardInfo.service_time_type_title.replace('每','')}}
  60. </view>
  61. <view class=" gzt-price-b">
  62. <text>{{cardInfo.service_max_price}}</text>元/{{cardInfo.service_time_type_title.replace('每','')}}
  63. </view>
  64. </view>
  65. <image :src="baseURL + '/resource/icon/model1/yrz.png'" mode="" class="rz"></image>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="" style="height: 80rpx;"></view>
  70. </view>
  71. </view>
  72. <!-- 自我评价 -->
  73. <view class="hua4">
  74. <view class="hua3">
  75. <view class="m-card">
  76. <image :src="baseURL + '/resource/icon/model1/card-bg.png'" mode="" class="card-bg"></image>
  77. <view class="card-tit flex">
  78. <image :src="baseURL + '/resource/icon/model1/m2.png'" mode="" class="tit-logo"></image>自我评价
  79. </view>
  80. <view class="card-content">
  81. {{cardInfo.service_intro_content}}
  82. </view>
  83. <view class="img-list flex" style="padding-top: 0;">
  84. <image :src="siiitem" mode="" v-for="siiitem in cardInfo.service_intro_imgs"></image>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <!-- 我的证书 -->
  90. <view class="hua5" v-if="cardInfo.service_audit_imgs && cardInfo.service_audit_imgs.length > 0">
  91. <view class="m-card">
  92. <image :src="baseURL + '/resource/icon/model1/card-bg.png'" mode="" class="card-bg"></image>
  93. <view class="card-tit flex">
  94. <image :src="baseURL + '/resource/icon/model1/m3.png'" mode="" class="tit-logo"></image>我的证书
  95. </view>
  96. <view class="img-list flex">
  97. <image :src="saiitem" mode="" v-for="saiitem in cardInfo.service_audit_imgs"></image>
  98. </view>
  99. </view>
  100. </view>
  101. <!-- 服务内容 -->
  102. <view class="hua6">
  103. <view class="m-card">
  104. <image :src="baseURL + '/resource/icon/model1/card-bg.png'" mode="" class="card-bg"></image>
  105. <view class="card-tit flex">
  106. <image :src="baseURL + '/resource/icon/model1/m4.png'" mode="" class="tit-logo"></image>服务内容
  107. </view>
  108. <view class="card-content">
  109. <view class="fw" v-for="spaitem in cardInfo.service_project_ar">
  110. <view class="fw-tit">
  111. <text class="yg"></text>{{spaitem.title}}
  112. </view>
  113. <view class="fw-content">
  114. {{spaitem.content}}
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <!-- 服务照片 -->
  121. <view class="m-card" v-if="cardInfo.service_imgs && cardInfo.service_imgs.length > 0">
  122. <image :src="baseURL + '/resource/icon/model1/card-bg.png'" mode="" class="card-bg"></image>
  123. <view class="card-tit flex">
  124. <image :src="baseURL + '/resource/icon/model1/m5.png'" mode="" class="tit-logo"></image>服务照片
  125. </view>
  126. <view class="img-list flex">
  127. <image :src="siitem" mode="" v-for="siitem in cardInfo.service_imgs"></image>
  128. </view>
  129. </view>
  130. <!-- 底部图片 -->
  131. <image :src="baseURL + '/resource/icon/model1/m-btm.png'" mode="" class="m-btm"></image>
  132. </view>
  133. <view class="create-model-ts">
  134. </view>
  135. <view class="create-model">
  136. 生成我的专属简历
  137. </view>
  138. </view>
  139. </template>
  140. <script>
  141. import {
  142. mapState,
  143. mapMutations
  144. } from 'vuex';
  145. import {
  146. getUserCardInfo
  147. } from '@/api/model.js'
  148. export default {
  149. data() {
  150. return {
  151. mtype: 1,
  152. cardInfo: {}
  153. }
  154. },
  155. computed: {
  156. ...mapState(['baseURL'])
  157. },
  158. onLoad() {
  159. console.log(this.$store.state.baseURL)
  160. this.getUserCardInfo()
  161. },
  162. onShow() {
  163. },
  164. methods: {
  165. getUserCardInfo() {
  166. let that = this
  167. getUserCardInfo().then(res => {
  168. console.log(res)
  169. that.cardInfo = res.data
  170. })
  171. }
  172. }
  173. }
  174. </script>
  175. <style lang="scss">
  176. .mone {
  177. background-color: #f8e1df;
  178. .m-top {
  179. width: 750rpx;
  180. position: relative;
  181. width: 750rpx;
  182. height: 370rpx;
  183. .top-bg {
  184. position: relative;
  185. width: 750rpx;
  186. height: 370rpx;
  187. }
  188. .readme {
  189. width: 534rpx;
  190. height: 83rpx;
  191. position: absolute;
  192. top: 172rpx;
  193. left: 0;
  194. right: 0;
  195. margin: auto;
  196. }
  197. .top-user {
  198. width: 222rpx;
  199. height: 222rpx;
  200. background: #FEFEFE;
  201. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  202. border-radius: 50%;
  203. position: absolute;
  204. left: 0;
  205. right: 0;
  206. top: 80rpx;
  207. justify-content: center;
  208. align-items: center;
  209. margin: auto;
  210. .user-logo {
  211. width: 200rpx;
  212. height: 200rpx;
  213. border-radius: 50%;
  214. background-color: #fff;
  215. }
  216. .gp {
  217. width: 133rpx;
  218. height: 38rpx;
  219. position: absolute;
  220. bottom: 0;
  221. left: 0;
  222. right: 0;
  223. margin: auto;
  224. }
  225. }
  226. .user-name {
  227. width: 750rpx;
  228. font-size: 38rpx;
  229. font-weight: bold;
  230. color: #000000;
  231. text-align: center;
  232. position: absolute;
  233. top: 318rpx;
  234. }
  235. .fx-btn {
  236. width: 150rpx;
  237. height: 48rpx;
  238. padding: 0;
  239. &::after {
  240. border: none;
  241. }
  242. position: absolute;
  243. top: 70rpx;
  244. right: 0;
  245. border-radius: 24rpx 0 0 24rpx;
  246. image {
  247. width: 150rpx;
  248. height: 48rpx;
  249. display: block;
  250. }
  251. }
  252. }
  253. }
  254. .m-body {
  255. width: 705rpx;
  256. margin: auto;
  257. margin-top: 20rpx;
  258. background-color: #fff;
  259. border-left: 8rpx solid #efa0ab;
  260. border-right: 8rpx solid #efa0ab;
  261. padding: 45rpx 0;
  262. }
  263. .gr {
  264. position: relative;
  265. &::before {
  266. content: '';
  267. position: absolute;
  268. // left: 75px;
  269. right: 0;
  270. top: -30rpx;
  271. width: 120px;
  272. height: 174px;
  273. background: url('https://api.myjie.cn/resource/icon/model1/hua1.png') no-repeat;
  274. background-size: 100% 100%;
  275. }
  276. }
  277. .m-card {
  278. width: 640rpx;
  279. background: #fcf4f1;
  280. border-radius: 20rpx;
  281. position: relative;
  282. // min-height: 270rpx;
  283. margin: 0 auto 46rpx;
  284. .card-tit {
  285. width: 219rpx;
  286. height: 57rpx;
  287. background: #F46C85;
  288. border-radius: 20rpx 28rpx 29rpx 0rpx;
  289. justify-content: flex-start;
  290. align-items: center;
  291. padding: 0 20rpx;
  292. font-size: 32rpx;
  293. font-weight: bold;
  294. color: #FFFFFF;
  295. .tit-logo {
  296. width: 32rpx;
  297. height: 32rpx;
  298. margin-right: 18rpx;
  299. }
  300. }
  301. .card-bg {
  302. width: 100%;
  303. height: 270rpx;
  304. position: absolute;
  305. bottom: 0rpx;
  306. }
  307. .card-content {
  308. padding: 25rpx 35rpx;
  309. font-size: 26rpx;
  310. font-weight: 500;
  311. color: #2C2E35;
  312. position: relative;
  313. }
  314. .img-list {
  315. justify-content: space-between;
  316. flex-wrap: wrap;
  317. margin: auto;
  318. padding: 30rpx 30rpx 0;
  319. position: relative;
  320. image {
  321. width: 270rpx;
  322. height: 270rpx;
  323. background-color: #fff;
  324. margin-bottom: 30rpx;
  325. }
  326. }
  327. .fw {
  328. font-size: 26rpx;
  329. font-weight: 500;
  330. color: #2C2E35;
  331. padding: 10rpx 0;
  332. .fw-tit {
  333. color: #F46C85;
  334. display: flex;
  335. align-items: center;
  336. .yg {
  337. background-color: #F46C85;
  338. display: inline-block;
  339. width: 10rpx;
  340. height: 10rpx;
  341. border-radius: 50%;
  342. margin-right: 10rpx;
  343. }
  344. }
  345. .fw-content {
  346. padding-top: 10rpx;
  347. padding-left: 18rpx;
  348. text-align: justify;
  349. }
  350. }
  351. .user-info {
  352. flex-wrap: wrap;
  353. font-size: 26rpx;
  354. font-weight: 500;
  355. color: #000000;
  356. position: relative;
  357. .info-item-b,
  358. .info-item-q {
  359. padding: 10rpx 0;
  360. color: #000000;
  361. position: relative;
  362. padding-left: 20rpx;
  363. &::before {
  364. display: inline-block;
  365. content: '';
  366. width: 10rpx;
  367. height: 10rpx;
  368. border-radius: 50%;
  369. background-color: #F46C85;
  370. position: absolute;
  371. top: 22rpx;
  372. left: 0;
  373. }
  374. .qianger {
  375. width: 2em;
  376. display: inline-block;
  377. }
  378. .laner {
  379. width: 0.5em;
  380. display: inline-block;
  381. }
  382. }
  383. .info-item-b {
  384. width: 50%;
  385. }
  386. .info-item-q {
  387. width: 100%;
  388. display: flex;
  389. align-items: flex-start;
  390. justify-content: start;
  391. .gzt {
  392. width: 312rpx;
  393. height: 24rpx;
  394. padding-top: 10rpx;
  395. position: relative;
  396. image {
  397. width: 312rpx;
  398. height: 24rpx;
  399. position: relative;
  400. }
  401. .gzt-price,
  402. .gzt-price-b {
  403. width: 200rpx;
  404. text-align: center;
  405. position: absolute;
  406. padding-top: 20rpx;
  407. &::after {
  408. content: '';
  409. width: 0px;
  410. height: 0rpx;
  411. // background: #FEB8C6;
  412. border: 14rpx solid;
  413. border-color: transparent transparent #FEB8C6;
  414. // border-top:transparent;
  415. // border-left: transparent;
  416. // border-right: transparent;
  417. position: absolute;
  418. top: -14rpx;
  419. left: 0;
  420. right: 0;
  421. margin: auto;
  422. }
  423. text {
  424. color: #F46C85;
  425. }
  426. }
  427. .gzt-price {
  428. left: -100rpx;
  429. }
  430. .gzt-price-b {
  431. right: -100rpx;
  432. }
  433. }
  434. .rz {
  435. margin-top: 10rpx;
  436. margin-left: 10rpx;
  437. width: 87rpx;
  438. height: 26rpx;
  439. }
  440. }
  441. }
  442. }
  443. .m-btm {
  444. width: 660rpx;
  445. height: 384rpx;
  446. }
  447. .hua2 {
  448. position: relative;
  449. &::before {
  450. content: '';
  451. width: 199rpx;
  452. height: 298rpx;
  453. background: url('https://api.myjie.cn/resource/icon/model1/hua2.png') no-repeat;
  454. position: absolute;
  455. bottom: -100rpx;
  456. right: 0;
  457. background-size: 100% 100%;
  458. }
  459. }
  460. .hua3 {
  461. position: relative;
  462. &::before {
  463. content: '';
  464. width: 192rpx;
  465. height: 223rpx;
  466. background: url('https://api.myjie.cn/resource/icon/model1/hua3.png') no-repeat;
  467. position: absolute;
  468. top: 0;
  469. bottom: 0;
  470. left: 0;
  471. margin: auto;
  472. background-size: 100% 100%;
  473. }
  474. }
  475. .hua4 {
  476. position: relative;
  477. &::before {
  478. content: '';
  479. width: 128rpx;
  480. height: 145rpx;
  481. background: url('https://api.myjie.cn/resource/icon/model1/hua4.png') no-repeat;
  482. position: absolute;
  483. bottom: -70rpx;
  484. right: 0;
  485. background-size: 100% 100%;
  486. }
  487. }
  488. .hua5 {
  489. position: relative;
  490. &::before {
  491. content: '';
  492. width: 199rpx;
  493. height: 298rpx;
  494. background: url('https://api.myjie.cn/resource/icon/model1/hua2.png') no-repeat;
  495. position: absolute;
  496. bottom: -100rpx;
  497. left: 0;
  498. background-size: 100% 100%;
  499. transform: rotateY(180deg);
  500. }
  501. }
  502. .hua6 {
  503. position: relative;
  504. &::before {
  505. content: '';
  506. width: 192rpx;
  507. height: 223rpx;
  508. background: url('https://api.myjie.cn/resource/icon/model1/hua3.png') no-repeat;
  509. position: absolute;
  510. bottom: -110rpx;
  511. right: 0;
  512. background-size: 100% 100%;
  513. transform: rotateY(180deg);
  514. }
  515. }
  516. .create-model-ts {
  517. width: 750rpx;
  518. height: 30rpx;
  519. }
  520. .create-model {
  521. width: 750rpx;
  522. height: 78rpx;
  523. background: #f65486;
  524. border-radius: 5rpx;
  525. font-size: 30rpx;
  526. font-weight: 500;
  527. color: #FFFFFF;
  528. text-align: center;
  529. line-height: 78rpx;
  530. position: fixed;
  531. bottom: 0;
  532. }
  533. </style>