detail.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866
  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. });
  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. padding: 2vw;
  630. background-color: var(--mainColor);
  631. font-size: var(--font18Szie);
  632. color: var(--f99Color);
  633. }
  634. .five_2 {
  635. padding: 0 2vw;
  636. background-color: var(--mainColor);
  637. text-align: center;
  638. }
  639. }
  640. }
  641. }
  642. .scroll-view {
  643. position: absolute;
  644. top: 0;
  645. left: 0;
  646. right: 0;
  647. bottom: 0;
  648. .list-scroll-view {
  649. display: flex;
  650. flex-direction: column;
  651. }
  652. }
  653. .scrollView {
  654. height: 100vh;
  655. }
  656. .collect {
  657. position: fixed;
  658. top: 4vw;
  659. right: 5vw;
  660. text {
  661. font-size: 30px;
  662. background-color: #0000005f;
  663. border-radius: 90px;
  664. }
  665. }
  666. .menu {
  667. position: fixed;
  668. bottom: 30vw;
  669. right: 5vw;
  670. text {
  671. font-size: 30px;
  672. background-color: #0000005f;
  673. border-radius: 90px;
  674. }
  675. }
  676. .menu_1 {
  677. position: fixed;
  678. bottom: 40vw;
  679. right: 5vw;
  680. background-color: var(--mainColor);
  681. padding: 2vw;
  682. .title {
  683. display: flex;
  684. padding: 2vw;
  685. border-bottom: 0.1vw solid var(--fcColor);
  686. .image {
  687. width: 7vw;
  688. height: 6vw;
  689. }
  690. .name {
  691. margin: 0 0 0 1vw;
  692. font-size: var(--font14Size);
  693. }
  694. }
  695. }
  696. .backTop {
  697. position: fixed;
  698. bottom: 20vw;
  699. right: 5vw;
  700. text {
  701. font-size: 30px;
  702. background-color: #0000005f;
  703. border-radius: 90px;
  704. }
  705. }
  706. uni-popup {
  707. z-index: 999999 !important;
  708. }
  709. .content {
  710. height: 100vw;
  711. .one {
  712. display: flex;
  713. flex-direction: row;
  714. justify-content: space-between;
  715. margin: 2vw;
  716. padding: 2vw 0;
  717. border-bottom: 1px solid var(--f9Color);
  718. .image {
  719. width: 25vw;
  720. height: 25vw;
  721. margin: 0 2vw 0 0;
  722. }
  723. .other {
  724. display: flex;
  725. flex-direction: column;
  726. flex-grow: 1;
  727. margin: 0 0 0 2vw;
  728. .money {
  729. color: var(--fFB1Color);
  730. font-size: var(--font20Szie);
  731. padding: 2vw 0;
  732. }
  733. .other_1 {
  734. font-size: var(--font14Size);
  735. text {
  736. padding: 0 2vw;
  737. color: var(--f85Color);
  738. }
  739. }
  740. }
  741. }
  742. .two {
  743. margin: 0 2vw;
  744. padding: 2vw 0;
  745. font-size: var(--font12Size);
  746. border-bottom: 1px solid var(--f9Color);
  747. .two_2 {
  748. padding: 1vw;
  749. text {
  750. margin: 0 2vw 0 0;
  751. padding: 1vw;
  752. border-radius: 1vw;
  753. background-color: var(--f9Color);
  754. }
  755. .style {
  756. color: var(--mainColor);
  757. background-color: var(--ff0Color);
  758. }
  759. }
  760. }
  761. .thr {
  762. display: flex;
  763. justify-content: flex-start;
  764. margin: 0 2vw;
  765. padding: 2vw 0;
  766. text {
  767. margin: 0 2vw 0 0;
  768. }
  769. text:last-child {
  770. margin: 0 0 0 2vw;
  771. font-size: var(--font12Size);
  772. color: var(--f85Color);
  773. }
  774. }
  775. .btn {
  776. display: flex;
  777. justify-content: space-between;
  778. position: fixed;
  779. bottom: 0;
  780. text {
  781. width: 100vw;
  782. padding: 4vw 0;
  783. background-color: var(--fFB1Color);
  784. text-align: center;
  785. font-size: var(--font18Szie);
  786. color: var(--mainColor);
  787. }
  788. .button {
  789. width: 50vw;
  790. }
  791. .button2 {
  792. width: 50vw;
  793. background-color: #FF8A18;
  794. }
  795. }
  796. }
  797. </style>