detail.vue 18 KB

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