sync:fix:分类页不同机型定位高度适配 https://gitee.com/sheepjs/shopro-uniapp/commit/fc8524c948de56a6182f044b5687e5647e214c39
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<view class="s-category">
|
<view class="s-category">
|
||||||
<view class="three-level-wrap ss-flex ss-col-top">
|
<view class="three-level-wrap ss-flex ss-col-top">
|
||||||
<!-- 商品分类(左) -->
|
<!-- 商品分类(左) -->
|
||||||
<view class="side-menu-wrap">
|
<view class="side-menu-wrap" :style="[{ top: Number(statusBarHeight + 88) + 'rpx' }]">
|
||||||
<scroll-view scroll-y :style="[{ height: pageHeight + 'px' }]">
|
<scroll-view scroll-y :style="[{ height: pageHeight + 'px' }]">
|
||||||
<view
|
<view
|
||||||
class="menu-item ss-flex"
|
class="menu-item ss-flex"
|
||||||
@@ -82,6 +82,7 @@
|
|||||||
|
|
||||||
const { safeArea } = sheep.$platform.device;
|
const { safeArea } = sheep.$platform.device;
|
||||||
const pageHeight = computed(() => safeArea.height - 44 - 50);
|
const pageHeight = computed(() => safeArea.height - 44 - 50);
|
||||||
|
const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
|
||||||
|
|
||||||
// 加载商品分类
|
// 加载商品分类
|
||||||
async function getList() {
|
async function getList() {
|
||||||
@@ -154,7 +155,6 @@
|
|||||||
background-color: #f6f6f6;
|
background-color: #f6f6f6;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 128rpx;
|
|
||||||
|
|
||||||
.menu-item {
|
.menu-item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user