detail.vue 19 KB

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