This commit is contained in:
@@ -5,7 +5,16 @@
|
||||
<view class="flex-row-g20">
|
||||
<view class="title">{{ currentCardNo || '-' }}</view>
|
||||
</view>
|
||||
<view class="caption">ICCID: {{ deviceInfo.iccid || '-' }}</view>
|
||||
<view class="iccid-row caption">
|
||||
<text>ICCID: {{ deviceInfo.iccid || '-' }}</text>
|
||||
<button
|
||||
v-if="deviceInfo.iccid && deviceInfo.iccid !== '-'"
|
||||
class="copy-btn"
|
||||
@tap.stop="$emit('copy', deviceInfo.iccid)"
|
||||
>
|
||||
复制
|
||||
</button>
|
||||
</view>
|
||||
<view class="caption">套餐名称:{{ deviceInfo.packageName || '-' }}</view>
|
||||
<view class="caption">套餐到期时间:{{ deviceInfo.expireDate || '-' }}</view>
|
||||
</view>
|
||||
@@ -27,6 +36,8 @@
|
||||
networkStatus: { type: [String, Number], default: '离线' },
|
||||
isDevice: { type: Boolean, default: true }
|
||||
});
|
||||
|
||||
defineEmits(['copy']);
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@@ -36,5 +47,29 @@
|
||||
.user-details {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.iccid-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.copy-btn {
|
||||
margin: 0;
|
||||
padding: 0 12rpx;
|
||||
min-height: 36rpx;
|
||||
line-height: 36rpx;
|
||||
border: none;
|
||||
border-radius: 6rpx;
|
||||
background: rgba(10, 132, 255, 0.12);
|
||||
color: var(--primary);
|
||||
font-size: 22rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.copy-btn::after {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -17,7 +17,10 @@ server {
|
||||
add_header Content-Type text/plain;
|
||||
}
|
||||
|
||||
location / {
|
||||
# H5 部署到 /h5
|
||||
location /h5/ {
|
||||
alias /usr/share/nginx/html/;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<UserInfoCard :currentCardNo="currentCardNo" :deviceInfo="deviceInfo" :onlineStatus="onlineStatus"
|
||||
:isDevice="userInfo.isDevice" :networkStatus="deviceInfo.network_status" />
|
||||
:isDevice="userInfo.isDevice" :networkStatus="deviceInfo.network_status" @copy="copy" />
|
||||
|
||||
<DeviceStatusCard v-if="userInfo.isDevice" :deviceInfo="deviceInfo" :isRealName="isRealName"
|
||||
:isDevice="userInfo.isDevice" @authentication="enterDetail('authentication')" />
|
||||
|
||||
Reference in New Issue
Block a user