model.vue 23 KB

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