list.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. <template>
  2. <view class="container">
  3. <navbar :config="config" backColor="#666666"></navbar>
  4. <view class="topsearch u-p30 u-flex-center-sb" style="paddingTop:20rpx" @click="gosearch()">
  5. <view class="u-flex1 u-flex-center leftbox">
  6. <text class="iconfont u-font30 u-666 u-ml30">&#xe7a6;</text>
  7. <text class="u-font22 u-CCC u-ml20">请输入搜索关键字</text>
  8. <text class="search-btn">搜索</text>
  9. </view>
  10. <!-- <text class="u-font28 u-1A1A1A u-ml30">搜索</text> -->
  11. </view>
  12. <view class="" style="height: 13rpx;background-color: rgba(230, 230, 230, 0.4);"></view>
  13. <!-- :style="{ top: top + 'px' }" -->
  14. <view class="goodsbox" @touchmove.stop.prevent="moveHandle">
  15. <scroll-view scroll-y="true" class="leftList">
  16. <view class="row u-font24 u-text1" v-for="(item, index) in categoryList" :key="item.id"
  17. :class="[index === showCategoryIndex ? 'on' : '']" @click="showCategory(index,item.id)">
  18. {{item.name}}
  19. </view>
  20. </scroll-view>
  21. <view class="rightlist">
  22. <view class="secoundList u-flex-center" v-if="categoryTwo.length >0">
  23. <scroll-view scroll-x="true" class="list-cell ">
  24. <view class="sList u-mr45" v-for="(item, index) in categoryTwo" :key="item.id"
  25. @click="twoChildren(index,item.id)" :class="[index == twoIndex ? 'on' : '']">{{item.name}}
  26. </view>
  27. </scroll-view>
  28. </view>
  29. <div style="height: 40rpx;" v-if="categoryTwo.length >0"></div>
  30. <scroll-view scroll-y="true" class="scorll" :class="{Listbox, istop: categoryTwo.length >0}"
  31. refresher-enabled="true" :refresher-triggered="triggered" @refresherrefresh="onRefresh"
  32. @scrolltolower="tolower">
  33. <view class="u-plr30" style="paddingBottom:240rpx">
  34. <view class="itemList u-flex-center-sb" style="align-items: flex-start" v-for="(item,index) in goodsList"
  35. :key="item.id">
  36. <image class="u-goods160" :src="item.cover" mode=""
  37. @click="goProductDetails(item.id,item.authorize_shop_id)"></image>
  38. <view class="u-flex-column-start u-ml30 u-flex1 goods-info"
  39. @click="goProductDetails(item.id,item.authorize_shop_id)">
  40. <view class="u-text2" style="font-size: 28rpx;">{{item.title}}</view>
  41. <view class="u-font32 u-bold viewWidth u-FF0000" style="margin-top: 34rpx;">
  42. <rich-text :nodes="$mUtil.priceBigSmall(item.min_sale_price)"></rich-text>
  43. </view>
  44. </view>
  45. <!-- <view @click="addCart(item.id,item.shop_id)" class="addShopCard bgc iconfont2">&#xe600;</view> -->
  46. </view>
  47. <nodata v-if="noData" :config="{top:15,content:'暂无商品~'}"></nodata>
  48. <loadMore v-if="goodsList.length>0" :status="status"></loadMore>
  49. </view>
  50. </scroll-view>
  51. </view>
  52. </view>
  53. <!--规格-->
  54. <uniPopup type="bottom" ref="specOpen">
  55. <view class="u-bg-fff spec">
  56. <view class="u-plr30 flex-sb u-border pb30">
  57. <view class="u-flex-center">
  58. <image class="u-goods200" :src="choseConfig.cover?choseConfig.cover:cover"></image>
  59. <view class="u-ml20">
  60. <view class="u-999 u-font24 u-flex-center">
  61. <view class="u-FF0000 u-font36">
  62. <rich-text :nodes="$mUtil.priceBigSmall(choseConfig.sale_price?choseConfig.sale_price:moPrice)">
  63. </rich-text>
  64. </view>
  65. <text class="u-del u-ml15">¥{{choseConfig.market_price?choseConfig.market_price:moDelPrice}}
  66. </text>
  67. <!-- <text class="u-ml10">7.5折</text> -->
  68. </view>
  69. <view class="u-font22 u-999 u-mt5">库存 {{stock}} 件</view>
  70. <view class="u-1A1A1A u-mt25">{{choseConfig.sku_set_name?choseConfig.sku_set_name:'请选择'}}
  71. </view>
  72. </view>
  73. </view>
  74. <view class="iconfont u-999 closeIcon" @click="specOpenClose">&#xe603;</view>
  75. </view>
  76. <view>
  77. <view class="overHeight">
  78. <view class="u-mt30" v-for="(item,index) in skuTab" :key="item.head.id">
  79. <view class="u-plr30">{{item.head.name}}</view>
  80. <view class="u-mt20 u-border pb30">
  81. <view class="u-plr30 u-flex u-flex-warp">
  82. <view class="spec-item " :class="childrenItem.flag?'activeColor':''"
  83. @click="chonseSku(index,childrenItem.id)" v-for="childrenItem in item.values"
  84. :key="childrenItem.id">{{childrenItem.name}}</view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <view class="u-plr30 u-mt30">
  90. <view class="u-flex-center-sb">
  91. <view>购买数量</view>
  92. <view class="u-flex-center">
  93. <view class="iconfont minus" @click="resNum">&#xe60b;</view>
  94. <view class="num">{{add_num}}</view>
  95. <view class="iconfont plus-sign " @click="addNum">&#xe81a;</view>
  96. </view>
  97. </view>
  98. <view class="specOpen-btn">
  99. <view>
  100. <button class="u-btn-two" @click="btnBuy()">加入购物车</button>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </uniPopup>
  107. <!--页面加载动画-->
  108. <ldLoading isFullScreen :active="loading"></ldLoading>
  109. <entrepreneurship-zone-tabbar :current="1"></entrepreneurship-zone-tabbar>
  110. </view>
  111. </template>
  112. <script>
  113. import {
  114. mapGetters,
  115. mapMutations
  116. } from 'vuex';
  117. let app = getApp()
  118. import uniPopup from "../../components/uni-popup/uni-popup.vue"
  119. export default {
  120. components: {
  121. uniPopup
  122. },
  123. data() {
  124. return {
  125. showHidden: false,
  126. twoIndex: null,
  127. price: 100,
  128. Listbox: false,
  129. categoryTwo: [],
  130. goodsList: [],
  131. showCategoryIndex: 0,
  132. categoryList: [
  133. ],
  134. config: {
  135. back: true, //false是tolbar页面 是则不写
  136. title: '商品分类',
  137. color: '#1A1A1A',
  138. //背景颜色;参数一:透明度(0-1);参数二:背景颜色(array则为线性渐变,string为单色背景)
  139. backgroundColor: [1, '#fff'],
  140. // statusBarFontColor: '#ffffff'
  141. },
  142. loading: true,
  143. checkId: null,
  144. status: 'more', //more|loading|noMore
  145. triggered: false,
  146. skuTab: [], //sku二位数组
  147. goodsSkuList: [], //sku组合值
  148. choseConfig: {},
  149. moPrice: '',
  150. moDelPrice: '',
  151. noData: false,
  152. cover: '',
  153. add_num: 1,
  154. hasId: '',
  155. stock: 0,
  156. goods_id: null,
  157. limit_buy_num: 0,
  158. shopid: '',
  159. params: {
  160. category_id: null,
  161. limit: 10,
  162. page: 1
  163. },
  164. top: 0,
  165. cateId: 0 // 一级分类id
  166. }
  167. },
  168. onLoad() {
  169. this.top = app.globalData.barHeight + 110
  170. },
  171. onShow() {
  172. this.cateId = this.$store.state.cateId;
  173. // this.cateId = 108;
  174. if (this.cateId != 0) {
  175. let index = this.categoryList.findIndex(item => {
  176. if (item.id == this.cateId) return true
  177. // if(item.children&&item.children.length>0){
  178. // let arr=item.children;
  179. // for(let i=0; i<arr.length;i++){
  180. // if(arr[i].id==this.cateId){
  181. // this.twoIndex=i
  182. // return true
  183. // }
  184. // }
  185. // }
  186. })
  187. this.showCategoryIndex = index
  188. } else {
  189. this.showCategoryIndex = 0
  190. }
  191. this.rest()
  192. this.getAllNav();
  193. },
  194. onPullDownRefresh() {
  195. this.cateId = this.$store.state.cateId;
  196. if (this.cateId != 0) {
  197. let index = this.categoryList.findIndex(item => {
  198. return item.id == this.cateId
  199. })
  200. this.showCategoryIndex = index
  201. } else {
  202. this.showCategoryIndex = 0
  203. }
  204. this.rest()
  205. this.getAllNav();
  206. uni.stopPullDownRefresh();
  207. },
  208. methods: {
  209. goProductDetails(id, shopid) {
  210. // debugger
  211. uni.navigateTo({
  212. url: "/pages/product/goods/goods?id=" + id + "&shopid=" + shopid
  213. })
  214. },
  215. // 减数量
  216. resNum() {
  217. if (this.add_num > 1) {
  218. this.add_num--
  219. }
  220. },
  221. //加数量
  222. addNum() {
  223. this.add_num++
  224. },
  225. chonseSku(index, id) {
  226. this.skuTab[index].values.forEach(res => {
  227. res.flag = false
  228. if (res.id == id) {
  229. res.flag = true
  230. }
  231. })
  232. let choseId = []
  233. this.skuTab.forEach(res => {
  234. res.values.forEach(Key => {
  235. if (Key.flag) {
  236. choseId.push(Key.id)
  237. }
  238. })
  239. })
  240. let totalId = choseId.join('|')
  241. this.hasId = totalId
  242. this.goodsSkuList.forEach(res => {
  243. if (res.sku_hash_code == totalId) {
  244. this.choseConfig = res
  245. this.stock = res.able_stock
  246. this.able_stock = res.able_stock
  247. }
  248. })
  249. },
  250. //加入购物车
  251. btnBuy() {
  252. let data = {
  253. goods_id: this.goods_id,
  254. sku_hash_code: this.hasId,
  255. add_num: this.add_num,
  256. source_shop_id: this.shopid
  257. }
  258. // 判断是否选中sku
  259. if (this.skuTab.length > 0 && this.hasId == "") {
  260. this.$mUtil.toast('请选中sku')
  261. return false
  262. }
  263. // 判断限购
  264. if (this.add_num > this.limit_buy_num && this.limit_buy_num != 0) {
  265. this.$mUtil.toast('商品限购' + this.limit_buy_num + '件')
  266. return false
  267. }
  268. //判断库存
  269. if (this.goodsSkuList.length > 0 && this.able_stock < this.add_num) {
  270. this.$mUtil.toast('商品库存只有' + this.able_stock + '件')
  271. return false
  272. }
  273. this.$http.post(`/cart/add`, data)
  274. .then(res => {
  275. if (res && res.code == 200) {
  276. this.$mUtil.toast('添加成功')
  277. this.$refs.specOpen.close()
  278. this.choseConfig = {}
  279. this.add_num = 1
  280. }
  281. })
  282. },
  283. addCart(id, shopid) {
  284. this.shopid = shopid
  285. if (id) {
  286. this.checkSku(id, shopid)
  287. }
  288. // if(flag){
  289. // this.$mUtil.toast('代理商品不能加入购物车')
  290. // }else{
  291. // //加入购物车
  292. // if(id){
  293. // this.checkSku(id)
  294. // }
  295. // }
  296. },
  297. //关闭规格弹窗
  298. specOpenClose() {
  299. this.choseConfig = {}
  300. this.add_num = 1
  301. this.$refs.specOpen.close()
  302. },
  303. rest() {
  304. this.noData = false
  305. this.params.page = 1
  306. this.goodsList = []
  307. },
  308. onRefresh(e) {
  309. this.triggered = true
  310. this.rest()
  311. this.getShopList()
  312. },
  313. //滚动
  314. tolower(e) {
  315. this.status = 'loading'
  316. this.params.page++
  317. this.getShopList()
  318. },
  319. //查询sku
  320. checkSku(id, shopid) {
  321. this.$http.get(`/goods/skus/${shopid}/${id}`)
  322. .then(res => {
  323. if (res && res.code == 200) {
  324. res.data.goods.sku_table.forEach(keys => {
  325. keys.values.forEach(val => {
  326. val.flag = false
  327. })
  328. })
  329. this.limit_buy_num = res.data.goods.limit_buy_num
  330. this.goods_id = res.data.goods.id
  331. this.skuTab = res.data.goods.sku_table
  332. this.goodsSkuList = res.data.goods_sku_list
  333. this.moPrice = res.data.goods.min_sale_price
  334. this.moDelPrice = res.data.goods.max_sale_price
  335. this.cover = res.data.goods.cover
  336. this.stock = res.data.total_stock
  337. if (res.data.goods.sku_table.length > 0) {
  338. if (res.data.goods_auth) {
  339. if (res.data.goods_auth.added) {
  340. this.$refs.specOpen.open()
  341. } else {
  342. this.$mUtil.toast('该商品已经下架')
  343. }
  344. } else {
  345. this.$mUtil.toast('没有经营权限')
  346. }
  347. } else {
  348. this.hasId = ''
  349. this.btnBuy()
  350. }
  351. }
  352. })
  353. },
  354. getShopList() {
  355. this.$http.get(`/goods/all/pages`, this.params)
  356. .then(res => {
  357. this.loading = false;
  358. this.triggered = false
  359. if (res && res.code == 200) {
  360. this.goodsList = this.goodsList.concat(res.page.list)
  361. if (this.goodsList.length == 0) {
  362. this.noData = true
  363. } else {
  364. this.noData = false
  365. }
  366. if (res.page.totalPage <= res.page.currPage) {
  367. this.status = 'noMore'
  368. } else {
  369. this.status = 'more'
  370. }
  371. }
  372. })
  373. },
  374. getAllNav() {
  375. //let shop = uni.getStorageSync('shop')
  376. //let shopid = shop.id ? shop.id : ''
  377. this.loading = false;
  378. this.$http.get(`/category/all`)
  379. .then(res => {
  380. if (res && res.code == 200) {
  381. this.categoryList = res.list
  382. if (this.cateId != 0) {
  383. console.log(this.categoryList)
  384. let index = this.categoryList.findIndex(item => {
  385. if (item.id == this.cateId) return true
  386. if (item.children && item.children.length > 0) {
  387. let arr = item.children;
  388. for (let i = 0; i < arr.length; i++) {
  389. if (arr[i].id == this.cateId) {
  390. this.twoIndex = i
  391. return true
  392. }
  393. }
  394. }
  395. })
  396. if (index != -1) {
  397. this.showCategoryIndex = index
  398. this.params.category_id = this.cateId
  399. this.categoryTwo = res.list[index].children
  400. }
  401. } else {
  402. this.params.category_id = this.params.category_id || res.list[0].id
  403. this.categoryTwo = res.list[0].children
  404. }
  405. if (res.list.length > 0) {
  406. this.checkId = res.list[0].id
  407. }
  408. // this.categoryTwo = this.categoryList[index].children
  409. this.getShopList()
  410. }
  411. })
  412. },
  413. moveHandle() {},
  414. //搜索页
  415. gosearch() {
  416. // uni.navigateTo({
  417. // url: "../product/search/search?category_id=" + this.params.category_id
  418. // })
  419. uni.navigateTo({
  420. url: '/pages/product/search/productList?category_id=' + this.params.category_id
  421. });
  422. },
  423. // 二级分类切换显示
  424. twoChildren(index, id) {
  425. console.log(index)
  426. this.twoIndex = index
  427. this.params.category_id = id
  428. this.rest()
  429. this.getShopList()
  430. console.log('category_id:' + this.params.category_id)
  431. },
  432. // 分类切换显示
  433. showCategory(index, id) {
  434. console.log(index, id, 222222)
  435. this.showCategoryIndex = index
  436. this.twoIndex = null
  437. this.params.category_id = id
  438. this.categoryTwo = this.categoryList[index].children
  439. this.rest()
  440. this.getShopList()
  441. if (this.cateId != 0) {
  442. this.$store.commit('changeCateId', 0)
  443. }
  444. },
  445. }
  446. }
  447. </script>
  448. <style lang="scss">
  449. .leftbox {
  450. height: 70rpx;
  451. line-height: 70rpx;
  452. background-color: rgba($color: #E6E6E6, $alpha: .4);
  453. border-radius: 35rpx;
  454. .search-btn {
  455. margin-left: auto;
  456. width: 124rpx;
  457. background: linear-gradient(98deg,#fa6339 5%, #fdae6a 94%);
  458. border-radius: 35rpx;
  459. text-align: center;
  460. line-height: 70rpx;
  461. color: #fff;
  462. }
  463. }
  464. .addShopCard {
  465. position: absolute;
  466. width: 54rpx;
  467. height: 54rpx;
  468. border-radius: 50%;
  469. color: #FFFFFF;
  470. line-height: 54rpx;
  471. text-align: center;
  472. font-size: 32rpx;
  473. right: 0;
  474. bottom: 30rpx;
  475. }
  476. .bgc {
  477. background-color: #0B844A;
  478. }
  479. .bga {
  480. background-color: #ccc;
  481. }
  482. .showHidden {
  483. position: absolute;
  484. bottom: 0;
  485. top: 92rpx;
  486. width: 570rpx;
  487. z-index: 2;
  488. background-color: rgba($color: #000000, $alpha: .5);
  489. .contCase {
  490. background-color: #fff;
  491. padding: 30rpx 0 30rpx 30rpx;
  492. .caseitem {
  493. background-color: #F5F5F5;
  494. border-radius: 46rpx;
  495. width: 145rpx;
  496. height: 68rpx;
  497. line-height: 68rpx;
  498. text-align: center;
  499. margin-right: 30rpx;
  500. margin-bottom: 30rpx;
  501. box-sizing: border-box;
  502. }
  503. .caseitem.active {
  504. background: #abc5b5;
  505. border: 2rpx solid #284534;
  506. color: #0B844A;
  507. }
  508. }
  509. }
  510. .goodsbox {
  511. width: 100%;
  512. height: calc(100% - 110rpx);
  513. background-color: #fff;
  514. display: flex;
  515. // margin-top: 30rpx;
  516. .leftList {
  517. background-color: rgba($color: #E6E6E6, $alpha: .4);
  518. width: 180rpx;
  519. // left: 0upx;
  520. .row {
  521. width: 176rpx;
  522. height: 100rpx;
  523. text-align: center;
  524. color: #808080;
  525. line-height: 100rpx;
  526. position: relative;
  527. }
  528. .row.on {
  529. background-color: #fff;
  530. color: #FA6137;
  531. font-size: 24rpx;
  532. font-weight: bold;
  533. border-radius: 0rpx 20rpx 20rpx 0rpx;
  534. }
  535. .row.on:after {
  536. width: 8rpx;
  537. height: 40rpx;
  538. background: linear-gradient(180deg,#fa6239, #feaf6b);
  539. position: absolute;
  540. left: 0;
  541. top: 50%;
  542. content: '';
  543. border-radius: 0 8rpx 8rpx 0;
  544. transform: translateY(-50%);
  545. }
  546. }
  547. .leftList,
  548. .rightlist {
  549. // position: absolute;
  550. // top: calc(260upx + var(--status-bar-height));
  551. // top: 260upx;
  552. // /* #ifdef APP-PLUS */
  553. // top: calc(200upx + var(--status-bar-height));
  554. // /* #endif */
  555. // bottom: 0upx;
  556. }
  557. .rightlist {
  558. right: 0rpx;
  559. width: 570rpx;
  560. .Listbox {
  561. position: absolute;
  562. // top: 90rpx;
  563. bottom: 0upx;
  564. right: 0;
  565. .listcont {
  566. padding: 30rpx;
  567. }
  568. }
  569. .istop {
  570. top: 130rpx
  571. }
  572. .itemList {
  573. margin-top: 30rpx;
  574. position: relative;
  575. .goods-info {
  576. padding-bottom: 25rpx;
  577. border-bottom: 1px solid #E7E7E7;
  578. }
  579. }
  580. .itemList:first-child {
  581. // margin-top: 0;
  582. }
  583. .secoundList {
  584. width: 510rpx;
  585. left: 30rpx;
  586. position: relative;
  587. height: 90rpx;
  588. line-height: 90rpx;
  589. border-bottom: 1px solid #E7E7E7;
  590. .list-cell {
  591. white-space: nowrap;
  592. padding: 0 20rpx;
  593. box-sizing: border-box;
  594. }
  595. .sList {
  596. display: inline-block;
  597. }
  598. .sList.on {
  599. color: #FA6138;
  600. font-weight: bold;
  601. }
  602. .rightIcons {
  603. width: 45rpx;
  604. height: 90rpx;
  605. line-height: 90rpx;
  606. background-color: #fff;
  607. position: absolute;
  608. right: 0;
  609. text-align: right;
  610. top: 0rpx;
  611. .tes {
  612. display: block;
  613. transform: rotate(90deg);
  614. }
  615. }
  616. }
  617. }
  618. }
  619. //弹窗
  620. .spec {
  621. .pb30 {
  622. padding-bottom: 30rpx;
  623. }
  624. .closeIcon {
  625. position: absolute;
  626. right: 0;
  627. top: 30rpx;
  628. }
  629. border-radius: 18rpx 18rpx 0rpx 0rpx;
  630. padding-top: 30rpx;
  631. max-height: 900rpx;
  632. overflow-y: auto;
  633. .spec-item {
  634. background-color: #F6F6F6;
  635. border: 1px solid #F6F6F6;
  636. padding: 12rpx 30rpx;
  637. font-size: 24rpx;
  638. color: #1A1A1A;
  639. border-radius: 4px;
  640. }
  641. .activeColor {
  642. background-color: #E1E6E3;
  643. border: 1px solid #01321D;
  644. color: #01321D;
  645. border-radius: 4px;
  646. }
  647. .spec-item:not(:last-child) {
  648. margin-right: 24rpx;
  649. }
  650. //减号
  651. .minus {
  652. width: 50rpx;
  653. height: 50rpx;
  654. line-height: 50rpx;
  655. text-align: center;
  656. background: #dedede;
  657. border-radius: 8rpx 0rpx 0rpx 8rpx;
  658. }
  659. .num {
  660. width: 74rpx;
  661. height: 46rpx;
  662. line-height: 46rpx;
  663. text-align: center;
  664. border: 1px solid #dedede;
  665. }
  666. //加号
  667. .plus-sign {
  668. width: 50rpx;
  669. height: 50rpx;
  670. line-height: 50rpx;
  671. text-align: center;
  672. background: #dedede;
  673. border-radius: 0rpx 8rpx 8rpx 0rpx;
  674. }
  675. .specOpen-btn {
  676. margin-top: 68rpx;
  677. padding-bottom: 34rpx;
  678. button {
  679. background-color: #0B844A;
  680. color: #FFFFFF;
  681. }
  682. }
  683. }
  684. .scorll {
  685. height: calc(100vh - 210rpx - var(--status-bar-height));
  686. }
  687. .container{
  688. height: calc(100vh - 110rpx);
  689. overflow: hidden;
  690. }
  691. </style>