style(AD): 优化广告页面样式和布局
- 调整按钮显示逻辑,增加对 hasShare 变量的判断 - 修改按钮样式和位置,使其适应不同设备和场景
This commit is contained in:
@@ -48,25 +48,16 @@ function handleButtonClick() {
|
|||||||
</article>
|
</article>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
v-if="bannerInfo?.is_display_button"
|
v-if="bannerInfo?.is_display_button && !hasShare"
|
||||||
style="
|
style="margin-top: 20px; width: 100%; position: sticky; bottom: 10px"
|
||||||
width: 100vw;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
position: fixed;
|
|
||||||
left: 0;
|
|
||||||
bottom: 10px;
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<!-- 立即进入 -->
|
<!-- 立即进入 -->
|
||||||
<el-button
|
<el-button
|
||||||
v-if="hasShare"
|
style="width: 100%; height: 50px; border-radius: 15px"
|
||||||
style="width: 95%; height: 50px; border-radius: 15px"
|
|
||||||
color="#70b937"
|
color="#70b937"
|
||||||
@click="handleButtonClick"
|
@click="handleButtonClick"
|
||||||
>
|
>
|
||||||
<el-text style="color: white">{{ bannerInfo.button_name }}</el-text>
|
<el-text style="color: white">{{ bannerInfo?.button_name }}</el-text>
|
||||||
</el-button>
|
</el-button>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@@ -77,7 +68,6 @@ function handleButtonClick() {
|
|||||||
|
|
||||||
.banner-container {
|
.banner-container {
|
||||||
padding: $gap * 2;
|
padding: $gap * 2;
|
||||||
margin-bottom: $gap * 6;
|
|
||||||
.msg-info {
|
.msg-info {
|
||||||
font-family: PingFangSC-Medium;
|
font-family: PingFangSC-Medium;
|
||||||
h2 {
|
h2 {
|
||||||
|
|||||||
Reference in New Issue
Block a user