feat: 首页改版

This commit is contained in:
2026-08-25 17:52:05 +08:00
parent d65083aa51
commit d5253e3202
15 changed files with 1014 additions and 644 deletions
+12 -1
View File
@@ -20,7 +20,7 @@
<!-- 优惠券列表及分页加载区域 -->
<mescroll-uni
ref="mescrollRef"
top="176rpx"
:top="mescrollTop"
@down="downCallback"
@up="upCallback"
:up="upOption"
@@ -120,6 +120,17 @@ import { getMyCouponPage } from '@/api/coupon.js';
export default {
mixins: [MescrollMixin],
components: { Header, TopSafe, MescrollUni },
computed: {
mescrollTop() {
// #ifdef H5
return '176rpx';
// #endif
// #ifndef H5
const statusBarHeight = uni.getSystemInfoSync().statusBarHeight || 0;
return (statusBarHeight * 2 + 176) + 'rpx';
// #endif
}
},
data() {
return {
currentTab: 0,