model.vue 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010
  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. methods: {
  289. ...mapMutations('user', ['setUserInfo']),
  290. jsyl() {
  291. if(this.islook == 2) {
  292. uni.navigateBack()
  293. }else {
  294. this.is_yl = false
  295. }
  296. },
  297. navto(url) {
  298. uni.navigateTo({
  299. url
  300. })
  301. },
  302. getUser() {
  303. const that = this;
  304. getUser({}).then((e) => {
  305. that.setUserInfo(e.data)
  306. if (e.data.work_type_id >0 && that.shareId == '') {
  307. that.getUserCardInfo()
  308. } else {
  309. that.cardInfo = {
  310. name: '佚名',
  311. avatar: 'https://api.myjie.cn/resource/icon/base/f.png',
  312. age: '41',
  313. twelve: '鼠',
  314. work_year: '10',
  315. constellation: '处女座',
  316. ancestral_place: '浙江',
  317. minority: '汉族',
  318. education: '本科',
  319. service_area_all: ['浙江省台州市路桥区'],
  320. service_min_price: 100,
  321. service_max_price: 200,
  322. service_time_type_title: '每小时',
  323. service_intro_content: '高级育婴师证|高级催乳师证|早产儿护理师母婴护理证|金牌月嫂证|产后恢复师证|公共营养师证|月子药膳调理师证|国际宝宝睡眠咨询师证|普通话二级甲等|中央广播电视大学学历|学前教育专业,深耕幼教十年,技能全面,性格活泼,有亲和力,做事干净利落,有很强的责任心。对宝宝有爱心,体贴新手妈妈。专业技能熟练。应急能力强。让家人放心、产妇舒心的坐好月子。',
  324. service_intro_imgs: ['https://api.myjie.cn/resource/icon/base/pj1.png',
  325. 'https://api.myjie.cn/resource/icon/base/pj2.png',
  326. 'https://api.myjie.cn/resource/icon/base/pj3.png',
  327. 'https://api.myjie.cn/resource/icon/base/pj4.png'
  328. ],
  329. service_audit_imgs: ['https://api.myjie.cn/resource/icon/base/zs1.png',
  330. 'https://api.myjie.cn/resource/icon/base/zs2.png',
  331. 'https://api.myjie.cn/resource/icon/base/zs3.png',
  332. 'https://api.myjie.cn/resource/icon/base/zs4.png'
  333. ],
  334. service_project_ar: [{
  335. title: '婴幼儿睡眠管理',
  336. content: '如:日夜颠倒、睡眠不规律、乳头混淆、奶睡、抱睡等问题,帮助宝爸宝妈规律孩子作息、解决婴幼儿喂养困扰,培养良好的生活、学习习惯。'
  337. }, {
  338. title: '特色月子餐',
  339. content: '套用客户的一句话“养眼、养心更养胃”!家常菜、面食、点心、甜品、靓汤、五谷杂粮粥、婴幼儿花样辅食等。'
  340. },
  341. {
  342. title: '早产儿特殊护理',
  343. content: '包括早产儿基础护理、安全喂养方法、追赶性生长、消化与免疫系统等技能,根据宝宝具体情况给予早产儿家长的科学入户指导。'
  344. },
  345. {
  346. title: '0-6岁早期教育',
  347. content: '在婴孩最敏感最能接受的时期进行事半功倍的适时教育,针对不同年龄段的孩子,开发婴幼儿潜能的教育,为孩子多元化和健康人格打下良好基础。'
  348. }
  349. ],
  350. is_type_audit: 1
  351. }
  352. }
  353. }).catch((e) => {})
  354. },
  355. gobuy() {
  356. let that = this
  357. subShowTemplateOrder({
  358. id: that.mtype,
  359. pay_type: that.payType
  360. }).then(res => {
  361. if(res.data.status == 1) {
  362. uni.showModal({
  363. title: '提示',
  364. content: '支付成功!',
  365. cancelText: '关闭',
  366. confirmText: '查看模板',
  367. success: res => {
  368. if (res.confirm) {
  369. uni.reLaunch({
  370. url: '/pages/user/model/model?mtype=' +
  371. that.mtype,
  372. });
  373. }
  374. },
  375. fail: () => {},
  376. complete: () => {}
  377. });
  378. }else {
  379. let da = res.data.jsApiParameters;
  380. let data = {
  381. appId: da.appId,
  382. // #ifdef H5
  383. timestamp: da.timeStamp,
  384. // #endif
  385. // #ifdef MP
  386. timeStamp: da.timeStamp + '',
  387. // #endif
  388. nonceStr: da.nonceStr,
  389. package: da.package,
  390. signType: da.signType,
  391. paySign: da.paySign,
  392. success: function(res) {
  393. // obj.paySuccessTo();
  394. // alert('支付成功')
  395. uni.showModal({
  396. title: '提示',
  397. content: '支付成功!',
  398. cancelText: '关闭',
  399. confirmText: '查看模板',
  400. success: res => {
  401. if (res.confirm) {
  402. uni.reLaunch({
  403. url: '/pages/user/model/model?mtype=' +
  404. that.mtype,
  405. });
  406. }
  407. },
  408. fail: () => {},
  409. complete: () => {}
  410. });
  411. console.log('支付成功')
  412. },
  413. fail: (err) => {
  414. console.log(err)
  415. // alert('支付失败')
  416. // uni.navigateTo({
  417. // url: '/pages/order/order?state=0'
  418. // });
  419. }
  420. };
  421. console.log(data, 'timeStamp')
  422. if (that.payType == 'wxpay') {
  423. console.log('到这里')
  424. wx.requestPayment(data)
  425. }
  426. }
  427. })
  428. },
  429. // 获取模板详情
  430. getShowTemplateItem() {
  431. let that = this
  432. getShowTemplateItem({
  433. id: that.mtype
  434. }).then(res => {
  435. that.modelInfo = res.data
  436. })
  437. },
  438. getCommonUserCardInfo(uid) {
  439. let that = this
  440. getCommonUserCardInfo({
  441. uid: uid
  442. }).then(res => {
  443. let arr = []
  444. let basearr = res.data.service_area_all
  445. basearr.forEach(item => {
  446. arr.push(item[0].name + item[1].name + item[2].name)
  447. })
  448. res.data.service_area_all = arr
  449. that.cardInfo = res.data
  450. })
  451. },
  452. getUserCardInfo() {
  453. let that = this
  454. getUserCardInfo().then(res => {
  455. console.log(res)
  456. let arr = []
  457. let basearr = res.data.service_area_all
  458. basearr.forEach(item => {
  459. arr.push(item[0].name + item[1].name + item[2].name)
  460. })
  461. res.data.service_area_all = arr
  462. that.cardInfo = res.data
  463. })
  464. }
  465. }
  466. }
  467. </script>
  468. <style lang="scss">
  469. .mone {
  470. background-color: #f8e1df;
  471. .m-top {
  472. width: 750rpx;
  473. position: relative;
  474. width: 750rpx;
  475. height: 370rpx;
  476. .top-bg {
  477. position: relative;
  478. width: 750rpx;
  479. height: 370rpx;
  480. }
  481. .readme {
  482. width: 534rpx;
  483. height: 83rpx;
  484. position: absolute;
  485. top: 172rpx;
  486. left: 0;
  487. right: 0;
  488. margin: auto;
  489. }
  490. .top-user {
  491. width: 222rpx;
  492. height: 222rpx;
  493. background: #FEFEFE;
  494. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  495. border-radius: 50%;
  496. position: absolute;
  497. left: 0;
  498. right: 0;
  499. top: 80rpx;
  500. justify-content: center;
  501. align-items: center;
  502. margin: auto;
  503. .user-logo {
  504. width: 200rpx;
  505. height: 200rpx;
  506. border-radius: 50%;
  507. background-color: #fff;
  508. }
  509. .gp {
  510. width: 133rpx;
  511. height: 38rpx;
  512. position: absolute;
  513. bottom: 0;
  514. left: 0;
  515. right: 0;
  516. margin: auto;
  517. }
  518. }
  519. .user-name {
  520. width: 750rpx;
  521. font-size: 38rpx;
  522. font-weight: bold;
  523. color: #000000;
  524. text-align: center;
  525. position: absolute;
  526. top: 318rpx;
  527. }
  528. .fx-btn {
  529. padding: 0;
  530. &::after {
  531. border: none;
  532. }
  533. border-radius: 24rpx 0 0 24rpx;
  534. image {
  535. width: 150rpx;
  536. height: 48rpx;
  537. display: block;
  538. }
  539. }
  540. .top-btn {
  541. width: 150rpx;
  542. height: 48rpx;
  543. position: absolute;
  544. right: 0;
  545. top: 70rpx;
  546. line-height: 48rpx;
  547. font-size: 24rpx;
  548. }
  549. .visit {
  550. border-radius: 24rpx 0 0 24rpx;
  551. top: 130rpx;
  552. border:1px solid #f65486;
  553. color: #f65486;
  554. padding-left: 24rpx;
  555. }
  556. .mvisit {
  557. top: 70rpx;
  558. }
  559. }
  560. }
  561. .m-body {
  562. width: 705rpx;
  563. margin: auto;
  564. margin-top: 20rpx;
  565. background-color: #fff;
  566. border-left: 8rpx solid #efa0ab;
  567. border-right: 8rpx solid #efa0ab;
  568. padding: 45rpx 0;
  569. }
  570. .gr {
  571. position: relative;
  572. &::before {
  573. content: '';
  574. position: absolute;
  575. // left: 75px;
  576. right: 0;
  577. top: -30rpx;
  578. width: 120px;
  579. height: 174px;
  580. background: url('https://api.myjie.cn/resource/icon/model1/hua1.png') no-repeat;
  581. background-size: 100% 100%;
  582. }
  583. }
  584. .m-card {
  585. width: 640rpx;
  586. background: #fcf4f1;
  587. border-radius: 20rpx;
  588. position: relative;
  589. // min-height: 270rpx;
  590. margin: 0 auto 46rpx;
  591. .card-tit {
  592. width: 219rpx;
  593. height: 57rpx;
  594. background: #F46C85;
  595. border-radius: 20rpx 28rpx 29rpx 0rpx;
  596. justify-content: flex-start;
  597. align-items: center;
  598. padding: 0 20rpx;
  599. font-size: 32rpx;
  600. font-weight: bold;
  601. color: #FFFFFF;
  602. .tit-logo {
  603. width: 32rpx;
  604. height: 32rpx;
  605. margin-right: 18rpx;
  606. }
  607. }
  608. .card-bg {
  609. width: 100%;
  610. height: 270rpx;
  611. position: absolute;
  612. bottom: 0rpx;
  613. }
  614. .card-content {
  615. padding: 25rpx 35rpx;
  616. font-size: 26rpx;
  617. font-weight: 500;
  618. color: #2C2E35;
  619. position: relative;
  620. }
  621. .img-list {
  622. justify-content: space-between;
  623. flex-wrap: wrap;
  624. margin: auto;
  625. padding: 30rpx 30rpx 0;
  626. position: relative;
  627. image {
  628. width: 270rpx;
  629. height: 270rpx;
  630. background-color: #fff;
  631. margin-bottom: 30rpx;
  632. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.6);
  633. }
  634. }
  635. .fw {
  636. font-size: 26rpx;
  637. font-weight: 500;
  638. color: #2C2E35;
  639. padding: 10rpx 0;
  640. .fw-tit {
  641. color: #F46C85;
  642. display: flex;
  643. align-items: center;
  644. .yg {
  645. background-color: #F46C85;
  646. display: inline-block;
  647. width: 10rpx;
  648. height: 10rpx;
  649. border-radius: 50%;
  650. margin-right: 10rpx;
  651. }
  652. }
  653. .fw-content {
  654. padding-top: 10rpx;
  655. padding-left: 18rpx;
  656. text-align: justify;
  657. }
  658. }
  659. .user-info {
  660. flex-wrap: wrap;
  661. font-size: 26rpx;
  662. font-weight: 500;
  663. color: #000000;
  664. position: relative;
  665. .info-item-b,
  666. .info-item-q {
  667. padding: 10rpx 0;
  668. color: #000000;
  669. position: relative;
  670. padding-left: 20rpx;
  671. &::before {
  672. display: inline-block;
  673. content: '';
  674. width: 10rpx;
  675. height: 10rpx;
  676. border-radius: 50%;
  677. background-color: #F46C85;
  678. position: absolute;
  679. top: 22rpx;
  680. left: 0;
  681. }
  682. .qianger {
  683. width: 2em;
  684. display: inline-block;
  685. }
  686. .laner {
  687. width: 0.5em;
  688. display: inline-block;
  689. }
  690. }
  691. .info-item-b {
  692. width: 50%;
  693. }
  694. .info-item-q {
  695. width: 100%;
  696. display: flex;
  697. align-items: flex-start;
  698. justify-content: start;
  699. .fwdz {
  700. flex-direction: column;
  701. align-items: flex-start;
  702. }
  703. .gzt {
  704. width: 312rpx;
  705. height: 24rpx;
  706. padding-top: 10rpx;
  707. position: relative;
  708. image {
  709. width: 312rpx;
  710. height: 24rpx;
  711. position: relative;
  712. }
  713. .gzt-price,
  714. .gzt-price-b {
  715. width: 200rpx;
  716. text-align: center;
  717. position: absolute;
  718. padding-top: 20rpx;
  719. &::after {
  720. content: '';
  721. width: 0px;
  722. height: 0rpx;
  723. // background: #FEB8C6;
  724. border: 14rpx solid;
  725. border-color: transparent transparent #FEB8C6;
  726. // border-top:transparent;
  727. // border-left: transparent;
  728. // border-right: transparent;
  729. position: absolute;
  730. top: -14rpx;
  731. left: 0;
  732. right: 0;
  733. margin: auto;
  734. }
  735. text {
  736. color: #F46C85;
  737. }
  738. }
  739. .gzt-price {
  740. left: -100rpx;
  741. }
  742. .gzt-price-b {
  743. right: -100rpx;
  744. }
  745. }
  746. .rz {
  747. margin-top: 10rpx;
  748. margin-left: 10rpx;
  749. width: 87rpx;
  750. height: 26rpx;
  751. }
  752. }
  753. }
  754. }
  755. .m-btm {
  756. width: 660rpx;
  757. height: 384rpx;
  758. }
  759. .hua2 {
  760. position: relative;
  761. &::before {
  762. content: '';
  763. width: 199rpx;
  764. height: 298rpx;
  765. background: url('https://api.myjie.cn/resource/icon/model1/hua2.png') no-repeat;
  766. position: absolute;
  767. bottom: -100rpx;
  768. right: 0;
  769. background-size: 100% 100%;
  770. }
  771. }
  772. .hua3 {
  773. position: relative;
  774. &::before {
  775. content: '';
  776. width: 192rpx;
  777. height: 223rpx;
  778. background: url('https://api.myjie.cn/resource/icon/model1/hua3.png') no-repeat;
  779. position: absolute;
  780. top: 0;
  781. bottom: 0;
  782. left: 0;
  783. margin: auto;
  784. background-size: 100% 100%;
  785. }
  786. }
  787. .hua4 {
  788. position: relative;
  789. &::before {
  790. content: '';
  791. width: 128rpx;
  792. height: 145rpx;
  793. background: url('https://api.myjie.cn/resource/icon/model1/hua4.png') no-repeat;
  794. position: absolute;
  795. bottom: -70rpx;
  796. right: 0;
  797. background-size: 100% 100%;
  798. }
  799. }
  800. .hua5 {
  801. position: relative;
  802. &::before {
  803. content: '';
  804. width: 199rpx;
  805. height: 298rpx;
  806. background: url('https://api.myjie.cn/resource/icon/model1/hua2.png') no-repeat;
  807. position: absolute;
  808. bottom: -100rpx;
  809. left: 0;
  810. background-size: 100% 100%;
  811. transform: rotateY(180deg);
  812. }
  813. }
  814. .hua6 {
  815. position: relative;
  816. &::before {
  817. content: '';
  818. width: 192rpx;
  819. height: 223rpx;
  820. background: url('https://api.myjie.cn/resource/icon/model1/hua3.png') no-repeat;
  821. position: absolute;
  822. bottom: -110rpx;
  823. right: 0;
  824. background-size: 100% 100%;
  825. transform: rotateY(180deg);
  826. }
  827. }
  828. .create-model-ts {
  829. width: 750rpx;
  830. height: 30rpx;
  831. }
  832. .fxmp {
  833. width: 750rpx;
  834. .share {
  835. width: 50%;
  836. padding: 0;
  837. border-radius: 0;
  838. &::after {
  839. border: none;
  840. }
  841. }
  842. .nav-model {
  843. background-color: #FFF;
  844. color: $base-color;
  845. width: 50%;
  846. }
  847. }
  848. .fxmp {
  849. position: fixed;
  850. width: 750rpx;
  851. height: 98rpx;
  852. bottom: 0;
  853. padding: 0;
  854. view {
  855. background: #f65486;
  856. // border-radius: 5rpx;
  857. font-size: 30rpx;
  858. font-weight: 500;
  859. color: #FFFFFF;
  860. text-align: center;
  861. line-height: 98rpx;
  862. }
  863. }
  864. .create-model {
  865. position: fixed;
  866. width: 750rpx;
  867. bottom: 0;
  868. // border-radius: 5rpx;
  869. font-size: 32rpx;
  870. font-weight: 500;
  871. text-align: center;
  872. line-height: 98rpx;
  873. .price-show {
  874. font-size: 32rpx;
  875. font-weight: 500;
  876. color: #333333;
  877. background-color: #fff;
  878. flex-grow: 1;
  879. text {
  880. font-size: 48rpx;
  881. font-weight: 500;
  882. color: #FC6F6D;
  883. }
  884. }
  885. .to-show,
  886. .by-now {
  887. width: 223rpx;
  888. height: 98rpx;
  889. background: #fa98b6;
  890. flex-shrink: 0;
  891. font-size: 34rpx;
  892. color: #fff;
  893. }
  894. .by-now {
  895. background: #f65486;
  896. }
  897. }
  898. .yl {
  899. position: fixed;
  900. bottom: 0;
  901. width: 750rpx;
  902. font-size: 32rpx;
  903. font-weight: 500;
  904. text-align: center;
  905. line-height: 98rpx;
  906. color: #fff;
  907. text-align: center;
  908. font-size: 34rpx;
  909. background-color: #f65486;
  910. }
  911. .ljrz {
  912. position: fixed;
  913. width: 750rpx;
  914. bottom: 0;
  915. font-size: 32rpx;
  916. font-weight: 500;
  917. text-align: center;
  918. line-height: 98rpx;
  919. background-color: #f65486;
  920. color: #fff;
  921. }
  922. </style>