detail.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875
  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">
  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'}">
  129. {{type=='0'?'加入购物车':'立即购买'}}
  130. </text>
  131. <text v-if="specsInfo._id&&specsInfo.can_group=='0'" @click="toGroup" class="button2">参团</text>
  132. </view>
  133. </view>
  134. </uni-popup>
  135. </mobile-frame>
  136. </template>
  137. <script>
  138. export default {
  139. data() {
  140. return {
  141. barList: [{
  142. name: '首页',
  143. route: 'pages/home/index',
  144. normal: require('@/static/shouye.png'),
  145. },
  146. {
  147. name: '微店',
  148. route: 'pages/store/index',
  149. normal: require('@/static/store.png'),
  150. },
  151. {
  152. name: '购物车',
  153. route: 'pages/market/index',
  154. normal: require('@/static/market.png'),
  155. },
  156. {
  157. name: '我的',
  158. route: 'pages/my/index',
  159. normal: require('@/static/my.png'),
  160. },
  161. ],
  162. options: [{
  163. icon: 'shop',
  164. text: '店铺',
  165. route: 'pagesHome/shop/index',
  166. },
  167. {
  168. icon: 'cart',
  169. text: '购物车',
  170. route: 'pages/market/index',
  171. },
  172. // {
  173. // icon: 'chat',
  174. // text: '客服',
  175. // }
  176. ],
  177. buttonGroup: [{
  178. text: '加入购物车',
  179. backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
  180. color: '#fff',
  181. type: '0'
  182. },
  183. {
  184. text: '立即购买',
  185. backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
  186. color: '#fff',
  187. type: '1'
  188. }
  189. ],
  190. // 商品id
  191. id: '',
  192. user: {},
  193. // 轮播图
  194. bannerList: [],
  195. // 商品详情
  196. info: {},
  197. // 商店详情
  198. shop: {},
  199. // 规格情况
  200. specs: [],
  201. // 已选
  202. specsInfo: {},
  203. // 是否显示返回顶部
  204. isShow: false,
  205. topItem: '',
  206. // 商品收藏
  207. collection: false,
  208. // 店铺收藏
  209. shop_collect: false,
  210. // 菜单显示
  211. menu: false,
  212. disabled: true,
  213. // 显示文字判断
  214. type: '0',
  215. // 选择规格
  216. isActive: -1,
  217. // 计数器
  218. num: 1,
  219. // 分享
  220. share: {},
  221. };
  222. },
  223. onLoad: async function(e) {
  224. const that = this;
  225. that.$set(that, `id`, e.id || '');
  226. },
  227. onShow: async function() {
  228. const that = this;
  229. await that.search();
  230. await that.configShare();
  231. },
  232. methods: {
  233. //店铺,
  234. // 购物车,客服跳转
  235. onClick(e) {
  236. const that = this;
  237. if (e.index == '0' && e.content.route) {
  238. // 进入店铺
  239. that.toShop();
  240. } else {
  241. uni.reLaunch({
  242. url: `/${e.content.route}`
  243. })
  244. }
  245. },
  246. // 进入店铺
  247. toShop() {
  248. const that = this;
  249. uni.navigateTo({
  250. url: `/pagesHome/shop/index?id=${that.shop._id}`
  251. })
  252. },
  253. // 公共跳转
  254. toCommon(e) {
  255. uni.navigateTo({
  256. url: `/${e}`
  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. // uni.showToast({
  445. // title: '无用户登录无法查看收藏信息',
  446. // icon: 'none'
  447. // })
  448. }
  449. });
  450. let res = await that.$api(`/viewGoods/goodsDetail`, `POST`, {
  451. id: that.id
  452. });
  453. if (res.errcode == '0') {
  454. that.$set(that, `info`, res.data.goods)
  455. that.$set(that, `specs`, res.data.specs)
  456. that.$set(that, `shop`, res.data.shop)
  457. if (res.data.specs.length > 0) that.$set(that.specsInfo, `sell_money`, res.data.specs[0]
  458. .sell_money)
  459. that.$set(that, `bannerList`, res.data.goods.file)
  460. }
  461. },
  462. async searchOther() {
  463. const that = this;
  464. let user = that.user;
  465. // 商品是否收藏
  466. let res = await that.$api(`/storeGoods/check`, `GET`, {
  467. customer: user._id,
  468. goods: that.id
  469. });
  470. if (res.errcode == '0') {
  471. that.$set(that, `collection`, res.data)
  472. }
  473. // 商铺是否收藏
  474. let arr = await that.$api(`/storeShop/check`, `GET`, {
  475. customer: user._id,
  476. shop: that.shop._id
  477. });
  478. if (arr.errcode == '0') {
  479. that.$set(that, `shop_collect`, arr.data)
  480. }
  481. },
  482. // 配置分享内容
  483. configShare() {
  484. const that = this;
  485. let user_id = that.user && that.user._id ? that.user._id : '';
  486. let id = that.info && that.info._id ? that.info._id : ''
  487. let obj = {
  488. title: that.info.name,
  489. path: `/pagesHome/order/detail?id=${id}&user_id=${user_id}`,
  490. imageUrl: that.info.file[0].url
  491. }
  492. that.$set(that, `share`, obj)
  493. }
  494. }
  495. }
  496. </script>
  497. <style lang="scss">
  498. .scrollView {
  499. height: 100vh;
  500. }
  501. .main {
  502. display: flex;
  503. flex-direction: column;
  504. width: 100vw;
  505. height: 100vh;
  506. .onemain {
  507. position: relative;
  508. flex-grow: 1;
  509. background-color: var(--f1Color);
  510. .one {
  511. swiper {
  512. height: 70vw;
  513. }
  514. .list {
  515. border-radius: 5px;
  516. .image {
  517. width: 100%;
  518. height: 100%;
  519. border-radius: 5px;
  520. }
  521. }
  522. }
  523. .two {
  524. padding: 0 0 2vw 0;
  525. background-color: var(--mainColor);
  526. .two_1 {
  527. display: flex;
  528. align-items: center;
  529. border-bottom: 0.5vw solid var(--f9Color);
  530. padding: 2vw;
  531. .money_1 {
  532. color: var(--ff0Color);
  533. text {
  534. margin: 0 1vw 0 0;
  535. }
  536. text:last-child {
  537. font-size: var(--font20Szie);
  538. font-weight: bold;
  539. }
  540. }
  541. .money_2 {
  542. text-decoration: line-through;
  543. color: var(--f99Color);
  544. text {
  545. margin: 0 1vw 0 0;
  546. }
  547. text:last-child {
  548. font-size: var(--font16Size);
  549. }
  550. }
  551. }
  552. .two_2 {
  553. font-size: var(--font18Szie);
  554. font-weight: bold;
  555. padding: 1vw 2vw;
  556. }
  557. .two_3 {
  558. font-size: var(--font16Szie);
  559. color: var(--f85Color);
  560. padding: 1vw 2vw;
  561. }
  562. .two_4 {
  563. font-size: var(--font12Size);
  564. color: var(--fcColor);
  565. padding: 1vw 2vw;
  566. text {
  567. margin: 0 2vw 0 0;
  568. }
  569. }
  570. }
  571. .thr {
  572. .thr_1 {
  573. display: flex;
  574. flex-direction: row;
  575. justify-content: space-between;
  576. margin: 2vw 0 2vw 0;
  577. padding: 2vw;
  578. background-color: var(--mainColor);
  579. }
  580. }
  581. .four {
  582. padding: 2vw;
  583. background-color: var(--mainColor);
  584. .four_1 {
  585. display: flex;
  586. justify-content: space-between;
  587. .image {
  588. width: 15vw;
  589. height: 15vw;
  590. border: 0.1vw solid var(--fcColor);
  591. }
  592. .other {
  593. flex-grow: 1;
  594. margin: 0 0 0 2vw;
  595. .name {
  596. font-size: var(--font16Szie);
  597. }
  598. .other_1 {
  599. font-size: var(--font12Size);
  600. text {
  601. color: var(--fcColor);
  602. margin: 0 2vw 0 0;
  603. }
  604. }
  605. }
  606. }
  607. .four_2 {
  608. display: flex;
  609. flex-direction: row;
  610. justify-content: space-evenly;
  611. padding: 2vw 0;
  612. color: var(--f99Color);
  613. .grade {
  614. font-size: var(--font14Size);
  615. color: var(--f85Color);
  616. text {
  617. color: var(--ff0Color);
  618. }
  619. }
  620. .btn {
  621. border: 0.1vw solid var(--fcColor);
  622. padding: 1vw 6vw;
  623. border-radius: 1vw;
  624. color: var(--f00Color);
  625. }
  626. .btn:last-child {
  627. padding: 1vw 10vw;
  628. }
  629. }
  630. }
  631. .five {
  632. margin: 2vw 0 0 0;
  633. .five_1 {
  634. padding: 2vw;
  635. background-color: var(--mainColor);
  636. font-size: var(--font18Szie);
  637. color: var(--f99Color);
  638. }
  639. .five_2 {
  640. padding: 0 2vw;
  641. background-color: var(--mainColor);
  642. text-align: center;
  643. }
  644. }
  645. }
  646. }
  647. .scroll-view {
  648. position: absolute;
  649. top: 0;
  650. left: 0;
  651. right: 0;
  652. bottom: 0;
  653. .list-scroll-view {
  654. display: flex;
  655. flex-direction: column;
  656. }
  657. }
  658. .scrollView {
  659. height: 100vh;
  660. }
  661. .collect {
  662. position: fixed;
  663. top: 4vw;
  664. right: 5vw;
  665. text {
  666. font-size: 30px;
  667. background-color: #0000005f;
  668. border-radius: 90px;
  669. }
  670. }
  671. .menu {
  672. position: fixed;
  673. bottom: 30vw;
  674. right: 5vw;
  675. text {
  676. font-size: 30px;
  677. background-color: #0000005f;
  678. border-radius: 90px;
  679. }
  680. }
  681. .menu_1 {
  682. position: fixed;
  683. bottom: 40vw;
  684. right: 5vw;
  685. background-color: var(--mainColor);
  686. padding: 2vw;
  687. .title {
  688. display: flex;
  689. padding: 2vw;
  690. border-bottom: 0.1vw solid var(--fcColor);
  691. .image {
  692. width: 7vw;
  693. height: 6vw;
  694. }
  695. .name {
  696. margin: 0 0 0 1vw;
  697. font-size: var(--font14Size);
  698. }
  699. }
  700. }
  701. .backTop {
  702. position: fixed;
  703. bottom: 20vw;
  704. right: 5vw;
  705. text {
  706. font-size: 30px;
  707. background-color: #0000005f;
  708. border-radius: 90px;
  709. }
  710. }
  711. uni-popup {
  712. z-index: 999999 !important;
  713. }
  714. .content {
  715. height: 100vw;
  716. .one {
  717. display: flex;
  718. flex-direction: row;
  719. justify-content: space-between;
  720. margin: 2vw;
  721. padding: 2vw 0;
  722. border-bottom: 1px solid var(--f9Color);
  723. .image {
  724. width: 25vw;
  725. height: 25vw;
  726. margin: 0 2vw 0 0;
  727. }
  728. .other {
  729. display: flex;
  730. flex-direction: column;
  731. flex-grow: 1;
  732. margin: 0 0 0 2vw;
  733. .money {
  734. color: var(--fFB1Color);
  735. font-size: var(--font20Szie);
  736. padding: 2vw 0;
  737. }
  738. .other_1 {
  739. font-size: var(--font14Size);
  740. text {
  741. padding: 0 2vw;
  742. color: var(--f85Color);
  743. }
  744. }
  745. }
  746. }
  747. .two {
  748. margin: 0 2vw;
  749. padding: 2vw 0;
  750. font-size: var(--font12Size);
  751. border-bottom: 1px solid var(--f9Color);
  752. .two_2 {
  753. padding: 1vw;
  754. text {
  755. margin: 0 2vw 0 0;
  756. padding: 1vw;
  757. border-radius: 1vw;
  758. background-color: var(--f9Color);
  759. }
  760. .style {
  761. color: var(--mainColor);
  762. background-color: var(--ff0Color);
  763. }
  764. }
  765. }
  766. .thr {
  767. display: flex;
  768. justify-content: flex-start;
  769. margin: 0 2vw;
  770. padding: 2vw 0;
  771. text {
  772. margin: 0 2vw 0 0;
  773. }
  774. text:last-child {
  775. margin: 0 0 0 2vw;
  776. font-size: var(--font12Size);
  777. color: var(--f85Color);
  778. }
  779. }
  780. .btn {
  781. display: flex;
  782. justify-content: space-between;
  783. position: fixed;
  784. bottom: 0;
  785. text {
  786. width: 100vw;
  787. padding: 4vw 0;
  788. background-color: var(--fFB1Color);
  789. text-align: center;
  790. font-size: var(--font18Szie);
  791. color: var(--mainColor);
  792. }
  793. .button {
  794. width: 50vw;
  795. }
  796. .button2 {
  797. width: 50vw;
  798. padding: 4vw 0;
  799. background-color: #FF8A18;
  800. text-align: center;
  801. font-size: var(--font18Szie);
  802. color: var(--mainColor);
  803. }
  804. }
  805. }
  806. </style>