Commit 1386b9f6 authored by lei's avatar lei

add:安全等级详情页面;home.html.css.js;shanghu_home.html.css.js;

parent f747b514
body {
letter-spacing: .02rem;
letter-spacing: 0.02rem;
}
.page_wrapper {
......@@ -48,7 +48,7 @@ body {
.second-layer-zf {
background-color: transparent;
padding-top: 1rem;
padding-left: .6rem;
padding-left: 0.6rem;
}
.second-layer-sj {
......@@ -62,27 +62,26 @@ body {
justify-content: space-between;
align-items: center;
padding: 0.2rem 0;
}
.second-layer-sj .header span {
font-weight: 500;
font-size: .3rem;
color: #0166BC;
font-size: 0.3rem;
color: #0166bc;
}
.second-layer-sj .header img {
width: 0.25rem;
height: .25rem;
height: 0.25rem;
}
.second-layer-sj .bottom {
display: flex;
margin: 0 auto;
border-radius: .2rem;
border-radius: 0.2rem;
background-color: #ffffff42;
padding: .24rem;
margin-bottom: -.22rem;
padding: 0.24rem;
margin-bottom: -0.22rem;
}
.second-layer-sj img {
......@@ -92,55 +91,59 @@ body {
.second-layer-sj .user_tag {
width: 1.8rem;
height: .48rem;
line-height: .48rem;
background: #CFE8FD;
border-radius: .24rem;
height: 0.48rem;
line-height: 0.48rem;
background: #cfe8fd;
border-radius: 0.24rem;
font-weight: bold;
font-size: .26rem;
color: #0166BC;
font-size: 0.26rem;
color: #0166bc;
text-align: center;
}
.second-layer-sj .merchant-name {
font-weight: bold;
font-size: .34rem;
color: #0166BC;
font-size: 0.34rem;
color: #0166bc;
}
.second-layer-sj .name-rank {
display: flex;
justify-content: space-around;
align-items: start;
gap: .2rem;
gap: 0.2rem;
flex-direction: column;
margin-bottom: 10px;
}
.second-layer-sj .user-rank {
width: 2.4rem;
text-align: center;
height: 0.5rem;
line-height: 0.5rem;
background: #00B55E;
border-radius: 0.22rem;
font-family: PingFang SC;
font-weight: 500;
font-size: 0.26rem;
color: #FFFFFF;
color: #ffffff;
}
.second-layer-sj .green {
background: #00b55e;
}
.second-layer-sj .yellow {
background: rgba(255, 148, 21, 1);
}
.second-layer-sj .red {
background: rgba(255, 33, 49, 1);
}
.second-layer-sj .type-address p {
font-weight: 500;
font-size: 0.28rem;
color: #1376CA;
margin-bottom: .14rem;
color: #1376ca;
margin-bottom: 0.14rem;
}
.merchant-icon {
width: 1rem;
height: 1rem;
......@@ -159,7 +162,7 @@ body {
.welcome {
font-weight: bold;
font-size: 0.32rem;
color: #FFFFFF;
color: #ffffff;
line-height: 1.8;
letter-spacing: 0.02rem;
}
......@@ -169,12 +172,12 @@ body {
right: 0.3rem;
top: 0.3rem;
width: 2rem;
height: .48rem;
background: #CFE8FD;
border-radius: .24rem;
height: 0.48rem;
background: #cfe8fd;
border-radius: 0.24rem;
font-weight: bold;
font-size: .26rem;
color: #0166BC;
font-size: 0.26rem;
color: #0166bc;
text-align: center;
}
......@@ -183,18 +186,12 @@ body {
height: 0.25rem;
}
.divider {
height: 1px;
background-color: #eee;
margin-bottom: 10px;
}
/* 第三层样式 */
.third-layer {
background-color: white;
......@@ -209,13 +206,13 @@ body {
display: flex;
justify-content: space-between;
align-items: center;
padding: .3rem;
padding: 0.3rem;
border-bottom: 1px solid #eee;
}
.stats-header .formValue {
font-size: .28rem;
margin-right: .1rem;
font-size: 0.28rem;
margin-right: 0.1rem;
}
.stats-header .van-icon:before {
......@@ -223,14 +220,14 @@ body {
}
.stats-title {
font-size: .36rem;
font-size: 0.36rem;
font-weight: bold;
color: #333;
}
.stats-content {
display: flex;
padding: .3rem 0;
padding: 0.3rem 0;
}
.stat-item {
......@@ -241,43 +238,43 @@ body {
.stat-value {
font-family: PingFang SC;
font-weight: bold;
font-size: .36rem;
color: #1081E3;
margin-bottom: .15rem;
font-size: 0.36rem;
color: #1081e3;
margin-bottom: 0.15rem;
}
.stat-label {
font-family: PingFang SC;
font-weight: bold;
font-size: .3rem;
color: #5B5B5B;
font-size: 0.3rem;
color: #5b5b5b;
}
/* 第四层样式 */
.fourth-layer {
background-color: white;
padding: .3rem;
padding: 0.3rem;
width: 92vw;
margin: 0 auto;
border-radius: .1rem;
border-radius: 0.1rem;
}
.fourth-layer h2 {
font-size: .36rem;
font-size: 0.36rem;
color: #000000;
margin-bottom: .4rem;
margin-bottom: 0.4rem;
}
.check-modules {
display: flex;
flex-wrap: wrap;
gap: .3rem;
gap: 0.3rem;
}
.check-module {
width: 3rem;
height: 1.8rem;
padding: .2rem;
padding: 0.2rem;
/* border-bottom: 1px solid #eee;
border-right: 1px solid #eee; */
background-image: url('image/code/bg1.png');
......@@ -288,16 +285,15 @@ border-right: 1px solid #eee; */
.check-module p:first-child {
font-weight: bold;
font-size: .32rem;
color: #0C4BA2;
margin-bottom: .2rem;
font-size: 0.32rem;
color: #0c4ba2;
margin-bottom: 0.2rem;
}
.check-module p:last-child {
font-weight: 500;
font-size: .24rem;
color: #4C81CA;
font-size: 0.24rem;
color: #4c81ca;
}
.check-module.saoma {
......@@ -305,11 +301,11 @@ border-right: 1px solid #eee; */
}
.check-module.saoma p:first-child {
color: #0C4BA2;
color: #0c4ba2;
}
.check-module.saoma p:last-child {
color: #4C81CA;
color: #4c81ca;
}
.check-module.jiancha {
......@@ -317,11 +313,11 @@ border-right: 1px solid #eee; */
}
.check-module.jiancha p:first-child {
color: #1E7B61;
color: #1e7b61;
}
.check-module.jiancha p:last-child {
color: #5CA691;
color: #5ca691;
}
.check-module.yinhuan {
......@@ -329,11 +325,11 @@ border-right: 1px solid #eee; */
}
.check-module.yinhuan p:first-child {
color: #901A14;
color: #901a14;
}
.check-module.yinhuan p:last-child {
color: #901A14;
color: #901a14;
}
.check-module.anquan {
......@@ -341,11 +337,11 @@ border-right: 1px solid #eee; */
}
.check-module.anquan p:first-child {
color: #0063A1;
color: #0063a1;
}
.check-module.anquan p:last-child {
color: #5AA1CE;
color: #5aa1ce;
}
.check-module.shangjia {
......@@ -353,11 +349,11 @@ border-right: 1px solid #eee; */
}
.check-module.shangjia p:first-child {
color: #9E5D15;
color: #9e5d15;
}
.check-module.shangjia p:last-child {
color: #CD995F;
color: #cd995f;
}
.check-module.zicha {
......@@ -369,7 +365,7 @@ border-right: 1px solid #eee; */
}
.module-intro {
font-size: .24rem;
font-size: 0.24rem;
color: #666;
margin-top: .1rem;
margin-top: 0.1rem;
}
......@@ -103,7 +103,24 @@
<div class="merchant-info">
<div class="name-rank">
<span class="merchant-name">{{userInfo.unitName}}</span>
<span class="user-rank">安全等级:绿</span>
<span
class="user-rank green"
v-if="userInfo.safeLevel==0"
@click="gotoPage('anquan_level')"
>安全等级:绿</span
>
<span
class="user-rank yellow"
v-if="userInfo.safeLevel==1"
@click="gotoPage('anquan_level')"
>安全等级:黄</span
>
<span
class="user-rank red"
v-if="userInfo.safeLevel==2"
@click="gotoPage('anquan_level')"
>安全等级:红</span
>
</div>
<div class="divider"></div>
<div class="type-address">
......
......@@ -44,6 +44,7 @@ window.onload = function () {
userName: '张三', // 登录用户name
deptId: '1', // 登录用户部门id
deptName: '部门1', // 登录用户部门name
safeLevel: '0', //0:绿、1:黄、2:红
role: 'dudao',
roleName: '',
},
......@@ -167,7 +168,10 @@ window.onload = function () {
navTo(url) {
// gemhoUtil.nav2asd(url)
},
gotoPage(stringifyUrl) {
let url = gemhoUtil.setParameter(`src/_${stringifyUrl}.html`)
gemhoUtil.navigatePage(url, '跳转中...')
},
init() {
// 在组件挂载后执行
// 调用你的方法
......@@ -237,6 +241,7 @@ window.onload = function () {
userId: '1', // 登录用户id
userName: '张三', // 登录用户name
deptId: '1', // 登录用户部门id
safeLevel: result.data.merchantInfoNumVo?.safeLevel, //0:绿、1:黄、2:红
deptName: result.data.roleDeptNameVo.deptName, // 登录用户部门name
businessAddress:
result.data.merchantInfoNumVo?.businessAddress, //
......@@ -249,9 +254,9 @@ window.onload = function () {
}
gemhoUtil.setCookie('userType', this.userInfo.userType)
if(this.userInfo.userType === 'consumers'){ // 2025年5月14日新增消费者逻辑
if (this.userInfo.userType === 'consumers') { // 2025年5月14日新增消费者逻辑
// 根据url地址的merid获取商户信息
if(gemhoUtil.getParameter('merId')){ // 消费者直接在爱山东扫商户码进入首页
if (gemhoUtil.getParameter('merId')) { // 消费者直接在爱山东扫商户码进入首页
// this.getMerInfo()
param = {
merId: gemhoUtil.getParameter('merId'),
......@@ -260,7 +265,7 @@ window.onload = function () {
let url = gemhoUtil.setParameter(`${param.pageName}.html`, param)
gemhoUtil.navigatePage(url, '跳转中...')
return
}else{ // 消费者不扫码后,直接退出到爱山东首页。(用户直接在爱山东点击应用进入首页)
} else { // 消费者不扫码后,直接退出到爱山东首页。(用户直接在爱山东点击应用进入首页)
vant.Dialog.alert({
title: '信息提示',
message: '请扫描商户码访问~',
......@@ -273,7 +278,7 @@ window.onload = function () {
}
return
}else if (this.userInfo.userType === 'shop') {
} else if (this.userInfo.userType === 'shop') {
this.defaultMenuList[1].navTo = 'checkrecord'
} else {
this.defaultMenuList[1].navTo = 'shanghu_list'
......
......@@ -10,14 +10,14 @@ axios.defaults.headers.post['Content-Type'] = 'application/json'
// axios.defaults.headers.common['Authorization'] = gemhoUtil.getCookie('token')
// 消费者token
axios.defaults.headers.common['Authorization'] =
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLmtojotLnogIUiLCJsb2dpbl91c2VyX2tleSI6ImExNWIwMDNjLWRlYWItNGU2MC04ODg4LTJiODNjMzVkNDUzNSJ9.l6gHzFX-U5rKGJ7zoDA4jMBIxkhVgCjWr5ynFg1DR6xspM9Ls6raTxyEo2Kr61UbG2UD6P2kN63vF_U8nX8afg'
// // 消费者token
// axios.defaults.headers.common['Authorization'] =
// 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLmtojotLnogIUiLCJsb2dpbl91c2VyX2tleSI6ImExNWIwMDNjLWRlYWItNGU2MC04ODg4LTJiODNjMzVkNDUzNSJ9.l6gHzFX-U5rKGJ7zoDA4jMBIxkhVgCjWr5ynFg1DR6xspM9Ls6raTxyEo2Kr61UbG2UD6P2kN63vF_U8nX8afg'
// // 商户token
// axios.defaults.headers.common['Authorization'] =
// 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLlvKDlrZ3lvakiLCJsb2dpbl91c2VyX2tleSI6ImYzZDMwY2Q4LWY5ODAtNGE0NC1iNzE1LTZiMTJlNGQyZTQ1OCJ9.HjtdJuJS7NjTw4GMaAtDtOeA2EnF75pXVQefzwkdrxQdxyHB6L8h0XhKSB5A_YMsznQMd4DZrGZ5TPEmc1fueg'
// 商户token
axios.defaults.headers.common['Authorization'] =
'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxMzg2MzE1OTk4NyIsImxvZ2luX3VzZXJfa2V5IjoiMDc1ZWVkOGUtYjZjNC00OTE3LWJlYjYtY2RhOTBmYWY2YTkwIn0.7IcT8J7AGWR7vlesikjZvDYYvSY46TKIU2F41g8V7z6naxJQOlOKt-IXTzTo2QmlSF5Eo7hbxfTy7OJxdT4MWw'
// admin账号token
// axios.defaults.headers.common['Authorization'] =
......
/* 全局样式重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
/* 基础样式 */
body {
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
line-height: 1.5;
color: #333;
background-color: #f8f8f8;
padding-bottom: 20px;
}
/* 表格样式 */
.table-container {
margin: 15px;
background-color: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
padding: 12px 15px;
text-align: center;
border-bottom: 1px solid #eee;
border-right: 1px solid #eee;
}
/* 最后一列去除右边框 */
th:last-child,
td:last-child {
border-right: none;
}
th {
font-size: 20px;
color: #666;
font-weight: bold;
}
td {
font-size: 16px;
}
/* 等级标识样式 */
.level-icon {
display: inline-block;
width: 24px;
height: 24px;
margin-right: 10px;
vertical-align: middle;
text-align: center;
line-height: 24px;
color: #fff;
}
.green .level-icon {
background-color: #4caf50;
}
.yellow .level-icon {
background-color: #ffc107;
}
.red .level-icon {
background-color: #f44336;
}
/* 第一列宽度调整 */
th:first-child,
td:first-child {
width: 100px;
}
/* 最后一行去除下边框 */
tr:last-child td {
border-bottom: none;
}
/* 注释样式 */
.note {
margin: 15px;
font-size: 12px;
color: #999;
line-height: 1.4;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, viewprot-fit:cover">
<title>高区“码”上</title>
<script type="text/javascript" src="../sdk/includeHead.js"></script>
</head>
</head>
<body>
<div id="app">
<div class="wrapper" >
<van-nav-bar
title="安全等级说明"
left-arrow
@click-left="onClickLeft"
></van-nav-bar>
<div class="table-container">
<table>
<thead>
<tr>
<th>等级</th>
<th>判定条件</th>
</tr>
</thead>
<tbody>
<tr class="green">
<td><span class="level-icon">绿</span></td>
<td>1个月内自查数≥1次 且 超期未整改≤2次</td>
</tr>
<tr class="yellow">
<td><span class="level-icon"></span></td>
<td>1个月内自查数=0 或 超期未整改>2次</td>
</tr>
<tr class="red">
<td><span class="level-icon"></span></td>
<td>2个月内自查数=0 或 超期未整改>4次</td>
</tr>
</tbody>
</table>
</div>
<p class="note">注:等级根据企业自查、整改数据实时变动</p>
</div>
</div>
</body>
</html>
\ No newline at end of file
/**
* author: dabao
* date: 2024-03-15
* description: 安全等级
*/
var VUE = null
window.addEventListener("load", function () {
VUE = new Vue({
el: '#app',
data() {
return {
}
},
methods: {
// 跳转
onClickLeft() {
window.history.back()
}
}
});
})
\ No newline at end of file
/* 基础样式 */
html,
body {
/* 基础样式 */
html,
body {
background-color: #fff;
letter-spacing: .01rem;
}
letter-spacing: 0.01rem;
}
/* 通用工具类 */
.pd-01rem {
/* 通用工具类 */
.pd-01rem {
padding-bottom: 0.1rem;
}
}
/* 表单相关 */
.formValue {
/* 表单相关 */
.formValue {
float: right;
}
}
.formSubmitBtnWrapper {
.formSubmitBtnWrapper {
display: flex;
justify-content: center;
margin-top: 0.2rem;
margin-bottom: 0.2rem;
}
}
.formSubmitBtnWrapper .van-button {
.formSubmitBtnWrapper .van-button {
width: 4rem;
}
}
/* 框架样式覆盖修改 */
.checklist-container .van-cell__value {
/* 框架样式覆盖修改 */
.checklist-container .van-cell__value {
overflow: unset;
background-color: #f5f6fa;
}
}
.checklist-container .van-cell:after {
.checklist-container .van-cell:after {
border-bottom: none;
}
}
.checklist-container .van-radio-group--horizontal {
.checklist-container .van-radio-group--horizontal {
float: left;
}
}
.checklist-container .van-checkbox {
.checklist-container .van-checkbox {
width: auto;
float: left;
margin-right: .3rem;
margin-bottom: .2rem;
}
margin-right: 0.3rem;
margin-bottom: 0.2rem;
}
.checklist-container .van-checkbox__label,
.checklist-container .van-radio__label {
.checklist-container .van-checkbox__label,
.checklist-container .van-radio__label {
font-size: 0.28rem;
}
}
.checklist-container .van-checkbox__icon,
.checklist-container .van-radio__icon {
.checklist-container .van-checkbox__icon,
.checklist-container .van-radio__icon {
font-size: 0.34rem;
background-color: #fff;
}
}
.checklist-container .van-radio {
margin: .2rem 0 0.2rem 0.8rem;
}
.checklist-container .van-radio {
margin: 0.2rem 0 0.2rem 0.8rem;
}
.checklist-container .van-cell {
.checklist-container .van-cell {
background: #f5f6fa;
margin-top: 0.2rem;
padding: 0;
}
}
/* 表单内的表项 背景色覆盖 */
.van-form {
/* 表单内的表项 背景色覆盖 */
.van-form {
margin-bottom: 1rem;
padding-left: .3rem;
}
padding-left: 0.3rem;
}
.van-form .van-field__label{
.van-form .van-field__label {
width: 1.8rem;
}
.van-form .van-field__control{
}
.van-form .van-field__control {
text-align: right;
padding-right: .3rem;
}
padding-right: 0.3rem;
}
.van-form .van-cell,
.van-form .van-cell__value {
.van-form .van-cell,
.van-form .van-cell__value {
background: #fff;
}
.yh_desc{
}
.yh_desc {
width: 6.2rem;
min-height: 0.68rem;
background: rgb(238, 238, 238);
border-radius: 0.04rem;
border: 0px solid rgb(191, 191, 191);
padding: .2rem;
padding: 0.2rem;
font-size: 0.28rem;
font-weight: 500;
color: #545454;
}
}
.checklist-container .van-cell-group {
.checklist-container .van-cell-group {
background-color: #f5f6fa;
}
}
.checklist-container textarea {
.checklist-container textarea {
background-color: #fff !important;
}
}
.checklist-container .van-uploader__upload {
.checklist-container .van-uploader__upload {
background-color: #fff;
}
}
.limit_date_wrapper .van-field__label {
.limit_date_wrapper .van-field__label {
width: 1.3rem;
}
}
.checklist-container .van-icon-apps-o:before,
.checklist-container .van-icon-fire-o:before {
.checklist-container .van-icon-apps-o:before,
.checklist-container .van-icon-fire-o:before {
font-size: 0.32rem;
}
}
/* 检查清单容器 */
.checklist-container {
/* 检查清单容器 */
.checklist-container {
/* padding: 12px; */
background: #fff;
overflow: hidden;
padding-bottom: 2rem;
}
}
/* 检查项 */
.check-item {
/* 检查项 */
.check-item {
background: white;
float: left;
}
}
.item-header {
.item-header {
display: flex;
align-items: center;
margin: .3rem 0px .1rem .3rem;
}
margin: 0.3rem 0px 0.1rem 0.3rem;
}
.item-number {}
.item-number {
}
.item-title {
.item-title {
font-size: 0.28rem;
}
}
.item_title {
.item_title {
font-size: 0.3rem;
color: #1081E3;
color: #1081e3;
font-weight: bold;
position: relative;
padding-left: 0.2rem;
margin-left: .2rem;
}
margin-left: 0.2rem;
}
.item_title::before {
.item_title::before {
content: '';
display: block;
width: 0.05rem;
height: 0.32rem;
background-color: #1081E3;
background-color: #1081e3;
position: absolute;
left: 0;
top: 0;
}
}
/* 展开部分 */
.expand-section {
/* 展开部分 */
.expand-section {
width: calc(7.5rem - 0.6rem);
float: left;
background: #f5f6fa;
padding: 0.1rem 0.3rem;
}
/* 图片预览大小 */
.expand-section .van-uploader__preview-image {
}
/* 图片预览大小 */
.expand-section .van-uploader__preview-image {
display: block;
width: 1.4rem;
height: 1.4rem;
overflow: hidden;
}
}
/* 子复选框组 */
.sub-checkbox-group {
/* 子复选框组 */
.sub-checkbox-group {
display: flex;
flex-wrap: wrap;
gap: 0.2rem;
margin: .2rem 0 .3rem 0;
}
margin: 0.2rem 0 0.3rem 0;
}
/* 上传器 */
.uploader-wrapper {
/* 上传器 */
.uploader-wrapper {
--van-uploader-size: 80px;
}
}
/* 截止日期选择器 */
.deadline-picker {
/* 截止日期选择器 */
.deadline-picker {
display: flex;
gap: 12px;
margin: 12px 0;
}
}
/* 检查清单头部 */
.checklist-header p {
/* 检查清单头部 */
.checklist-header p {
background-color: rgb(25, 137, 250);
color: rgb(255, 255, 255);
font-size: 0.26rem;
padding: 0.2rem 0.3rem 0.2rem;
line-height: 0.39999rem;
margin: 0;
}
}
.checklist-header h5 {
.checklist-header h5 {
font-size: 0.32rem;
text-align: center;
}
}
/* 必填标题 */
.title_require {
/* 必填标题 */
.title_require {
position: relative;
padding: 0;
margin: 0;
margin-top: 0.1rem;
padding-left: 0.2rem;
font-size: .28rem;
}
font-size: 0.28rem;
}
.title_require::before {
.title_require::before {
position: absolute;
content: '*';
color: #ee0a24;
......@@ -235,10 +234,10 @@
left: 0;
top: 50%;
transform: translateY(-50%);
}
}
/* 底部栏 */
.bottom_bar {
/* 底部栏 */
.bottom_bar {
display: flex;
justify-content: space-between;
position: fixed;
......@@ -248,32 +247,32 @@
transform: translateX(-50%);
width: 88vw;
/* border: 1px solid; */
background: #FFFFFF;
background: #ffffff;
box-shadow: 2px -5px 21px 0px rgba(103, 103, 103, 0.14);
padding-top: 0.2rem;
padding-bottom: 0.2rem;
padding-left: 0.2rem;
padding-right: 0.2rem;
}
}
.bottom_bar>div {
.bottom_bar > div {
display: grid;
grid-template-columns: auto auto .6fr;
padding-left: .2rem;
grid-template-columns: auto auto 0.6fr;
padding-left: 0.2rem;
align-items: center;
gap: 0.2rem;
width: 100vw;
}
}
.bottom_bar>div>span {
.bottom_bar > div > span {
font-weight: 500;
font-size: 0.28rem;
color: #545454;
display: inline-block;
/* width: 1.8rem; */
}
}
.bottom_bar>div>span:before {
.bottom_bar > div > span:before {
display: inline-block;
width: 0.3rem;
height: 0.3rem;
......@@ -282,25 +281,24 @@
background-size: cover;
font-weight: 500;
margin-right: 0.1rem;
}
}
.bottom_bar>div>span:first-child:before {
.bottom_bar > div > span:first-child:before {
background-image: url('../image/code/check_num.png');
}
}
.bottom_bar>div>span:nth-child(2):before {
.bottom_bar > div > span:nth-child(2):before {
background-image: url('../image/code/yh_num.png');
}
}
.bottom_bar button {
.bottom_bar button {
color: #fff;
}
}
.day_select {
.day_select {
border-color: rgb(191, 191, 191);
margin-right: 0.1rem;
width: 1rem;
padding-left: .2rem;
padding-left: 0.2rem;
background-color: #fff;
}
\ No newline at end of file
}
html,
body {
letter-spacing: .01rem;
letter-spacing: 0.01rem;
}
.wrapper {
......@@ -9,7 +9,7 @@ body {
}
.header {
padding: .2rem;
padding: 0.2rem;
}
.header .title {
......@@ -31,7 +31,7 @@ body {
.detail {
width: 6.5rem;
/* height: 1.88rem; */
background: #F5F6FA;
background: #f5f6fa;
border-radius: 0.01rem;
/* padding-left: 0.2rem; */
padding: 0.3rem;
......@@ -42,7 +42,6 @@ body {
justify-content: space-around;
/* padding-bottom: 0.1rem;
gap: 0.1rem; */
}
.detail .van-col {
......@@ -61,32 +60,31 @@ body {
.detail .detail_link {
position: absolute;
right: .3rem;
font-size: .26rem;
color: #1081E3;
right: 0.3rem;
font-size: 0.26rem;
color: #1081e3;
cursor: pointer;
}
.func_btn {
width: 7.12rem;
height: 0.8rem;
background: #1081E3;
background: #1081e3;
border-radius: 0.1rem;
font-family: PingFang SC;
font-weight: 500;
font-size: 0.3rem;
color: #FFFFFF;
color: #ffffff;
margin: 0 auto;
border-width: 0;
margin-left: .2rem;
margin-left: 0.2rem;
cursor: pointer;
}
.func_btn span {
font-size: 0.5rem;
vertical-align: -0.05rem;
margin-right: .1rem;
margin-right: 0.1rem;
}
.tag {
......@@ -95,13 +93,20 @@ body {
height: 0.42rem;
line-height: 0.42rem;
text-align: center;
background: #00B55E;
border-radius: 21px;
font-weight: 500;
font-size: 0.28rem;
color: #FFFFFF;
color: #ffffff;
}
.green {
background: #00b55e;
}
.yellow {
background: rgba(255, 148, 21, 1);
}
.red {
background: rgba(255, 33, 49, 1);
}
/* 添加以下样式 */
.van-tabs__line {
......@@ -134,14 +139,9 @@ body {
}
.van-tab--active {
color: #1081E3;
color: #1081e3;
}
.van-field__label {
font-weight: bold;
}
......@@ -151,13 +151,13 @@ body {
}
.subNavWrapper {
background-color: #F5F6FA;
background-color: #f5f6fa;
padding: 0.2rem 0.2rem;
margin-top: -0.3rem;
}
.subNavWrapper .van-tab__text {
color: #5B5B5B;
color: #5b5b5b;
}
.subNavWrapper .van-tab--active span {
......@@ -165,7 +165,6 @@ body {
font-size: 0.28rem;
}
.subNavWrapper .van-tabs__nav--card {
border: none !important;
}
......@@ -175,34 +174,33 @@ body {
}
.subNavWrapper .van-tabs__nav--card .van-tab {
color: #5B5B5B;
color: #5b5b5b;
border: none !important;
}
.subNavWrapper .van-tabs__nav--card .van-tab.van-tab--active {
color: #FFFFFF;
background: #58A5E8;
color: #ffffff;
background: #58a5e8;
border-radius: 0.4rem;
}
.subNavWrapper .van-list {
background: #F5F6FA;
background: #f5f6fa;
}
.subNavWrapper .van-cell {
margin-bottom: .3rem;
margin-bottom: 0.3rem;
}
.subNavWrapper .van-tabs__nav {
background: #F5F6FA;
background: #f5f6fa;
margin: 0;
}
.navToBtn {
color: #5B5B5B;
font-size: .36rem;
margin-top: .04rem;
color: #5b5b5b;
font-size: 0.36rem;
margin-top: 0.04rem;
position: absolute;
right: 0;
}
......@@ -15,7 +15,10 @@
<div class="header">
<!-- <div class="level">安全等级</div> -->
<div class="title">
<img src="../image/code/sj.png" alt=""><span>{{merInformation.unitName}}</span><span class="tag">安全等级-绿</span>
<img src="../image/code/sj.png" alt=""><span>{{merInformation.unitName}}</span>
<span class="tag green" v-if="merInformation.safeLevel==0" @click="gotoPage('anquan_level')">安全等级-绿</span>
<span class="tag yellow" v-if="merInformation.safeLevel==1" @click="gotoPage('anquan_level')">安全等级-黄</span>
<span class="tag red" v-if="merInformation.safeLevel==2" @click="gotoPage('anquan_level')">安全等级-红</span>
</div>
<div class="detail">
<van-row>
......
......@@ -85,6 +85,10 @@ window.addEventListener("load", function () {
}
},
gotoPage(stringifyUrl) {
let url = gemhoUtil.setParameter(`src/_${stringifyUrl}.html`)
gemhoUtil.navigatePage(url, '跳转中...')
},
// 新增选择确认方法
onConfirmType(value) {
this.formData.type = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment