detail.vue 19 KB

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