detail.vue 18 KB

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