detail.vue 19 KB

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