From bb4cccda50b5268d6ec79ff30e43bc52c5d16206 Mon Sep 17 00:00:00 2001 From: yibaiba <946100224@qq.com> Date: Thu, 27 Aug 2026 19:20:26 +0800 Subject: [PATCH] feat(phone): start WiFi calling with a switch under the mode picker Keep phone_mode as the path. Turning the switch off only stops the service instead of forcing a change to cellular or VoLTE. --- web/src/components/CardPolicyPanel.vue | 40 +++++++++------ web/src/components/EsimCardPolicyInline.vue | 32 +++++++----- web/src/styles/phone.css | 28 ++++++++++ web/src/views/Phone.vue | 57 +++++++++++++++++---- web/tests/cardPolicyPhoneMode.test.ts | 36 +++++++++++++ web/tests/phonePresentation.test.ts | 12 +++++ 6 files changed, 165 insertions(+), 40 deletions(-) diff --git a/web/src/components/CardPolicyPanel.vue b/web/src/components/CardPolicyPanel.vue index bc2e80ce..eb78dbf2 100644 --- a/web/src/components/CardPolicyPanel.vue +++ b/web/src/components/CardPolicyPanel.vue @@ -248,24 +248,8 @@ const airplaneHint = computed(() => { -
- 软件电话开启后可用浏览器/命令拨号。WiFi calling 会锁定飞行;蜂窝和 VoLTE 会退出飞行 -
- 未生效 - - -
-
-
- 通话方式切换即开启电话。WiFi calling 开飞行;蜂窝走软件 IMS 数据;VoLTE 走模组原生 IMS + 通话方式只选路径。WiFi calling 开飞行;蜂窝走软件 IMS 数据;VoLTE 走模组原生 IMS
{
+
+ + {{ (local.phone_mode ?? 'wifi') === 'wifi' ? '启动' : '软件电话' }} + {{ (local.phone_mode ?? 'wifi') === 'wifi' + ? '打开后开始注册。关掉只停服务,不会改成蜂窝或 VoLTE' + : '开启后可用浏览器/命令拨号。蜂窝和 VoLTE 会退出飞行' }} + +
+ 未生效 + + +
+
+
蜂窝数据策略只影响流量。仅打电话时开:挂断后关数据,待机不能被叫
diff --git a/web/src/components/EsimCardPolicyInline.vue b/web/src/components/EsimCardPolicyInline.vue index 78db799b..19ba68cf 100644 --- a/web/src/components/EsimCardPolicyInline.vue +++ b/web/src/components/EsimCardPolicyInline.vue @@ -138,7 +138,7 @@ const {