This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 }
|
||||
});
|
||||
|
||||
// 默认头像
|
||||
|
||||
@@ -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 || '';
|
||||
|
||||
Reference in New Issue
Block a user