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

This commit is contained in:
sexygoat
2026-04-15 16:10:20 +08:00
parent 6da9353203
commit 8bf89dbe57
3 changed files with 6 additions and 6 deletions

View File

@@ -39,7 +39,7 @@
</view>
<view class="function-name">切换运营商</view>
</view>
<view class="function-item interactive card-interactive" v-if="isDevice" @tap="$emit('enter', 'asset-package')" role="button" tabindex="0">
<view class="function-item interactive card-interactive" @tap="$emit('enter', 'asset-package')" role="button" tabindex="0">
<view class="function-icon">
<image src="/static/shop.png" mode="aspectFit" alt="资产套餐历史"></image>
</view>

View File

@@ -15,7 +15,7 @@
{{ onlineStatus }}
</view>
<view v-else class="status-text">
{{ status }}
{{ networkStatus === 0 ? '停机' : '正常' }}
</view>
</view>
</view>
@@ -32,7 +32,7 @@
deviceInfo: { type: Object, default: () => ({}) },
onlineStatus: { type: String, default: '离线' },
isDevice: { type: Boolean, default: true },
status: { type: [String, Number], default: '' }
networkStatus: { type: Number, default: 1 }
});
// 默认头像

View File

@@ -1,6 +1,6 @@
<template>
<view class="container">
<UserInfoCard :currentCardNo="currentCardNo" :deviceInfo="deviceInfo" :onlineStatus="onlineStatus" :isDevice="userInfo.isDevice" :status="deviceInfo.status" />
<UserInfoCard :currentCardNo="currentCardNo" :deviceInfo="deviceInfo" :onlineStatus="onlineStatus" :isDevice="userInfo.isDevice" :networkStatus="deviceInfo.network_status" />
<DeviceStatusCard v-if="userInfo.isDevice" :deviceInfo="deviceInfo" :isRealName="isRealName"
@authentication="enterDetail('authentication')" />
@@ -144,7 +144,7 @@
let deviceInfo = reactive({
battery: 0,
connect: 0,
status: 1,
network_status: 1,
expireDate: '-',
currentIccid: '-',
category: '-',
@@ -214,7 +214,7 @@
// 基本信息
userInfo.isDevice = data.asset_type === 'device';
currentCardNo.value = data.identifier || '-';
deviceInfo.status = data.status;
deviceInfo.network_status = data.network_status;
deviceInfo.imei = data.imei || '-';
deviceInfo.asset_type = data.asset_type || 'device';
deviceInfo.bound_phone = data.bound_phone || '';