detail.vue 18 KB

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