新增APP适配
This commit is contained in:
@@ -1177,12 +1177,12 @@
|
||||
console.log('getThemeConfig===', JSON.parse(res.data.data.json_data));
|
||||
if (res.data.code == 0) {
|
||||
this.themeConfigData = JSON.parse(res.data.data.json_data);
|
||||
if (this.themeConfigData.layout == 'layout4') {
|
||||
uni.setNavigationBarColor({
|
||||
frontColor: '#000000',
|
||||
backgroundColor: '#ffffff',
|
||||
});
|
||||
}
|
||||
// if (this.themeConfigData.layout == 'layout4') {
|
||||
// uni.setNavigationBarColor({
|
||||
// frontColor: '#000000',
|
||||
// backgroundColor: '#ffffff',
|
||||
// });
|
||||
// }
|
||||
} else {
|
||||
console.log('主题获取失败===', res.data.msg);
|
||||
}
|
||||
@@ -1686,9 +1686,7 @@
|
||||
}
|
||||
.container {
|
||||
&.layout2 {
|
||||
/* #ifdef H5 */
|
||||
padding-top: calc(40upx + var(--status-bar-height));
|
||||
/* #endif */
|
||||
/* #ifdef MP-ALIPAY */
|
||||
padding-top: calc(54upx + var(--status-bar-height));
|
||||
/* #endif */
|
||||
@@ -1839,7 +1837,7 @@
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
top: var(--status-bar-height);
|
||||
/* #ifdef MP-ALIPAY */
|
||||
top: calc(var(--status-bar-height) + 40upx);
|
||||
left: 50upx;
|
||||
@@ -1950,9 +1948,7 @@
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
/* #ifdef H5 */
|
||||
top: 0;
|
||||
/* #endif */
|
||||
top: var(--status-bar-height);
|
||||
/* #ifdef MP-ALIPAY */
|
||||
top: calc(var(--status-bar-height) + 40upx);
|
||||
/* #endif */
|
||||
@@ -1992,9 +1988,7 @@
|
||||
.search-wrap2 {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
/* #ifdef H5 */
|
||||
top: 100upx;
|
||||
/* #endif */
|
||||
top: calc(100upx + var(--status-bar-height));
|
||||
/* #ifdef MP-ALIPAY */
|
||||
top: calc(130upx + var(--status-bar-height));
|
||||
/* #endif */
|
||||
@@ -2112,6 +2106,10 @@
|
||||
z-index: 99;
|
||||
.status {
|
||||
position: relative;
|
||||
display: none;
|
||||
/* #ifdef MP-WEIXIN */
|
||||
display: block;
|
||||
/* #endif */
|
||||
.status_img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -2127,10 +2125,8 @@
|
||||
.page-tab {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
/* #ifdef H5 */
|
||||
left: 0;
|
||||
top: 88upx;
|
||||
/* #endif */
|
||||
top: calc(var(--status-bar-height) + 20upx);
|
||||
/* #ifdef MP-ALIPAY */
|
||||
top: calc(var(--status-bar-height) + 44upx);
|
||||
left: 40upx;
|
||||
@@ -2333,10 +2329,8 @@
|
||||
}
|
||||
|
||||
.search-wrap2 {
|
||||
/* #ifdef H5 */
|
||||
width: 100%;
|
||||
padding: 28upx 20upx 0 20upx;
|
||||
/* #endif */
|
||||
/* #ifdef MP-ALIPAY */
|
||||
width: 80%;
|
||||
padding: 0 20upx 0 80upx;
|
||||
@@ -2436,19 +2430,14 @@
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
left: 0;
|
||||
|
||||
/* #ifdef H5 */
|
||||
width: 100%;
|
||||
top: 0;
|
||||
top: var(--status-bar-height);
|
||||
padding: 28upx 20upx 0 20upx;
|
||||
/* #endif */
|
||||
|
||||
/* #ifdef MP-ALIPAY */
|
||||
top: calc(var(--status-bar-height) + 40upx);
|
||||
width: 80%;
|
||||
padding: 0 20upx 0 80upx;
|
||||
/* #endif */
|
||||
|
||||
box-sizing: border-box;
|
||||
.search-content {
|
||||
height: 60upx;
|
||||
@@ -2496,10 +2485,7 @@
|
||||
padding: 20upx;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
/* #ifdef H5 */
|
||||
top: 128upx;
|
||||
/* #endif */
|
||||
|
||||
top: calc(128upx + var(--status-bar-height));
|
||||
/* #ifdef MP-ALIPAY */
|
||||
top: calc(var(--status-bar-height) + 128upx);
|
||||
/* #endif */
|
||||
@@ -2526,14 +2512,11 @@
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
left: 0;
|
||||
|
||||
/* #ifdef H5 */
|
||||
width: 100%;
|
||||
top: 0;
|
||||
padding: 28upx 20upx 0 20upx;
|
||||
/* #endif */
|
||||
|
||||
/* #ifdef MP-ALIPAY */
|
||||
/* #ifdef MP-WEIXIN */
|
||||
top: calc(var(--status-bar-height) + 40upx);
|
||||
width: 80%;
|
||||
padding: 0 20upx 0 80upx;
|
||||
@@ -2588,9 +2571,7 @@
|
||||
padding: 20upx;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
/* #ifdef H5 */
|
||||
top: 128upx;
|
||||
/* #endif */
|
||||
|
||||
/* #ifdef MP-ALIPAY */
|
||||
top: calc(var(--status-bar-height) + 128upx);
|
||||
@@ -2620,11 +2601,9 @@
|
||||
z-index: 1;
|
||||
left: 0;
|
||||
|
||||
/* #ifdef H5 */
|
||||
width: 100%;
|
||||
top: 0;
|
||||
top: var(--status-bar-height);
|
||||
padding: 28upx 20upx 0 20upx;
|
||||
/* #endif */
|
||||
|
||||
/* #ifdef MP-ALIPAY */
|
||||
top: calc(var(--status-bar-height) + 40upx);
|
||||
@@ -2681,9 +2660,7 @@
|
||||
padding: 20upx;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
/* #ifdef H5 */
|
||||
top: 128upx;
|
||||
/* #endif */
|
||||
top: calc(116upx + var(--status-bar-height));
|
||||
|
||||
/* #ifdef MP-ALIPAY */
|
||||
top: calc(var(--status-bar-height) + 128upx);
|
||||
|
||||
Reference in New Issue
Block a user