feat: 首页改版
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user