feat: 添加风云榜、七数商角标

This commit is contained in:
2026-06-26 15:00:57 +08:00
parent a2f39099d6
commit 1902549342
7 changed files with 39 additions and 22 deletions
+8 -3
View File
@@ -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;
}