model_5.vue 10.0 KB

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