model_5.vue 10 KB

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