style: 设置页面添加紫色背景
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<s-pages title="设置">
|
<s-pages title="设置" :pink_bg="false" :purple_bg="true">
|
||||||
<view class="setPage">
|
<view class="setPage">
|
||||||
<view class="card1">
|
<view class="card1">
|
||||||
<card_list :arr="listArr">
|
<card_list :arr="listArr">
|
||||||
|
|||||||
@@ -14,6 +14,9 @@
|
|||||||
</template>
|
</template>
|
||||||
<!-- <Agreement /> -->
|
<!-- <Agreement /> -->
|
||||||
<view class="theme-ai pages">
|
<view class="theme-ai pages">
|
||||||
|
<view v-if="purple_bg" class="full-bg">
|
||||||
|
<image class="full-bg__img" src="/static/bg.jpg" mode="aspectFill" />
|
||||||
|
</view>
|
||||||
<view class="card1 w100">
|
<view class="card1 w100">
|
||||||
<image v-if="pink_bg" class="w100" :src="$ygUrl + 'transparent_bg.png'" mode="" />
|
<image v-if="pink_bg" class="w100" :src="$ygUrl + 'transparent_bg.png'" mode="" />
|
||||||
</view>
|
</view>
|
||||||
@@ -83,6 +86,10 @@
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
purple_bg: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
let height = ref(0);
|
let height = ref(0);
|
||||||
let sysInfo = uni.getSystemInfoSync();
|
let sysInfo = uni.getSystemInfoSync();
|
||||||
@@ -119,15 +126,32 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.full-bg {
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.full-bg__img {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.card1 {
|
.card1 {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scon {
|
.scon {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.s-con {
|
.s-con {
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 9.3 KiB |
Reference in New Issue
Block a user