index.vue 21 KB

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