detail.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <view class="onemain">
  5. <scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-into-view="topItem" @scroll="handleScroll">
  6. <view class="list-scroll-view" id="top">
  7. <view class="one">
  8. <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff" indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
  9. <swiper-item class="list" v-for="(item,index) in bannerList" :key="index">
  10. <image class="image" :src="item.url" mode="">
  11. </image>
  12. </swiper-item>
  13. </swiper>
  14. </view>
  15. <view class="two">
  16. <view class="two_1">
  17. <view class="money_1">
  18. <text>¥</text>
  19. <text>{{specs&&specs.length>0?specs[0].sell_money:''}}</text>
  20. </view>
  21. <view class="money_2">
  22. <text>¥</text>
  23. <text>{{specs&&specs.length>0?specs[0].flow_money:''}}</text>
  24. </view>
  25. </view>
  26. <view class="two_2">{{info.name}}</view>
  27. <view class="two_3">{{info.shot_brief}}</view>
  28. <view class="two_4">
  29. <text>运费{{specs&&specs.length>0?specs[0].freight:''}}元</text>
  30. <text>{{info.send_time}}内发货</text>
  31. </view>
  32. </view>
  33. <view class="thr">
  34. <view class="thr_1" @click="toChoose">
  35. <view class="title">选择规格</view>
  36. <text class="iconfont icon-jiantouyou"></text>
  37. </view>
  38. <view class="thr_1" @click="toAppraise(info)">
  39. <view class="title">商品评价({{info.comment||0}})</view>
  40. <text class="iconfont icon-jiantouyou"></text>
  41. </view>
  42. </view>
  43. <view class="four">
  44. <view class="four_1">
  45. <image class="image" :src="shop.logo&&shop.logo.length>0?shop.logo[0].url:''"></image>
  46. <view class="other">
  47. <view class="name">{{shop.name}}</view>
  48. <view class="other_1"><text>宝贝数</text>{{shop.num||0}}</view>
  49. </view>
  50. </view>
  51. <view class="four_2">
  52. <view class="grade">商品:<text>{{shop.goods_score||5}}</text></view>|
  53. <view class="grade">发货:<text>{{shop.send_score||5}}</text></view>|
  54. <view class="grade">服务:<text>{{shop.service_score||5}}</text></view>
  55. </view>
  56. <view class="four_2">
  57. <view class="btn" @tap="toShop('pagesHome/shop/index')">进入店铺</view>
  58. <view class="btn" @tap="shopCollect">{{shop_collect==true?'已关注':'关注'}}</view>
  59. </view>
  60. </view>
  61. <view class="five">
  62. <view class="five_1">
  63. <u-parse :content="info.brief"></u-parse>
  64. </view>
  65. </view>
  66. </view>
  67. </scroll-view>
  68. </view>
  69. <view class="foot">
  70. <uni-goods-nav :options="options" :button-group="buttonGroup" @click="onClick" @buttonClick="buttonClick" />
  71. </view>
  72. </view>
  73. <view class="collect">
  74. <text v-if="!collection" @click="toCollect" class="iconfont icon-yduishoucangkongxin"></text>
  75. <text v-else @click="toCollect" class="iconfont icon-yduishoucangshixin-copy"></text>
  76. </view>
  77. <view class="menu">
  78. <text @click="toMenu" class="iconfont icon-gengduo"></text>
  79. </view>
  80. <view class="menu_1" v-if="menu">
  81. <view class="title" v-for="(item,index) in barList" :key="index" @click="toPath(item)">
  82. <image class="image" :src="item.normal"></image>
  83. <view class="name">{{item.name}}</view>
  84. </view>
  85. </view>
  86. <view class="backTop" v-if="isShow==true">
  87. <text @click="backTop" class="iconfont icon-fanhuidingbu"></text>
  88. </view>
  89. <uni-popup ref="popup" background-color="#fff" type="bottom">
  90. <view class="content">
  91. <view class="one">
  92. <image class="image" v-if="specsInfo.file&&specsInfo.file.length>0" :src="specsInfo.file&&specsInfo.file.length>0?specsInfo.file[0].url:''"></image>
  93. <image class="image" v-else :src="info.file&&info.file.length>0?info.file[0].url:''"></image>
  94. <view class="other">
  95. <view class="money">
  96. <text>¥</text>
  97. <text>{{specsInfo.sell_money}}</text>
  98. </view>
  99. <view class="other_1">
  100. 已选: <text>{{specsInfo.name}}</text>
  101. </view>
  102. </view>
  103. <view class="btn">
  104. <text @click="toClose" class="iconfont icon-shanchu"></text>
  105. </view>
  106. </view>
  107. <view class="two">
  108. <view class="two_1">规格</view>
  109. <view class="two_2">
  110. <text v-for="(item,index) in specs" :key="index" @click="toStyle(item,index)" :class="{ 'style': isActive==index}">{{item.name}}
  111. </text>
  112. </view>
  113. </view>
  114. <view class="thr">
  115. <text>数量</text>
  116. <view class="count">
  117. <uni-number-box :min="1" :max="specsInfo.num" :disabled="disabled" v-model="num" @change="toCount">
  118. </uni-number-box>
  119. </view>
  120. <text>库存{{specsInfo.num||0}}</text>
  121. </view>
  122. <view class="btn">
  123. <text @click="toBuy(type)" :class="{ 'button': specsInfo._id&&specsInfo.can_group=='0'&&type=='1'}">
  124. {{type=='0'?'加入购物车':'立即购买'}}
  125. </text>
  126. <text v-if="specsInfo._id&&specsInfo.can_group=='0'&&type=='1'" @click="toGroup" class="button2">参团</text>
  127. </view>
  128. </view>
  129. </uni-popup>
  130. </mobile-frame>
  131. </template>
  132. <script>
  133. import uParse from '@/components/u-parse/u-parse.vue'
  134. export default {
  135. components: {
  136. uParse
  137. },
  138. data() {
  139. return {
  140. barList: [{
  141. name: '首页',
  142. route: 'pages/home/index',
  143. normal: require('@/static/shouye.png'),
  144. },
  145. {
  146. name: '微店',
  147. route: 'pages/store/index',
  148. normal: require('@/static/store.png'),
  149. },
  150. {
  151. name: '购物车',
  152. route: 'pages/market/index',
  153. normal: require('@/static/market.png'),
  154. },
  155. {
  156. name: '我的',
  157. route: 'pages/my/index',
  158. normal: require('@/static/my.png'),
  159. },
  160. ],
  161. options: [{
  162. icon: 'shop',
  163. text: '店铺',
  164. route: 'pagesHome/shop/index',
  165. },
  166. {
  167. icon: 'cart',
  168. text: '购物车',
  169. route: 'pages/market/index',
  170. },
  171. // {
  172. // icon: 'chat',
  173. // text: '客服',
  174. // }
  175. ],
  176. buttonGroup: [{
  177. text: '加入购物车',
  178. backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
  179. color: '#fff',
  180. type: '0'
  181. },
  182. {
  183. text: '立即购买',
  184. backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
  185. color: '#fff',
  186. type: '1'
  187. }
  188. ],
  189. // 商品id
  190. id: '',
  191. user: {},
  192. // 轮播图
  193. bannerList: [],
  194. // 商品详情
  195. info: {},
  196. // 商店详情
  197. shop: {},
  198. // 规格情况
  199. specs: [],
  200. // 已选
  201. specsInfo: {},
  202. // 是否显示返回顶部
  203. isShow: false,
  204. topItem: '',
  205. // 商品收藏
  206. collection: false,
  207. // 店铺收藏
  208. shop_collect: false,
  209. // 菜单显示
  210. menu: false,
  211. disabled: true,
  212. // 显示文字判断
  213. type: '0',
  214. // 选择规格
  215. isActive: -1,
  216. // 计数器
  217. num: 1,
  218. // 分享
  219. share: {},
  220. };
  221. },
  222. onLoad: async function(e) {
  223. const that = this;
  224. that.$set(that, `id`, e.id || '');
  225. },
  226. onShow: async function() {
  227. const that = this;
  228. await that.search();
  229. await that.configShare();
  230. },
  231. methods: {
  232. //店铺,
  233. // 购物车,客服跳转
  234. onClick(e) {
  235. const that = this;
  236. if (e.index == '0' && e.content.route) {
  237. // 进入店铺
  238. that.toShop();
  239. } else {
  240. uni.reLaunch({
  241. url: `/${e.content.route}`
  242. })
  243. }
  244. },
  245. // 进入店铺
  246. toShop() {
  247. const that = this;
  248. uni.navigateTo({
  249. url: `/pagesHome/shop/index?id=${that.shop._id}`
  250. })
  251. },
  252. // 商品评价
  253. toAppraise(e) {
  254. const that = this;
  255. uni.navigateTo({
  256. url: `/pagesHome/order/appraise?id=${that.id}`
  257. })
  258. },
  259. // 收藏
  260. async toCollect() {
  261. const that = this;
  262. let user = that.user;
  263. if (user) {
  264. let res = await that.$api(`/storeGoods`, `POST`, {
  265. customer: user._id,
  266. goods: that.id
  267. });
  268. if (res.errcode == '0') {
  269. uni.showToast({
  270. title: res.data.msg,
  271. icon: 'none'
  272. })
  273. that.$set(that, `collection`, res.data.result)
  274. }
  275. } else {
  276. uni.showToast({
  277. title: '无用户登录无法收藏商品',
  278. icon: 'none'
  279. })
  280. }
  281. },
  282. // 关注商铺
  283. async shopCollect() {
  284. const that = this;
  285. let user = that.user;
  286. if (user && user._id) {
  287. let res = await that.$api(`/storeShop`, `POST`, {
  288. customer: user._id,
  289. shop: that.shop._id
  290. });
  291. if (res.errcode == '0') {
  292. uni.showToast({
  293. title: res.data.msg,
  294. icon: 'none'
  295. })
  296. that.$set(that, `shop_collect`, res.data.result)
  297. }
  298. } else {
  299. uni.showToast({
  300. title: '无用户登录无法关注商铺',
  301. icon: 'none'
  302. })
  303. }
  304. },
  305. // 参团
  306. toGroup() {
  307. const that = this;
  308. let specs_id = that.specsInfo._id
  309. uni.navigateTo({
  310. url: `/pagesHome/group/index?specs_id=${specs_id}&goods_id=${that.id}`
  311. })
  312. },
  313. //主菜单跳转
  314. toPath(e) {
  315. if (e && e.route) uni.reLaunch({
  316. url: `/${e.route}`
  317. })
  318. },
  319. // 菜单展开
  320. toMenu() {
  321. const that = this;
  322. that.menu = !that.menu
  323. },
  324. // 计算高度
  325. handleScroll(e) {
  326. const that = this;
  327. let scrollTop = e.detail.scrollTop;
  328. that.isShow = scrollTop > 500;
  329. that.topItem = '';
  330. },
  331. // 返回顶部
  332. backTop() {
  333. const that = this;
  334. that.topItem = 'top'
  335. },
  336. //加入购物车,立即购买弹窗
  337. buttonClick(e) {
  338. const that = this;
  339. if (e && e.content) that.type = e.content.type;
  340. that.$refs.popup.open();
  341. },
  342. // 选择规格
  343. toChoose() {
  344. const that = this;
  345. that.type = '1';
  346. that.$refs.popup.open();
  347. },
  348. // 修改样式
  349. toStyle(e, index) {
  350. const that = this;
  351. that.$set(that, `isActive`, index)
  352. that.$set(that, `specsInfo`, e)
  353. that.disabled = false;
  354. },
  355. // 计数器
  356. toCount(e) {
  357. const that = this;
  358. that.num = e;
  359. },
  360. // 立即购买
  361. toBuy(e) {
  362. const that = this;
  363. uni.getStorage({
  364. key: 'token',
  365. success: async function(res) {
  366. let user = that.$jwt(res.data);
  367. that.$set(that, `user`, user)
  368. if (that.specsInfo._id) {
  369. let specs_id = that.specsInfo._id
  370. let data = {
  371. customer: user._id,
  372. shop: that.shop._id,
  373. goods: that.info._id,
  374. goodsSpec: specs_id,
  375. num: that.num
  376. }
  377. if (e == '0') {
  378. let arr = await that.$api(`/cart`, 'POST', data)
  379. if (arr.errcode == '0') {
  380. uni.showToast({
  381. title: `加入购物车成功`,
  382. icon: 'success'
  383. })
  384. that.$refs.popup.close()
  385. } else {
  386. uni.showToast({
  387. title: arr.errmsg,
  388. icon: 'none'
  389. })
  390. }
  391. } else {
  392. let arr = await that.$api(`/util/checkCanBuy`, 'POST', data)
  393. if (arr.errcode == '0') {
  394. if (arr.data.result == true) {
  395. uni.navigateTo({
  396. url: `/pagesHome/order/order?key=${arr.data.key}`
  397. })
  398. } else {
  399. uni.showToast({
  400. title: arr.data.msg,
  401. icon: 'none'
  402. })
  403. }
  404. } else {
  405. uni.showToast({
  406. title: arr.errmsg,
  407. icon: 'none'
  408. })
  409. }
  410. }
  411. } else {
  412. uni.showModal({
  413. title: '提示',
  414. content: '请选择规格',
  415. confirmColor: '#ff0000',
  416. showCancel: false,
  417. success: function(res) {}
  418. });
  419. }
  420. },
  421. fail: function(err) {
  422. uni.navigateTo({
  423. url: `/pages/login/index`
  424. })
  425. }
  426. });
  427. },
  428. // 关闭弹框
  429. toClose() {
  430. const that = this;
  431. that.$refs.popup.close()
  432. },
  433. // 详情数据
  434. async search() {
  435. const that = this;
  436. uni.getStorage({
  437. key: 'token',
  438. success: function(res) {
  439. let user = that.$jwt(res.data);
  440. if (user) that.$set(that, `user`, user);
  441. that.searchOther();
  442. },
  443. fail: function(err) {}
  444. });
  445. let res = await that.$api(`/viewGoods/goodsDetail`, `POST`, {
  446. id: that.id
  447. });
  448. if (res.errcode == '0') {
  449. that.$set(that, `info`, res.data.goods)
  450. that.$set(that, `specs`, res.data.specs)
  451. that.$set(that, `shop`, res.data.shop)
  452. if (res.data.specs.length > 0) that.$set(that.specsInfo, `sell_money`, res.data.specs[0]
  453. .sell_money)
  454. that.$set(that, `bannerList`, res.data.goods.file)
  455. }
  456. },
  457. async searchOther() {
  458. const that = this;
  459. let user = that.user;
  460. // 商品是否收藏
  461. let res = await that.$api(`/storeGoods/check`, `GET`, {
  462. customer: user._id,
  463. goods: that.id
  464. });
  465. if (res.errcode == '0') {
  466. that.$set(that, `collection`, res.data)
  467. }
  468. // 商铺是否收藏
  469. let arr = await that.$api(`/storeShop/check`, `GET`, {
  470. customer: user._id,
  471. shop: that.shop._id
  472. });
  473. if (arr.errcode == '0') {
  474. that.$set(that, `shop_collect`, arr.data)
  475. }
  476. },
  477. // 配置分享内容
  478. configShare() {
  479. const that = this;
  480. let user_id = that.user && that.user._id ? that.user._id : '';
  481. let id = that.info && that.info._id ? that.info._id : ''
  482. let obj = {
  483. title: that.info.name,
  484. path: `/pagesHome/order/detail?id=${id}&user_id=${user_id}`,
  485. imageUrl: that.info.file[0].url
  486. }
  487. that.$set(that, `share`, obj)
  488. }
  489. }
  490. }
  491. </script>
  492. <style lang="scss">
  493. .scrollView {
  494. height: 100vh;
  495. }
  496. .main {
  497. display: flex;
  498. flex-direction: column;
  499. width: 100vw;
  500. height: 100vh;
  501. .onemain {
  502. position: relative;
  503. flex-grow: 1;
  504. background-color: var(--f1Color);
  505. .one {
  506. swiper {
  507. height: 70vw;
  508. }
  509. .list {
  510. border-radius: 5px;
  511. .image {
  512. width: 100%;
  513. height: 100%;
  514. border-radius: 5px;
  515. }
  516. }
  517. }
  518. .two {
  519. padding: 0 0 2vw 0;
  520. background-color: var(--mainColor);
  521. .two_1 {
  522. display: flex;
  523. align-items: center;
  524. border-bottom: 0.5vw solid var(--f9Color);
  525. padding: 2vw;
  526. .money_1 {
  527. color: var(--ff0Color);
  528. text {
  529. margin: 0 1vw 0 0;
  530. }
  531. text:last-child {
  532. font-size: var(--font20Szie);
  533. font-weight: bold;
  534. }
  535. }
  536. .money_2 {
  537. text-decoration: line-through;
  538. color: var(--f99Color);
  539. text {
  540. margin: 0 1vw 0 0;
  541. }
  542. text:last-child {
  543. font-size: var(--font16Size);
  544. }
  545. }
  546. }
  547. .two_2 {
  548. font-size: var(--font18Szie);
  549. font-weight: bold;
  550. padding: 1vw 2vw;
  551. }
  552. .two_3 {
  553. font-size: var(--font16Szie);
  554. color: var(--f85Color);
  555. padding: 1vw 2vw;
  556. }
  557. .two_4 {
  558. font-size: var(--font12Size);
  559. color: var(--fcColor);
  560. padding: 1vw 2vw;
  561. text {
  562. margin: 0 2vw 0 0;
  563. }
  564. }
  565. }
  566. .thr {
  567. .thr_1 {
  568. display: flex;
  569. flex-direction: row;
  570. justify-content: space-between;
  571. margin: 2vw 0 2vw 0;
  572. padding: 2vw;
  573. background-color: var(--mainColor);
  574. }
  575. }
  576. .four {
  577. padding: 2vw;
  578. background-color: var(--mainColor);
  579. .four_1 {
  580. display: flex;
  581. justify-content: space-between;
  582. .image {
  583. width: 15vw;
  584. height: 15vw;
  585. border: 0.1vw solid var(--fcColor);
  586. }
  587. .other {
  588. flex-grow: 1;
  589. margin: 0 0 0 2vw;
  590. .name {
  591. font-size: var(--font16Szie);
  592. }
  593. .other_1 {
  594. font-size: var(--font12Size);
  595. text {
  596. color: var(--fcColor);
  597. margin: 0 2vw 0 0;
  598. }
  599. }
  600. }
  601. }
  602. .four_2 {
  603. display: flex;
  604. flex-direction: row;
  605. justify-content: space-evenly;
  606. padding: 2vw 0;
  607. color: var(--f99Color);
  608. .grade {
  609. font-size: var(--font14Size);
  610. color: var(--f85Color);
  611. text {
  612. color: var(--ff0Color);
  613. }
  614. }
  615. .btn {
  616. border: 0.1vw solid var(--fcColor);
  617. padding: 1vw 6vw;
  618. border-radius: 1vw;
  619. color: var(--f00Color);
  620. }
  621. .btn:last-child {
  622. padding: 1vw 10vw;
  623. }
  624. }
  625. }
  626. .five {
  627. margin: 2vw 0 0 0;
  628. .five_1 {
  629. background-color: var(--mainColor);
  630. padding: 2vw;
  631. image {
  632. width: 100% !important;
  633. }
  634. }
  635. }
  636. }
  637. }
  638. .scroll-view {
  639. position: absolute;
  640. top: 0;
  641. left: 0;
  642. right: 0;
  643. bottom: 0;
  644. .list-scroll-view {
  645. display: flex;
  646. flex-direction: column;
  647. }
  648. }
  649. .scrollView {
  650. height: 100vh;
  651. }
  652. .collect {
  653. position: fixed;
  654. top: 4vw;
  655. right: 5vw;
  656. text {
  657. font-size: 30px;
  658. background-color: #0000005f;
  659. border-radius: 90px;
  660. }
  661. }
  662. .menu {
  663. position: fixed;
  664. bottom: 30vw;
  665. right: 5vw;
  666. text {
  667. font-size: 30px;
  668. background-color: #0000005f;
  669. border-radius: 90px;
  670. }
  671. }
  672. .menu_1 {
  673. position: fixed;
  674. bottom: 40vw;
  675. right: 5vw;
  676. background-color: var(--mainColor);
  677. padding: 2vw;
  678. .title {
  679. display: flex;
  680. padding: 2vw;
  681. border-bottom: 0.1vw solid var(--fcColor);
  682. .image {
  683. width: 7vw;
  684. height: 6vw;
  685. }
  686. .name {
  687. margin: 0 0 0 1vw;
  688. font-size: var(--font14Size);
  689. }
  690. }
  691. }
  692. .backTop {
  693. position: fixed;
  694. bottom: 20vw;
  695. right: 5vw;
  696. text {
  697. font-size: 30px;
  698. background-color: #0000005f;
  699. border-radius: 90px;
  700. }
  701. }
  702. uni-popup {
  703. z-index: 999999 !important;
  704. }
  705. .content {
  706. height: 100vw;
  707. .one {
  708. display: flex;
  709. flex-direction: row;
  710. justify-content: space-between;
  711. margin: 2vw;
  712. padding: 2vw 0;
  713. border-bottom: 1px solid var(--f9Color);
  714. .image {
  715. width: 25vw;
  716. height: 25vw;
  717. margin: 0 2vw 0 0;
  718. }
  719. .other {
  720. display: flex;
  721. flex-direction: column;
  722. flex-grow: 1;
  723. margin: 0 0 0 2vw;
  724. .money {
  725. color: var(--fFB1Color);
  726. font-size: var(--font20Szie);
  727. padding: 2vw 0;
  728. }
  729. .other_1 {
  730. font-size: var(--font14Size);
  731. text {
  732. padding: 0 2vw;
  733. color: var(--f85Color);
  734. }
  735. }
  736. }
  737. }
  738. .two {
  739. margin: 0 2vw;
  740. padding: 2vw 0;
  741. font-size: var(--font12Size);
  742. border-bottom: 1px solid var(--f9Color);
  743. .two_2 {
  744. display: flex;
  745. flex-wrap: wrap;
  746. padding: 1vw;
  747. margin: 1vw 0 0 0;
  748. text {
  749. margin: 1vw 2vw 0 0;
  750. padding: 1vw;
  751. border-radius: 1vw;
  752. background-color: var(--f9Color);
  753. }
  754. .style {
  755. color: var(--mainColor);
  756. background-color: var(--ff0Color);
  757. }
  758. }
  759. }
  760. .thr {
  761. display: flex;
  762. justify-content: flex-start;
  763. margin: 0 2vw;
  764. padding: 2vw 0;
  765. text {
  766. margin: 0 2vw 0 0;
  767. }
  768. text:last-child {
  769. margin: 0 0 0 2vw;
  770. font-size: var(--font12Size);
  771. color: var(--f85Color);
  772. }
  773. }
  774. .btn {
  775. display: flex;
  776. justify-content: space-between;
  777. position: fixed;
  778. bottom: 0;
  779. text {
  780. width: 100vw;
  781. padding: 4vw 0;
  782. background-color: var(--fFB1Color);
  783. text-align: center;
  784. font-size: var(--font18Szie);
  785. color: var(--mainColor);
  786. }
  787. .button {
  788. width: 50vw;
  789. }
  790. .button2 {
  791. width: 50vw;
  792. background-color: #FF8A18;
  793. }
  794. }
  795. }
  796. </style>