detail.vue 19 KB

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