model.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020
  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. if(res.data.status == 1) {
  372. uni.showModal({
  373. title: '提示',
  374. content: '支付成功!',
  375. cancelText: '关闭',
  376. confirmText: '查看模板',
  377. success: res => {
  378. if (res.confirm) {
  379. uni.reLaunch({
  380. url: '/pages/user/model/model?mtype=' +
  381. that.mtype,
  382. });
  383. }
  384. },
  385. fail: () => {},
  386. complete: () => {}
  387. });
  388. }else {
  389. let da = res.data.jsApiParameters;
  390. let data = {
  391. appId: da.appId,
  392. // #ifdef H5
  393. timestamp: da.timeStamp,
  394. // #endif
  395. // #ifdef MP
  396. timeStamp: da.timeStamp + '',
  397. // #endif
  398. nonceStr: da.nonceStr,
  399. package: da.package,
  400. signType: da.signType,
  401. paySign: da.paySign,
  402. success: function(res) {
  403. // obj.paySuccessTo();
  404. // alert('支付成功')
  405. uni.showModal({
  406. title: '提示',
  407. content: '支付成功!',
  408. cancelText: '关闭',
  409. confirmText: '查看模板',
  410. success: res => {
  411. if (res.confirm) {
  412. uni.reLaunch({
  413. url: '/pages/user/model/model?mtype=' +
  414. that.mtype,
  415. });
  416. }
  417. },
  418. fail: () => {},
  419. complete: () => {}
  420. });
  421. console.log('支付成功')
  422. },
  423. fail: (err) => {
  424. console.log(err)
  425. // alert('支付失败')
  426. // uni.navigateTo({
  427. // url: '/pages/order/order?state=0'
  428. // });
  429. }
  430. };
  431. console.log(data, 'timeStamp')
  432. if (that.payType == 'wxpay') {
  433. console.log('到这里')
  434. wx.requestPayment(data)
  435. }
  436. }
  437. })
  438. },
  439. // 获取模板详情
  440. getShowTemplateItem() {
  441. let that = this
  442. getShowTemplateItem({
  443. id: that.mtype
  444. }).then(res => {
  445. that.modelInfo = res.data
  446. })
  447. },
  448. getCommonUserCardInfo(uid) {
  449. let that = this
  450. getCommonUserCardInfo({
  451. uid: uid
  452. }).then(res => {
  453. let arr = []
  454. let basearr = res.data.service_area_all
  455. basearr.forEach(item => {
  456. arr.push(item[0].name + item[1].name + item[2].name)
  457. })
  458. res.data.service_area_all = arr
  459. that.cardInfo = res.data
  460. })
  461. },
  462. getUserCardInfo() {
  463. let that = this
  464. getUserCardInfo().then(res => {
  465. console.log(res)
  466. let arr = []
  467. let basearr = res.data.service_area_all
  468. basearr.forEach(item => {
  469. arr.push(item[0].name + item[1].name + item[2].name)
  470. })
  471. res.data.service_area_all = arr
  472. that.cardInfo = res.data
  473. })
  474. }
  475. }
  476. }
  477. </script>
  478. <style lang="scss">
  479. .mone {
  480. background-color: #f8e1df;
  481. .m-top {
  482. width: 750rpx;
  483. position: relative;
  484. width: 750rpx;
  485. height: 370rpx;
  486. .top-bg {
  487. position: relative;
  488. width: 750rpx;
  489. height: 370rpx;
  490. }
  491. .readme {
  492. width: 534rpx;
  493. height: 83rpx;
  494. position: absolute;
  495. top: 172rpx;
  496. left: 0;
  497. right: 0;
  498. margin: auto;
  499. }
  500. .top-user {
  501. width: 222rpx;
  502. height: 222rpx;
  503. background: #FEFEFE;
  504. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  505. border-radius: 50%;
  506. position: absolute;
  507. left: 0;
  508. right: 0;
  509. top: 80rpx;
  510. justify-content: center;
  511. align-items: center;
  512. margin: auto;
  513. .user-logo {
  514. width: 200rpx;
  515. height: 200rpx;
  516. border-radius: 50%;
  517. background-color: #fff;
  518. }
  519. .gp {
  520. width: 133rpx;
  521. height: 38rpx;
  522. position: absolute;
  523. bottom: 0;
  524. left: 0;
  525. right: 0;
  526. margin: auto;
  527. }
  528. }
  529. .user-name {
  530. width: 750rpx;
  531. font-size: 38rpx;
  532. font-weight: bold;
  533. color: #000000;
  534. text-align: center;
  535. position: absolute;
  536. top: 318rpx;
  537. }
  538. .fx-btn {
  539. padding: 0;
  540. &::after {
  541. border: none;
  542. }
  543. border-radius: 24rpx 0 0 24rpx;
  544. image {
  545. width: 150rpx;
  546. height: 48rpx;
  547. display: block;
  548. }
  549. }
  550. .top-btn {
  551. width: 150rpx;
  552. height: 48rpx;
  553. position: absolute;
  554. right: 0;
  555. top: 70rpx;
  556. line-height: 48rpx;
  557. font-size: 24rpx;
  558. }
  559. .visit {
  560. border-radius: 24rpx 0 0 24rpx;
  561. top: 130rpx;
  562. border:1px solid #f65486;
  563. color: #f65486;
  564. padding-left: 24rpx;
  565. }
  566. .mvisit {
  567. top: 70rpx;
  568. }
  569. }
  570. }
  571. .m-body {
  572. width: 705rpx;
  573. margin: auto;
  574. margin-top: 20rpx;
  575. background-color: #fff;
  576. border-left: 8rpx solid #efa0ab;
  577. border-right: 8rpx solid #efa0ab;
  578. padding: 45rpx 0;
  579. }
  580. .gr {
  581. position: relative;
  582. &::before {
  583. content: '';
  584. position: absolute;
  585. // left: 75px;
  586. right: 0;
  587. top: -30rpx;
  588. width: 120px;
  589. height: 174px;
  590. background: url('https://api.myjie.cn/resource/icon/model1/hua1.png') no-repeat;
  591. background-size: 100% 100%;
  592. }
  593. }
  594. .m-card {
  595. width: 640rpx;
  596. background: #fcf4f1;
  597. border-radius: 20rpx;
  598. position: relative;
  599. // min-height: 270rpx;
  600. margin: 0 auto 46rpx;
  601. .card-tit {
  602. width: 219rpx;
  603. height: 57rpx;
  604. background: #F46C85;
  605. border-radius: 20rpx 28rpx 29rpx 0rpx;
  606. justify-content: flex-start;
  607. align-items: center;
  608. padding: 0 20rpx;
  609. font-size: 32rpx;
  610. font-weight: bold;
  611. color: #FFFFFF;
  612. .tit-logo {
  613. width: 32rpx;
  614. height: 32rpx;
  615. margin-right: 18rpx;
  616. }
  617. }
  618. .card-bg {
  619. width: 100%;
  620. height: 270rpx;
  621. position: absolute;
  622. bottom: 0rpx;
  623. }
  624. .card-content {
  625. padding: 25rpx 35rpx;
  626. font-size: 26rpx;
  627. font-weight: 500;
  628. color: #2C2E35;
  629. position: relative;
  630. }
  631. .img-list {
  632. justify-content: space-between;
  633. flex-wrap: wrap;
  634. margin: auto;
  635. padding: 30rpx 30rpx 0;
  636. position: relative;
  637. image {
  638. width: 270rpx;
  639. height: 270rpx;
  640. background-color: #fff;
  641. margin-bottom: 30rpx;
  642. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.6);
  643. }
  644. }
  645. .fw {
  646. font-size: 26rpx;
  647. font-weight: 500;
  648. color: #2C2E35;
  649. padding: 10rpx 0;
  650. .fw-tit {
  651. color: #F46C85;
  652. display: flex;
  653. align-items: center;
  654. .yg {
  655. background-color: #F46C85;
  656. display: inline-block;
  657. width: 10rpx;
  658. height: 10rpx;
  659. border-radius: 50%;
  660. margin-right: 10rpx;
  661. }
  662. }
  663. .fw-content {
  664. padding-top: 10rpx;
  665. padding-left: 18rpx;
  666. text-align: justify;
  667. }
  668. }
  669. .user-info {
  670. flex-wrap: wrap;
  671. font-size: 26rpx;
  672. font-weight: 500;
  673. color: #000000;
  674. position: relative;
  675. .info-item-b,
  676. .info-item-q {
  677. padding: 10rpx 0;
  678. color: #000000;
  679. position: relative;
  680. padding-left: 20rpx;
  681. &::before {
  682. display: inline-block;
  683. content: '';
  684. width: 10rpx;
  685. height: 10rpx;
  686. border-radius: 50%;
  687. background-color: #F46C85;
  688. position: absolute;
  689. top: 22rpx;
  690. left: 0;
  691. }
  692. .qianger {
  693. width: 2em;
  694. display: inline-block;
  695. }
  696. .laner {
  697. width: 0.5em;
  698. display: inline-block;
  699. }
  700. }
  701. .info-item-b {
  702. width: 50%;
  703. }
  704. .info-item-q {
  705. width: 100%;
  706. display: flex;
  707. align-items: flex-start;
  708. justify-content: start;
  709. .fwdz {
  710. flex-direction: column;
  711. align-items: flex-start;
  712. }
  713. .gzt {
  714. width: 312rpx;
  715. height: 24rpx;
  716. padding-top: 10rpx;
  717. position: relative;
  718. image {
  719. width: 312rpx;
  720. height: 24rpx;
  721. position: relative;
  722. }
  723. .gzt-price,
  724. .gzt-price-b {
  725. width: 200rpx;
  726. text-align: center;
  727. position: absolute;
  728. padding-top: 20rpx;
  729. &::after {
  730. content: '';
  731. width: 0px;
  732. height: 0rpx;
  733. // background: #FEB8C6;
  734. border: 14rpx solid;
  735. border-color: transparent transparent #FEB8C6;
  736. // border-top:transparent;
  737. // border-left: transparent;
  738. // border-right: transparent;
  739. position: absolute;
  740. top: -14rpx;
  741. left: 0;
  742. right: 0;
  743. margin: auto;
  744. }
  745. text {
  746. color: #F46C85;
  747. }
  748. }
  749. .gzt-price {
  750. left: -100rpx;
  751. }
  752. .gzt-price-b {
  753. right: -100rpx;
  754. }
  755. }
  756. .rz {
  757. margin-top: 10rpx;
  758. margin-left: 10rpx;
  759. width: 87rpx;
  760. height: 26rpx;
  761. }
  762. }
  763. }
  764. }
  765. .m-btm {
  766. width: 660rpx;
  767. height: 384rpx;
  768. }
  769. .hua2 {
  770. position: relative;
  771. &::before {
  772. content: '';
  773. width: 199rpx;
  774. height: 298rpx;
  775. background: url('https://api.myjie.cn/resource/icon/model1/hua2.png') no-repeat;
  776. position: absolute;
  777. bottom: -100rpx;
  778. right: 0;
  779. background-size: 100% 100%;
  780. }
  781. }
  782. .hua3 {
  783. position: relative;
  784. &::before {
  785. content: '';
  786. width: 192rpx;
  787. height: 223rpx;
  788. background: url('https://api.myjie.cn/resource/icon/model1/hua3.png') no-repeat;
  789. position: absolute;
  790. top: 0;
  791. bottom: 0;
  792. left: 0;
  793. margin: auto;
  794. background-size: 100% 100%;
  795. }
  796. }
  797. .hua4 {
  798. position: relative;
  799. &::before {
  800. content: '';
  801. width: 128rpx;
  802. height: 145rpx;
  803. background: url('https://api.myjie.cn/resource/icon/model1/hua4.png') no-repeat;
  804. position: absolute;
  805. bottom: -70rpx;
  806. right: 0;
  807. background-size: 100% 100%;
  808. }
  809. }
  810. .hua5 {
  811. position: relative;
  812. &::before {
  813. content: '';
  814. width: 199rpx;
  815. height: 298rpx;
  816. background: url('https://api.myjie.cn/resource/icon/model1/hua2.png') no-repeat;
  817. position: absolute;
  818. bottom: -100rpx;
  819. left: 0;
  820. background-size: 100% 100%;
  821. transform: rotateY(180deg);
  822. }
  823. }
  824. .hua6 {
  825. position: relative;
  826. &::before {
  827. content: '';
  828. width: 192rpx;
  829. height: 223rpx;
  830. background: url('https://api.myjie.cn/resource/icon/model1/hua3.png') no-repeat;
  831. position: absolute;
  832. bottom: -110rpx;
  833. right: 0;
  834. background-size: 100% 100%;
  835. transform: rotateY(180deg);
  836. }
  837. }
  838. .create-model-ts {
  839. width: 750rpx;
  840. height: 30rpx;
  841. }
  842. .fxmp {
  843. width: 750rpx;
  844. .share {
  845. width: 50%;
  846. padding: 0;
  847. border-radius: 0;
  848. &::after {
  849. border: none;
  850. }
  851. }
  852. .nav-model {
  853. background-color: #FFF;
  854. color: $base-color;
  855. width: 50%;
  856. }
  857. }
  858. .fxmp {
  859. position: fixed;
  860. width: 750rpx;
  861. height: 98rpx;
  862. bottom: 0;
  863. padding: 0;
  864. view {
  865. background: #f65486;
  866. // border-radius: 5rpx;
  867. font-size: 30rpx;
  868. font-weight: 500;
  869. color: #FFFFFF;
  870. text-align: center;
  871. line-height: 98rpx;
  872. }
  873. }
  874. .create-model {
  875. position: fixed;
  876. width: 750rpx;
  877. bottom: 0;
  878. // border-radius: 5rpx;
  879. font-size: 32rpx;
  880. font-weight: 500;
  881. text-align: center;
  882. line-height: 98rpx;
  883. .price-show {
  884. font-size: 32rpx;
  885. font-weight: 500;
  886. color: #333333;
  887. background-color: #fff;
  888. flex-grow: 1;
  889. text {
  890. font-size: 48rpx;
  891. font-weight: 500;
  892. color: #FC6F6D;
  893. }
  894. }
  895. .to-show,
  896. .by-now {
  897. width: 223rpx;
  898. height: 98rpx;
  899. background: #fa98b6;
  900. flex-shrink: 0;
  901. font-size: 34rpx;
  902. color: #fff;
  903. }
  904. .by-now {
  905. background: #f65486;
  906. }
  907. }
  908. .yl {
  909. position: fixed;
  910. bottom: 0;
  911. width: 750rpx;
  912. font-size: 32rpx;
  913. font-weight: 500;
  914. text-align: center;
  915. line-height: 98rpx;
  916. color: #fff;
  917. text-align: center;
  918. font-size: 34rpx;
  919. background-color: #f65486;
  920. }
  921. .ljrz {
  922. position: fixed;
  923. width: 750rpx;
  924. bottom: 0;
  925. font-size: 32rpx;
  926. font-weight: 500;
  927. text-align: center;
  928. line-height: 98rpx;
  929. background-color: #f65486;
  930. color: #fff;
  931. }
  932. </style>