fix(phone): 首页四个 Tab 顶栏统一为业务页标题栏样式,移除国际板箱过磅入口
- 顶栏改为 48dp、phone_primary、18sp 加粗,与 title_tool_bar 一致;状态栏同色 - 「我的」页退出图标缩小(padding 14dp),铃铛垂直居中随之微调 - 手机端国际 Tab 去掉「板箱过磅」菜单入口及对应跳转分支 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -43,8 +43,8 @@ class PDAEnterActivity : BasePdaActivity<ActivityPdaenterBinding, PDAEnterViewMo
|
||||
override fun initOnCreate(savedInstanceState: Bundle?) {
|
||||
binding.viewModel = viewModel
|
||||
|
||||
// 状态栏与顶部导航栏同色(设计稿状态栏为 #3B71E8 蓝底白字)
|
||||
window.statusBarColor = ContextCompat.getColor(this, R.color.phone_home_primary)
|
||||
// 状态栏与顶部导航栏同色(同业务页标题栏 phone_primary)
|
||||
window.statusBarColor = ContextCompat.getColor(this, R.color.phone_primary)
|
||||
|
||||
binding.vp.adapter =
|
||||
CustomVP2Adapter(viewModel.fragmentList, supportFragmentManager, lifecycle)
|
||||
@@ -121,4 +121,4 @@ class PDAEnterActivity : BasePdaActivity<ActivityPdaenterBinding, PDAEnterViewMo
|
||||
/** 首页按 documents/5.5寸首页新样式/ 设计稿 390dp 画布等比还原(其余 PDA 页仍为 [PDAHelper.PDA_WIDTH]) */
|
||||
override fun getSizeInDp(): Float = 390f
|
||||
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,6 @@ import com.lukouguoji.module_base.router.ARouterConstants
|
||||
import com.sixin.module_p.R
|
||||
import com.sixin.module_p.ui.enter.PdaMenuGroup
|
||||
import com.sixin.module_p.ui.enter.filterByAuth
|
||||
import com.sixin.module_p.ui.guobang.PdaGuoBangActivity
|
||||
import com.sixin.module_p.ui.lihuo.PdaLiHuoActivity
|
||||
import com.sixin.module_p.ui.shouyun.PdaShouYunActivity
|
||||
import com.sixin.module_p.ui.zuzhuang.PdaZuZhuangActivity
|
||||
@@ -74,7 +73,6 @@ class GjViewModel : BaseViewModel() {
|
||||
// ===== 设计稿未覆盖:module_p 内的 PDA 专用页面(无 route,走 when 分支),沿用旧图标 =====
|
||||
ActionBean("普货收运", R.drawable.gjc_shou_yun_icon, Constant.AuthName.GjcAppDomExpCheckin),
|
||||
ActionBean("板箱组装", R.drawable.img_bxzz, Constant.AuthName.GjcBanXListActivity),
|
||||
ActionBean("板箱过磅", R.drawable.gjc_fu_bang_icon, Constant.AuthName.GjcFuBangActivity),
|
||||
)
|
||||
),
|
||||
PdaMenuGroup(
|
||||
@@ -128,10 +126,6 @@ class GjViewModel : BaseViewModel() {
|
||||
PdaZuZhuangActivity.start(DevUtils.getTopActivity())
|
||||
}
|
||||
|
||||
"板箱过磅" -> {
|
||||
PdaGuoBangActivity.start(DevUtils.getTopActivity())
|
||||
}
|
||||
|
||||
"进港理货" -> {
|
||||
PdaLiHuoActivity.start(DevUtils.getTopActivity())
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
<!--
|
||||
消息铃铛(四个 Tab 共用一处、位置固定):按设计稿 domestic.html / home.html 的 .nav-bell——
|
||||
34dp 按钮距右 12dp、垂直居中于 46dp 导航栏,16dp 图形距按钮左上 4.5dp;角标相对按钮 right:-2dp / top:0,
|
||||
34dp 按钮距右 12dp、垂直居中于 48dp 导航栏,16dp 图形距按钮左上 4.5dp;角标相对按钮 right:-2dp / top:0,
|
||||
所以容器比按钮宽 2dp、右边距 10dp。dashboard.html 的铃铛位置略有不同(右 8dp),按多数统一,不随 Tab 切换
|
||||
-->
|
||||
<FrameLayout
|
||||
@@ -37,7 +37,7 @@
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="34dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginTop="6dp"
|
||||
android:layout_marginTop="7dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:onClick="@{() -> viewModel.onMessageClick()}">
|
||||
|
||||
|
||||
@@ -15,27 +15,26 @@
|
||||
android:background="@color/backgroud_gray"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 顶栏与首页其余 Tab 统一(设计稿 .nav-bar:46dp、#3B71E8、16sp 加粗) -->
|
||||
<!-- 顶栏与首页其余 Tab 统一,样式同业务页 title_tool_bar(48dp、phone_primary、18sp 加粗) -->
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:background="@color/phone_home_primary">
|
||||
android:layout_height="48dp"
|
||||
android:background="@color/phone_primary">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="46dp"
|
||||
android:layout_height="46dp"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:onClick="@{()-> viewModel.onLogoutClick()}"
|
||||
android:padding="10dp"
|
||||
android:padding="14dp"
|
||||
android:src="@drawable/img_pda_exit" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:letterSpacing="0.019"
|
||||
android:text="我的"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -125,4 +124,4 @@
|
||||
android:layout_weight="1" />
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
</layout>
|
||||
@@ -13,15 +13,14 @@
|
||||
<item name="background">@null</item>
|
||||
</style>
|
||||
|
||||
<!-- 手持端首页四个 Tab 的顶部导航栏(设计稿 .nav-bar:46dp、#3B71E8、16sp 加粗) -->
|
||||
<!-- 手持端首页四个 Tab 的顶部导航栏:与手机业务页公共标题栏 title_tool_bar 一致(48dp、phone_primary、18sp 加粗白字) -->
|
||||
<style name="PhoneHomeNavBar">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">46dp</item>
|
||||
<item name="android:background">@color/phone_home_primary</item>
|
||||
<item name="android:layout_height">48dp</item>
|
||||
<item name="android:background">@color/phone_primary</item>
|
||||
<item name="android:gravity">center</item>
|
||||
<item name="android:letterSpacing">0.019</item>
|
||||
<item name="android:textColor">@android:color/white</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="android:textSize">18sp</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
|
||||
@@ -64,4 +63,4 @@
|
||||
<item name="android:textColor">@color/phone_home_text_title</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user