This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="function-name">切换运营商</view>
|
<view class="function-name">切换运营商</view>
|
||||||
</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">
|
<view class="function-icon">
|
||||||
<image src="/static/shop.png" mode="aspectFit" alt="资产套餐历史"></image>
|
<image src="/static/shop.png" mode="aspectFit" alt="资产套餐历史"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
{{ onlineStatus }}
|
{{ onlineStatus }}
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="status-text">
|
<view v-else class="status-text">
|
||||||
{{ status }}
|
{{ networkStatus === 0 ? '停机' : '正常' }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
deviceInfo: { type: Object, default: () => ({}) },
|
deviceInfo: { type: Object, default: () => ({}) },
|
||||||
onlineStatus: { type: String, default: '离线' },
|
onlineStatus: { type: String, default: '离线' },
|
||||||
isDevice: { type: Boolean, default: true },
|
isDevice: { type: Boolean, default: true },
|
||||||
status: { type: [String, Number], default: '' }
|
networkStatus: { type: Number, default: 1 }
|
||||||
});
|
});
|
||||||
|
|
||||||
// 默认头像
|
// 默认头像
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<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"
|
<DeviceStatusCard v-if="userInfo.isDevice" :deviceInfo="deviceInfo" :isRealName="isRealName"
|
||||||
@authentication="enterDetail('authentication')" />
|
@authentication="enterDetail('authentication')" />
|
||||||
@@ -144,7 +144,7 @@
|
|||||||
let deviceInfo = reactive({
|
let deviceInfo = reactive({
|
||||||
battery: 0,
|
battery: 0,
|
||||||
connect: 0,
|
connect: 0,
|
||||||
status: 1,
|
network_status: 1,
|
||||||
expireDate: '-',
|
expireDate: '-',
|
||||||
currentIccid: '-',
|
currentIccid: '-',
|
||||||
category: '-',
|
category: '-',
|
||||||
@@ -214,7 +214,7 @@
|
|||||||
// 基本信息
|
// 基本信息
|
||||||
userInfo.isDevice = data.asset_type === 'device';
|
userInfo.isDevice = data.asset_type === 'device';
|
||||||
currentCardNo.value = data.identifier || '-';
|
currentCardNo.value = data.identifier || '-';
|
||||||
deviceInfo.status = data.status;
|
deviceInfo.network_status = data.network_status;
|
||||||
deviceInfo.imei = data.imei || '-';
|
deviceInfo.imei = data.imei || '-';
|
||||||
deviceInfo.asset_type = data.asset_type || 'device';
|
deviceInfo.asset_type = data.asset_type || 'device';
|
||||||
deviceInfo.bound_phone = data.bound_phone || '';
|
deviceInfo.bound_phone = data.bound_phone || '';
|
||||||
|
|||||||
Reference in New Issue
Block a user