index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <view class="one">
  5. <view class="one_1" v-if="barActive=='0'">
  6. <scroll-view scroll-y="true" class="scroll-view">
  7. <view class="one_1_1">
  8. <image class="image" :src="info.logo&&info.logo.length>0?info.logo[0].url:''" mode="">
  9. </image>
  10. </view>
  11. <view class="one_1_2">
  12. <view class="pubu">
  13. <view class="list" v-for="(item,index) in shoplist" :key="index">
  14. <image class="image" :src="item.file&&item.file.length>0?item.file[0].url:''" mode=""></image>
  15. <view class="name textOver">
  16. {{item.name}}
  17. </view>
  18. <view class="other">
  19. <view class="money">
  20. <text>¥</text>
  21. <text>{{item.sell_money}}</text>
  22. </view>
  23. <view class="btn">
  24. <button type="default" size="mini" @click="toBuy(item)">购买</button>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </scroll-view>
  31. </view>
  32. <view class="one_3" v-else-if="barActive=='1'">
  33. <view class="first">
  34. <input type="text" v-model="searchInfo.name" @blur="toInput" placeholder="搜索商品">
  35. </view>
  36. <view class="second">
  37. <scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
  38. <view class="list-scroll-view">
  39. <view class="second_1">
  40. <view :class="['list',condActive==index?'activeList':'']" v-for="(item,index) in condList" :key="index" @tap="toCond(index,item)">
  41. <view class="name">
  42. {{item.name}}
  43. </view>
  44. <view class="icon">
  45. <view class="icon_1">
  46. <text :class="['iconfont',item.shangActive]" v-if="condActive==index&&shang=='1'"></text>
  47. <text :class="['iconfont',item.shang]" v-else></text>
  48. </view>
  49. <view class="icon_1">
  50. <text :class="['iconfont', item.xiaActive]" v-if="condActive==index&&xia=='-1'"></text>
  51. <text :class="['iconfont', item.xia]" v-else></text>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="second_2">
  57. <view class="pubu">
  58. <view class="list" v-for="(item,index) in list" :key="index">
  59. <image class="image" :src="item.file&&item.file.length>0?item.file[0].url:''" mode="">
  60. </image>
  61. <view class="sale" v-if="item.is_sale==true">
  62. <text>已售尽</text>
  63. </view>
  64. <view class="name textOver">
  65. {{item.name}}
  66. </view>
  67. <view class="other">
  68. <view class="money">
  69. <text>¥</text>
  70. <text>{{item.sell_money}}</text>
  71. </view>
  72. <view class="btn">
  73. <button type="default" size="mini" @click="toBuy(item)">购买</button>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="is_bottom" v-if="is_bottom">
  80. <text>{{config.bottom_title}}</text>
  81. </view>
  82. </view>
  83. </scroll-view>
  84. </view>
  85. </view>
  86. <view class="one_4" v-else-if="barActive=='2'">
  87. <view class="first">
  88. <image class="image" :src="info.logo&&info.logo.length>0?info.logo[0].url:''" mode=""></image>
  89. <view class="name">{{info.name}}</view>
  90. </view>
  91. <view class="second">
  92. <view class="second_1">
  93. <view class="grade">
  94. <view>{{info.goods_score||5}}</view>
  95. 商品
  96. </view>
  97. <view class="grade">
  98. <view>{{info.send_score||5}}</view>
  99. 发货
  100. </view>
  101. <view class="grade">
  102. <view>{{info.service_score||5}}</view>
  103. 服务
  104. </view>
  105. </view>
  106. <view class="qrcode_1">
  107. <uqrcode ref="uqrcode" canvas-id="qrcode" :value="uqrcodeInfo" :options="{ margin:10,backgroundColor:'#f1f1f1' }">
  108. </uqrcode>
  109. <view class="txt">
  110. 店铺二维码
  111. </view>
  112. </view>
  113. </view>
  114. <view class="collect">
  115. <text v-if="!collection" @click="toCollect" class="iconfont icon-yduishoucangkongxin"></text>
  116. <text v-else @click="toCollect" class="iconfont icon-yduishoucangshixin"></text>
  117. </view>
  118. </view>
  119. </view>
  120. <view class="two">
  121. <view class="list" v-for="(item,index) in barList" :key="index" @tap="barChange(index,item)">
  122. <view class="icon">
  123. <text :class="['iconfont',barActive==index?item.acticon:item.icon]"></text>
  124. </view>
  125. <view :class="['name',barActive==index?'activename':'']">
  126. {{item.name}}
  127. </view>
  128. </view>
  129. </view>
  130. </view>
  131. </mobile-frame>
  132. </template>
  133. <script>
  134. export default {
  135. data() {
  136. return {
  137. // 系统设置
  138. config: {},
  139. user: {},
  140. id: '',
  141. barActive: '0',
  142. barList: [ //底部菜单
  143. {
  144. icon: 'icon-shangdian',
  145. acticon: "icon-shangdian-copy",
  146. name: '微店首页'
  147. },
  148. {
  149. icon: 'icon-shangpinfenlei',
  150. acticon: "icon-shangpinfenlei-copy",
  151. name: '全部商品'
  152. },
  153. {
  154. icon: 'icon-qiyejianjie',
  155. acticon: "icon-qiyejianjie-copy",
  156. name: '店铺简介'
  157. }
  158. ],
  159. // 店铺信息
  160. info: {},
  161. // 店铺部分商品
  162. shoplist: [],
  163. // 收藏
  164. collection: false,
  165. // 全部商品
  166. searchInfo: {},
  167. list: [],
  168. total: 0,
  169. page: 0,
  170. skip: 0,
  171. limit: 5,
  172. condActive: 0,
  173. shang: '',
  174. xia: '',
  175. condList: [ // 筛选
  176. {
  177. name: '默认',
  178. },
  179. {
  180. name: '销量',
  181. shang: 'icon-shangjiantou',
  182. shangActive: 'icon-shangjiantou-copy',
  183. xia: 'icon-xiajiantou',
  184. xiaActive: 'icon-xiajiantou-copy'
  185. },
  186. {
  187. name: '价格',
  188. shang: 'icon-shangjiantou',
  189. shangActive: 'icon-shangjiantou-copy',
  190. xia: 'icon-xiajiantou',
  191. xiaActive: 'icon-xiajiantou-copy'
  192. },
  193. {
  194. name: '浏览量',
  195. shang: 'icon-shangjiantou',
  196. shangActive: 'icon-shangjiantou-copy',
  197. xia: 'icon-xiajiantou',
  198. xiaActive: 'icon-xiajiantou-copy'
  199. }
  200. ],
  201. // 数据是否触底
  202. is_bottom: false,
  203. scrollTop: 0,
  204. // 二维码内容
  205. uqrcodeInfo: ''
  206. };
  207. },
  208. onLoad: async function(e) {
  209. const that = this;
  210. let id = '6333d71d32c5f69745f9bd32';
  211. if (e && e.id) id = e.id;
  212. else id = decodeURIComponent(e.q).split('id=')[1];
  213. that.$set(that, `id`, id);
  214. that.searchConfig();
  215. await that.watchLogin();
  216. await that.search();
  217. await that.searchOther();
  218. // 下拉刷新
  219. },
  220. methods: {
  221. // 查询基本设置
  222. searchConfig() {
  223. const that = this;
  224. uni.getStorage({
  225. key: 'config',
  226. success: function(res) {
  227. if (res.data) that.$set(that, `config`, res.data)
  228. },
  229. fail: function(err) {
  230. console.log(err);
  231. }
  232. })
  233. },
  234. // 监听用户是否登录
  235. watchLogin() {
  236. const that = this;
  237. uni.getStorage({
  238. key: 'token',
  239. success: function(res) {
  240. let user = that.$jwt(res.data);
  241. that.$set(that, `user`, user);
  242. },
  243. fail: function(err) {}
  244. })
  245. },
  246. // 查询信息
  247. async search() {
  248. const that = this;
  249. if (that.id) {
  250. // 查询店铺信息
  251. const res = await that.$api(`/shop/${that.id}`, 'GET');
  252. if (res.errcode == '0') that.$set(that, `info`, res.data);
  253. let arr = await that.$api(`/storeShop/check`, `GET`, {
  254. customer: that.user._id,
  255. shop: that.id
  256. });
  257. if (arr.errcode == '0') {
  258. that.$set(that, `collection`, arr.data)
  259. }
  260. // 查询店铺商品
  261. that.searchShopMarket();
  262. // 查询全部商品
  263. that.searchAll();
  264. }
  265. },
  266. // 查询店铺商品
  267. async searchShopMarket() {
  268. const that = this;
  269. const res = await that.$api(`/viewGoods/indexGoodsList`, 'GET', {
  270. shop: that.id,
  271. skip: 0,
  272. limit: 20
  273. })
  274. if (res.errcode == '0') that.$set(that, `shoplist`, res.data);
  275. },
  276. // 查询全部产品
  277. async searchAll() {
  278. const that = this;
  279. let info = {
  280. shop: that.id,
  281. skip: that.skip,
  282. limit: that.limit
  283. }
  284. const res = await that.$api(`/viewGoods/indexGoodsList`, `GET`, {
  285. ...info,
  286. ...that.searchInfo
  287. })
  288. if (res.errcode == '0') {
  289. let list = [...that.list, ...res.data];
  290. that.$set(that, `list`, list)
  291. that.$set(that, `total`, res.total)
  292. } else {
  293. uni.showToast({
  294. title: res.errmsg,
  295. });
  296. }
  297. },
  298. // 创建二维码
  299. createQrcode() {
  300. const that = this;
  301. if (that.id) {
  302. const url = `${that.$config.serverUrl}/shopinfo?id=${that.id}`;
  303. that.$set(that, `uqrcodeInfo`, url);
  304. that.$refs.uqrcode.make({
  305. enableDelay: true
  306. })
  307. .then(res => {
  308. console.log(res);
  309. })
  310. .finally(() => {
  311. console.log('2');
  312. })
  313. }
  314. },
  315. // 购买
  316. toBuy(item) {
  317. if (item && item._id) {
  318. uni.navigateTo({
  319. url: `/pagesHome/order/detail?id=${item._id}`
  320. })
  321. }
  322. },
  323. // 全部产品-分页
  324. async toPage() {
  325. const that = this;
  326. let list = that.list;
  327. let limit = that.limit;
  328. if (that.total > list.length) {
  329. uni.showLoading({
  330. title: '加载中',
  331. mask: true
  332. })
  333. let page = that.page + 1;
  334. that.$set(that, `page`, page)
  335. let skip = page * limit;
  336. that.$set(that, `skip`, skip)
  337. that.searchAll();
  338. uni.hideLoading();
  339. } else that.$set(that, `is_bottom`, true)
  340. },
  341. toScroll(e) {
  342. const that = this;
  343. let up = that.scrollTop;
  344. that.$set(that, `scrollTop`, e.detail.scrollTop);
  345. let num = Math.sign(up - e.detail.scrollTop);
  346. if (num == 1) that.$set(that, `is_bottom`, false);
  347. },
  348. // 输入框
  349. toInput(e) {
  350. const that = this;
  351. that.$set(that.searchInfo, `name`, e.detail.value);
  352. that.clearPage();
  353. that.searchAll();
  354. },
  355. // 筛选
  356. toCond(index, e) {
  357. const that = this;
  358. let condActive = that.condActive;
  359. that.$set(that, `condActive`, index);
  360. if (condActive != index && that.xia == '') {
  361. that.$set(that, `shang`, '0');
  362. that.$set(that, `xia`, '-1');
  363. } else if (condActive == index && that.xia == '-1') {
  364. that.$set(that, `shang`, '1');
  365. that.$set(that, `xia`, '0');
  366. } else if (condActive == index && that.shang == '1') {
  367. that.$set(that, `shang`, '0');
  368. that.$set(that, `xia`, '-1');
  369. } else if (condActive = index && that.shang == '1') {
  370. that.$set(that, `shang`, '0');
  371. that.$set(that, `xia`, '-1');
  372. }
  373. let value;
  374. if (index != 0) {
  375. value = that.shang == '0' ? that.xia : that.shang;
  376. }
  377. if (index == 1) {
  378. that.$set(that, `searchInfo`, {})
  379. that.$set(that.searchInfo, `sell_num`, value);
  380. } else if (index == 2) {
  381. that.$set(that, `searchInfo`, {})
  382. that.$set(that.searchInfo, `sell_money`, value);
  383. } else if (index == 3) {
  384. that.$set(that, `searchInfo`, {})
  385. that.$set(that.searchInfo, `view_num`, value);
  386. }
  387. that.clearPage();
  388. that.searchAll();
  389. },
  390. // 查询其他信息
  391. async searchOther() {
  392. const that = this;
  393. let user = that.user;
  394. let shop = that.info;
  395. if (user && user._id && shop && shop._id) {
  396. // 商铺是否收藏
  397. let arr = await that.$api(`/storeShop/check`, `GET`, {
  398. customer: user._id,
  399. shop: shop._id
  400. });
  401. if (arr.errcode == '0') {
  402. that.$set(that, `collection`, arr.data)
  403. }
  404. }
  405. },
  406. // 收藏
  407. async toCollect() {
  408. const that = this;
  409. let user = that.user;
  410. let shop = that.info;
  411. if (user && user._id && shop && shop._id) {
  412. let res = await that.$api(`/storeShop`, `POST`, {
  413. customer: user._id,
  414. shop: shop._id
  415. });
  416. if (res.errcode == '0') {
  417. uni.showToast({
  418. title: res.data.msg,
  419. icon: 'none'
  420. })
  421. that.$set(that, `collection`, res.data.result)
  422. }
  423. } else {
  424. uni.showToast({
  425. title: '缺少必要信息,无法收藏',
  426. icon: 'none'
  427. })
  428. }
  429. },
  430. // 选择底部菜单
  431. barChange(index, item) {
  432. const that = this;
  433. that.$set(that, `barActive`, index);
  434. uni.setNavigationBarTitle({
  435. title: item.name
  436. });
  437. // 店铺简介时,绘制二维码
  438. if (index == '2') that.createQrcode();
  439. },
  440. // 清空列表
  441. clearPage() {
  442. const that = this;
  443. that.$set(that, `list`, [])
  444. that.$set(that, `skip`, 0)
  445. that.$set(that, `limit`, 5)
  446. that.$set(that, `page`, 0)
  447. }
  448. },
  449. onPullDownRefresh: async function() {
  450. const that = this;
  451. that.$set(that, `info`, {})
  452. that.$set(that, `shoplist`, [])
  453. that.$set(that, `list`, [])
  454. that.$set(that, `skip`, 0)
  455. that.$set(that, `limit`, 6)
  456. that.$set(that, `page`, 0)
  457. await that.search();
  458. uni.stopPullDownRefresh();
  459. }
  460. }
  461. </script>
  462. <style lang="scss">
  463. .main {
  464. display: flex;
  465. flex-direction: column;
  466. width: 100vw;
  467. height: 100vh;
  468. .one {
  469. position: relative;
  470. flex-grow: 1;
  471. .one_1 {
  472. height: 92vh;
  473. background-color: var(--fFB1Color);
  474. .one_1_1 {
  475. padding: 2vw;
  476. .image {
  477. width: 100%;
  478. height: 50vw;
  479. }
  480. }
  481. .one_1_2 {
  482. padding: 0 2vw 2vw 2vw;
  483. .pubu {
  484. // column-count: 2;
  485. // column-gap: 2vw;
  486. display: flex;
  487. justify-content: space-between;
  488. flex-wrap: wrap;
  489. .list {
  490. // break-inside: avoid;
  491. width: 43vw;
  492. background: #fff;
  493. padding: 2vw;
  494. border-radius: 5px;
  495. margin: 0 0 2vw 0;
  496. .image {
  497. width: 100%;
  498. height: 50vw;
  499. }
  500. .name {
  501. font-size: var(--font15Size);
  502. margin: 0 0 2vw 0;
  503. }
  504. .other {
  505. display: flex;
  506. flex-direction: row;
  507. justify-content: space-between;
  508. .money {
  509. color: var(--ff0Color);
  510. text:nth-child(1) {
  511. font-size: var(--font12Size);
  512. }
  513. }
  514. .btn {
  515. button {
  516. border-radius: 25px;
  517. color: var(--fffColor);
  518. background-color: var(--ff0Color);
  519. font-size: var(--font12Size);
  520. }
  521. }
  522. }
  523. }
  524. }
  525. }
  526. }
  527. .one_2 {
  528. height: 91vh;
  529. display: flex;
  530. flex-direction: row;
  531. padding: 2vw;
  532. .first_1 {
  533. position: relative;
  534. width: 25vw;
  535. background-color: #fafafa;
  536. display: flex;
  537. flex-direction: column;
  538. .list {
  539. text-align: center;
  540. padding: 2.5vw 0;
  541. border-bottom: 1px solid var(--f1Color);
  542. text {
  543. font-size: var(--font14Size);
  544. }
  545. }
  546. .listActive {
  547. background-color: var(--fffColor);
  548. }
  549. }
  550. .first_2 {
  551. padding: 2vw;
  552. flex-grow: 1;
  553. position: relative;
  554. display: flex;
  555. flex-direction: column;
  556. .list {
  557. margin: 0 0 2vw 0;
  558. padding: 2vw;
  559. .title {
  560. font-size: var(--font16Size);
  561. margin: 0 0 2vw 0;
  562. }
  563. .market {
  564. display: flex;
  565. flex-direction: row;
  566. flex-wrap: wrap;
  567. .marketList {
  568. text-align: center;
  569. margin: 0 2vw 2vw 0;
  570. width: 22vw;
  571. .image {
  572. width: 100%;
  573. height: 15vw;
  574. }
  575. .name {
  576. font-size: var(--font14Size);
  577. }
  578. }
  579. .marketList:nth-child(3n) {
  580. margin: 0 0 2vw 0;
  581. }
  582. }
  583. }
  584. }
  585. }
  586. .one_3 {
  587. display: flex;
  588. flex-direction: column;
  589. width: 100vw;
  590. height: 92vh;
  591. .first {
  592. border-bottom: 1px solid var(--f85Color);
  593. padding: 2vw;
  594. input {
  595. padding: 2vw;
  596. background-color: var(--f1Color);
  597. font-size: var(--font14Size);
  598. border-radius: 5px;
  599. }
  600. }
  601. .second {
  602. position: relative;
  603. flex-grow: 1;
  604. .second_1 {
  605. width: 96vw;
  606. background-color: var(--fffColor);
  607. padding: 2vw;
  608. display: flex;
  609. flex-direction: row;
  610. justify-content: space-around;
  611. .list {
  612. display: flex;
  613. flex-direction: row;
  614. .icon {
  615. position: relative;
  616. top: -5px;
  617. left: 2px;
  618. .icon_1 {
  619. height: 10px;
  620. .iconfont {
  621. font-size: 12px;
  622. }
  623. }
  624. }
  625. }
  626. .activeList {
  627. .name {
  628. color: #ff0000;
  629. }
  630. }
  631. }
  632. .second_2 {
  633. padding: 2vw;
  634. background-color: var(--f1Color);
  635. .pubu {
  636. // column-count: 2;
  637. // column-gap: 2vw;
  638. display: flex;
  639. justify-content: space-between;
  640. flex-wrap: wrap;
  641. .list {
  642. // break-inside: avoid;
  643. width: 43vw;
  644. position: relative;
  645. margin: 0 0 2vw 0;
  646. padding: 2vw;
  647. border-radius: 10px;
  648. background-color: var(--fffColor);
  649. .image {
  650. width: 100%;
  651. height: 40vw;
  652. }
  653. .sale {
  654. position: absolute;
  655. top: 18vw;
  656. text-align: center;
  657. width: 43vw;
  658. text {
  659. background-color: #0000005f;
  660. border-radius: 90px;
  661. display: inline-block;
  662. width: 15vw;
  663. height: 15vw;
  664. color: var(--fffColor);
  665. text-align: center;
  666. line-height: 15vw;
  667. }
  668. }
  669. .name {
  670. font-size: var(--font16Size);
  671. margin: 0 0 1vw 0;
  672. }
  673. .other {
  674. display: flex;
  675. flex-direction: row;
  676. justify-content: space-between;
  677. .money {
  678. font-size: var(--font14Size);
  679. color: var(--ff0Color);
  680. text:nth-child(1) {
  681. font-size: var(--font12Size);
  682. }
  683. }
  684. .other_1 {
  685. flex-grow: 1;
  686. margin: 0 0 0 2vw;
  687. font-size: var(--font12Size);
  688. color: var(--f85Color);
  689. }
  690. .btn {
  691. button {
  692. border-radius: 25px;
  693. color: var(--fffColor);
  694. background-color: var(--ff0Color);
  695. font-size: var(--font12Size);
  696. }
  697. }
  698. }
  699. }
  700. }
  701. }
  702. }
  703. }
  704. .one_4 {
  705. .first {
  706. display: flex;
  707. flex-direction: column;
  708. align-items: center;
  709. background-color: var(--fFB1Color);
  710. border-bottom-right-radius: 10vw;
  711. border-bottom-left-radius: 10vw;
  712. .image {
  713. width: 20vw;
  714. height: 20vw;
  715. border-radius: 20vw;
  716. }
  717. .name {
  718. margin: 2vw 0;
  719. font-size: var(--font16Szie);
  720. font-weight: bold;
  721. color: var(--mainColor);
  722. }
  723. }
  724. .second {
  725. margin: 2vw 0;
  726. position: relative;
  727. .second_1 {
  728. display: flex;
  729. justify-content: space-evenly;
  730. .grade {
  731. display: flex;
  732. flex-direction: column;
  733. align-items: center;
  734. color: var(--f85Color);
  735. font-size: var(--font13Size);
  736. view {
  737. margin: 1vw 0 0 0;
  738. color: var(--ff0Color);
  739. }
  740. }
  741. }
  742. .qrcode_1 {
  743. .uqrcode {
  744. top: 10vw;
  745. left: 20%;
  746. }
  747. .txt {
  748. margin: 2vw 0 0 0;
  749. position: absolute;
  750. text-align: center;
  751. width: 100vw;
  752. bottom: -22vw;
  753. }
  754. }
  755. }
  756. }
  757. .collect {
  758. position: fixed;
  759. top: 0;
  760. right: 2vw;
  761. .iconfont {
  762. font-size: 25px;
  763. }
  764. }
  765. }
  766. .two {
  767. display: flex;
  768. flex-direction: row;
  769. justify-content: space-around;
  770. border-top: 1px solid #f1f1f1;
  771. .list {
  772. padding: 1vw 0;
  773. text-align: center;
  774. .icon {}
  775. .name {
  776. font-size: 12px;
  777. }
  778. .activename {
  779. color: var(--fFB1Color);
  780. }
  781. }
  782. }
  783. }
  784. .scroll-view {
  785. position: absolute;
  786. top: 0;
  787. left: 0;
  788. right: 0;
  789. bottom: 0;
  790. .list-scroll-view {
  791. display: flex;
  792. flex-direction: row;
  793. flex-wrap: wrap;
  794. }
  795. }
  796. .is_bottom {
  797. text-align: center;
  798. width: 100%;
  799. text {
  800. padding: 2vw 0;
  801. display: inline-block;
  802. color: #858585;
  803. font-size: 14px;
  804. }
  805. }
  806. </style>