适配app

master
gongfuxiang 2023-11-23 17:46:19 +08:00
parent 165858ca92
commit 725897e9e4
5 changed files with 5 additions and 8 deletions

View File

@ -1416,7 +1416,7 @@
value = 'h5';
// #endif
// #ifdef APP
value = this.set_system_info.platform;
value = this.get_system_info('platform', null, true);
// #endif
return value;
},

View File

@ -57,7 +57,7 @@
// #ifdef MP
this.nav_style += 'height:'+(this.propHeight+this.statusbar_height)+'px;';
// #endif
// #ifdef H5
// #ifdef H5 || APP
this.nav_style += 'height:44px;';
// #endif
}

View File

@ -108,7 +108,7 @@
{
"path": "pages/goods-detail/goods-detail",
"style": {
// #ifdef MP-WEIXIN || MP-BAIDU || MP-QQ || MP-KUAISHOU
// #ifdef MP-WEIXIN || MP-BAIDU || MP-QQ || MP-KUAISHOU || H5 || APP
"navigationStyle": "custom",
// #endif
"enablePullDownRefresh": true,

View File

@ -64,9 +64,6 @@
padding-bottom: 2rpx;
border-style: solid;
border-width: 0 0 2px 0;
/* #ifdef H5 || APP */
font-size: 16px;
/* #endif */
}
/**

View File

@ -694,11 +694,11 @@
//
scroll_value: 0,
//
// #ifdef MP
// #ifdef MP || APP
top_nav_icon_top_value: bar_height + 8,
top_nav_more_top_value: bar_height + 48,
// #endif
// #ifdef H5 || APP
// #ifdef H5
top_nav_icon_top_value: 6,
top_nav_more_top_value: 50,
top_nav_right_icon_left_value: win_width <= 800 ? win_width - 40 : win_width - (win_width - 800) / 2 - 40,