This commit is contained in:
@@ -15,15 +15,16 @@
|
||||
<!-- <WhitelistCard v-if="!userInfo.isDevice" :whitelistData="whitelistData" @refresh="refreshWhitelist"
|
||||
@add="showAddWhitelistDialog" @showSms="showSmsCodeDialog" /> -->
|
||||
|
||||
<WifiCard v-if="userInfo.isDevice" :deviceInfo="deviceInfo" @modify="modifyWifi" @copy="copy" />
|
||||
<WifiCard v-if="userInfo.isDevice" :deviceInfo="deviceInfo" @modify="modifyWifi"
|
||||
@copy-config="copyWifiConfig" />
|
||||
|
||||
<FunctionCard :realNameStatus="realNameStatus" :alreadyBindPhone="alreadyBindPhone"
|
||||
:isDevice="userInfo.isDevice" :walletBalance="deviceInfo.walletBalance" :unreadCount="notificationUnreadCount"
|
||||
@enter="enterDetail" @sync="onSync">
|
||||
<!-- 修改WIFI弹窗 -->
|
||||
<!-- 修改配置弹窗 -->
|
||||
<up-popup :show="showModifyWifi" mode="center" @close="showModifyWifi=false">
|
||||
<view class="wifi-popup">
|
||||
<view class="title mb-md">修改WIFI</view>
|
||||
<view class="title mb-md">修改配置</view>
|
||||
<view class="flex-col-g20">
|
||||
<view class="flex-col-g8">
|
||||
<label class="caption">名称:</label>
|
||||
@@ -509,16 +510,6 @@
|
||||
restartShow.value = false;
|
||||
};
|
||||
|
||||
const copy = (content) => {
|
||||
uni.setClipboardData({
|
||||
data: content,
|
||||
success: () => uni.showToast({
|
||||
title: '复制成功',
|
||||
icon: 'none'
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
const YesRecover = async () => {
|
||||
try {
|
||||
await deviceApi.factoryReset(userStore.state.identifier);
|
||||
@@ -840,6 +831,13 @@
|
||||
}
|
||||
};
|
||||
|
||||
const copyWifiConfig = (content) => {
|
||||
uni.setClipboardData({
|
||||
data: content,
|
||||
success: () => uni.showToast({ title: '配置已复制', icon: 'none' })
|
||||
});
|
||||
};
|
||||
|
||||
const getNotificationPriority = (item) => {
|
||||
const severityRank = { info: 10, warning: 20, error: 30, critical: 40 };
|
||||
const remainingDays = Number(item?.days_until_expiry ?? item?.days_remaining ?? item?.remaining_days);
|
||||
|
||||
Reference in New Issue
Block a user