detail.vue 19 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" @scroll="handleScroll">
  6. <view class="list-scroll-view" id="top">
  7. <view class="one">
  8. <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff" indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
  9. <swiper-item class="list" v-for="(item,index) in bannerList" :key="index">
  10. <image class="image" :src="item.url" mode="">
  11. </image>
  12. </swiper-item>
  13. </swiper>
  14. </view>
  15. <view class="two">
  16. <view class="two_1">
  17. <view class="money_1">
  18. <text>¥</text>
  19. <text>{{specs&&specs.length>0?specs[0].sell_money:''}}</text>
  20. </view>
  21. <view class="money_2">
  22. <text>¥</text>
  23. <text>{{specs&&specs.length>0?specs[0].flow_money:''}}</text>
  24. </view>
  25. </view>
  26. <view class="two_2">{{info.name}}</view>
  27. <view class="two_3">{{info.shot_brief}}</view>
  28. <view class="two_4">
  29. <text>运费{{specs&&specs.length>0?specs[0].freight:''}}元</text>
  30. <text>{{info.send_time}}内发货</text>
  31. </view>
  32. </view>
  33. <view class="thr">
  34. <view class="thr_1" @click="toChoose">
  35. <view class="title">选择规格</view>
  36. <text class="iconfont icon-jiantouyou"></text>
  37. </view>
  38. <view class="thr_1" @click="toAppraise(info)">
  39. <view class="title">商品评价({{info.comment||0}})</view>
  40. <text class="iconfont icon-jiantouyou"></text>
  41. </view>
  42. </view>
  43. <view class="four">
  44. <view class="four_1">
  45. <image class="image" :src="shop.logo&&shop.logo.length>0?shop.logo[0].url:''"></image>
  46. <view class="other">
  47. <view class="name">{{shop.name}}</view>
  48. <view class="other_1"><text>宝贝数</text>{{shop.num||0}}</view>
  49. </view>
  50. </view>
  51. <view class="four_2">
  52. <view class="grade">商品:<text>{{shop.goods_score||5}}</text></view>|
  53. <view class="grade">发货:<text>{{shop.send_score||5}}</text></view>|
  54. <view class="grade">服务:<text>{{shop.service_score||5}}</text></view>
  55. </view>
  56. <view class="four_2">
  57. <view class="btn" @tap="toShop('pagesHome/shop/index')">进入店铺</view>
  58. <view class="btn" @tap="shopCollect">{{shop_collect==true?'已关注':'关注'}}</view>
  59. </view>
  60. </view>
  61. <view class="five">
  62. <view class="five_1">
  63. <!-- <rich-text :nodes="info.brief"></rich-text> -->
  64. <u-parse :content="info.brief"></u-parse>
  65. </view>
  66. </view>
  67. </view>
  68. </scroll-view>
  69. </view>
  70. <view class="foot">
  71. <uni-goods-nav :options="options" :button-group="buttonGroup" @click="onClick" @buttonClick="buttonClick" />
  72. </view>
  73. </view>
  74. <view class="collect">
  75. <text v-if="!collection" @click="toCollect" class="iconfont icon-yduishoucangkongxin"></text>
  76. <text v-else @click="toCollect" class="iconfont icon-yduishoucangshixin-copy"></text>
  77. </view>
  78. <view class="menu">
  79. <text @click="toMenu" class="iconfont icon-gengduo"></text>
  80. </view>
  81. <view class="menu_1" v-if="menu">
  82. <view class="title" v-for="(item,index) in barList" :key="index" @click="toPath(item)">
  83. <image class="image" :src="item.normal"></image>
  84. <view class="name">{{item.name}}</view>
  85. </view>
  86. </view>
  87. <view class="backTop" v-if="isShow==true">
  88. <text @click="backTop" class="iconfont icon-fanhuidingbu"></text>
  89. </view>
  90. <uni-popup ref="popup" background-color="#fff" type="bottom">
  91. <view class="content">
  92. <view class="one">
  93. <image class="image" v-if="specsInfo.file&&specsInfo.file.length>0" :src="specsInfo.file&&specsInfo.file.length>0?specsInfo.file[0].url:''"></image>
  94. <image class="image" v-else :src="info.file&&info.file.length>0?info.file[0].url:''"></image>
  95. <view class="other">
  96. <view class="money">
  97. <text>¥</text>
  98. <text>{{specsInfo.sell_money}}</text>
  99. </view>
  100. <view class="other_1">
  101. 已选: <text>{{specsInfo.name}}</text>
  102. </view>
  103. </view>
  104. <view class="btn">
  105. <text @click="toClose" class="iconfont icon-shanchu"></text>
  106. </view>
  107. </view>
  108. <view class="two">
  109. <view class="two_1">规格</view>
  110. <view class="two_2">
  111. <text v-for="(item,index) in specs" :key="index" @click="toStyle(item,index)" :class="{ 'style': isActive==index}">{{item.name}}
  112. </text>
  113. </view>
  114. </view>
  115. <view class="thr">
  116. <text>数量</text>
  117. <view class="count">
  118. <uni-number-box :min="1" :max="specsInfo.num" :disabled="disabled" v-model="num" @change="toCount">
  119. </uni-number-box>
  120. </view>
  121. <text>库存{{specsInfo.num||0}}</text>
  122. </view>
  123. <view class="btn">
  124. <text @click="toBuy(type)" :class="{ 'button': specsInfo._id&&specsInfo.can_group=='0'&&type=='1'}">
  125. {{type=='0'?'加入购物车':'立即购买'}}
  126. </text>
  127. <text v-if="specsInfo._id&&specsInfo.can_group=='0'&&type=='1'" @click="toGroup" class="button2">参团</text>
  128. </view>
  129. </view>
  130. </uni-popup>
  131. </mobile-frame>
  132. </template>
  133. <script>
  134. import uParse from '@/components/u-parse/u-parse.vue'
  135. export default {
  136. components: {
  137. uParse
  138. },
  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. toAppraise(e) {
  255. const that = this;
  256. uni.navigateTo({
  257. url: `/pagesHome/order/appraise?id=${that.id}`
  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. background-color: var(--mainColor);
  631. padding: 2vw;
  632. image {
  633. width: 100% !important;
  634. }
  635. }
  636. }
  637. }
  638. }
  639. .scroll-view {
  640. position: absolute;
  641. top: 0;
  642. left: 0;
  643. right: 0;
  644. bottom: 0;
  645. .list-scroll-view {
  646. display: flex;
  647. flex-direction: column;
  648. }
  649. }
  650. .scrollView {
  651. height: 100vh;
  652. }
  653. .collect {
  654. position: fixed;
  655. top: 4vw;
  656. right: 5vw;
  657. text {
  658. font-size: 30px;
  659. background-color: #0000005f;
  660. border-radius: 90px;
  661. }
  662. }
  663. .menu {
  664. position: fixed;
  665. bottom: 30vw;
  666. right: 5vw;
  667. text {
  668. font-size: 30px;
  669. background-color: #0000005f;
  670. border-radius: 90px;
  671. }
  672. }
  673. .menu_1 {
  674. position: fixed;
  675. bottom: 40vw;
  676. right: 5vw;
  677. background-color: var(--mainColor);
  678. padding: 2vw;
  679. .title {
  680. display: flex;
  681. padding: 2vw;
  682. border-bottom: 0.1vw solid var(--fcColor);
  683. .image {
  684. width: 7vw;
  685. height: 6vw;
  686. }
  687. .name {
  688. margin: 0 0 0 1vw;
  689. font-size: var(--font14Size);
  690. }
  691. }
  692. }
  693. .backTop {
  694. position: fixed;
  695. bottom: 20vw;
  696. right: 5vw;
  697. text {
  698. font-size: 30px;
  699. background-color: #0000005f;
  700. border-radius: 90px;
  701. }
  702. }
  703. uni-popup {
  704. z-index: 999999 !important;
  705. }
  706. .content {
  707. height: 100vw;
  708. .one {
  709. display: flex;
  710. flex-direction: row;
  711. justify-content: space-between;
  712. margin: 2vw;
  713. padding: 2vw 0;
  714. border-bottom: 1px solid var(--f9Color);
  715. .image {
  716. width: 25vw;
  717. height: 25vw;
  718. margin: 0 2vw 0 0;
  719. }
  720. .other {
  721. display: flex;
  722. flex-direction: column;
  723. flex-grow: 1;
  724. margin: 0 0 0 2vw;
  725. .money {
  726. color: var(--fFB1Color);
  727. font-size: var(--font20Szie);
  728. padding: 2vw 0;
  729. }
  730. .other_1 {
  731. font-size: var(--font14Size);
  732. text {
  733. padding: 0 2vw;
  734. color: var(--f85Color);
  735. }
  736. }
  737. }
  738. }
  739. .two {
  740. margin: 0 2vw;
  741. padding: 2vw 0;
  742. font-size: var(--font12Size);
  743. border-bottom: 1px solid var(--f9Color);
  744. .two_2 {
  745. display: flex;
  746. flex-wrap: wrap;
  747. padding: 1vw;
  748. margin: 1vw 0 0 0;
  749. text {
  750. margin: 1vw 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>