优化后,再次提交
This commit is contained in:
315
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
Normal file
315
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
Normal file
@@ -0,0 +1,315 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const request_api = require("../../request/api.js");
|
||||
const request_three_one_api_info = require("../../request/three_one_api/info.js");
|
||||
const request_request = require("../../request/request.js");
|
||||
if (!Array) {
|
||||
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
|
||||
_easycom_u_navbar2();
|
||||
}
|
||||
const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
|
||||
if (!Math) {
|
||||
_easycom_u_navbar();
|
||||
}
|
||||
const defaultAvatar = "https://ossweb-img.qq.com/images/lol/web201310/skin/big99008.jpg";
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
const loading = common_vendor.ref(true);
|
||||
const userInfo = common_vendor.reactive({
|
||||
userId: "",
|
||||
username: "",
|
||||
nickName: "",
|
||||
deptId: "",
|
||||
deptName: "",
|
||||
role: "",
|
||||
avatar: "",
|
||||
phone: ""
|
||||
});
|
||||
const canAcceptance = common_vendor.computed(() => {
|
||||
return userInfo.role === "admin" || userInfo.role === "manage";
|
||||
});
|
||||
const getImageUrl = (path) => {
|
||||
if (!path)
|
||||
return "";
|
||||
return request_request.toImageUrl(path);
|
||||
};
|
||||
const getUserInfo = async () => {
|
||||
try {
|
||||
const res = await request_three_one_api_info.getProfileDetail();
|
||||
if (res.code === 0 && res.data) {
|
||||
userInfo.userId = res.data.userId || "";
|
||||
userInfo.username = res.data.userName || "";
|
||||
userInfo.nickName = res.data.nickName || "";
|
||||
userInfo.deptId = res.data.deptId || "";
|
||||
userInfo.deptName = res.data.deptName || "";
|
||||
userInfo.avatar = res.data.avatar || "";
|
||||
userInfo.phone = res.data.phonenumber || res.data.phone || "";
|
||||
if (res.data.roles && res.data.roles.length > 0) {
|
||||
userInfo.role = res.data.roles[0].roleKey || "";
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:229", "获取用户信息失败:", e);
|
||||
try {
|
||||
const storedUserInfo = common_vendor.index.getStorageSync("userInfo");
|
||||
if (storedUserInfo) {
|
||||
const info = JSON.parse(storedUserInfo);
|
||||
userInfo.userId = info.userId || "";
|
||||
userInfo.username = info.username || "";
|
||||
userInfo.nickName = info.nickName || "";
|
||||
userInfo.deptId = info.deptId || "";
|
||||
userInfo.deptName = info.deptName || "";
|
||||
userInfo.role = info.role || "";
|
||||
userInfo.avatar = info.avatar || "";
|
||||
userInfo.phone = info.phone || "";
|
||||
}
|
||||
} catch (storageError) {
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:245", "从本地存储获取用户信息失败:", storageError);
|
||||
}
|
||||
}
|
||||
};
|
||||
const infoList = common_vendor.ref([
|
||||
{
|
||||
name: "成员管理",
|
||||
src: "/static/home_icon/chengyuangaunli.png"
|
||||
},
|
||||
{
|
||||
name: "信息填报",
|
||||
src: "/static/home_icon/xinxitianbao.png"
|
||||
},
|
||||
{
|
||||
name: "区域设置",
|
||||
src: "/static/home_icon/quyushezhi.png"
|
||||
},
|
||||
{
|
||||
name: "检查清单",
|
||||
src: "/static/home_icon/jiachaqingdan.png"
|
||||
},
|
||||
{
|
||||
name: "检查记录",
|
||||
src: "/static/home_icon/jianchajilu.png"
|
||||
},
|
||||
{
|
||||
name: "证件管理",
|
||||
src: "/static/home_icon/zhengjianguanli.png"
|
||||
},
|
||||
{
|
||||
name: "隐患排查",
|
||||
src: "/static/home_icon/yinhuanpaicha.png"
|
||||
},
|
||||
{
|
||||
name: "隐患销号",
|
||||
src: "/static/home_icon/yinhuanxiaohao.png"
|
||||
}
|
||||
// ,
|
||||
// {
|
||||
// name: '设备登记',
|
||||
// src: '/static/home_icon/shebeidengji.png'
|
||||
// }
|
||||
]);
|
||||
const ViewDetails = (item) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/plandetail/plandetail?id=${item.id}`
|
||||
});
|
||||
};
|
||||
const goDetails = (item) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/Inspectionresult/Inspectionresult?id=${item.id}`
|
||||
});
|
||||
};
|
||||
const handleMenuClick = (item) => {
|
||||
const menuRoutes = {
|
||||
"成员管理": "/pages/membermanagemen/membermanagemen",
|
||||
"信息填报": "/pages/corporateInformation/corporateInformation",
|
||||
"区域设置": "/pages/area/management",
|
||||
"检查清单": "/pages/checklist/checklist",
|
||||
"检查记录": "/pages/Inspectionlog/Inspectionlog",
|
||||
"证件管理": "/pages/Idphotomanagement/Idphotomanagement",
|
||||
"隐患排查": "/pages/hiddendanger/Inspection",
|
||||
"隐患销号": "/pages/closeout/application",
|
||||
"设备登记": "/pages/equipmentregistration/equipmentregistration"
|
||||
};
|
||||
const url = menuRoutes[item.name];
|
||||
if (url) {
|
||||
common_vendor.index.navigateTo({ url });
|
||||
} else {
|
||||
common_vendor.index.showToast({ title: "功能开发中", icon: "none" });
|
||||
}
|
||||
};
|
||||
const checkPlanParams = common_vendor.ref({
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
name: ""
|
||||
});
|
||||
const checkPlanData = common_vendor.ref([]);
|
||||
const getCheckPlanLists = async () => {
|
||||
try {
|
||||
const res = await request_api.getCheckPlanList(checkPlanParams.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:331", res);
|
||||
if (res.code === 0) {
|
||||
checkPlanData.value = res.data.records;
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:336", error);
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
};
|
||||
const formatDate = (dateStr) => {
|
||||
if (!dateStr)
|
||||
return "";
|
||||
return dateStr.split(" ")[0];
|
||||
};
|
||||
common_vendor.onShow(() => {
|
||||
getUserInfo();
|
||||
getCheckPlanLists();
|
||||
getHiddenDangerLists();
|
||||
});
|
||||
const hiddenDangerParams = common_vendor.ref({
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
name: ""
|
||||
});
|
||||
const hiddenDangerData = common_vendor.ref([]);
|
||||
const dangerTabs = common_vendor.ref(["全部状态", "待验收", "待整改", "待交办", "验收通过"]);
|
||||
const activeDangerTab = common_vendor.ref(0);
|
||||
const switchDangerTab = (index) => {
|
||||
activeDangerTab.value = index;
|
||||
};
|
||||
const filteredDangerData = common_vendor.computed(() => {
|
||||
if (activeDangerTab.value === 0) {
|
||||
return hiddenDangerData.value;
|
||||
}
|
||||
const status = dangerTabs.value[activeDangerTab.value];
|
||||
return hiddenDangerData.value.filter((item) => item.statusName === status);
|
||||
});
|
||||
const getHiddenDangerLists = async () => {
|
||||
try {
|
||||
const res = await request_api.getHiddenDangerList(hiddenDangerParams.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:388", res);
|
||||
if (res.code === 0) {
|
||||
hiddenDangerData.value = res.data.records;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:391", hiddenDangerData.value, 1111);
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:394", error);
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
};
|
||||
common_vendor.onLoad(() => {
|
||||
getHiddenDangerLists();
|
||||
});
|
||||
const viewHazardDetail = (item) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/hiddendanger/view?hazardId=${item.hazardId}&assignId=${item.assignId}`
|
||||
});
|
||||
};
|
||||
const goRectification = (item) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/hiddendanger/rectification?hazardId=${item.hazardId}&assignId=${item.assignId}`
|
||||
});
|
||||
};
|
||||
const goAcceptance = (item) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/hiddendanger/acceptance?hazardId=${item.hazardId}&assignId=${item.assignId}&rectifyId=${item.rectifyId}`
|
||||
});
|
||||
};
|
||||
const assignHazard = (item) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/hiddendanger/assignment?hazardId=${item.hazardId}&assignId=${item.assignId}`
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_assets._imports_0,
|
||||
b: common_vendor.p({
|
||||
title: "三查一曝光",
|
||||
placeholder: false,
|
||||
fixed: false,
|
||||
safeAreaInsetTop: true,
|
||||
bgColor: "transparent",
|
||||
titleColor: "#fff",
|
||||
border: false,
|
||||
leftIcon: ""
|
||||
}),
|
||||
c: getImageUrl(userInfo.avatar) || defaultAvatar,
|
||||
d: common_vendor.t(userInfo.deptName || "未知部门"),
|
||||
e: common_vendor.t(userInfo.phone || "未绑定"),
|
||||
f: common_vendor.f(infoList.value, (item, index, i0) => {
|
||||
return {
|
||||
a: item.src,
|
||||
b: common_vendor.t(item.name),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => handleMenuClick(item), index)
|
||||
};
|
||||
}),
|
||||
g: checkPlanData.value.length === 0
|
||||
}, checkPlanData.value.length === 0 ? {} : {}, {
|
||||
h: common_vendor.f(checkPlanData.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.name),
|
||||
b: common_vendor.t(item.runModeName),
|
||||
c: common_vendor.t(item.cycle),
|
||||
d: common_vendor.t(formatDate(item.planStartTime)),
|
||||
e: common_vendor.t(formatDate(item.planEndTime)),
|
||||
f: item.progress + "%",
|
||||
g: common_vendor.t(item.progress),
|
||||
h: common_vendor.t(item.totalCount),
|
||||
i: common_vendor.t(item.totalCount - item.finishedCount),
|
||||
j: common_vendor.t(item.finishedCount),
|
||||
k: common_vendor.o(($event) => ViewDetails(item), item.id),
|
||||
l: item.finishedCount < item.totalCount
|
||||
}, item.finishedCount < item.totalCount ? {
|
||||
m: common_vendor.o(($event) => goDetails(item), item.id)
|
||||
} : {}, {
|
||||
n: item.id
|
||||
});
|
||||
}),
|
||||
i: common_vendor.f(dangerTabs.value, (tab, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(tab),
|
||||
b: activeDangerTab.value === index ? 1 : "",
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => switchDangerTab(index), index)
|
||||
};
|
||||
}),
|
||||
j: filteredDangerData.value.length === 0
|
||||
}, filteredDangerData.value.length === 0 ? {} : {}, {
|
||||
k: common_vendor.f(filteredDangerData.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.title),
|
||||
b: common_vendor.t(item.levelName),
|
||||
c: item.levelName === "轻微隐患" ? 1 : "",
|
||||
d: item.levelName === "一般隐患" ? 1 : "",
|
||||
e: item.levelName === "重大隐患" ? 1 : "",
|
||||
f: common_vendor.t(item.address),
|
||||
g: common_vendor.t(item.source),
|
||||
h: common_vendor.t(item.statusName),
|
||||
i: common_vendor.t(item.createdAt),
|
||||
j: common_vendor.o(($event) => viewHazardDetail(item), item.hazardId),
|
||||
k: item.statusName === "待整改" && item.canEdit
|
||||
}, item.statusName === "待整改" && item.canEdit ? {
|
||||
l: common_vendor.o(($event) => goRectification(item), item.hazardId)
|
||||
} : {}, {
|
||||
m: item.statusName === "待验收" && canAcceptance.value
|
||||
}, item.statusName === "待验收" && canAcceptance.value ? {
|
||||
n: common_vendor.o(($event) => goAcceptance(item), item.hazardId)
|
||||
} : {}, {
|
||||
o: item.statusName === "待交办"
|
||||
}, item.statusName === "待交办" ? {
|
||||
p: common_vendor.o(($event) => assignHazard(item), item.hazardId)
|
||||
} : {}, {
|
||||
q: item.hazardId
|
||||
});
|
||||
}),
|
||||
l: common_vendor.gei(_ctx, "")
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|
||||
8
unpackage/dist/dev/mp-weixin/pages/index/index.json
vendored
Normal file
8
unpackage/dist/dev/mp-weixin/pages/index/index.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "三查一曝光",
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTextStyle": "white",
|
||||
"usingComponents": {
|
||||
"u-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
vendored
Normal file
File diff suppressed because one or more lines are too long
291
unpackage/dist/dev/mp-weixin/pages/index/index.wxss
vendored
Normal file
291
unpackage/dist/dev/mp-weixin/pages/index/index.wxss
vendored
Normal file
@@ -0,0 +1,291 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* uni.scss */
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.header-wrapper.data-v-1cf27b2a {
|
||||
position: relative;
|
||||
padding-bottom: 40rpx;
|
||||
overflow: hidden;
|
||||
background-color: #2472EA;
|
||||
}
|
||||
.header-bg-image.data-v-1cf27b2a {
|
||||
position: absolute;
|
||||
top: 2rpx;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 0;
|
||||
opacity: 1.6;
|
||||
}
|
||||
.user-card.data-v-1cf27b2a {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 42rpx 30rpx 54rpx 30rpx;
|
||||
}
|
||||
.user-card .user-avatar.data-v-1cf27b2a {
|
||||
flex-shrink: 0;
|
||||
width: 144rpx;
|
||||
height: 144rpx;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
}
|
||||
.user-card .user-info.data-v-1cf27b2a {
|
||||
flex: 1;
|
||||
margin-left: 24rpx;
|
||||
overflow: hidden;
|
||||
max-width: 576rpx;
|
||||
}
|
||||
.user-card .user-info .user-dept.data-v-1cf27b2a {
|
||||
font-size: 34rpx;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.user-card .user-info .user-phone.data-v-1cf27b2a {
|
||||
font-size: 26rpx;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.user-card .switch-btn.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
padding: 16rpx 24rpx;
|
||||
border-radius: 30rpx;
|
||||
color: #285CE9;
|
||||
font-size: 26rpx;
|
||||
flex-shrink: 0;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.user-card .switch-btn text.data-v-1cf27b2a {
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
.page-content.data-v-1cf27b2a {
|
||||
background: #F4F7FB;
|
||||
border-radius: 40rpx 40rpx 0rpx 0rpx;
|
||||
margin-top: -40rpx;
|
||||
padding: 30rpx;
|
||||
padding-bottom: 50rpx;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
min-height: calc(100vh - 400rpx);
|
||||
}
|
||||
.menu-card.data-v-1cf27b2a {
|
||||
background: #fff;
|
||||
border-radius: 40rpx 40rpx 0 0rpx;
|
||||
padding: 44rpx 30rpx 30rpx 30rpx;
|
||||
margin-left: -40rpx;
|
||||
margin-right: -40rpx;
|
||||
margin-top: -30rpx;
|
||||
}
|
||||
.menu-grid.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.menu-item.data-v-1cf27b2a {
|
||||
width: 20%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 38rpx;
|
||||
}
|
||||
.menu-item .menu-icon.data-v-1cf27b2a {
|
||||
width: 72rpx;
|
||||
height: 80rpx;
|
||||
}
|
||||
.menu-item .menu-text.data-v-1cf27b2a {
|
||||
font-size: 24rpx;
|
||||
color: #333;
|
||||
margin-top: 14rpx;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.avatar-image.data-v-1cf27b2a {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.list-list.data-v-1cf27b2a {
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0rpx 2rpx 6rpx 2rpx rgba(0, 0, 0, 0.08);
|
||||
border-left: 5px solid #2667E9;
|
||||
border-radius: 20rpx;
|
||||
padding: 20rpx;
|
||||
}
|
||||
.plan-card.data-v-1cf27b2a {
|
||||
border-radius: 16rpx;
|
||||
overflow: hidden;
|
||||
box-shadow: 0rpx 2rpx 6rpx 2rpx rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
.plan-header.data-v-1cf27b2a {
|
||||
background: linear-gradient(135deg, #4A90E2 0%, #2667E9 100%);
|
||||
padding: 24rpx 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.plan-header .plan-header-icon.data-v-1cf27b2a {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
.plan-header .plan-header-title.data-v-1cf27b2a {
|
||||
color: #fff;
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
.plan-body.data-v-1cf27b2a {
|
||||
padding: 24rpx 30rpx 10rpx 30rpx;
|
||||
background: #fff;
|
||||
}
|
||||
.plan-stats.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
background: #F5F7FA;
|
||||
border-radius: 12rpx;
|
||||
border: 1rpx solid #E8ECF0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.plan-stats .plan-stat-item.data-v-1cf27b2a {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
padding: 20rpx 0;
|
||||
border-right: 1rpx solid #E8ECF0;
|
||||
}
|
||||
.plan-stats .plan-stat-item.data-v-1cf27b2a:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
.plan-stats .plan-stat-num.data-v-1cf27b2a {
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
.plan-stats .plan-stat-label.data-v-1cf27b2a {
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.border-tite.data-v-1cf27b2a {
|
||||
width: 10rpx;
|
||||
height: 32rpx;
|
||||
background: #2667E9;
|
||||
border-radius: 10rpx 10rpx 10rpx 10rpx;
|
||||
}
|
||||
.cu-progress.data-v-1cf27b2a {
|
||||
width: 300rpx;
|
||||
height: 20rpx;
|
||||
background: #ebeef5;
|
||||
border-radius: 100rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
.cu-progress view.data-v-1cf27b2a {
|
||||
height: 100%;
|
||||
border-radius: 100rpx;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
.bg-green.data-v-1cf27b2a {
|
||||
background: #2667E9;
|
||||
}
|
||||
.border-border.data-v-1cf27b2a {
|
||||
padding: 10rpx;
|
||||
background: #EEF3FF;
|
||||
border-radius: 4rpx 4rpx 4rpx 4rpx;
|
||||
border: 2rpx solid #AAC5FC;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
font-size: 28rpx;
|
||||
color: #2667E9;
|
||||
}
|
||||
.level-tag.data-v-1cf27b2a {
|
||||
padding: 4rpx 16rpx;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
.level-minor.data-v-1cf27b2a {
|
||||
background: #F6FFED;
|
||||
border: 2rpx solid #B7EB8F;
|
||||
color: #52C41A;
|
||||
}
|
||||
.level-normal.data-v-1cf27b2a {
|
||||
background: #FFF7E6;
|
||||
border: 2rpx solid #FFD591;
|
||||
color: #FA8C16;
|
||||
}
|
||||
.level-major.data-v-1cf27b2a {
|
||||
background: #FFF1F0;
|
||||
border: 2rpx solid #FFA39E;
|
||||
color: #F5222D;
|
||||
}
|
||||
.danger-tab-scroll.data-v-1cf27b2a {
|
||||
white-space: nowrap;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.danger-tab-list.data-v-1cf27b2a {
|
||||
display: inline-flex;
|
||||
gap: 42rpx;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.danger-tab-item.data-v-1cf27b2a {
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
padding-bottom: 12rpx;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.danger-tab-active.data-v-1cf27b2a {
|
||||
font-weight: bold;
|
||||
color: #2667E9 !important;
|
||||
}
|
||||
.danger-tab-active.data-v-1cf27b2a::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 40rpx;
|
||||
height: 6rpx;
|
||||
background: #2667E9;
|
||||
border-radius: 3rpx;
|
||||
}
|
||||
.danger-card.data-v-1cf27b2a {
|
||||
padding: 30rpx;
|
||||
margin-bottom: 20rpx;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0rpx 6rpx 12rpx 2rpx #F1F5FE;
|
||||
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||
border: 2rpx solid #EAECEF;
|
||||
}
|
||||
.danger-info-row.data-v-1cf27b2a {
|
||||
font-size: 28rpx;
|
||||
margin-top: 16rpx;
|
||||
display: flex;
|
||||
}
|
||||
.danger-info-row .text-gray.data-v-1cf27b2a {
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
Reference in New Issue
Block a user