detail.vue 19 KB

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