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="aspectFit">
  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:0}}</text>
  22. </view>
  23. <view class="money_2">
  24. <text>¥</text>
  25. <text>{{specs&&specs.length>0?specs[0].flow_money:0}}</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:0}}元</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.goods_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. <!-- <u-parse :content="info.brief"></u-parse> -->
  70. <rich-text :nodes="info.brief"></rich-text>
  71. </view>
  72. </view>
  73. </view>
  74. </scroll-view>
  75. </view>
  76. <view class="foot">
  77. <uni-goods-nav :options="options" :button-group="buttonGroup" @click="onClick"
  78. @buttonClick="buttonClick" />
  79. </view>
  80. </view>
  81. <view class="collect">
  82. <text v-if="!collection" @click="toCollect" class="iconfont icon-yduishoucangkongxin"></text>
  83. <text v-else @click="toCollect" class="iconfont icon-yduishoucangshixin-copy"></text>
  84. </view>
  85. <view class="menu">
  86. <text @click="toMenu" class="iconfont icon-gengduo"></text>
  87. </view>
  88. <view class="menu_1" v-if="menu">
  89. <view class="title" v-for="(item,index) in barList" :key="index" @click="toPath(item)"
  90. v-if="item.is_use=='0'">
  91. <image class="image" :src="item.normal&&item.normal.length>0?item.normal[0].url:''"></image>
  92. <view class="name">{{item.name}}</view>
  93. </view>
  94. </view>
  95. <view class="backTop" v-if="isShow==true">
  96. <text @click="backTop" class="iconfont icon-fanhuidingbu"></text>
  97. </view>
  98. <uni-popup ref="popup" background-color="#fff" type="bottom">
  99. <view class="content">
  100. <view class="one">
  101. <image class="image" v-if="specsInfo.file&&specsInfo.file.length>0"
  102. :src="specsInfo.file&&specsInfo.file.length>0?specsInfo.file[0].url:''"></image>
  103. <image class="image" v-else :src="info.file&&info.file.length>0?info.file[0].url:''"></image>
  104. <view class="other">
  105. <view class="money">
  106. <text>¥</text>
  107. <text>{{specsInfo.sell_money}}</text>
  108. </view>
  109. <view class="other_1">
  110. 已选: <text>{{specsInfo.name}}</text>
  111. </view>
  112. </view>
  113. <view class="delete">
  114. <text @click="toClose" class="iconfont icon-shanchu"></text>
  115. </view>
  116. </view>
  117. <view class="two">
  118. <view class="two_1">规格</view>
  119. <view class="two_2">
  120. <text v-for="(item,index) in specs" :key="index" @click="toStyle(item,index)"
  121. :class="{ 'style': isActive==index}">{{item.name}}
  122. </text>
  123. </view>
  124. </view>
  125. <view class="thr">
  126. <text>数量</text>
  127. <view class="count">
  128. <uni-number-box :min="1" :max="specsInfo.num" :disabled="disabled" v-model="num"
  129. @change="toCount">
  130. </uni-number-box>
  131. </view>
  132. <text>库存{{specsInfo.num||0}}</text>
  133. </view>
  134. <view class="btn">
  135. <text @click="toBuy(type)" :class="{ 'button': specsInfo._id&&specsInfo.can_group=='0'&&type=='1'}">
  136. {{type=='0'?'加入购物车':'立即购买'}}
  137. </text>
  138. <text v-if="specsInfo._id&&specsInfo.can_group=='0'&&type=='1'" @click="toGroup"
  139. class="button2">参团</text>
  140. </view>
  141. </view>
  142. </uni-popup>
  143. </mobile-frame>
  144. </template>
  145. <script>
  146. export default {
  147. components: {},
  148. data() {
  149. return {
  150. barList: [],
  151. options: [{
  152. icon: 'shop',
  153. text: '店铺',
  154. route: 'pagesHome/shop/index',
  155. },
  156. {
  157. icon: 'cart',
  158. text: '购物车',
  159. route: 'pages/market/index',
  160. },
  161. // {
  162. // icon: 'chat',
  163. // text: '客服',
  164. // }
  165. ],
  166. buttonGroup: [{
  167. text: '加入购物车',
  168. backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
  169. color: '#fff',
  170. type: '0'
  171. },
  172. {
  173. text: '立即购买',
  174. backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
  175. color: '#fff',
  176. type: '1'
  177. }
  178. ],
  179. // 商品id
  180. id: '',
  181. user: {},
  182. // 轮播图
  183. bannerList: [],
  184. // 商品详情
  185. info: {},
  186. // 商店详情
  187. shop: {},
  188. // 规格情况
  189. specs: [],
  190. // 已选
  191. specsInfo: {},
  192. // 是否显示返回顶部
  193. isShow: false,
  194. topItem: '',
  195. // 商品收藏
  196. collection: false,
  197. // 店铺收藏
  198. shop_collect: false,
  199. // 菜单显示
  200. menu: false,
  201. disabled: true,
  202. // 显示文字判断
  203. type: '0',
  204. // 选择规格
  205. isActive: -1,
  206. // 计数器
  207. num: 1,
  208. // 评论数
  209. comment: 0,
  210. };
  211. },
  212. onLoad: async function(e) {
  213. const that = this;
  214. that.$set(that, `id`, e.id || '');
  215. await that.searchConfig();
  216. await that.search();
  217. await that.configShare();
  218. },
  219. methods: {
  220. // 查询基本信息
  221. searchConfig() {
  222. const that = this;
  223. uni.getStorage({
  224. key: 'config',
  225. success: function(res) {
  226. let data = res.data;
  227. if (data.bottom_menu && data.bottom_menu.list.length > 0) {
  228. let list = data.bottom_menu.list.sort((a, b) => {
  229. return a.sort - b.sort
  230. });
  231. that.$set(that, `barList`, list)
  232. }
  233. }
  234. })
  235. },
  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. inviter: user._id
  381. }
  382. if (e == '0') {
  383. let arr = await that.$api(`/cart`, 'POST', data)
  384. if (arr.errcode == '0') {
  385. uni.showToast({
  386. title: `加入购物车成功`,
  387. icon: 'success'
  388. })
  389. that.$refs.popup.close()
  390. } else {
  391. uni.showToast({
  392. title: arr.errmsg,
  393. icon: 'none'
  394. })
  395. }
  396. } else {
  397. let arr = await that.$api(`/util/checkCanBuy`, 'POST', data)
  398. if (arr.errcode == '0') {
  399. if (arr.data.result == true) {
  400. uni.navigateTo({
  401. url: `/pagesHome/order/order?key=${arr.data.key}`
  402. })
  403. } else {
  404. uni.showToast({
  405. title: arr.data.msg,
  406. icon: 'none'
  407. })
  408. }
  409. } else {
  410. uni.showToast({
  411. title: arr.errmsg,
  412. icon: 'none'
  413. })
  414. }
  415. }
  416. } else {
  417. uni.showModal({
  418. title: '提示',
  419. content: '请选择规格',
  420. confirmColor: '#ff0000',
  421. showCancel: false,
  422. success: function(res) {}
  423. });
  424. }
  425. },
  426. fail: function(err) {
  427. uni.navigateTo({
  428. url: `/pages/login/index`
  429. })
  430. }
  431. });
  432. },
  433. // 关闭弹框
  434. toClose() {
  435. const that = this;
  436. that.$refs.popup.close()
  437. },
  438. // 详情数据
  439. async search() {
  440. const that = this;
  441. uni.getStorage({
  442. key: 'token',
  443. success: function(res) {
  444. let user = that.$jwt(res.data);
  445. if (user) that.$set(that, `user`, user);
  446. that.searchOther();
  447. },
  448. fail: function(err) {}
  449. });
  450. let res = await that.$api(`/viewGoods/goodsDetail`, `POST`, {
  451. id: that.id
  452. });
  453. if (res.errcode == '0') {
  454. let data = res.data;
  455. if (data.goods.brief) data.goods.brief = data.goods.brief.replace(/\<img/gi,
  456. '<img class="rich-img"');
  457. that.$set(that, `info`, data.goods)
  458. that.$set(that, `specs`, data.specs)
  459. that.$set(that, `shop`, data.shop)
  460. if (data.specs.length > 0) {
  461. that.$set(that, `specsInfo`, data.specs[0])
  462. that.$set(that, `isActive`, 0)
  463. that.disabled = false;
  464. }
  465. that.$set(that, `bannerList`, data.goods.file)
  466. let con = await that.$api(`/goodsRate`, `GET`, {
  467. goods: data.goods._id
  468. })
  469. if (con.errcode == '0') {
  470. that.$set(that, `comment`, con.total)
  471. }
  472. }
  473. },
  474. async searchOther() {
  475. const that = this;
  476. let user = that.user;
  477. // 商品是否收藏
  478. let res = await that.$api(`/storeGoods/check`, `GET`, {
  479. customer: user._id,
  480. goods: that.id
  481. });
  482. if (res.errcode == '0') {
  483. that.$set(that, `collection`, res.data)
  484. }
  485. // 商铺是否收藏
  486. let arr = await that.$api(`/storeShop/check`, `GET`, {
  487. customer: user._id,
  488. shop: that.shop._id
  489. });
  490. if (arr.errcode == '0') {
  491. that.$set(that, `shop_collect`, arr.data)
  492. }
  493. },
  494. // 配置分享内容
  495. configShare() {
  496. const that = this;
  497. let user_id = that.user && that.user._id ? that.user._id : '';
  498. let id = that.info && that.info._id ? that.info._id : '';
  499. that.$config.share = {
  500. title: that.info.name,
  501. path: `/pagesHome/order/detail?id=${id}&user_id=${user_id}`,
  502. imageUrl: that.info.file[0].url
  503. }
  504. }
  505. }
  506. }
  507. </script>
  508. <style lang="scss">
  509. .scrollView {
  510. height: 100vh;
  511. }
  512. .main {
  513. display: flex;
  514. flex-direction: column;
  515. width: 100vw;
  516. height: 100vh;
  517. .onemain {
  518. position: relative;
  519. flex-grow: 1;
  520. background-color: var(--f1Color);
  521. .one {
  522. swiper {
  523. height: 70vw;
  524. }
  525. .list {
  526. border-radius: 5px;
  527. .image {
  528. width: 100%;
  529. height: 100%;
  530. border-radius: 5px;
  531. background-color: #fff;
  532. }
  533. }
  534. }
  535. .two {
  536. padding: 0 0 2vw 0;
  537. background-color: var(--mainColor);
  538. .two_1 {
  539. display: flex;
  540. align-items: center;
  541. border-bottom: 0.5vw solid var(--f9Color);
  542. padding: 2vw;
  543. .money_1 {
  544. color: var(--ff0Color);
  545. text {
  546. margin: 0 1vw 0 0;
  547. }
  548. text:last-child {
  549. font-size: var(--font20Szie);
  550. font-weight: bold;
  551. }
  552. }
  553. .money_2 {
  554. text-decoration: line-through;
  555. color: var(--f99Color);
  556. text {
  557. margin: 0 1vw 0 0;
  558. }
  559. text:last-child {
  560. font-size: var(--font16Size);
  561. }
  562. }
  563. }
  564. .two_2 {
  565. font-size: var(--font18Szie);
  566. font-weight: bold;
  567. padding: 1vw 2vw;
  568. }
  569. .two_3 {
  570. font-size: var(--font16Szie);
  571. color: var(--f85Color);
  572. padding: 1vw 2vw;
  573. }
  574. .two_4 {
  575. font-size: var(--font12Size);
  576. color: var(--fcColor);
  577. padding: 1vw 2vw;
  578. text {
  579. margin: 0 2vw 0 0;
  580. }
  581. }
  582. }
  583. .thr {
  584. .thr_1 {
  585. display: flex;
  586. flex-direction: row;
  587. justify-content: space-between;
  588. margin: 2vw 0 2vw 0;
  589. padding: 2vw;
  590. background-color: var(--mainColor);
  591. }
  592. }
  593. .four {
  594. padding: 2vw;
  595. background-color: var(--mainColor);
  596. .four_1 {
  597. display: flex;
  598. justify-content: space-between;
  599. .image {
  600. width: 15vw;
  601. height: 15vw;
  602. border: 0.1vw solid var(--fcColor);
  603. }
  604. .other {
  605. flex-grow: 1;
  606. margin: 0 0 0 2vw;
  607. .name {
  608. font-size: var(--font16Szie);
  609. }
  610. .other_1 {
  611. font-size: var(--font12Size);
  612. text {
  613. color: var(--fcColor);
  614. margin: 0 2vw 0 0;
  615. }
  616. }
  617. }
  618. }
  619. .four_2 {
  620. display: flex;
  621. flex-direction: row;
  622. justify-content: space-evenly;
  623. padding: 2vw 0;
  624. color: var(--f99Color);
  625. .grade {
  626. font-size: var(--font14Size);
  627. color: var(--f85Color);
  628. text {
  629. color: var(--ff0Color);
  630. }
  631. }
  632. .btn {
  633. border: 0.1vw solid var(--fcColor);
  634. padding: 1vw 6vw;
  635. border-radius: 1vw;
  636. color: var(--f00Color);
  637. }
  638. .btn:last-child {
  639. padding: 1vw 10vw;
  640. }
  641. }
  642. }
  643. .five {
  644. margin: 2vw 0 0 0;
  645. .five_1 {
  646. background-color: var(--mainColor);
  647. padding: 2vw;
  648. .rich-img {
  649. width: 100% !important;
  650. display: block;
  651. }
  652. }
  653. }
  654. }
  655. }
  656. .scroll-view {
  657. position: absolute;
  658. top: 0;
  659. left: 0;
  660. right: 0;
  661. bottom: 0;
  662. .list-scroll-view {
  663. display: flex;
  664. flex-direction: column;
  665. }
  666. }
  667. .scrollView {
  668. height: 100vh;
  669. }
  670. .collect {
  671. position: fixed;
  672. top: 4vw;
  673. right: 5vw;
  674. text {
  675. font-size: 30px;
  676. background-color: #0000005f;
  677. border-radius: 90px;
  678. }
  679. }
  680. .menu {
  681. position: fixed;
  682. bottom: 30vw;
  683. right: 5vw;
  684. text {
  685. font-size: 30px;
  686. background-color: #0000005f;
  687. border-radius: 90px;
  688. }
  689. }
  690. .menu_1 {
  691. position: fixed;
  692. bottom: 40vw;
  693. right: 5vw;
  694. background-color: var(--mainColor);
  695. padding: 2vw;
  696. .title {
  697. display: flex;
  698. padding: 2vw;
  699. border-bottom: 0.1vw solid var(--fcColor);
  700. .image {
  701. width: 7vw;
  702. height: 6vw;
  703. }
  704. .name {
  705. margin: 0 0 0 1vw;
  706. font-size: var(--font14Size);
  707. }
  708. }
  709. }
  710. .backTop {
  711. position: fixed;
  712. bottom: 20vw;
  713. right: 5vw;
  714. text {
  715. font-size: 30px;
  716. background-color: #0000005f;
  717. border-radius: 90px;
  718. }
  719. }
  720. uni-popup {
  721. z-index: 999999 !important;
  722. }
  723. .content {
  724. height: 100vw;
  725. .one {
  726. display: flex;
  727. flex-direction: row;
  728. justify-content: space-between;
  729. margin: 2vw;
  730. padding: 2vw 0;
  731. border-bottom: 1px solid var(--f9Color);
  732. .image {
  733. width: 25vw;
  734. height: 25vw;
  735. margin: 0 2vw 0 0;
  736. }
  737. .other {
  738. display: flex;
  739. flex-direction: column;
  740. flex-grow: 1;
  741. margin: 0 0 0 2vw;
  742. .money {
  743. color: var(--fFB1Color);
  744. font-size: var(--font20Szie);
  745. padding: 2vw 0;
  746. }
  747. .other_1 {
  748. font-size: var(--font14Size);
  749. text {
  750. padding: 0 2vw;
  751. color: var(--f85Color);
  752. }
  753. }
  754. }
  755. }
  756. .two {
  757. margin: 0 2vw;
  758. padding: 2vw 0;
  759. font-size: var(--font12Size);
  760. border-bottom: 1px solid var(--f9Color);
  761. .two_2 {
  762. display: flex;
  763. flex-wrap: wrap;
  764. overflow-y: auto;
  765. max-height: 20vh;
  766. padding: 1vw;
  767. margin: 1vw 0 0 0;
  768. text {
  769. margin: 1vw 2vw 0 0;
  770. padding: 1vw;
  771. border-radius: 1vw;
  772. background-color: var(--f9Color);
  773. }
  774. .style {
  775. color: var(--mainColor);
  776. background-color: var(--ff0Color);
  777. }
  778. }
  779. }
  780. .thr {
  781. display: flex;
  782. justify-content: flex-start;
  783. margin: 0 2vw;
  784. padding: 2vw 0;
  785. text {
  786. margin: 0 2vw 0 0;
  787. }
  788. text:last-child {
  789. margin: 0 0 0 2vw;
  790. font-size: var(--font12Size);
  791. color: var(--f85Color);
  792. }
  793. }
  794. .btn {
  795. display: flex;
  796. justify-content: space-between;
  797. position: fixed;
  798. bottom: 0;
  799. text {
  800. width: 100vw;
  801. padding: 4vw 0;
  802. background-color: var(--fFB1Color);
  803. text-align: center;
  804. font-size: var(--font18Szie);
  805. color: var(--mainColor);
  806. }
  807. .button {
  808. width: 50vw;
  809. }
  810. .button2 {
  811. width: 50vw;
  812. background-color: #FF8A18;
  813. }
  814. }
  815. }
  816. </style>