model.vue 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000
  1. <template>
  2. <view class="content mone" 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 :disabled="is_yl" type="default" class="top-btn fx-btn" v-if="(!shareId && modelInfo.is_use== 1 && !is_yl && userInfo.work_type_id >0 && !look) || is_yl" open-type="share">
  14. <image :src="baseURL + '/resource/icon/model1/fx.png'" mode=""></image>
  15. </button>
  16. <!-- 模板查看次数 -->
  17. <view class="top-btn visit mvisit" v-if="look && !is_yl && !shareId">
  18. 浏览:{{modelInfo.look_count}}
  19. </view>
  20. <!-- 别人查看次数 -->
  21. <view class="top-btn visit" v-if="!shareId && modelInfo.is_use== 1 && !is_yl && userInfo.work_type_id >0 && !look">
  22. 浏览:{{userInfo.card_look_count}}
  23. </view>
  24. <view class="top-btn visit" v-if="shareId">
  25. 浏览:{{cardInfo.card_look_count}}
  26. </view>
  27. </view>
  28. <view class="m-body gr">
  29. <!-- 个人信息 -->
  30. <view class="hua2">
  31. <view class="m-card">
  32. <image :src="baseURL + '/resource/icon/model1/card-bg.png'" mode="" class="card-bg"></image>
  33. <view class="card-tit flex">
  34. <image :src="baseURL + '/resource/icon/model1/m1.png'" mode="" class="tit-logo"></image>个人信息
  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.ancestral_place || '暂无'}}
  52. </view>
  53. <view class="info-item-b">
  54. 民<text class="qianger"></text>族: {{cardInfo.minority || '暂无'}}
  55. </view>
  56. <view class="info-item-b">
  57. 学<text class="qianger"></text>历: {{cardInfo.education || '暂无'}}
  58. </view>
  59. <!-- <view class="info-item-b">
  60. 综 <text class="laner"></text> 合<text class="laner"></text>分: 50
  61. </view> -->
  62. <view class="info-item-q flex" style="align-items: flex-start;">
  63. <text style="flex-shrink: 0;">服务地区:</text>
  64. <view class="fwdz flex">
  65. <view v-for="(fwitem,fwindex) in cardInfo.service_area_all">
  66. {{fwitem}}{{fwindex ==(cardInfo.service_area_all.length -1) ?'': '、' }}
  67. </view>
  68. </view>
  69. </view>
  70. <view class="info-item-q flex" style="align-items: flex-start;">
  71. <text style="flex-shrink: 0;">服务价格: </text>
  72. <view class="gzt">
  73. <image :src="baseURL + '/resource/icon/model1/tiao.png'" mode=""></image>
  74. <view class="gzt-price">
  75. <text>{{cardInfo.service_min_price}}</text>元/{{ cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}
  76. </view>
  77. <view class=" gzt-price-b">
  78. <text>{{cardInfo.service_max_price}}</text>元/{{cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}
  79. </view>
  80. </view>
  81. <image :src="baseURL + '/resource/icon/model1/yrz.png'" mode="" class="rz" v-if="cardInfo.is_type_audit == 1"></image>
  82. </view>
  83. </view>
  84. </view>
  85. <view class="" style="height: 80rpx;"></view>
  86. </view>
  87. </view>
  88. <!-- 自我评价 -->
  89. <view class="hua4">
  90. <view class="hua3">
  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/m2.png'" mode="" class="tit-logo"></image>自我评价
  95. </view>
  96. <view class="card-content">
  97. {{cardInfo.service_intro_content}}
  98. </view>
  99. <view class="img-list flex" style="padding-top: 0;">
  100. <image :src="siiitem" mode="" v-for="siiitem in cardInfo.service_intro_imgs"></image>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. <!-- 我的证书 -->
  106. <view class="hua5" v-if="cardInfo.service_audit_imgs && cardInfo.service_audit_imgs.length > 0">
  107. <view class="m-card">
  108. <image :src="baseURL + '/resource/icon/model1/card-bg.png'" mode="" class="card-bg"></image>
  109. <view class="card-tit flex">
  110. <image :src="baseURL + '/resource/icon/model1/m3.png'" mode="" class="tit-logo"></image>我的证书
  111. </view>
  112. <view class="img-list flex">
  113. <image :src="saiitem" mode="" v-for="saiitem in cardInfo.service_audit_imgs"></image>
  114. </view>
  115. </view>
  116. </view>
  117. <!-- 服务内容 -->
  118. <view class="hua6">
  119. <view class="m-card">
  120. <image :src="baseURL + '/resource/icon/model1/card-bg.png'" mode="" class="card-bg"></image>
  121. <view class="card-tit flex">
  122. <image :src="baseURL + '/resource/icon/model1/m4.png'" mode="" class="tit-logo"></image>服务内容
  123. </view>
  124. <view class="card-content">
  125. <view class="fw" v-for="spaitem in cardInfo.service_project_ar">
  126. <view class="fw-tit">
  127. <text class="yg"></text>{{spaitem.title}}
  128. </view>
  129. <view class="fw-content">
  130. {{spaitem.content}}
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. </view>
  136. <!-- 服务照片 -->
  137. <view class="m-card" v-if="cardInfo.service_imgs && cardInfo.service_imgs.length > 0">
  138. <image :src="baseURL + '/resource/icon/model1/card-bg.png'" mode="" class="card-bg"></image>
  139. <view class="card-tit flex">
  140. <image :src="baseURL + '/resource/icon/model1/m5.png'" mode="" class="tit-logo"></image>服务照片
  141. </view>
  142. <view class="img-list flex">
  143. <image :src="siitem" mode="" v-for="siitem in cardInfo.service_imgs"></image>
  144. </view>
  145. </view>
  146. <!-- 底部图片 -->
  147. <image :src="baseURL + '/resource/icon/model1/m-btm.png'" mode="" class="m-btm"></image>
  148. </view>
  149. <view class="create-model-ts">
  150. </view>
  151. <view class="fxmp flex" v-if="!shareId && modelInfo.is_use== 1 && !is_yl && userInfo.work_type_id >0 && !look">
  152. <button class="share" type="default" open-type="share" >
  153. <view class="">
  154. 分享名片
  155. </view>
  156. </button>
  157. <view class="nav-model" @click="navto('/pages/user/model/modelrz?type=1&modelid=' + mtype)">
  158. 修改名片
  159. </view>
  160. </view>
  161. <view class="ljrz" v-if="userInfo.work_type_id <=0" @click="navto('/pages/user/model/modelrz?modelid=' + mtype + '&type=2')">
  162. 立即认证
  163. </view>
  164. <view class="create-model flex" v-if="!shareId && !is_yl && userInfo.work_type_id >0 && look && islook == 1">
  165. <view class="price-show">
  166. 模板费用:<text>{{modelInfo.price*1}}</text>
  167. </view>
  168. <view class="to-show" @click="is_yl = true">
  169. 模板预览
  170. </view>
  171. <view class="by-now" @click="gobuy">
  172. 购买使用
  173. </view>
  174. </view>
  175. <view class="yl" v-if="is_yl" @click="jsyl">
  176. 结束预览
  177. </view>
  178. </view>
  179. </template>
  180. <script>
  181. import {
  182. mapState,
  183. mapMutations
  184. } from 'vuex';
  185. import {
  186. getUserCardInfo,
  187. getCommonUserCardInfo,
  188. getShowTemplateItem,
  189. subShowTemplateOrder
  190. } from '@/api/model.js'
  191. import {
  192. getUser
  193. } from '@/api/user.js';
  194. export default {
  195. data() {
  196. return {
  197. mtype: 1,
  198. shareId: '',
  199. cardInfo: {},
  200. modelInfo: {},
  201. payType: 'wxpay',
  202. is_yl: false,
  203. look: true,//不是个人中心过来
  204. islook: 1,
  205. }
  206. },
  207. onLoad(opt) {
  208. // #ifndef MP
  209. if (opt.spread) {
  210. // 存储其他邀请人
  211. uni.setStorageSync('spread', opt.spread);
  212. }
  213. // #endif
  214. // #ifdef MP
  215. if (opt.scene) {
  216. // 存储小程序邀请人
  217. uni.setStorage({
  218. key: 'spread_code',
  219. data: opt.scene
  220. });
  221. }
  222. // #endif
  223. // this.getUserCardInfo()
  224. this.mtype = opt.mtype
  225. uni.hideShareMenu();
  226. if(opt.look && opt.look == 2) {
  227. console.log('daozhe')
  228. this.islook = opt.look
  229. this.cardInfo = uni.getStorageSync('modeldata')
  230. this.is_yl = true
  231. }else {
  232. if (opt.look && opt.look == 1) {
  233. uni.showShareMenu();
  234. this.look = false
  235. }
  236. if (opt.uid) {
  237. this.shareId = opt.uid
  238. this.getCommonUserCardInfo(opt.uid)
  239. } else {
  240. this.getShowTemplateItem()
  241. }
  242. }
  243. },
  244. computed: {
  245. ...mapState(['baseURL']),
  246. ...mapState('user', ['userInfo'])
  247. },
  248. onShow() {
  249. this.getUser()
  250. },
  251. onShareAppMessage(options) {
  252. // 设置菜单中的转发按钮触发转发事件时的转发内容
  253. let pages = getCurrentPages(); //获取加载的页面
  254. let currentPage = pages[pages.length - 1]; //获取当前页面的对象
  255. let url = currentPage.route; //当前页面url
  256. let item = currentPage.options; //如果要获取url中所带的参数可以查看options
  257. let shareObj = {}
  258. shareObj = {
  259. title: this.cardInfo.name + '母婴界数字名片', // 默认是小程序的名称(可以写slogan等)
  260. path: url + '?uid=' + this.userInfo.uid + '&mtype=' + this.mtype, // 默认是当前页面,必须是以‘/’开头的完整路径
  261. imageUrl: '',
  262. success: function(res) {
  263. // 转发成功之后的回调
  264. if (res.errMsg == 'shareAppMessage:ok') {}
  265. },
  266. fail: function() {
  267. // 转发失败之后的回调
  268. if (res.errMsg == 'shareAppMessage:fail cancel') {
  269. // 用户取消转发
  270. } else if (res.errMsg == 'shareAppMessage:fail') {
  271. // 转发失败,其中 detail message 为详细失败信息
  272. }
  273. }
  274. };
  275. console.log(shareObj)
  276. return shareObj;
  277. },
  278. onUnload() {
  279. let pages = getCurrentPages(); //获取加载的页面
  280. let currentPage = pages[pages.length - 2]; //获取当前页面的对象
  281. // console.log(currentPage.route)
  282. if (currentPage.route == 'pages/public/wxLogin') {
  283. uni.switchTab({
  284. url: '/pages/index/index'
  285. })
  286. }
  287. },
  288. onUnload() {
  289. let pages = getCurrentPages(); //获取加载的页面
  290. let currentPage = pages[pages.length - 2]; //获取当前页面的对象
  291. // console.log(currentPage.route)
  292. if (currentPage.route == 'pages/public/wxLogin') {
  293. uni.switchTab({
  294. url: '/pages/index/index'
  295. })
  296. }
  297. },
  298. methods: {
  299. ...mapMutations('user', ['setUserInfo']),
  300. jsyl() {
  301. if(this.islook == 2) {
  302. uni.navigateBack()
  303. }else {
  304. this.is_yl = false
  305. }
  306. },
  307. navto(url) {
  308. uni.navigateTo({
  309. url
  310. })
  311. },
  312. getUser() {
  313. const that = this;
  314. getUser({}).then((e) => {
  315. that.setUserInfo(e.data)
  316. if (e.data.work_type_id >0 && that.shareId == '') {
  317. that.getUserCardInfo()
  318. } else {
  319. that.cardInfo = {
  320. name: '佚名',
  321. avatar: 'https://api.myjie.cn/resource/icon/base/f.png',
  322. age: '41',
  323. twelve: '鼠',
  324. work_year: '10',
  325. constellation: '处女座',
  326. ancestral_place: '浙江',
  327. minority: '汉族',
  328. education: '本科',
  329. service_area_all: ['浙江省台州市路桥区'],
  330. service_min_price: 100,
  331. service_max_price: 200,
  332. service_time_type_title: '每小时',
  333. service_intro_content: '高级育婴师证|高级催乳师证|早产儿护理师母婴护理证|金牌月嫂证|产后恢复师证|公共营养师证|月子药膳调理师证|国际宝宝睡眠咨询师证|普通话二级甲等|中央广播电视大学学历|学前教育专业,深耕幼教十年,技能全面,性格活泼,有亲和力,做事干净利落,有很强的责任心。对宝宝有爱心,体贴新手妈妈。专业技能熟练。应急能力强。让家人放心、产妇舒心的坐好月子。',
  334. service_intro_imgs: ['https://api.myjie.cn/resource/icon/base/pj1.png',
  335. 'https://api.myjie.cn/resource/icon/base/pj2.png',
  336. 'https://api.myjie.cn/resource/icon/base/pj3.png',
  337. 'https://api.myjie.cn/resource/icon/base/pj4.png'
  338. ],
  339. service_audit_imgs: ['https://api.myjie.cn/resource/icon/base/zs1.png',
  340. 'https://api.myjie.cn/resource/icon/base/zs2.png',
  341. 'https://api.myjie.cn/resource/icon/base/zs3.png',
  342. 'https://api.myjie.cn/resource/icon/base/zs4.png'
  343. ],
  344. service_project_ar: [{
  345. title: '婴幼儿睡眠管理',
  346. content: '如:日夜颠倒、睡眠不规律、乳头混淆、奶睡、抱睡等问题,帮助宝爸宝妈规律孩子作息、解决婴幼儿喂养困扰,培养良好的生活、学习习惯。'
  347. }, {
  348. title: '特色月子餐',
  349. content: '套用客户的一句话“养眼、养心更养胃”!家常菜、面食、点心、甜品、靓汤、五谷杂粮粥、婴幼儿花样辅食等。'
  350. },
  351. {
  352. title: '早产儿特殊护理',
  353. content: '包括早产儿基础护理、安全喂养方法、追赶性生长、消化与免疫系统等技能,根据宝宝具体情况给予早产儿家长的科学入户指导。'
  354. },
  355. {
  356. title: '0-6岁早期教育',
  357. content: '在婴孩最敏感最能接受的时期进行事半功倍的适时教育,针对不同年龄段的孩子,开发婴幼儿潜能的教育,为孩子多元化和健康人格打下良好基础。'
  358. }
  359. ],
  360. is_type_audit: 1
  361. }
  362. }
  363. }).catch((e) => {})
  364. },
  365. gobuy() {
  366. let that = this
  367. subShowTemplateOrder({
  368. id: that.mtype,
  369. pay_type: that.payType
  370. }).then(res => {
  371. let da = res.data.jsApiParameters;
  372. let data = {
  373. appId: da.appId,
  374. // #ifdef H5
  375. timestamp: da.timeStamp,
  376. // #endif
  377. // #ifdef MP
  378. timeStamp: da.timeStamp + '',
  379. // #endif
  380. nonceStr: da.nonceStr,
  381. package: da.package,
  382. signType: da.signType,
  383. paySign: da.paySign,
  384. success: function(res) {
  385. // obj.paySuccessTo();
  386. // alert('支付成功')
  387. uni.showModal({
  388. title: '提示',
  389. content: '支付成功!',
  390. cancelText: '关闭',
  391. confirmText: '查看模板',
  392. success: res => {
  393. if (res.confirm) {
  394. uni.reLaunch({
  395. url: '/pages/user/model/model?mtype=' +
  396. that.mtype,
  397. });
  398. }
  399. },
  400. fail: () => {},
  401. complete: () => {}
  402. });
  403. console.log('支付成功')
  404. },
  405. fail: (err) => {
  406. console.log(err)
  407. // alert('支付失败')
  408. // uni.navigateTo({
  409. // url: '/pages/order/order?state=0'
  410. // });
  411. }
  412. };
  413. console.log(data, 'timeStamp')
  414. if (that.payType == 'wxpay') {
  415. console.log('到这里')
  416. wx.requestPayment(data)
  417. }
  418. })
  419. },
  420. // 获取模板详情
  421. getShowTemplateItem() {
  422. let that = this
  423. getShowTemplateItem({
  424. id: that.mtype
  425. }).then(res => {
  426. that.modelInfo = res.data
  427. })
  428. },
  429. getCommonUserCardInfo(uid) {
  430. let that = this
  431. getCommonUserCardInfo({
  432. uid: uid
  433. }).then(res => {
  434. let arr = []
  435. let basearr = res.data.service_area_all
  436. basearr.forEach(item => {
  437. arr.push(item[0].name + item[1].name + item[2].name)
  438. })
  439. res.data.service_area_all = arr
  440. that.cardInfo = res.data
  441. })
  442. },
  443. getUserCardInfo() {
  444. let that = this
  445. getUserCardInfo().then(res => {
  446. console.log(res)
  447. let arr = []
  448. let basearr = res.data.service_area_all
  449. basearr.forEach(item => {
  450. arr.push(item[0].name + item[1].name + item[2].name)
  451. })
  452. res.data.service_area_all = arr
  453. that.cardInfo = res.data
  454. })
  455. }
  456. }
  457. }
  458. </script>
  459. <style lang="scss">
  460. .mone {
  461. background-color: #f8e1df;
  462. .m-top {
  463. width: 750rpx;
  464. position: relative;
  465. width: 750rpx;
  466. height: 370rpx;
  467. .top-bg {
  468. position: relative;
  469. width: 750rpx;
  470. height: 370rpx;
  471. }
  472. .readme {
  473. width: 534rpx;
  474. height: 83rpx;
  475. position: absolute;
  476. top: 172rpx;
  477. left: 0;
  478. right: 0;
  479. margin: auto;
  480. }
  481. .top-user {
  482. width: 222rpx;
  483. height: 222rpx;
  484. background: #FEFEFE;
  485. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  486. border-radius: 50%;
  487. position: absolute;
  488. left: 0;
  489. right: 0;
  490. top: 80rpx;
  491. justify-content: center;
  492. align-items: center;
  493. margin: auto;
  494. .user-logo {
  495. width: 200rpx;
  496. height: 200rpx;
  497. border-radius: 50%;
  498. background-color: #fff;
  499. }
  500. .gp {
  501. width: 133rpx;
  502. height: 38rpx;
  503. position: absolute;
  504. bottom: 0;
  505. left: 0;
  506. right: 0;
  507. margin: auto;
  508. }
  509. }
  510. .user-name {
  511. width: 750rpx;
  512. font-size: 38rpx;
  513. font-weight: bold;
  514. color: #000000;
  515. text-align: center;
  516. position: absolute;
  517. top: 318rpx;
  518. }
  519. .fx-btn {
  520. padding: 0;
  521. &::after {
  522. border: none;
  523. }
  524. border-radius: 24rpx 0 0 24rpx;
  525. image {
  526. width: 150rpx;
  527. height: 48rpx;
  528. display: block;
  529. }
  530. }
  531. .top-btn {
  532. width: 150rpx;
  533. height: 48rpx;
  534. position: absolute;
  535. right: 0;
  536. top: 70rpx;
  537. line-height: 48rpx;
  538. font-size: 24rpx;
  539. }
  540. .visit {
  541. border-radius: 24rpx 0 0 24rpx;
  542. top: 130rpx;
  543. border:1px solid #f65486;
  544. color: #f65486;
  545. padding-left: 24rpx;
  546. }
  547. .mvisit {
  548. top: 70rpx;
  549. }
  550. }
  551. }
  552. .m-body {
  553. width: 705rpx;
  554. margin: auto;
  555. margin-top: 20rpx;
  556. background-color: #fff;
  557. border-left: 8rpx solid #efa0ab;
  558. border-right: 8rpx solid #efa0ab;
  559. padding: 45rpx 0;
  560. }
  561. .gr {
  562. position: relative;
  563. &::before {
  564. content: '';
  565. position: absolute;
  566. // left: 75px;
  567. right: 0;
  568. top: -30rpx;
  569. width: 120px;
  570. height: 174px;
  571. background: url('https://api.myjie.cn/resource/icon/model1/hua1.png') no-repeat;
  572. background-size: 100% 100%;
  573. }
  574. }
  575. .m-card {
  576. width: 640rpx;
  577. background: #fcf4f1;
  578. border-radius: 20rpx;
  579. position: relative;
  580. // min-height: 270rpx;
  581. margin: 0 auto 46rpx;
  582. .card-tit {
  583. width: 219rpx;
  584. height: 57rpx;
  585. background: #F46C85;
  586. border-radius: 20rpx 28rpx 29rpx 0rpx;
  587. justify-content: flex-start;
  588. align-items: center;
  589. padding: 0 20rpx;
  590. font-size: 32rpx;
  591. font-weight: bold;
  592. color: #FFFFFF;
  593. .tit-logo {
  594. width: 32rpx;
  595. height: 32rpx;
  596. margin-right: 18rpx;
  597. }
  598. }
  599. .card-bg {
  600. width: 100%;
  601. height: 270rpx;
  602. position: absolute;
  603. bottom: 0rpx;
  604. }
  605. .card-content {
  606. padding: 25rpx 35rpx;
  607. font-size: 26rpx;
  608. font-weight: 500;
  609. color: #2C2E35;
  610. position: relative;
  611. }
  612. .img-list {
  613. justify-content: space-between;
  614. flex-wrap: wrap;
  615. margin: auto;
  616. padding: 30rpx 30rpx 0;
  617. position: relative;
  618. image {
  619. width: 270rpx;
  620. height: 270rpx;
  621. background-color: #fff;
  622. margin-bottom: 30rpx;
  623. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.6);
  624. }
  625. }
  626. .fw {
  627. font-size: 26rpx;
  628. font-weight: 500;
  629. color: #2C2E35;
  630. padding: 10rpx 0;
  631. .fw-tit {
  632. color: #F46C85;
  633. display: flex;
  634. align-items: center;
  635. .yg {
  636. background-color: #F46C85;
  637. display: inline-block;
  638. width: 10rpx;
  639. height: 10rpx;
  640. border-radius: 50%;
  641. margin-right: 10rpx;
  642. }
  643. }
  644. .fw-content {
  645. padding-top: 10rpx;
  646. padding-left: 18rpx;
  647. text-align: justify;
  648. }
  649. }
  650. .user-info {
  651. flex-wrap: wrap;
  652. font-size: 26rpx;
  653. font-weight: 500;
  654. color: #000000;
  655. position: relative;
  656. .info-item-b,
  657. .info-item-q {
  658. padding: 10rpx 0;
  659. color: #000000;
  660. position: relative;
  661. padding-left: 20rpx;
  662. &::before {
  663. display: inline-block;
  664. content: '';
  665. width: 10rpx;
  666. height: 10rpx;
  667. border-radius: 50%;
  668. background-color: #F46C85;
  669. position: absolute;
  670. top: 22rpx;
  671. left: 0;
  672. }
  673. .qianger {
  674. width: 2em;
  675. display: inline-block;
  676. }
  677. .laner {
  678. width: 0.5em;
  679. display: inline-block;
  680. }
  681. }
  682. .info-item-b {
  683. width: 50%;
  684. }
  685. .info-item-q {
  686. width: 100%;
  687. display: flex;
  688. align-items: flex-start;
  689. justify-content: start;
  690. .fwdz {
  691. flex-direction: column;
  692. align-items: flex-start;
  693. }
  694. .gzt {
  695. width: 312rpx;
  696. height: 24rpx;
  697. padding-top: 10rpx;
  698. position: relative;
  699. image {
  700. width: 312rpx;
  701. height: 24rpx;
  702. position: relative;
  703. }
  704. .gzt-price,
  705. .gzt-price-b {
  706. width: 200rpx;
  707. text-align: center;
  708. position: absolute;
  709. padding-top: 20rpx;
  710. &::after {
  711. content: '';
  712. width: 0px;
  713. height: 0rpx;
  714. // background: #FEB8C6;
  715. border: 14rpx solid;
  716. border-color: transparent transparent #FEB8C6;
  717. // border-top:transparent;
  718. // border-left: transparent;
  719. // border-right: transparent;
  720. position: absolute;
  721. top: -14rpx;
  722. left: 0;
  723. right: 0;
  724. margin: auto;
  725. }
  726. text {
  727. color: #F46C85;
  728. }
  729. }
  730. .gzt-price {
  731. left: -100rpx;
  732. }
  733. .gzt-price-b {
  734. right: -100rpx;
  735. }
  736. }
  737. .rz {
  738. margin-top: 10rpx;
  739. margin-left: 10rpx;
  740. width: 87rpx;
  741. height: 26rpx;
  742. }
  743. }
  744. }
  745. }
  746. .m-btm {
  747. width: 660rpx;
  748. height: 384rpx;
  749. }
  750. .hua2 {
  751. position: relative;
  752. &::before {
  753. content: '';
  754. width: 199rpx;
  755. height: 298rpx;
  756. background: url('https://api.myjie.cn/resource/icon/model1/hua2.png') no-repeat;
  757. position: absolute;
  758. bottom: -100rpx;
  759. right: 0;
  760. background-size: 100% 100%;
  761. }
  762. }
  763. .hua3 {
  764. position: relative;
  765. &::before {
  766. content: '';
  767. width: 192rpx;
  768. height: 223rpx;
  769. background: url('https://api.myjie.cn/resource/icon/model1/hua3.png') no-repeat;
  770. position: absolute;
  771. top: 0;
  772. bottom: 0;
  773. left: 0;
  774. margin: auto;
  775. background-size: 100% 100%;
  776. }
  777. }
  778. .hua4 {
  779. position: relative;
  780. &::before {
  781. content: '';
  782. width: 128rpx;
  783. height: 145rpx;
  784. background: url('https://api.myjie.cn/resource/icon/model1/hua4.png') no-repeat;
  785. position: absolute;
  786. bottom: -70rpx;
  787. right: 0;
  788. background-size: 100% 100%;
  789. }
  790. }
  791. .hua5 {
  792. position: relative;
  793. &::before {
  794. content: '';
  795. width: 199rpx;
  796. height: 298rpx;
  797. background: url('https://api.myjie.cn/resource/icon/model1/hua2.png') no-repeat;
  798. position: absolute;
  799. bottom: -100rpx;
  800. left: 0;
  801. background-size: 100% 100%;
  802. transform: rotateY(180deg);
  803. }
  804. }
  805. .hua6 {
  806. position: relative;
  807. &::before {
  808. content: '';
  809. width: 192rpx;
  810. height: 223rpx;
  811. background: url('https://api.myjie.cn/resource/icon/model1/hua3.png') no-repeat;
  812. position: absolute;
  813. bottom: -110rpx;
  814. right: 0;
  815. background-size: 100% 100%;
  816. transform: rotateY(180deg);
  817. }
  818. }
  819. .create-model-ts {
  820. width: 750rpx;
  821. height: 30rpx;
  822. }
  823. .fxmp {
  824. width: 750rpx;
  825. .share {
  826. width: 50%;
  827. padding: 0;
  828. border-radius: 0;
  829. &::after {
  830. border: none;
  831. }
  832. }
  833. .nav-model {
  834. background-color: #FFF;
  835. color: $base-color;
  836. width: 50%;
  837. }
  838. }
  839. .fxmp {
  840. position: fixed;
  841. width: 750rpx;
  842. height: 98rpx;
  843. bottom: 0;
  844. padding: 0;
  845. view {
  846. background: #f65486;
  847. // border-radius: 5rpx;
  848. font-size: 30rpx;
  849. font-weight: 500;
  850. color: #FFFFFF;
  851. text-align: center;
  852. line-height: 98rpx;
  853. }
  854. }
  855. .create-model {
  856. position: fixed;
  857. width: 750rpx;
  858. bottom: 0;
  859. // border-radius: 5rpx;
  860. font-size: 32rpx;
  861. font-weight: 500;
  862. text-align: center;
  863. line-height: 98rpx;
  864. .price-show {
  865. font-size: 32rpx;
  866. font-weight: 500;
  867. color: #333333;
  868. background-color: #fff;
  869. flex-grow: 1;
  870. text {
  871. font-size: 48rpx;
  872. font-weight: 500;
  873. color: #FC6F6D;
  874. }
  875. }
  876. .to-show,
  877. .by-now {
  878. width: 223rpx;
  879. height: 98rpx;
  880. background: #fa98b6;
  881. flex-shrink: 0;
  882. font-size: 34rpx;
  883. color: #fff;
  884. }
  885. .by-now {
  886. background: #f65486;
  887. }
  888. }
  889. .yl {
  890. position: fixed;
  891. bottom: 0;
  892. width: 750rpx;
  893. font-size: 32rpx;
  894. font-weight: 500;
  895. text-align: center;
  896. line-height: 98rpx;
  897. color: #fff;
  898. text-align: center;
  899. font-size: 34rpx;
  900. background-color: #f65486;
  901. }
  902. .ljrz {
  903. position: fixed;
  904. width: 750rpx;
  905. bottom: 0;
  906. font-size: 32rpx;
  907. font-weight: 500;
  908. text-align: center;
  909. line-height: 98rpx;
  910. background-color: #f65486;
  911. color: #fff;
  912. }
  913. </style>