From f581ccaa9bec982635eb640dba1c7cadaf3f45f6 Mon Sep 17 00:00:00 2001 From: luo Date: Thu, 2 Jul 2026 15:55:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E8=BF=90=E8=90=A5=E5=95=86=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/UserInfoCard.vue | 37 ++++++++++++++++++++++++++++++++++++- docker/nginx.conf | 5 ++++- pages/index/index.vue | 2 +- 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/components/UserInfoCard.vue b/components/UserInfoCard.vue index 00ca3c5..5822aa7 100644 --- a/components/UserInfoCard.vue +++ b/components/UserInfoCard.vue @@ -5,7 +5,16 @@ {{ currentCardNo || '-' }} - ICCID: {{ deviceInfo.iccid || '-' }} + + ICCID: {{ deviceInfo.iccid || '-' }} + + 套餐名称:{{ deviceInfo.packageName || '-' }} 套餐到期时间:{{ deviceInfo.expireDate || '-' }} @@ -27,6 +36,8 @@ networkStatus: { type: [String, Number], default: '离线' }, isDevice: { type: Boolean, default: true } }); + + defineEmits(['copy']); diff --git a/docker/nginx.conf b/docker/nginx.conf index 94468c2..d1667ad 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -17,7 +17,10 @@ server { add_header Content-Type text/plain; } - location / { + # H5 部署到 /h5 + location /h5/ { + alias /usr/share/nginx/html/; + index index.html; try_files $uri $uri/ /index.html; } diff --git a/pages/index/index.vue b/pages/index/index.vue index 591ae13..0bf8161 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,7 +1,7 @@