detail.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876
  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>{{money}}</text>
  101. </view>
  102. <view class="other_1">
  103. 已选: <text>{{Selected}}</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. <view class="two_2_1" v-for="(item,index) in specs" :key="index">
  114. <text @click="toStyle(item,index)" :class="{ 'style': isActive==index}">{{item.name}}
  115. </text>
  116. <text @click="toGroup(item)">参团</text>
  117. </view>
  118. <!-- v-if="can_group=='0'" -->
  119. </view>
  120. </view>
  121. <view class="thr">
  122. <text>数量</text>
  123. <view class="count">
  124. <uni-number-box :min="1" :max="max" :disabled="disabled" v-model="num" @change="toCount">
  125. </uni-number-box>
  126. </view>
  127. <text>库存{{max}}</text>
  128. </view>
  129. <view @click="toBuy(type)" class="button">{{type=='0'?'加入购物车':'立即购买'}}</view>
  130. </view>
  131. </uni-popup>
  132. </mobile-frame>
  133. </template>
  134. <script>
  135. export default {
  136. data() {
  137. return {
  138. barList: [{
  139. name: '首页',
  140. route: 'pages/home/index',
  141. normal: require('@/static/shouye.png'),
  142. },
  143. {
  144. name: '微店',
  145. route: 'pages/store/index',
  146. normal: require('@/static/store.png'),
  147. },
  148. {
  149. name: '周边',
  150. route: 'pages/week/index',
  151. normal: require('@/static/week.png'),
  152. },
  153. {
  154. name: '购物车',
  155. route: 'pages/market/index',
  156. normal: require('@/static/market.png'),
  157. },
  158. {
  159. name: '我的',
  160. route: 'pages/my/index',
  161. normal: require('@/static/my.png'),
  162. },
  163. ],
  164. options: [{
  165. icon: 'shop',
  166. text: '店铺',
  167. route: 'pagesHome/shop/index',
  168. },
  169. {
  170. icon: 'cart',
  171. text: '购物车',
  172. route: 'pages/market/index',
  173. },
  174. // {
  175. // icon: 'chat',
  176. // text: '客服',
  177. // }
  178. ],
  179. buttonGroup: [{
  180. text: '加入购物车',
  181. backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
  182. color: '#fff',
  183. type: '0'
  184. },
  185. {
  186. text: '立即购买',
  187. backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
  188. color: '#fff',
  189. type: '1'
  190. }
  191. ],
  192. // 商品id
  193. id: '',
  194. user: {},
  195. // 轮播图
  196. bannerList: [],
  197. // 商品详情
  198. info: {},
  199. // 商店详情
  200. shop: {},
  201. // 规格情况
  202. specs: [],
  203. // 已选
  204. Selected: '',
  205. // 是否显示返回顶部
  206. isShow: false,
  207. topItem: '',
  208. // 商品收藏
  209. collection: false,
  210. // 店铺收藏
  211. shop_collect: false,
  212. // 菜单显示
  213. menu: false,
  214. disabled: true,
  215. // 显示文字判断
  216. type: '0',
  217. // 选择规格
  218. isActive: -1,
  219. money: 0,
  220. // 计数器
  221. num: 1,
  222. max: 0,
  223. // 分享
  224. share: {},
  225. };
  226. },
  227. onLoad: async function(e) {
  228. const that = this;
  229. that.$set(that, `id`, e.id || '');
  230. },
  231. onShow: async function() {
  232. const that = this;
  233. await that.search();
  234. await that.configShare();
  235. },
  236. methods: {
  237. //店铺,
  238. // 购物车,客服跳转
  239. onClick(e) {
  240. const that = this;
  241. if (e.index == '0' && e.content.route) {
  242. // 进入店铺
  243. that.toShop();
  244. } else {
  245. uni.reLaunch({
  246. url: `/${e.content.route}`
  247. })
  248. }
  249. },
  250. // 进入店铺
  251. toShop() {
  252. const that = this;
  253. uni.navigateTo({
  254. url: `/pagesHome/shop/index?id=${that.shop._id}`
  255. })
  256. },
  257. // 公共跳转
  258. toCommon(e) {
  259. uni.navigateTo({
  260. url: `/${e}`
  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(e) {
  311. console.log(e);
  312. const that = this;
  313. uni.navigateTo({
  314. url: `/pagesHome/group/index?specs_id=${e._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, `Selected`, e.name)
  357. that.$set(that, `max`, e.num)
  358. that.$set(that, `money`, e.sell_money)
  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.Selected) {
  375. let specs_id;
  376. let specs = that.specs.find(i => i.name == that.Selected)
  377. if (specs) specs_id = specs._id
  378. let data = {
  379. customer: user._id,
  380. shop: that.shop._id,
  381. goods: that.info._id,
  382. goodsSpec: specs_id,
  383. num: that.num
  384. }
  385. if (e == '0') {
  386. let arr = await that.$api(`/cart`, 'POST', data)
  387. if (arr.errcode == '0') {
  388. uni.showToast({
  389. title: `加入购物车成功`,
  390. icon: 'success'
  391. })
  392. that.$refs.popup.close()
  393. } else {
  394. uni.showToast({
  395. title: arr.errmsg,
  396. icon: 'none'
  397. })
  398. }
  399. } else {
  400. let arr = await that.$api(`/util/checkCanBuy`, 'POST', data)
  401. if (arr.errcode == '0') {
  402. if (arr.data.result == true) {
  403. uni.navigateTo({
  404. url: `/pagesHome/order/order?key=${arr.data.key}`
  405. })
  406. } else {
  407. uni.showToast({
  408. title: arr.data.msg,
  409. icon: 'none'
  410. })
  411. }
  412. } else {
  413. uni.showToast({
  414. title: arr.errmsg,
  415. icon: 'none'
  416. })
  417. }
  418. }
  419. } else {
  420. uni.showModal({
  421. title: '提示',
  422. content: '请选择规格',
  423. confirmColor: '#ff0000',
  424. showCancel: false,
  425. success: function(res) {}
  426. });
  427. }
  428. },
  429. fail: function(err) {
  430. uni.navigateTo({
  431. url: `/pages/login/index`
  432. })
  433. }
  434. });
  435. },
  436. // 关闭弹框
  437. toClose() {
  438. const that = this;
  439. that.$refs.popup.close()
  440. },
  441. // 详情数据
  442. async search() {
  443. const that = this;
  444. uni.getStorage({
  445. key: 'token',
  446. success: function(res) {
  447. let user = that.$jwt(res.data);
  448. if (user) that.$set(that, `user`, user);
  449. that.searchOther();
  450. },
  451. fail: function(err) {
  452. // uni.showToast({
  453. // title: '无用户登录无法查看收藏信息',
  454. // icon: 'none'
  455. // })
  456. }
  457. });
  458. let res = await that.$api(`/viewGoods/goodsDetail`, `POST`, {
  459. id: that.id
  460. });
  461. if (res.errcode == '0') {
  462. that.$set(that, `info`, res.data.goods)
  463. that.$set(that, `specs`, res.data.specs)
  464. that.$set(that, `shop`, res.data.shop)
  465. if (res.data.specs.length > 0) that.$set(that, `money`, res.data.specs[0].sell_money)
  466. that.$set(that, `bannerList`, res.data.goods.file)
  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. padding: 2vw;
  642. background-color: var(--mainColor);
  643. font-size: var(--font18Szie);
  644. color: var(--f99Color);
  645. }
  646. .five_2 {
  647. padding: 0 2vw;
  648. background-color: var(--mainColor);
  649. text-align: center;
  650. }
  651. }
  652. }
  653. }
  654. .scroll-view {
  655. position: absolute;
  656. top: 0;
  657. left: 0;
  658. right: 0;
  659. bottom: 0;
  660. .list-scroll-view {
  661. display: flex;
  662. flex-direction: column;
  663. }
  664. }
  665. .scrollView {
  666. height: 100vh;
  667. }
  668. .collect {
  669. position: fixed;
  670. top: 4vw;
  671. right: 5vw;
  672. text {
  673. font-size: 30px;
  674. background-color: #0000005f;
  675. border-radius: 90px;
  676. }
  677. }
  678. .menu {
  679. position: fixed;
  680. bottom: 30vw;
  681. right: 5vw;
  682. text {
  683. font-size: 30px;
  684. background-color: #0000005f;
  685. border-radius: 90px;
  686. }
  687. }
  688. .menu_1 {
  689. position: fixed;
  690. bottom: 40vw;
  691. right: 5vw;
  692. background-color: var(--mainColor);
  693. padding: 2vw;
  694. .title {
  695. display: flex;
  696. padding: 2vw;
  697. border-bottom: 0.1vw solid var(--fcColor);
  698. .image {
  699. width: 7vw;
  700. height: 6vw;
  701. }
  702. .name {
  703. margin: 0 0 0 1vw;
  704. font-size: var(--font14Size);
  705. }
  706. }
  707. }
  708. .backTop {
  709. position: fixed;
  710. bottom: 20vw;
  711. right: 5vw;
  712. text {
  713. font-size: 30px;
  714. background-color: #0000005f;
  715. border-radius: 90px;
  716. }
  717. }
  718. uni-popup {
  719. z-index: 999999 !important;
  720. }
  721. .content {
  722. height: 100vw;
  723. .one {
  724. display: flex;
  725. flex-direction: row;
  726. justify-content: space-between;
  727. margin: 2vw;
  728. padding: 2vw 0;
  729. border-bottom: 1px solid var(--f9Color);
  730. .image {
  731. width: 25vw;
  732. height: 25vw;
  733. margin: 0 2vw 0 0;
  734. }
  735. .other {
  736. display: flex;
  737. flex-direction: column;
  738. flex-grow: 1;
  739. margin: 0 0 0 2vw;
  740. .money {
  741. color: var(--fFB1Color);
  742. font-size: var(--font20Szie);
  743. padding: 2vw 0;
  744. }
  745. .other_1 {
  746. font-size: var(--font14Size);
  747. text {
  748. padding: 0 2vw;
  749. color: var(--f85Color);
  750. }
  751. }
  752. }
  753. }
  754. .two {
  755. margin: 0 2vw;
  756. padding: 2vw 0;
  757. font-size: var(--font12Size);
  758. border-bottom: 1px solid var(--f9Color);
  759. .two_2 {
  760. padding: 1vw;
  761. display: flex;
  762. .two_2_1 {
  763. display: flex;
  764. flex-direction: column;
  765. align-items: center;
  766. text {
  767. margin: 0 2vw 0 0;
  768. padding: 1vw;
  769. border-radius: 1vw;
  770. background-color: var(--f9Color);
  771. }
  772. text:last-child {
  773. margin: 1vw 0 0 0;
  774. color: var(--mainColor);
  775. background-color: #FFD700;
  776. }
  777. .style {
  778. color: var(--mainColor);
  779. background-color: var(--ff0Color);
  780. }
  781. }
  782. }
  783. }
  784. .thr {
  785. display: flex;
  786. justify-content: flex-start;
  787. margin: 0 2vw;
  788. padding: 2vw 0;
  789. text {
  790. margin: 0 2vw 0 0;
  791. }
  792. text:last-child {
  793. margin: 0 0 0 2vw;
  794. font-size: var(--font12Size);
  795. color: var(--f85Color);
  796. }
  797. }
  798. .button {
  799. position: fixed;
  800. width: 100vw;
  801. padding: 4vw 0;
  802. background-color: var(--fFB1Color);
  803. bottom: 0;
  804. text-align: center;
  805. font-size: var(--font18Szie);
  806. color: var(--mainColor);
  807. }
  808. }
  809. </style>