index.vue 19 KB

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