diff --git a/pages/mine/index.vue b/pages/mine/index.vue index 2ead74b..103b943 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -1,37 +1,38 @@ + .text { + display: block; + font-size: 13px; + margin: 8px 0px; + } + } + } + } + } + \ No newline at end of file diff --git a/pages/work/index.vue b/pages/work/index.vue index 3ca024a..2d62041 100644 --- a/pages/work/index.vue +++ b/pages/work/index.vue @@ -11,7 +11,7 @@ - + {{item.text}} @@ -32,27 +32,27 @@ siteId: '', //选择的站点ID gridList: [{ page: 'bmszl', - icon: 'map-filled', + icon: 'icon-BMS', text: 'BMS总览', }, { page: 'bmsdcc', - icon: 'map', + icon: 'icon-a-dianchicunengliangkuai', text: 'BMS电池簇', }, { page: 'pcs', - icon: 'flag-filled', + icon: 'icon-PCS', text: 'PCS', }, { page: 'db', - icon: 'smallcircle', + icon: 'icon-dianbiao4', text: '电表', }, { page: 'dtdc', - icon: 'smallcircle-filled', + icon: 'icon-dantidianchi', text: '单体电池', } ] @@ -129,6 +129,10 @@ ; } + .icon { + font-size: 26px; + } + @media screen and (min-width: 500px) {} \ No newline at end of file diff --git a/static/font_ems/iconfont.css b/static/font_ems/iconfont.css new file mode 100644 index 0000000..ae431d4 --- /dev/null +++ b/static/font_ems/iconfont.css @@ -0,0 +1,87 @@ +@font-face { + font-family: "iconfont"; + /* Project id 4993552 */ + src: url('@/static/font_ems/iconfont.woff2?t=1754546965003') format('woff2'), + url('@/static/font_ems/iconfont.woff?t=1754546965003') format('woff'), + url('@/static/font_ems/iconfont.ttf?t=1754546965003') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-a-dianchicunengliangkuai:before { + content: "\e7a1"; +} + +.icon-dianbiao:before { + content: "\eacb"; +} + +.icon-batterypx:before { + content: "\e610"; +} + +.icon-dianbiao_shiti:before { + content: "\eca1"; +} + +.icon-bianyaqiyunhangpingjia:before { + content: "\e600"; +} + +.icon-dianbiao1:before { + content: "\e602"; +} + +.icon-pcs:before { + content: "\e611"; +} + +.icon-dianbiao2:before { + content: "\e688"; +} + +.icon-ziyuan:before { + content: "\e866"; +} + +.icon-pcs1:before { + content: "\e601"; +} + +.icon-gongneng-diandongji:before { + content: "\e65a"; +} + +.icon-dianbiao3:before { + content: "\e6a7"; +} + +.icon-weibiaoti-1-02-02:before { + content: "\e612"; +} + +.icon-dianbiao4:before { + content: "\e625"; +} + +.icon-dantidianchi:before { + content: "\e76b"; +} + +.icon-BMS:before { + content: "\e63e"; +} + +.icon-BMStongyong:before { + content: "\e80c"; +} + +.icon-PCS:before { + content: "\e603"; +} \ No newline at end of file diff --git a/static/font_ems/iconfont.js b/static/font_ems/iconfont.js new file mode 100644 index 0000000..b8054e3 --- /dev/null +++ b/static/font_ems/iconfont.js @@ -0,0 +1 @@ +window._iconfont_svg_string_4993552='',(t=>{var h=(a=(a=document.getElementsByTagName("script"))[a.length-1]).getAttribute("data-injectcss"),a=a.getAttribute("data-disable-injectsvg");if(!a){var c,v,l,i,z,o=function(h,a){a.parentNode.insertBefore(h,a)};if(h&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(h){console&&console.log(h)}}c=function(){var h,a=document.createElement("div");a.innerHTML=t._iconfont_svg_string_4993552,(a=a.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a=a,(h=document.body).firstChild?o(a,h.firstChild):h.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(c,0):(v=function(){document.removeEventListener("DOMContentLoaded",v,!1),c()},document.addEventListener("DOMContentLoaded",v,!1)):document.attachEvent&&(l=c,i=t.document,z=!1,e(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,m())})}function m(){z||(z=!0,l())}function e(){try{i.documentElement.doScroll("left")}catch(h){return void setTimeout(e,50)}m()}})(window); \ No newline at end of file diff --git a/static/font_ems/iconfont.json b/static/font_ems/iconfont.json new file mode 100644 index 0000000..1feaf31 --- /dev/null +++ b/static/font_ems/iconfont.json @@ -0,0 +1,135 @@ +{ + "id": "4993552", + "name": "EMS", + "font_family": "iconfont", + "css_prefix_text": "icon-", + "description": "", + "glyphs": [ + { + "icon_id": "43871958", + "name": "电池簇、能量块", + "font_class": "a-dianchicunengliangkuai", + "unicode": "e7a1", + "unicode_decimal": 59297 + }, + { + "icon_id": "5387412", + "name": "电表", + "font_class": "dianbiao", + "unicode": "eacb", + "unicode_decimal": 60107 + }, + { + "icon_id": "6141230", + "name": "battery 32 px.1", + "font_class": "batterypx", + "unicode": "e610", + "unicode_decimal": 58896 + }, + { + "icon_id": "6775643", + "name": "电表_实体", + "font_class": "dianbiao_shiti", + "unicode": "eca1", + "unicode_decimal": 60577 + }, + { + "icon_id": "6826531", + "name": "变压器运行评价", + "font_class": "bianyaqiyunhangpingjia", + "unicode": "e600", + "unicode_decimal": 58880 + }, + { + "icon_id": "7045021", + "name": "电表", + "font_class": "dianbiao1", + "unicode": "e602", + "unicode_decimal": 58882 + }, + { + "icon_id": "8057318", + "name": "pcs", + "font_class": "pcs", + "unicode": "e611", + "unicode_decimal": 58897 + }, + { + "icon_id": "8441718", + "name": "电表", + "font_class": "dianbiao2", + "unicode": "e688", + "unicode_decimal": 59016 + }, + { + "icon_id": "12293731", + "name": "资源 2", + "font_class": "ziyuan", + "unicode": "e866", + "unicode_decimal": 59494 + }, + { + "icon_id": "12718310", + "name": "pcs", + "font_class": "pcs1", + "unicode": "e601", + "unicode_decimal": 58881 + }, + { + "icon_id": "22678712", + "name": "功能-电动机", + "font_class": "gongneng-diandongji", + "unicode": "e65a", + "unicode_decimal": 58970 + }, + { + "icon_id": "23420639", + "name": "电表", + "font_class": "dianbiao3", + "unicode": "e6a7", + "unicode_decimal": 59047 + }, + { + "icon_id": "31086873", + "name": "PCS", + "font_class": "weibiaoti-1-02-02", + "unicode": "e612", + "unicode_decimal": 58898 + }, + { + "icon_id": "38212288", + "name": "电表", + "font_class": "dianbiao4", + "unicode": "e625", + "unicode_decimal": 58917 + }, + { + "icon_id": "40121596", + "name": "单体电池", + "font_class": "dantidianchi", + "unicode": "e76b", + "unicode_decimal": 59243 + }, + { + "icon_id": "42346006", + "name": "BMS-copy", + "font_class": "BMS", + "unicode": "e63e", + "unicode_decimal": 58942 + }, + { + "icon_id": "43101168", + "name": "BMS通用", + "font_class": "BMStongyong", + "unicode": "e80c", + "unicode_decimal": 59404 + }, + { + "icon_id": "43866831", + "name": "PCS-copy", + "font_class": "PCS", + "unicode": "e603", + "unicode_decimal": 58883 + } + ] +} diff --git a/static/font_ems/iconfont.ttf b/static/font_ems/iconfont.ttf new file mode 100644 index 0000000..6acdd75 Binary files /dev/null and b/static/font_ems/iconfont.ttf differ diff --git a/static/font_ems/iconfont.woff b/static/font_ems/iconfont.woff new file mode 100644 index 0000000..87847e8 Binary files /dev/null and b/static/font_ems/iconfont.woff differ diff --git a/static/font_ems/iconfont.woff2 b/static/font_ems/iconfont.woff2 new file mode 100644 index 0000000..d1a57e4 Binary files /dev/null and b/static/font_ems/iconfont.woff2 differ diff --git a/static/scss/index.scss b/static/scss/index.scss index 745cffa..12cae85 100644 --- a/static/scss/index.scss +++ b/static/scss/index.scss @@ -3,4 +3,5 @@ // color-ui @import "@/static/scss/colorui.css"; // iconfont -@import "@/static/font/iconfont.css"; \ No newline at end of file +@import "@/static/font_ems/iconfont.css"; +@import "@/static/font/iconfont.css";