model.vue 23 KB

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