index.vue 22 KB

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