feat: 添加风云榜、七数商角标
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<template>
|
||||
<s-layout :navbar="navBar" title="邀请好友" navPreset="float">
|
||||
<view class="share_page_bg" id="captureBox" :style="{ marginTop: `-${navHeight}px` }">
|
||||
<view
|
||||
class="share_page_bg"
|
||||
id="captureBox"
|
||||
:style="{ marginTop: `-${navHeight}px`, '--safe-top': `${safeTop}px` }"
|
||||
>
|
||||
<view class="slogan">
|
||||
<image class="slogan_img" src="/static/share_bg.png" mode="widthFix" />
|
||||
<view class="slogan__text">
|
||||
@@ -66,6 +70,7 @@
|
||||
const proxy = instance?.proxy;
|
||||
|
||||
const sysInfoForNav = uni.getSystemInfoSync();
|
||||
const safeTop = ref(sysInfoForNav?.statusBarHeight || 0);
|
||||
const navHeight = ref((sysInfoForNav?.statusBarHeight || 0) + 44);
|
||||
const navBar = ref('inner');
|
||||
onPageScroll((e) => {
|
||||
@@ -375,7 +380,7 @@
|
||||
|
||||
.slogan {
|
||||
position: absolute;
|
||||
top: 0rpx;
|
||||
top: var(--safe-top);
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 0;
|
||||
@@ -393,7 +398,7 @@
|
||||
.slogan__text {
|
||||
position: absolute;
|
||||
left: 60rpx;
|
||||
top: calc(env(safe-area-inset-top) + 100rpx);
|
||||
top: 100rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user