model_5.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. <template>
  2. <view class="mone">
  3. <template v-if="baseURL">
  4. <view class="topBox">
  5. <image :src="`${baseURL}/resource/user/user5/text3.png`" mode="scaleToFill" class="leftTipImg">
  6. </image>
  7. <view class="nameBox">
  8. <text class="username">{{cardInfo.name || '暂无'}}</text>
  9. </view>
  10. <image :src="cardInfo.avatar" mode="scaleToFill" class="avatar"></image>
  11. <view class="noBox">
  12. <text class="noText">执</text>
  13. <text class="noText">业</text>
  14. <text class="noText">编</text>
  15. <text class="noText">号</text>
  16. <text class="noText">:</text>
  17. <text class="noText trText" v-for="ls in no">{{ls}}</text>
  18. </view>
  19. <image :src="`${baseURL}/resource/user/user5/img1.png`" mode="scaleToFill" class="topBottomImg"></image>
  20. </view>
  21. <view class="contentBox">
  22. <view class="titleImg">
  23. <image class="titleImg1" :src="`${baseURL}/resource/user/user5/text4.png`" mode="scaleToFill"></image>
  24. </view>
  25. <view class="content">
  26. <view class="userName">
  27. <text class="list-item">姓名: {{cardInfo.name||'暂无'}}</text>
  28. </view>
  29. <view class="center-data flex">
  30. <view class="item">
  31. <text class="list-item">
  32. 籍贯: {{cardInfo.ancestral_place|| '暂无'}}
  33. </text>
  34. <text class="list-item">
  35. 民族: {{cardInfo.minority || '暂无'}}
  36. </text>
  37. <text class="list-item">
  38. 学历: {{cardInfo.education || '暂无'}}
  39. </text>
  40. <text class="list-item">
  41. 年龄: {{cardInfo.age || '暂无'}}
  42. </text>
  43. <text class="list-item">
  44. 星座: {{cardInfo.constellation || '暂无'}}
  45. </text>
  46. </view>
  47. <view class="item">
  48. <text class="list-item">
  49. 身高:{{cardInfo.height*1+'厘米'|| '暂无'}}
  50. </text>
  51. <text class="list-item">
  52. 体重:{{cardInfo.weight*1+'kg' || '暂无'}}
  53. </text>
  54. <text class="list-item">
  55. 属相: {{cardInfo.twelve || '暂无'}}
  56. </text>
  57. <text class="list-item">
  58. 服务年限: {{(cardInfo.work_year + '年') || '0'}}
  59. </text>
  60. <text class="list-item">
  61. 服务次数: {{cardInfo.service_count || '0'}}
  62. </text>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="position-relative">
  67. <view class="typeTitleImg flex-center" v-if="honorList.length > 0">
  68. <image :src="`${baseURL}/resource/model/model5/honor.png`" mode="scaleToFill" class="typeImage">
  69. </image>
  70. </view>
  71. <view class="" style="padding: 30rpx 0;">
  72. <view class="honor flex" v-for="item in honorList">
  73. <image :src="item.icon" mode="" class="honor-icon"></image>
  74. <view class="honor-name">
  75. {{item.name}}
  76. </view>
  77. </view>
  78. </view>
  79. <view class="typeTitleImg flex-center">
  80. <image :src="`${baseURL}/resource/user/user5/text1.png`" mode="scaleToFill" class="typeImage">
  81. </image>
  82. </view>
  83. <view class="flex-center padding-v-20 padding-c-20">
  84. <view class="areaList" v-if="cardInfo.is_china == 1">
  85. <text class="blue-text" :key='fwindex' v-for="(fwitem,fwindex) in cardInfo.service_area_all">
  86. {{fwitem}}{{fwindex ==(cardInfo.service_area_all.length -1) ?'': '' }}
  87. </text>
  88. </view>
  89. <text class="blue-text" v-if="cardInfo.is_china == 0">
  90. 海外
  91. </text>
  92. <text class="blue-text" v-if="cardInfo.is_china == 2">
  93. 全国
  94. </text>
  95. </view>
  96. <view class="typeTitleImg flex-center">
  97. <image :src="`${baseURL}/resource/user/user5/text2.png`" mode="scaleToFill" class="typeImage">
  98. </image>
  99. </view>
  100. <view class="flex-center padding-v-20 padding-c-20">
  101. <text class="blue-text">
  102. {{cardInfo.service_min_price}}元/{{ cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}——{{cardInfo.service_max_price}}元/{{cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}
  103. </text>
  104. </view>
  105. <image :src="`${baseURL}/resource/user/user5/img2.png`" mode="scaleToFill" class="typeLeftLogo"></image>
  106. </view>
  107. </view>
  108. <view class="footerBox">
  109. <image :src="`${baseURL}/resource/user/user5/text5.png`" mode="scaleToFill" class="footerTitle"></image>
  110. <view class="text margin-t-20">
  111. <rich-text class="richtext" :nodes="cardInfo.service_intro_content"></rich-text>
  112. </view>
  113. </view>
  114. <view class="imageList">
  115. <image v-for="ls in cardInfo.service_intro_imgs" :src="ls" mode="scaleToFill" class="imageItem"></image>
  116. </view>
  117. </template>
  118. </view>
  119. </template>
  120. <script>
  121. import {
  122. mapState,
  123. } from 'vuex';
  124. export default {
  125. props: {
  126. honorList: {
  127. type: Array,
  128. default:()=>{
  129. return []
  130. }
  131. },
  132. // 浏览数量
  133. shareNumber: {
  134. type: Number,
  135. default: 0
  136. },
  137. // 是否显示默认数据
  138. isDefault: {
  139. type: Boolean,
  140. default: true
  141. },
  142. isShare: {
  143. type: Boolean,
  144. default: false
  145. },
  146. //1为模板2为用户
  147. isLook: {
  148. type: Number,
  149. default: 0
  150. },
  151. templateDetail: {
  152. type: Object,
  153. default: () => {
  154. return {}
  155. }
  156. },
  157. },
  158. data() {
  159. return {
  160. defaults: {
  161. user_work_type_title: '母婴护理师',
  162. name: '张红梅',
  163. avatar: 'https://api.myjie.cn/resource/user/user5/model5.png',
  164. age: '50',
  165. twelve: '牛',
  166. work_year: '16',
  167. constellation: '巨蟹座',
  168. ancestral_place: '黑龙江',
  169. minority: '汉族',
  170. education: '大专',
  171. service_area_all: ['全国'],
  172. service_min_price: 29800,
  173. service_max_price: 49800,
  174. service_time_type_title: '每月',
  175. service_intro_content: '高级育婴师证|高级催乳师证|早产儿护理师母婴护理证|金牌月嫂证|产后恢复师证|公共营养师证|月子药膳调理师证|国际宝宝睡眠咨询师证|普通话二级甲等|中央广播电视大学学历|学前教育专业,深耕幼教十年,技能全面,性格活泼,有亲和力,做事干净利落,有很强的责任心。对宝宝有爱心,体贴新手妈妈。专业技能熟练。应急能力强。让家人放心、产妇舒心的坐好月子。',
  176. service_intro_imgs: ['https://api.myjie.cn/resource/user/user1/pj1.png',
  177. 'https://api.myjie.cn/resource/user/user1/pj2.png',
  178. 'https://api.myjie.cn/resource/user/user1/pj3.png',
  179. 'https://api.myjie.cn/resource/user/user1/pj4.png'
  180. ],
  181. service_audit_imgs: ['https://api.myjie.cn/resource/user/user1/zs1.png',
  182. 'https://api.myjie.cn/resource/user/user1/zs2.png',
  183. 'https://api.myjie.cn/resource/user/user1/zs3.png',
  184. 'https://api.myjie.cn/resource/user/user1/zs4.png'
  185. ],
  186. service_project_ar: [{
  187. title: '婴幼儿睡眠管理',
  188. content: '如:日夜颠倒、睡眠不规律、乳头混淆、奶睡、抱睡等问题,帮助宝爸宝妈规律孩子作息、解决婴幼儿喂养困扰,培养良好的生活、学习习惯。'
  189. }, {
  190. title: '特色月子餐',
  191. content: '套用客户的一句话“养眼、养心更养胃”!家常菜、面食、点心、甜品、靓汤、五谷杂粮粥、婴幼儿花样辅食等。'
  192. },
  193. {
  194. title: '早产儿特殊护理',
  195. content: '包括早产儿基础护理、安全喂养方法、追赶性生长、消化与免疫系统等技能,根据宝宝具体情况给予早产儿家长的科学入户指导。'
  196. },
  197. {
  198. title: '0-6岁早期教育',
  199. content: '在婴孩最敏感最能接受的时期进行事半功倍的适时教育,针对不同年龄段的孩子,开发婴幼儿潜能的教育,为孩子多元化和健康人格打下良好基础。'
  200. }
  201. ],
  202. service_imgs: [
  203. 'https://api.myjie.cn/resource/user/user1/fw1.png',
  204. 'https://api.myjie.cn/resource/user/user1/fw2.png',
  205. 'https://api.myjie.cn/resource/user/user1/fw3.png',
  206. 'https://api.myjie.cn/resource/user/user1/fw4.png'
  207. ],
  208. is_type_audit: 1,
  209. service_count: 121,
  210. is_china: 2
  211. }
  212. }
  213. },
  214. computed: {
  215. ...mapState(['baseURL']),
  216. cardInfo() {
  217. if (this.isDefault) {
  218. return this.defaults
  219. } else {
  220. return this.templateDetail
  221. }
  222. },
  223. no() {
  224. const ar = this.cardInfo.no.split('');
  225. // console.log(ar, 'ar')
  226. if (ar.length > 0) {
  227. return ar
  228. } else {
  229. return []
  230. }
  231. }
  232. },
  233. }
  234. </script>
  235. <style lang="scss" scoped>
  236. .mone {
  237. background-image: url('https://api.myjie.cn/resource/user/user5/bg1.png');
  238. background-repeat: no-repeat;
  239. background-size: 750rpx 2650rpx;
  240. background-color: rgb(5, 0, 0);
  241. width: 750rpx;
  242. min-height: 2650rpx;
  243. padding-bottom: 30rpx;
  244. position: relative;
  245. }
  246. .topBox {
  247. position: relative;
  248. height: 1159rpx;
  249. .leftTipImg {
  250. position: absolute;
  251. top: 350rpx;
  252. left: 89rpx;
  253. width: 26rpx;
  254. height: 322rpx;
  255. }
  256. .nameBox {
  257. display: flex;
  258. justify-content: center;
  259. align-items: center;
  260. position: absolute;
  261. top: 350rpx;
  262. left: 136rpx;
  263. width: 1em;
  264. height: 322rpx;
  265. .username {
  266. font-family: STLiti;
  267. font-weight: 400;
  268. font-size: 56rpx;
  269. // line-height: 47rpx;
  270. background-image: linear-gradient(to bottom, #B8937B 0%, #FFF9ED 50%, #CBA892 100%);
  271. background-clip: text;
  272. color: rgba(0, 0, 0, 0);
  273. width: 1em;
  274. }
  275. }
  276. .avatar {
  277. position: absolute;
  278. left: 125rpx;
  279. top: 211rpx;
  280. width: 500rpx;
  281. height: 860rpx;
  282. }
  283. .noBox {
  284. position: absolute;
  285. top: 500rpx;
  286. right: 40rpx;
  287. width: 21rpx;
  288. display: flex;
  289. flex-direction: column;
  290. margin-top: -50rpx;
  291. .noText {
  292. text-align: center;
  293. font-size: 21rpx;
  294. line-height: 21rpx;
  295. font-weight: 400;
  296. color: #0DF6F3;
  297. &.trText {
  298. transform: rotate(90deg);
  299. }
  300. }
  301. }
  302. .topBottomImg {
  303. position: absolute;
  304. bottom: 0;
  305. left: 0;
  306. width: 750rpx;
  307. height: 313rpx;
  308. }
  309. }
  310. .contentBox {
  311. padding: 60rpx 25rpx 0 25rpx;
  312. .content {
  313. padding: 20rpx 60rpx 40rpx 60rpx;
  314. }
  315. .titleImg {
  316. .titleImg1 {
  317. width: 447rpx;
  318. height: 51rpx;
  319. }
  320. }
  321. .list-item {
  322. font-family: Adobe Heiti Std;
  323. font-weight: normal;
  324. font-size: 29rpx;
  325. color: #CBA892;
  326. line-height: 49rpx;
  327. }
  328. .center-data {
  329. .item {
  330. display: flex;
  331. flex-direction: column;
  332. }
  333. }
  334. .typeImage {
  335. width: 189rpx;
  336. height: 42rpx;
  337. }
  338. .typeLeftLogo {
  339. width: 78rpx;
  340. height: 95rpx;
  341. position: absolute;
  342. left: 0;
  343. bottom: 50rpx;
  344. }
  345. .areaList{
  346. display: flex;
  347. flex-wrap: wrap;
  348. justify-content: space-around;
  349. }
  350. .blue-text{
  351. flex-grow: 1;
  352. font-size: 29rpx;
  353. text-align: center;
  354. color: #0DF6F3;
  355. line-height: 60rpx;
  356. }
  357. }
  358. .footerBox{
  359. display: flex;
  360. flex-direction: column;
  361. padding: 25rpx;
  362. .footerTitle{
  363. width: 448rpx;
  364. height: 51rpx;
  365. }
  366. .richtext{
  367. color: #CBA892;
  368. }
  369. }
  370. .imageList{
  371. .imageItem{
  372. width: 750rpx;
  373. height: 1000rpx;
  374. }
  375. }
  376. .honor {
  377. justify-content: center;
  378. margin-bottom: 20rpx;
  379. &-icon {
  380. width: 40rpx;
  381. height: 40rpx;
  382. margin-right: 15rpx;
  383. }
  384. &-name {
  385. color: #0DF6F3;
  386. font-size: 30rpx;
  387. }
  388. }
  389. </style>