detail.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  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. },
  220. onLoad: async function(e) {
  221. const that = this;
  222. that.$set(that, `id`, e.id || '');
  223. },
  224. onShow: async function() {
  225. const that = this;
  226. await that.search();
  227. await that.configShare();
  228. },
  229. methods: {
  230. //店铺,
  231. // 购物车,客服跳转
  232. onClick(e) {
  233. const that = this;
  234. if (e.index == '0' && e.content.route) {
  235. // 进入店铺
  236. that.toShop();
  237. } else {
  238. uni.reLaunch({
  239. url: `/${e.content.route}`
  240. })
  241. }
  242. },
  243. // 进入店铺
  244. toShop() {
  245. const that = this;
  246. uni.navigateTo({
  247. url: `/pagesHome/shop/index?id=${that.shop._id}`
  248. })
  249. },
  250. // 商品评价
  251. toAppraise(e) {
  252. const that = this;
  253. uni.navigateTo({
  254. url: `/pagesHome/order/appraise?id=${that.id}`
  255. })
  256. },
  257. // 收藏
  258. async toCollect() {
  259. const that = this;
  260. let user = that.user;
  261. if (user) {
  262. let res = await that.$api(`/storeGoods`, `POST`, {
  263. customer: user._id,
  264. goods: that.id
  265. });
  266. if (res.errcode == '0') {
  267. uni.showToast({
  268. title: res.data.msg,
  269. icon: 'none'
  270. })
  271. that.$set(that, `collection`, res.data.result)
  272. }
  273. } else {
  274. uni.showToast({
  275. title: '无用户登录无法收藏商品',
  276. icon: 'none'
  277. })
  278. }
  279. },
  280. // 关注商铺
  281. async shopCollect() {
  282. const that = this;
  283. let user = that.user;
  284. if (user && user._id) {
  285. let res = await that.$api(`/storeShop`, `POST`, {
  286. customer: user._id,
  287. shop: that.shop._id
  288. });
  289. if (res.errcode == '0') {
  290. uni.showToast({
  291. title: res.data.msg,
  292. icon: 'none'
  293. })
  294. that.$set(that, `shop_collect`, res.data.result)
  295. }
  296. } else {
  297. uni.showToast({
  298. title: '无用户登录无法关注商铺',
  299. icon: 'none'
  300. })
  301. }
  302. },
  303. // 参团
  304. toGroup() {
  305. const that = this;
  306. let specs_id = that.specsInfo._id
  307. uni.navigateTo({
  308. url: `/pagesHome/group/index?specs_id=${specs_id}&goods_id=${that.id}`
  309. })
  310. },
  311. //主菜单跳转
  312. toPath(e) {
  313. if (e && e.route) uni.reLaunch({
  314. url: `/${e.route}`
  315. })
  316. },
  317. // 菜单展开
  318. toMenu() {
  319. const that = this;
  320. that.menu = !that.menu
  321. },
  322. // 计算高度
  323. handleScroll(e) {
  324. const that = this;
  325. let scrollTop = e.detail.scrollTop;
  326. that.isShow = scrollTop > 500;
  327. that.topItem = '';
  328. },
  329. // 返回顶部
  330. backTop() {
  331. const that = this;
  332. that.topItem = 'top'
  333. },
  334. //加入购物车,立即购买弹窗
  335. buttonClick(e) {
  336. const that = this;
  337. if (e && e.content) that.type = e.content.type;
  338. that.$refs.popup.open();
  339. },
  340. // 选择规格
  341. toChoose() {
  342. const that = this;
  343. that.type = '1';
  344. that.$refs.popup.open();
  345. },
  346. // 修改样式
  347. toStyle(e, index) {
  348. const that = this;
  349. that.$set(that, `isActive`, index)
  350. that.$set(that, `specsInfo`, e)
  351. that.disabled = false;
  352. },
  353. // 计数器
  354. toCount(e) {
  355. const that = this;
  356. that.num = e;
  357. },
  358. // 立即购买
  359. toBuy(e) {
  360. const that = this;
  361. uni.getStorage({
  362. key: 'token',
  363. success: async function(res) {
  364. let user = that.$jwt(res.data);
  365. that.$set(that, `user`, user)
  366. if (that.specsInfo._id) {
  367. let specs_id = that.specsInfo._id
  368. let data = {
  369. customer: user._id,
  370. shop: that.shop._id,
  371. goods: that.info._id,
  372. goodsSpec: specs_id,
  373. num: that.num
  374. }
  375. if (e == '0') {
  376. let arr = await that.$api(`/cart`, 'POST', data)
  377. if (arr.errcode == '0') {
  378. uni.showToast({
  379. title: `加入购物车成功`,
  380. icon: 'success'
  381. })
  382. that.$refs.popup.close()
  383. } else {
  384. uni.showToast({
  385. title: arr.errmsg,
  386. icon: 'none'
  387. })
  388. }
  389. } else {
  390. let arr = await that.$api(`/util/checkCanBuy`, 'POST', data)
  391. if (arr.errcode == '0') {
  392. if (arr.data.result == true) {
  393. uni.navigateTo({
  394. url: `/pagesHome/order/order?key=${arr.data.key}`
  395. })
  396. } else {
  397. uni.showToast({
  398. title: arr.data.msg,
  399. icon: 'none'
  400. })
  401. }
  402. } else {
  403. uni.showToast({
  404. title: arr.errmsg,
  405. icon: 'none'
  406. })
  407. }
  408. }
  409. } else {
  410. uni.showModal({
  411. title: '提示',
  412. content: '请选择规格',
  413. confirmColor: '#ff0000',
  414. showCancel: false,
  415. success: function(res) {}
  416. });
  417. }
  418. },
  419. fail: function(err) {
  420. uni.navigateTo({
  421. url: `/pages/login/index`
  422. })
  423. }
  424. });
  425. },
  426. // 关闭弹框
  427. toClose() {
  428. const that = this;
  429. that.$refs.popup.close()
  430. },
  431. // 详情数据
  432. async search() {
  433. const that = this;
  434. uni.getStorage({
  435. key: 'token',
  436. success: function(res) {
  437. let user = that.$jwt(res.data);
  438. if (user) that.$set(that, `user`, user);
  439. that.searchOther();
  440. },
  441. fail: function(err) {}
  442. });
  443. let res = await that.$api(`/viewGoods/goodsDetail`, `POST`, {
  444. id: that.id
  445. });
  446. if (res.errcode == '0') {
  447. that.$set(that, `info`, res.data.goods)
  448. that.$set(that, `specs`, res.data.specs)
  449. that.$set(that, `shop`, res.data.shop)
  450. if (res.data.specs.length > 0) that.$set(that.specsInfo, `sell_money`, res.data.specs[0]
  451. .sell_money)
  452. that.$set(that, `bannerList`, res.data.goods.file)
  453. }
  454. },
  455. async searchOther() {
  456. const that = this;
  457. let user = that.user;
  458. // 商品是否收藏
  459. let res = await that.$api(`/storeGoods/check`, `GET`, {
  460. customer: user._id,
  461. goods: that.id
  462. });
  463. if (res.errcode == '0') {
  464. that.$set(that, `collection`, res.data)
  465. }
  466. // 商铺是否收藏
  467. let arr = await that.$api(`/storeShop/check`, `GET`, {
  468. customer: user._id,
  469. shop: that.shop._id
  470. });
  471. if (arr.errcode == '0') {
  472. that.$set(that, `shop_collect`, arr.data)
  473. }
  474. },
  475. // 配置分享内容
  476. configShare() {
  477. const that = this;
  478. let user_id = that.user && that.user._id ? that.user._id : '';
  479. let id = that.info && that.info._id ? that.info._id : '';
  480. that.$config.share = {
  481. title: that.info.name,
  482. path: `/pagesHome/order/detail?id=${id}&user_id=${user_id}`,
  483. imageUrl: that.info.file[0].url
  484. }
  485. }
  486. }
  487. }
  488. </script>
  489. <style lang="scss">
  490. .scrollView {
  491. height: 100vh;
  492. }
  493. .main {
  494. display: flex;
  495. flex-direction: column;
  496. width: 100vw;
  497. height: 100vh;
  498. .onemain {
  499. position: relative;
  500. flex-grow: 1;
  501. background-color: var(--f1Color);
  502. .one {
  503. swiper {
  504. height: 70vw;
  505. }
  506. .list {
  507. border-radius: 5px;
  508. .image {
  509. width: 100%;
  510. height: 100%;
  511. border-radius: 5px;
  512. }
  513. }
  514. }
  515. .two {
  516. padding: 0 0 2vw 0;
  517. background-color: var(--mainColor);
  518. .two_1 {
  519. display: flex;
  520. align-items: center;
  521. border-bottom: 0.5vw solid var(--f9Color);
  522. padding: 2vw;
  523. .money_1 {
  524. color: var(--ff0Color);
  525. text {
  526. margin: 0 1vw 0 0;
  527. }
  528. text:last-child {
  529. font-size: var(--font20Szie);
  530. font-weight: bold;
  531. }
  532. }
  533. .money_2 {
  534. text-decoration: line-through;
  535. color: var(--f99Color);
  536. text {
  537. margin: 0 1vw 0 0;
  538. }
  539. text:last-child {
  540. font-size: var(--font16Size);
  541. }
  542. }
  543. }
  544. .two_2 {
  545. font-size: var(--font18Szie);
  546. font-weight: bold;
  547. padding: 1vw 2vw;
  548. }
  549. .two_3 {
  550. font-size: var(--font16Szie);
  551. color: var(--f85Color);
  552. padding: 1vw 2vw;
  553. }
  554. .two_4 {
  555. font-size: var(--font12Size);
  556. color: var(--fcColor);
  557. padding: 1vw 2vw;
  558. text {
  559. margin: 0 2vw 0 0;
  560. }
  561. }
  562. }
  563. .thr {
  564. .thr_1 {
  565. display: flex;
  566. flex-direction: row;
  567. justify-content: space-between;
  568. margin: 2vw 0 2vw 0;
  569. padding: 2vw;
  570. background-color: var(--mainColor);
  571. }
  572. }
  573. .four {
  574. padding: 2vw;
  575. background-color: var(--mainColor);
  576. .four_1 {
  577. display: flex;
  578. justify-content: space-between;
  579. .image {
  580. width: 15vw;
  581. height: 15vw;
  582. border: 0.1vw solid var(--fcColor);
  583. }
  584. .other {
  585. flex-grow: 1;
  586. margin: 0 0 0 2vw;
  587. .name {
  588. font-size: var(--font16Szie);
  589. }
  590. .other_1 {
  591. font-size: var(--font12Size);
  592. text {
  593. color: var(--fcColor);
  594. margin: 0 2vw 0 0;
  595. }
  596. }
  597. }
  598. }
  599. .four_2 {
  600. display: flex;
  601. flex-direction: row;
  602. justify-content: space-evenly;
  603. padding: 2vw 0;
  604. color: var(--f99Color);
  605. .grade {
  606. font-size: var(--font14Size);
  607. color: var(--f85Color);
  608. text {
  609. color: var(--ff0Color);
  610. }
  611. }
  612. .btn {
  613. border: 0.1vw solid var(--fcColor);
  614. padding: 1vw 6vw;
  615. border-radius: 1vw;
  616. color: var(--f00Color);
  617. }
  618. .btn:last-child {
  619. padding: 1vw 10vw;
  620. }
  621. }
  622. }
  623. .five {
  624. margin: 2vw 0 0 0;
  625. .five_1 {
  626. background-color: var(--mainColor);
  627. padding: 2vw;
  628. image {
  629. width: 100% !important;
  630. }
  631. }
  632. }
  633. }
  634. }
  635. .scroll-view {
  636. position: absolute;
  637. top: 0;
  638. left: 0;
  639. right: 0;
  640. bottom: 0;
  641. .list-scroll-view {
  642. display: flex;
  643. flex-direction: column;
  644. }
  645. }
  646. .scrollView {
  647. height: 100vh;
  648. }
  649. .collect {
  650. position: fixed;
  651. top: 4vw;
  652. right: 5vw;
  653. text {
  654. font-size: 30px;
  655. background-color: #0000005f;
  656. border-radius: 90px;
  657. }
  658. }
  659. .menu {
  660. position: fixed;
  661. bottom: 30vw;
  662. right: 5vw;
  663. text {
  664. font-size: 30px;
  665. background-color: #0000005f;
  666. border-radius: 90px;
  667. }
  668. }
  669. .menu_1 {
  670. position: fixed;
  671. bottom: 40vw;
  672. right: 5vw;
  673. background-color: var(--mainColor);
  674. padding: 2vw;
  675. .title {
  676. display: flex;
  677. padding: 2vw;
  678. border-bottom: 0.1vw solid var(--fcColor);
  679. .image {
  680. width: 7vw;
  681. height: 6vw;
  682. }
  683. .name {
  684. margin: 0 0 0 1vw;
  685. font-size: var(--font14Size);
  686. }
  687. }
  688. }
  689. .backTop {
  690. position: fixed;
  691. bottom: 20vw;
  692. right: 5vw;
  693. text {
  694. font-size: 30px;
  695. background-color: #0000005f;
  696. border-radius: 90px;
  697. }
  698. }
  699. uni-popup {
  700. z-index: 999999 !important;
  701. }
  702. .content {
  703. height: 100vw;
  704. .one {
  705. display: flex;
  706. flex-direction: row;
  707. justify-content: space-between;
  708. margin: 2vw;
  709. padding: 2vw 0;
  710. border-bottom: 1px solid var(--f9Color);
  711. .image {
  712. width: 25vw;
  713. height: 25vw;
  714. margin: 0 2vw 0 0;
  715. }
  716. .other {
  717. display: flex;
  718. flex-direction: column;
  719. flex-grow: 1;
  720. margin: 0 0 0 2vw;
  721. .money {
  722. color: var(--fFB1Color);
  723. font-size: var(--font20Szie);
  724. padding: 2vw 0;
  725. }
  726. .other_1 {
  727. font-size: var(--font14Size);
  728. text {
  729. padding: 0 2vw;
  730. color: var(--f85Color);
  731. }
  732. }
  733. }
  734. }
  735. .two {
  736. margin: 0 2vw;
  737. padding: 2vw 0;
  738. font-size: var(--font12Size);
  739. border-bottom: 1px solid var(--f9Color);
  740. .two_2 {
  741. display: flex;
  742. flex-wrap: wrap;
  743. padding: 1vw;
  744. margin: 1vw 0 0 0;
  745. text {
  746. margin: 1vw 2vw 0 0;
  747. padding: 1vw;
  748. border-radius: 1vw;
  749. background-color: var(--f9Color);
  750. }
  751. .style {
  752. color: var(--mainColor);
  753. background-color: var(--ff0Color);
  754. }
  755. }
  756. }
  757. .thr {
  758. display: flex;
  759. justify-content: flex-start;
  760. margin: 0 2vw;
  761. padding: 2vw 0;
  762. text {
  763. margin: 0 2vw 0 0;
  764. }
  765. text:last-child {
  766. margin: 0 0 0 2vw;
  767. font-size: var(--font12Size);
  768. color: var(--f85Color);
  769. }
  770. }
  771. .btn {
  772. display: flex;
  773. justify-content: space-between;
  774. position: fixed;
  775. bottom: 0;
  776. text {
  777. width: 100vw;
  778. padding: 4vw 0;
  779. background-color: var(--fFB1Color);
  780. text-align: center;
  781. font-size: var(--font18Szie);
  782. color: var(--mainColor);
  783. }
  784. .button {
  785. width: 50vw;
  786. }
  787. .button2 {
  788. width: 50vw;
  789. background-color: #FF8A18;
  790. }
  791. }
  792. }
  793. </style>