detail.vue 19 KB

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