detail.vue 19 KB

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