index.vue 19 KB

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