detail.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  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. comment: '',
  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. let con = await that.$api(`/goodsRate`, `GET`, {
  460. goods: res.data.goods._id
  461. })
  462. if (con.errcode == '0') {
  463. that.$set(that, `comment`, con.total)
  464. }
  465. }
  466. },
  467. async searchOther() {
  468. const that = this;
  469. let user = that.user;
  470. // 商品是否收藏
  471. let res = await that.$api(`/storeGoods/check`, `GET`, {
  472. customer: user._id,
  473. goods: that.id
  474. });
  475. if (res.errcode == '0') {
  476. that.$set(that, `collection`, res.data)
  477. }
  478. // 商铺是否收藏
  479. let arr = await that.$api(`/storeShop/check`, `GET`, {
  480. customer: user._id,
  481. shop: that.shop._id
  482. });
  483. if (arr.errcode == '0') {
  484. that.$set(that, `shop_collect`, arr.data)
  485. }
  486. },
  487. // 配置分享内容
  488. configShare() {
  489. const that = this;
  490. let user_id = that.user && that.user._id ? that.user._id : '';
  491. let id = that.info && that.info._id ? that.info._id : '';
  492. that.$config.share = {
  493. title: that.info.name,
  494. path: `/pagesHome/order/detail?id=${id}&user_id=${user_id}`,
  495. imageUrl: that.info.file[0].url
  496. }
  497. }
  498. }
  499. }
  500. </script>
  501. <style lang="scss">
  502. .scrollView {
  503. height: 100vh;
  504. }
  505. .main {
  506. display: flex;
  507. flex-direction: column;
  508. width: 100vw;
  509. height: 100vh;
  510. .onemain {
  511. position: relative;
  512. flex-grow: 1;
  513. background-color: var(--f1Color);
  514. .one {
  515. swiper {
  516. height: 70vw;
  517. }
  518. .list {
  519. border-radius: 5px;
  520. .image {
  521. width: 100%;
  522. height: 100%;
  523. border-radius: 5px;
  524. }
  525. }
  526. }
  527. .two {
  528. padding: 0 0 2vw 0;
  529. background-color: var(--mainColor);
  530. .two_1 {
  531. display: flex;
  532. align-items: center;
  533. border-bottom: 0.5vw solid var(--f9Color);
  534. padding: 2vw;
  535. .money_1 {
  536. color: var(--ff0Color);
  537. text {
  538. margin: 0 1vw 0 0;
  539. }
  540. text:last-child {
  541. font-size: var(--font20Szie);
  542. font-weight: bold;
  543. }
  544. }
  545. .money_2 {
  546. text-decoration: line-through;
  547. color: var(--f99Color);
  548. text {
  549. margin: 0 1vw 0 0;
  550. }
  551. text:last-child {
  552. font-size: var(--font16Size);
  553. }
  554. }
  555. }
  556. .two_2 {
  557. font-size: var(--font18Szie);
  558. font-weight: bold;
  559. padding: 1vw 2vw;
  560. }
  561. .two_3 {
  562. font-size: var(--font16Szie);
  563. color: var(--f85Color);
  564. padding: 1vw 2vw;
  565. }
  566. .two_4 {
  567. font-size: var(--font12Size);
  568. color: var(--fcColor);
  569. padding: 1vw 2vw;
  570. text {
  571. margin: 0 2vw 0 0;
  572. }
  573. }
  574. }
  575. .thr {
  576. .thr_1 {
  577. display: flex;
  578. flex-direction: row;
  579. justify-content: space-between;
  580. margin: 2vw 0 2vw 0;
  581. padding: 2vw;
  582. background-color: var(--mainColor);
  583. }
  584. }
  585. .four {
  586. padding: 2vw;
  587. background-color: var(--mainColor);
  588. .four_1 {
  589. display: flex;
  590. justify-content: space-between;
  591. .image {
  592. width: 15vw;
  593. height: 15vw;
  594. border: 0.1vw solid var(--fcColor);
  595. }
  596. .other {
  597. flex-grow: 1;
  598. margin: 0 0 0 2vw;
  599. .name {
  600. font-size: var(--font16Szie);
  601. }
  602. .other_1 {
  603. font-size: var(--font12Size);
  604. text {
  605. color: var(--fcColor);
  606. margin: 0 2vw 0 0;
  607. }
  608. }
  609. }
  610. }
  611. .four_2 {
  612. display: flex;
  613. flex-direction: row;
  614. justify-content: space-evenly;
  615. padding: 2vw 0;
  616. color: var(--f99Color);
  617. .grade {
  618. font-size: var(--font14Size);
  619. color: var(--f85Color);
  620. text {
  621. color: var(--ff0Color);
  622. }
  623. }
  624. .btn {
  625. border: 0.1vw solid var(--fcColor);
  626. padding: 1vw 6vw;
  627. border-radius: 1vw;
  628. color: var(--f00Color);
  629. }
  630. .btn:last-child {
  631. padding: 1vw 10vw;
  632. }
  633. }
  634. }
  635. .five {
  636. margin: 2vw 0 0 0;
  637. .five_1 {
  638. background-color: var(--mainColor);
  639. padding: 2vw;
  640. image {
  641. width: 100% !important;
  642. }
  643. }
  644. }
  645. }
  646. }
  647. .scroll-view {
  648. position: absolute;
  649. top: 0;
  650. left: 0;
  651. right: 0;
  652. bottom: 0;
  653. .list-scroll-view {
  654. display: flex;
  655. flex-direction: column;
  656. }
  657. }
  658. .scrollView {
  659. height: 100vh;
  660. }
  661. .collect {
  662. position: fixed;
  663. top: 4vw;
  664. right: 5vw;
  665. text {
  666. font-size: 30px;
  667. background-color: #0000005f;
  668. border-radius: 90px;
  669. }
  670. }
  671. .menu {
  672. position: fixed;
  673. bottom: 30vw;
  674. right: 5vw;
  675. text {
  676. font-size: 30px;
  677. background-color: #0000005f;
  678. border-radius: 90px;
  679. }
  680. }
  681. .menu_1 {
  682. position: fixed;
  683. bottom: 40vw;
  684. right: 5vw;
  685. background-color: var(--mainColor);
  686. padding: 2vw;
  687. .title {
  688. display: flex;
  689. padding: 2vw;
  690. border-bottom: 0.1vw solid var(--fcColor);
  691. .image {
  692. width: 7vw;
  693. height: 6vw;
  694. }
  695. .name {
  696. margin: 0 0 0 1vw;
  697. font-size: var(--font14Size);
  698. }
  699. }
  700. }
  701. .backTop {
  702. position: fixed;
  703. bottom: 20vw;
  704. right: 5vw;
  705. text {
  706. font-size: 30px;
  707. background-color: #0000005f;
  708. border-radius: 90px;
  709. }
  710. }
  711. uni-popup {
  712. z-index: 999999 !important;
  713. }
  714. .content {
  715. height: 100vw;
  716. .one {
  717. display: flex;
  718. flex-direction: row;
  719. justify-content: space-between;
  720. margin: 2vw;
  721. padding: 2vw 0;
  722. border-bottom: 1px solid var(--f9Color);
  723. .image {
  724. width: 25vw;
  725. height: 25vw;
  726. margin: 0 2vw 0 0;
  727. }
  728. .other {
  729. display: flex;
  730. flex-direction: column;
  731. flex-grow: 1;
  732. margin: 0 0 0 2vw;
  733. .money {
  734. color: var(--fFB1Color);
  735. font-size: var(--font20Szie);
  736. padding: 2vw 0;
  737. }
  738. .other_1 {
  739. font-size: var(--font14Size);
  740. text {
  741. padding: 0 2vw;
  742. color: var(--f85Color);
  743. }
  744. }
  745. }
  746. }
  747. .two {
  748. margin: 0 2vw;
  749. padding: 2vw 0;
  750. font-size: var(--font12Size);
  751. border-bottom: 1px solid var(--f9Color);
  752. .two_2 {
  753. display: flex;
  754. flex-wrap: wrap;
  755. padding: 1vw;
  756. margin: 1vw 0 0 0;
  757. text {
  758. margin: 1vw 2vw 0 0;
  759. padding: 1vw;
  760. border-radius: 1vw;
  761. background-color: var(--f9Color);
  762. }
  763. .style {
  764. color: var(--mainColor);
  765. background-color: var(--ff0Color);
  766. }
  767. }
  768. }
  769. .thr {
  770. display: flex;
  771. justify-content: flex-start;
  772. margin: 0 2vw;
  773. padding: 2vw 0;
  774. text {
  775. margin: 0 2vw 0 0;
  776. }
  777. text:last-child {
  778. margin: 0 0 0 2vw;
  779. font-size: var(--font12Size);
  780. color: var(--f85Color);
  781. }
  782. }
  783. .btn {
  784. display: flex;
  785. justify-content: space-between;
  786. position: fixed;
  787. bottom: 0;
  788. text {
  789. width: 100vw;
  790. padding: 4vw 0;
  791. background-color: var(--fFB1Color);
  792. text-align: center;
  793. font-size: var(--font18Szie);
  794. color: var(--mainColor);
  795. }
  796. .button {
  797. width: 50vw;
  798. }
  799. .button2 {
  800. width: 50vw;
  801. background-color: #FF8A18;
  802. }
  803. }
  804. }
  805. </style>