fix: 过期时间
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 53s

This commit is contained in:
sexygoat
2026-05-06 10:16:06 +08:00
parent 52c36dfc9b
commit 9fadbd297b
3 changed files with 37 additions and 13 deletions

View File

@@ -9,7 +9,7 @@
<!-- <VoiceCard v-if="!userInfo.isDevice" :voiceStats="voiceStats" :dateRangeText="dateRangeText"
@openDatePicker="openDateRangePicker" /> -->
<TrafficCard :identifier="currentCardNo" @packageLoaded="handlePackageLoaded" />
<TrafficCard :identifier="currentCardNo" />
<!-- <WhitelistCard v-if="!userInfo.isDevice" :whitelistData="whitelistData" @refresh="refreshWhitelist"
@add="showAddWhitelistDialog" @showSms="showSmsCodeDialog" /> -->
@@ -17,7 +17,7 @@
<WifiCard v-if="userInfo.isDevice" :deviceInfo="deviceInfo" @modify="modifyWifi" @copy="copy" />
<FunctionCard :realNameStatus="realNameStatus" :alreadyBindPhone="alreadyBindPhone"
:isDevice="userInfo.isDevice" @enter="enterDetail" @sync="onSync">
:isDevice="userInfo.isDevice" :walletBalance="deviceInfo.walletBalance" @enter="enterDetail" @sync="onSync">
<!-- 修改WIFI弹窗 -->
<up-popup :show="showModifyWifi" mode="center" @close="showModifyWifi=false">
<view class="wifi-popup">
@@ -147,7 +147,9 @@
connect: 0,
network_status: 1,
status: 1,
packageName: '-',
expireDate: '-',
walletBalance: 0,
currentIccid: '-',
category: '-',
phone: '-',
@@ -206,6 +208,11 @@
let smsCodePhone = ref('');
let smsCode = ref('');
const formatDate = (dateStr) => {
if (!dateStr) return '-';
return dateStr.split('T')[0] || '-';
};
const loadAssetInfo = async () => {
const identifier = userStore.state.identifier;
if (!identifier) return;
@@ -222,6 +229,9 @@
deviceInfo.imei = data.imei || '-';
deviceInfo.asset_type = data.asset_type || 'device';
deviceInfo.bound_phone = data.bound_phone || '';
deviceInfo.packageName = data.current_package || '-';
deviceInfo.expireDate = formatDate(data.current_package_expires_at);
deviceInfo.walletBalance = data.wallet_balance ?? 0;
isRealName.value = data.real_name_status === 1;
realNameStatus.value = data.real_name_status === 1 ? '已实名' : '未实名';
boundPhone.value = data.bound_phone || '';