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. uni.startPullDownRefresh();
  220. },
  221. methods: {
  222. // 查询基本设置
  223. searchConfig() {
  224. const that = this;
  225. uni.getStorage({
  226. key: 'config',
  227. success: function(res) {
  228. if (res.data) that.$set(that, `config`, res.data)
  229. },
  230. fail: function(err) {
  231. console.log(err);
  232. }
  233. })
  234. },
  235. // 监听用户是否登录
  236. watchLogin() {
  237. const that = this;
  238. uni.getStorage({
  239. key: 'token',
  240. success: function(res) {
  241. let user = that.$jwt(res.data);
  242. that.$set(that, `user`, user);
  243. },
  244. fail: function(err) {}
  245. })
  246. },
  247. // 查询信息
  248. async search() {
  249. const that = this;
  250. if (that.id) {
  251. // 查询店铺信息
  252. const res = await that.$api(`/shop/${that.id}`, 'GET');
  253. if (res.errcode == '0') that.$set(that, `info`, res.data);
  254. let arr = await that.$api(`/storeShop/check`, `GET`, {
  255. customer: that.user._id,
  256. shop: that.id
  257. });
  258. if (arr.errcode == '0') {
  259. that.$set(that, `collection`, arr.data)
  260. }
  261. // 查询店铺商品
  262. that.searchShopMarket();
  263. // 查询全部商品
  264. that.searchAll();
  265. }
  266. },
  267. // 查询店铺商品
  268. async searchShopMarket() {
  269. const that = this;
  270. const res = await that.$api(`/viewGoods/indexGoodsList`, 'GET', {
  271. shop: that.id,
  272. skip: 0,
  273. limit: 20
  274. })
  275. if (res.errcode == '0') that.$set(that, `shoplist`, res.data);
  276. },
  277. // 查询全部产品
  278. async searchAll() {
  279. const that = this;
  280. let info = {
  281. shop: that.id,
  282. skip: that.skip,
  283. limit: that.limit
  284. }
  285. const res = await that.$api(`/viewGoods/indexGoodsList`, `GET`, {
  286. ...info,
  287. ...that.searchInfo
  288. })
  289. if (res.errcode == '0') {
  290. let list = [...that.list, ...res.data];
  291. that.$set(that, `list`, list)
  292. that.$set(that, `total`, res.total)
  293. } else {
  294. uni.showToast({
  295. title: res.errmsg,
  296. });
  297. }
  298. },
  299. // 创建二维码
  300. createQrcode() {
  301. const that = this;
  302. if (that.id) {
  303. const url = `${that.$config.serverUrl}/shopinfo?id=${that.id}`;
  304. that.$set(that, `uqrcodeInfo`, url);
  305. that.$refs.uqrcode.make({
  306. enableDelay: true
  307. })
  308. .then(res => {
  309. console.log(res);
  310. })
  311. .finally(() => {
  312. console.log('2');
  313. })
  314. }
  315. },
  316. // 购买
  317. toBuy(item) {
  318. if (item && item._id) {
  319. uni.navigateTo({
  320. url: `/pagesHome/order/detail?id=${item._id}`
  321. })
  322. }
  323. },
  324. // 全部产品-分页
  325. async toPage() {
  326. const that = this;
  327. let list = that.list;
  328. let limit = that.limit;
  329. if (that.total > list.length) {
  330. uni.showLoading({
  331. title: '加载中',
  332. mask: true
  333. })
  334. let page = that.page + 1;
  335. that.$set(that, `page`, page)
  336. let skip = page * limit;
  337. that.$set(that, `skip`, skip)
  338. that.searchAll();
  339. uni.hideLoading();
  340. } else that.$set(that, `is_bottom`, true)
  341. },
  342. toScroll(e) {
  343. const that = this;
  344. let up = that.scrollTop;
  345. that.$set(that, `scrollTop`, e.detail.scrollTop);
  346. let num = Math.sign(up - e.detail.scrollTop);
  347. if (num == 1) that.$set(that, `is_bottom`, false);
  348. },
  349. // 输入框
  350. toInput(e) {
  351. const that = this;
  352. that.$set(that.searchInfo, `name`, e.detail.value);
  353. that.clearPage();
  354. that.searchAll();
  355. },
  356. // 筛选
  357. toCond(index, e) {
  358. const that = this;
  359. let condActive = that.condActive;
  360. that.$set(that, `condActive`, index);
  361. if (condActive != index && that.xia == '') {
  362. that.$set(that, `shang`, '0');
  363. that.$set(that, `xia`, '-1');
  364. } else if (condActive == index && that.xia == '-1') {
  365. that.$set(that, `shang`, '1');
  366. that.$set(that, `xia`, '0');
  367. } else if (condActive == index && that.shang == '1') {
  368. that.$set(that, `shang`, '0');
  369. that.$set(that, `xia`, '-1');
  370. } else if (condActive = index && that.shang == '1') {
  371. that.$set(that, `shang`, '0');
  372. that.$set(that, `xia`, '-1');
  373. }
  374. let value;
  375. if (index != 0) {
  376. value = that.shang == '0' ? that.xia : that.shang;
  377. }
  378. if (index == 1) {
  379. that.$set(that, `searchInfo`, {})
  380. that.$set(that.searchInfo, `sell_num`, value);
  381. } else if (index == 2) {
  382. that.$set(that, `searchInfo`, {})
  383. that.$set(that.searchInfo, `sell_money`, value);
  384. } else if (index == 3) {
  385. that.$set(that, `searchInfo`, {})
  386. that.$set(that.searchInfo, `view_num`, value);
  387. }
  388. that.clearPage();
  389. that.searchAll();
  390. },
  391. // 查询其他信息
  392. async searchOther() {
  393. const that = this;
  394. let user = that.user;
  395. let shop = that.info;
  396. if (user && user._id && shop && shop._id) {
  397. // 商铺是否收藏
  398. let arr = await that.$api(`/storeShop/check`, `GET`, {
  399. customer: user._id,
  400. shop: shop._id
  401. });
  402. if (arr.errcode == '0') {
  403. that.$set(that, `collection`, arr.data)
  404. }
  405. }
  406. },
  407. // 收藏
  408. async toCollect() {
  409. const that = this;
  410. let user = that.user;
  411. let shop = that.info;
  412. if (user && user._id && shop && shop._id) {
  413. let res = await that.$api(`/storeShop`, `POST`, {
  414. customer: user._id,
  415. shop: shop._id
  416. });
  417. if (res.errcode == '0') {
  418. uni.showToast({
  419. title: res.data.msg,
  420. icon: 'none'
  421. })
  422. that.$set(that, `collection`, res.data.result)
  423. }
  424. } else {
  425. uni.showToast({
  426. title: '缺少必要信息,无法收藏',
  427. icon: 'none'
  428. })
  429. }
  430. },
  431. // 选择底部菜单
  432. barChange(index, item) {
  433. const that = this;
  434. that.$set(that, `barActive`, index);
  435. uni.setNavigationBarTitle({
  436. title: item.name
  437. });
  438. // 店铺简介时,绘制二维码
  439. if (index == '2') that.createQrcode();
  440. },
  441. // 清空列表
  442. clearPage() {
  443. const that = this;
  444. that.$set(that, `list`, [])
  445. that.$set(that, `skip`, 0)
  446. that.$set(that, `limit`, 5)
  447. that.$set(that, `page`, 0)
  448. }
  449. },
  450. onPullDownRefresh: async function() {
  451. const that = this;
  452. that.$set(that, `info`, {})
  453. that.$set(that, `shoplist`, [])
  454. that.$set(that, `list`, [])
  455. that.$set(that, `skip`, 0)
  456. that.$set(that, `limit`, 6)
  457. that.$set(that, `page`, 0)
  458. await that.search();
  459. uni.stopPullDownRefresh();
  460. }
  461. }
  462. </script>
  463. <style lang="scss">
  464. .main {
  465. display: flex;
  466. flex-direction: column;
  467. width: 100vw;
  468. height: 100vh;
  469. .one {
  470. position: relative;
  471. flex-grow: 1;
  472. .one_1 {
  473. height: 92vh;
  474. background-color: var(--fFB1Color);
  475. .one_1_1 {
  476. padding: 2vw;
  477. .image {
  478. width: 100%;
  479. height: 50vw;
  480. }
  481. }
  482. .one_1_2 {
  483. padding: 0 2vw 2vw 2vw;
  484. .pubu {
  485. // column-count: 2;
  486. // column-gap: 2vw;
  487. display: flex;
  488. justify-content: space-between;
  489. flex-wrap: wrap;
  490. .list {
  491. // break-inside: avoid;
  492. width: 43vw;
  493. background: #fff;
  494. padding: 2vw;
  495. border-radius: 5px;
  496. margin: 0 0 2vw 0;
  497. .image {
  498. width: 100%;
  499. height: 50vw;
  500. }
  501. .name {
  502. font-size: var(--font15Size);
  503. margin: 0 0 2vw 0;
  504. }
  505. .other {
  506. display: flex;
  507. flex-direction: row;
  508. justify-content: space-between;
  509. .money {
  510. color: var(--ff0Color);
  511. text:nth-child(1) {
  512. font-size: var(--font12Size);
  513. }
  514. }
  515. .btn {
  516. button {
  517. border-radius: 25px;
  518. color: var(--fffColor);
  519. background-color: var(--ff0Color);
  520. font-size: var(--font12Size);
  521. }
  522. }
  523. }
  524. }
  525. }
  526. }
  527. }
  528. .one_2 {
  529. height: 91vh;
  530. display: flex;
  531. flex-direction: row;
  532. padding: 2vw;
  533. .first_1 {
  534. position: relative;
  535. width: 25vw;
  536. background-color: #fafafa;
  537. display: flex;
  538. flex-direction: column;
  539. .list {
  540. text-align: center;
  541. padding: 2.5vw 0;
  542. border-bottom: 1px solid var(--f1Color);
  543. text {
  544. font-size: var(--font14Size);
  545. }
  546. }
  547. .listActive {
  548. background-color: var(--fffColor);
  549. }
  550. }
  551. .first_2 {
  552. padding: 2vw;
  553. flex-grow: 1;
  554. position: relative;
  555. display: flex;
  556. flex-direction: column;
  557. .list {
  558. margin: 0 0 2vw 0;
  559. padding: 2vw;
  560. .title {
  561. font-size: var(--font16Size);
  562. margin: 0 0 2vw 0;
  563. }
  564. .market {
  565. display: flex;
  566. flex-direction: row;
  567. flex-wrap: wrap;
  568. .marketList {
  569. text-align: center;
  570. margin: 0 2vw 2vw 0;
  571. width: 22vw;
  572. .image {
  573. width: 100%;
  574. height: 15vw;
  575. }
  576. .name {
  577. font-size: var(--font14Size);
  578. }
  579. }
  580. .marketList:nth-child(3n) {
  581. margin: 0 0 2vw 0;
  582. }
  583. }
  584. }
  585. }
  586. }
  587. .one_3 {
  588. display: flex;
  589. flex-direction: column;
  590. width: 100vw;
  591. height: 92vh;
  592. .first {
  593. border-bottom: 1px solid var(--f85Color);
  594. padding: 2vw;
  595. input {
  596. padding: 2vw;
  597. background-color: var(--f1Color);
  598. font-size: var(--font14Size);
  599. border-radius: 5px;
  600. }
  601. }
  602. .second {
  603. position: relative;
  604. flex-grow: 1;
  605. .second_1 {
  606. width: 96vw;
  607. background-color: var(--fffColor);
  608. padding: 2vw;
  609. display: flex;
  610. flex-direction: row;
  611. justify-content: space-around;
  612. .list {
  613. display: flex;
  614. flex-direction: row;
  615. .icon {
  616. position: relative;
  617. top: -5px;
  618. left: 2px;
  619. .icon_1 {
  620. height: 10px;
  621. .iconfont {
  622. font-size: 12px;
  623. }
  624. }
  625. }
  626. }
  627. .activeList {
  628. .name {
  629. color: #ff0000;
  630. }
  631. }
  632. }
  633. .second_2 {
  634. padding: 2vw;
  635. background-color: var(--f1Color);
  636. .pubu {
  637. // column-count: 2;
  638. // column-gap: 2vw;
  639. display: flex;
  640. justify-content: space-between;
  641. flex-wrap: wrap;
  642. .list {
  643. // break-inside: avoid;
  644. width: 43vw;
  645. position: relative;
  646. margin: 0 0 2vw 0;
  647. padding: 2vw;
  648. border-radius: 10px;
  649. background-color: var(--fffColor);
  650. .image {
  651. width: 100%;
  652. height: 40vw;
  653. }
  654. .sale {
  655. position: absolute;
  656. top: 18vw;
  657. text-align: center;
  658. width: 43vw;
  659. text {
  660. background-color: #0000005f;
  661. border-radius: 90px;
  662. display: inline-block;
  663. width: 15vw;
  664. height: 15vw;
  665. color: var(--fffColor);
  666. text-align: center;
  667. line-height: 15vw;
  668. }
  669. }
  670. .name {
  671. font-size: var(--font16Size);
  672. margin: 0 0 1vw 0;
  673. }
  674. .other {
  675. display: flex;
  676. flex-direction: row;
  677. justify-content: space-between;
  678. .money {
  679. font-size: var(--font14Size);
  680. color: var(--ff0Color);
  681. text:nth-child(1) {
  682. font-size: var(--font12Size);
  683. }
  684. }
  685. .other_1 {
  686. flex-grow: 1;
  687. margin: 0 0 0 2vw;
  688. font-size: var(--font12Size);
  689. color: var(--f85Color);
  690. }
  691. .btn {
  692. button {
  693. border-radius: 25px;
  694. color: var(--fffColor);
  695. background-color: var(--ff0Color);
  696. font-size: var(--font12Size);
  697. }
  698. }
  699. }
  700. }
  701. }
  702. }
  703. }
  704. }
  705. .one_4 {
  706. .first {
  707. display: flex;
  708. flex-direction: column;
  709. align-items: center;
  710. background-color: var(--fFB1Color);
  711. border-bottom-right-radius: 10vw;
  712. border-bottom-left-radius: 10vw;
  713. .image {
  714. width: 20vw;
  715. height: 20vw;
  716. border-radius: 20vw;
  717. }
  718. .name {
  719. margin: 2vw 0;
  720. font-size: var(--font16Szie);
  721. font-weight: bold;
  722. color: var(--mainColor);
  723. }
  724. }
  725. .second {
  726. margin: 2vw 0;
  727. position: relative;
  728. .second_1 {
  729. display: flex;
  730. justify-content: space-evenly;
  731. .grade {
  732. display: flex;
  733. flex-direction: column;
  734. align-items: center;
  735. color: var(--f85Color);
  736. font-size: var(--font13Size);
  737. view {
  738. margin: 1vw 0 0 0;
  739. color: var(--ff0Color);
  740. }
  741. }
  742. }
  743. .qrcode_1 {
  744. .uqrcode {
  745. top: 10vw;
  746. left: 20%;
  747. }
  748. .txt {
  749. margin: 2vw 0 0 0;
  750. position: absolute;
  751. text-align: center;
  752. width: 100vw;
  753. bottom: -22vw;
  754. }
  755. }
  756. }
  757. }
  758. .collect {
  759. position: fixed;
  760. top: 0;
  761. right: 2vw;
  762. .iconfont {
  763. font-size: 25px;
  764. }
  765. }
  766. }
  767. .two {
  768. display: flex;
  769. flex-direction: row;
  770. justify-content: space-around;
  771. border-top: 1px solid #f1f1f1;
  772. .list {
  773. padding: 1vw 0;
  774. text-align: center;
  775. .icon {}
  776. .name {
  777. font-size: 12px;
  778. }
  779. .activename {
  780. color: var(--fFB1Color);
  781. }
  782. }
  783. }
  784. }
  785. .scroll-view {
  786. position: absolute;
  787. top: 0;
  788. left: 0;
  789. right: 0;
  790. bottom: 0;
  791. .list-scroll-view {
  792. display: flex;
  793. flex-direction: row;
  794. flex-wrap: wrap;
  795. }
  796. }
  797. .is_bottom {
  798. text-align: center;
  799. width: 100%;
  800. text {
  801. padding: 2vw 0;
  802. display: inline-block;
  803. color: #858585;
  804. font-size: 14px;
  805. }
  806. }
  807. </style>