index.vue 22 KB

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