detail.vue 19 KB

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