Commit 7b3ee24c by kyle

引入字体图标

parent 46decc56
......@@ -19,4 +19,18 @@
uni-page-body{
height: 100%;
}
@font-face {font-family: 'iconfont';
src: url('iconfont.eot');
src: url('iconfont.eot?#iefix') format('embedded-opentype'),
url('iconfont.woff') format('woff'),
url('iconfont.ttf') format('truetype'),
url('iconfont.svg#iconfont') format('svg');
}
.iconfont{
font-family:"iconfont" !important;
font-size:16px;font-style:normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
</style>
......@@ -10,6 +10,7 @@
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title></title>
<link rel="stylesheet" href="./static/font/iconfont.css">
<!--preload-links-->
<!--app-context-->
</head>
......
<template>
<view>
<!-- 头部信息 -->
<view class="basicInfoBox"></view>
<view class="basicInfoBox">
<view class="avatar">
<img src="/static/cffp_logo.jpg" alt="" srcset="">
</view>
<view class="infoBox">
<view class="firstLineBox">
<view>
<strong>XXX</strong>
<text class="csTag">推广人</text>
</view>
<view class="personalInfoBtn">
<text>个人资料</text>
<i class="iconfont icon-bianji"></i>
</view>
</view>
<view>昵称:XXXX</view>
<view>CFFPxxxxx</view>
</view>
</view>
<!-- 主要菜单 -->
<view class="mainMenuBox"></view>
<view class="mainMenuBox">
</view>
<!-- 个人信息 -->
<view class="personalInfo"></view>
</view>
......@@ -13,6 +33,48 @@
export default {
data() {
return {
customerBasicInfo:{},
mainMenuLists:[
{id:'00',categoryName:'销售管理',
children:[
{title:'销售课程',icon:'salesCourse',link:'',isOpen:true,isShow:true},
{title:'销售保单',icon:'salesOrder',link:'',isOpen:true,isShow:true},
{title:'我的售后',icon:'afterSales',link:'',isOpen:true,isShow:true}
],
},
{id:'01',categoryName:'积分管理',
children:[
{title:'我的积分',icon:'integral',link:'',isOpen:true,isShow:true},
{title:'积分商城',icon:'integralShopping',link:'',isOpen:true,isShow:true}
],
},
{id:'02',categoryName:'活动管理',
children:[
{title:'我的学习',icon:'myLearning',link:'',isOpen:true,isShow:true},
{title:'学习认证',icon:'learningCertify',link:'',isOpen:true,isShow:true},
{title:'我的分享',icon:'share',link:'',isOpen:true,isShow:true}
],
},
{id:'03',categoryName:'人员管理',
children:[
{title:'成交客户',icon:'dealCustomer',link:'',isOpen:true,isShow:true},
{title:'申请加盟',icon:'applyJoin',link:'',isOpen:true,isShow:true}
],
},
{id:'04',categoryName:'团队管理',
children:[
{title:'我的团队',icon:'team',link:'',isOpen:true,isShow:true},
{title:'邀请加盟',icon:'shareJoin',link:'',isOpen:true,isShow:true}
],
}
],
minorMenuLists:[
{title:'我的邀请码',icon:'shareEcode',link:'',isOpen:true,isShow:true},
{title:'我的卡包',icon:'card',link:'',isOpen:true,isShow:true},
{title:'我的认证',icon:'myCertify',link:'',isOpen:true,isShow:true},
{title:'我的消息',icon:'message',link:'',isOpen:true,isShow:true},
{title:'系统设置',icon:'setting',link:'',isOpen:true,isShow:true}
]
}
},
......@@ -22,6 +84,48 @@
}
</script>
<style>
<style lang="scss">
.basicInfoBox{
display: flex;
padding: 17rpx 20rpx 0 28rpx;
background:linear-gradient(26deg, #D8E2E5 0%, #F0E6DD 31%, #E7DBDF 100%);
min-height: 220rpx;
.avatar{
width: 80rpx;
height: 80rpx;
border-radius: 50%;
overflow: hidden;
margin-right: 17rpx;
}
.infoBox{
width:100%;
color: #666666;
strong{
color: #333;
}
view{
margin-bottom: 8rpx;
.csTag{
border-radius: 10rpx;
border:1rpx solid #666;
padding: 4rpx 10rpx;
margin-left: 6rpx;
font-size: 24rpx;
}
.personalInfoBtn{
border-radius: 10rpx;
background-color:#5359CD;
color: #fff;
text-align: center;
padding: 6rpx 7rpx;
}
}
.firstLineBox{
display: flex;
justify-content: space-between;
align-items: center;
}
}
}
</style>
/* Logo 字体 */
@font-face {
font-family: "iconfont logo";
src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834');
src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') format('embedded-opentype'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') format('svg');
}
.logo {
font-family: "iconfont logo";
font-size: 160px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* tabs */
.nav-tabs {
position: relative;
}
.nav-tabs .nav-more {
position: absolute;
right: 0;
bottom: 0;
height: 42px;
line-height: 42px;
color: #666;
}
#tabs {
border-bottom: 1px solid #eee;
}
#tabs li {
cursor: pointer;
width: 100px;
height: 40px;
line-height: 40px;
text-align: center;
font-size: 16px;
border-bottom: 2px solid transparent;
position: relative;
z-index: 1;
margin-bottom: -1px;
color: #666;
}
#tabs .active {
border-bottom-color: #f00;
color: #222;
}
.tab-container .content {
display: none;
}
/* 页面布局 */
.main {
padding: 30px 100px;
width: 960px;
margin: 0 auto;
}
.main .logo {
color: #333;
text-align: left;
margin-bottom: 30px;
line-height: 1;
height: 110px;
margin-top: -50px;
overflow: hidden;
*zoom: 1;
}
.main .logo a {
font-size: 160px;
color: #333;
}
.helps {
margin-top: 40px;
}
.helps pre {
padding: 20px;
margin: 10px 0;
border: solid 1px #e7e1cd;
background-color: #fffdef;
overflow: auto;
}
.icon_lists {
width: 100% !important;
overflow: hidden;
*zoom: 1;
}
.icon_lists li {
width: 100px;
margin-bottom: 10px;
margin-right: 20px;
text-align: center;
list-style: none !important;
cursor: default;
}
.icon_lists li .code-name {
line-height: 1.2;
}
.icon_lists .icon {
display: block;
height: 100px;
line-height: 100px;
font-size: 42px;
margin: 10px auto;
color: #333;
-webkit-transition: font-size 0.25s linear, width 0.25s linear;
-moz-transition: font-size 0.25s linear, width 0.25s linear;
transition: font-size 0.25s linear, width 0.25s linear;
}
.icon_lists .icon:hover {
font-size: 100px;
}
.icon_lists .svg-icon {
/* 通过设置 font-size 来改变图标大小 */
width: 1em;
/* 图标和文字相邻时,垂直对齐 */
vertical-align: -0.15em;
/* 通过设置 color 来改变 SVG 的颜色/fill */
fill: currentColor;
/* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
normalize.css 中也包含这行 */
overflow: hidden;
}
.icon_lists li .name,
.icon_lists li .code-name {
color: #666;
}
/* markdown 样式 */
.markdown {
color: #666;
font-size: 14px;
line-height: 1.8;
}
.highlight {
line-height: 1.5;
}
.markdown img {
vertical-align: middle;
max-width: 100%;
}
.markdown h1 {
color: #404040;
font-weight: 500;
line-height: 40px;
margin-bottom: 24px;
}
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
color: #404040;
margin: 1.6em 0 0.6em 0;
font-weight: 500;
clear: both;
}
.markdown h1 {
font-size: 28px;
}
.markdown h2 {
font-size: 22px;
}
.markdown h3 {
font-size: 16px;
}
.markdown h4 {
font-size: 14px;
}
.markdown h5 {
font-size: 12px;
}
.markdown h6 {
font-size: 12px;
}
.markdown hr {
height: 1px;
border: 0;
background: #e9e9e9;
margin: 16px 0;
clear: both;
}
.markdown p {
margin: 1em 0;
}
.markdown>p,
.markdown>blockquote,
.markdown>.highlight,
.markdown>ol,
.markdown>ul {
width: 80%;
}
.markdown ul>li {
list-style: circle;
}
.markdown>ul li,
.markdown blockquote ul>li {
margin-left: 20px;
padding-left: 4px;
}
.markdown>ul li p,
.markdown>ol li p {
margin: 0.6em 0;
}
.markdown ol>li {
list-style: decimal;
}
.markdown>ol li,
.markdown blockquote ol>li {
margin-left: 20px;
padding-left: 4px;
}
.markdown code {
margin: 0 3px;
padding: 0 5px;
background: #eee;
border-radius: 3px;
}
.markdown strong,
.markdown b {
font-weight: 600;
}
.markdown>table {
border-collapse: collapse;
border-spacing: 0px;
empty-cells: show;
border: 1px solid #e9e9e9;
width: 95%;
margin-bottom: 24px;
}
.markdown>table th {
white-space: nowrap;
color: #333;
font-weight: 600;
}
.markdown>table th,
.markdown>table td {
border: 1px solid #e9e9e9;
padding: 8px 16px;
text-align: left;
}
.markdown>table th {
background: #F7F7F7;
}
.markdown blockquote {
font-size: 90%;
color: #999;
border-left: 4px solid #e9e9e9;
padding-left: 0.8em;
margin: 1em 0;
}
.markdown blockquote p {
margin: 0;
}
.markdown .anchor {
opacity: 0;
transition: opacity 0.3s ease;
margin-left: 8px;
}
.markdown .waiting {
color: #ccc;
}
.markdown h1:hover .anchor,
.markdown h2:hover .anchor,
.markdown h3:hover .anchor,
.markdown h4:hover .anchor,
.markdown h5:hover .anchor,
.markdown h6:hover .anchor {
opacity: 1;
display: inline-block;
}
.markdown>br,
.markdown>p>br {
clear: both;
}
.hljs {
display: block;
background: white;
padding: 0.5em;
color: #333333;
overflow-x: auto;
}
.hljs-comment,
.hljs-meta {
color: #969896;
}
.hljs-string,
.hljs-variable,
.hljs-template-variable,
.hljs-strong,
.hljs-emphasis,
.hljs-quote {
color: #df5000;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-type {
color: #a71d5d;
}
.hljs-literal,
.hljs-symbol,
.hljs-bullet,
.hljs-attribute {
color: #0086b3;
}
.hljs-section,
.hljs-name {
color: #63a35c;
}
.hljs-tag {
color: #333333;
}
.hljs-title,
.hljs-attr,
.hljs-selector-id,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo {
color: #795da3;
}
.hljs-addition {
color: #55a532;
background-color: #eaffea;
}
.hljs-deletion {
color: #bd2c00;
background-color: #ffecec;
}
.hljs-link {
text-decoration: underline;
}
/* 代码高亮 */
/* PrismJS 1.15.0
https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*/
code[class*="language-"],
pre[class*="language-"] {
color: black;
background: none;
text-shadow: 0 1px white;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection {
text-shadow: none;
background: #b3d4fc;
}
pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
text-shadow: none;
background: #b3d4fc;
}
@media print {
code[class*="language-"],
pre[class*="language-"] {
text-shadow: none;
}
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
}
:not(pre)>code[class*="language-"],
pre[class*="language-"] {
background: #f5f2f0;
}
/* Inline code */
:not(pre)>code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: slategray;
}
.token.punctuation {
color: #999;
}
.namespace {
opacity: .7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: #905;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #690;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: #9a6e3a;
background: hsla(0, 0%, 100%, .5);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a;
}
.token.function,
.token.class-name {
color: #DD4A68;
}
.token.regex,
.token.important,
.token.variable {
color: #e90;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
@font-face {
font-family: "iconfont"; /* Project id 3749283 */
src: url('iconfont.woff2?t=1667529398246') format('woff2'),
url('iconfont.woff?t=1667529398246') format('woff'),
url('iconfont.ttf?t=1667529398246') format('truetype');
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-zizhutuiguang:before {
content: "\e601";
}
.icon-dengdai:before {
content: "\e602";
}
.icon-lianjie:before {
content: "\e603";
}
.icon-gengduo:before {
content: "\e604";
}
.icon-31tishi:before {
content: "\e605";
}
.icon-pengyouquan:before {
content: "\e633";
}
.icon-weibiaoti544:before {
content: "\e630";
}
.icon-weibiaoti553:before {
content: "\e639";
}
.icon-qq:before {
content: "\e609";
}
.icon-iconfontzhizuobiaozhunbduan32:before {
content: "\e6e6";
}
.icon-guanbi:before {
content: "\e64d";
}
.icon-py_weixinzhifu:before {
content: "\e606";
}
.icon-yanjing:before {
content: "\e6cc";
}
.icon-yanjing1:before {
content: "\e6cf";
}
.icon-jiahao:before {
content: "\e607";
}
.icon-shenfenrenzheng_chenggong:before {
content: "\e63e";
}
.icon-duihao:before {
content: "\e60f";
}
.icon-zhifubao:before {
content: "\e636";
}
.icon-tupian:before {
content: "\e620";
}
.icon-xiazai-wenjianxiazai-05:before {
content: "\e855";
}
.icon-zhuanfa:before {
content: "\e657";
}
.icon-shouye:before {
content: "\e64f";
}
.icon-sousuo:before {
content: "\e622";
}
.icon-saoyisao:before {
content: "\e891";
}
.icon-xiaoxi:before {
content: "\e608";
}
.icon-wode:before {
content: "\e600";
}
.icon-shaixuan:before {
content: "\e665";
}
.icon-youjiantou:before {
content: "\e678";
}
.icon-bianji:before {
content: "\e8ac";
}
{
"id": "3749283",
"name": "CFFP",
"font_family": "iconfont",
"css_prefix_text": "icon-",
"description": "",
"glyphs": [
{
"icon_id": "1189",
"name": "自助推广",
"font_class": "zizhutuiguang",
"unicode": "e601",
"unicode_decimal": 58881
},
{
"icon_id": "18264",
"name": "等待",
"font_class": "dengdai",
"unicode": "e602",
"unicode_decimal": 58882
},
{
"icon_id": "77403",
"name": "链接",
"font_class": "lianjie",
"unicode": "e603",
"unicode_decimal": 58883
},
{
"icon_id": "77822",
"name": "更多",
"font_class": "gengduo",
"unicode": "e604",
"unicode_decimal": 58884
},
{
"icon_id": "201653",
"name": "3.1提示",
"font_class": "31tishi",
"unicode": "e605",
"unicode_decimal": 58885
},
{
"icon_id": "386486",
"name": "朋友圈",
"font_class": "pengyouquan",
"unicode": "e633",
"unicode_decimal": 58931
},
{
"icon_id": "983760",
"name": "删除",
"font_class": "weibiaoti544",
"unicode": "e630",
"unicode_decimal": 58928
},
{
"icon_id": "983774",
"name": "相机",
"font_class": "weibiaoti553",
"unicode": "e639",
"unicode_decimal": 58937
},
{
"icon_id": "1037628",
"name": "qq",
"font_class": "qq",
"unicode": "e609",
"unicode_decimal": 58889
},
{
"icon_id": "1236929",
"name": "微信好友",
"font_class": "iconfontzhizuobiaozhunbduan32",
"unicode": "e6e6",
"unicode_decimal": 59110
},
{
"icon_id": "2939196",
"name": "关闭26",
"font_class": "guanbi",
"unicode": "e64d",
"unicode_decimal": 58957
},
{
"icon_id": "4178669",
"name": "AK-PY_微信支付",
"font_class": "py_weixinzhifu",
"unicode": "e606",
"unicode_decimal": 58886
},
{
"icon_id": "8361830",
"name": "眼睛",
"font_class": "yanjing",
"unicode": "e6cc",
"unicode_decimal": 59084
},
{
"icon_id": "8361853",
"name": "眼睛1",
"font_class": "yanjing1",
"unicode": "e6cf",
"unicode_decimal": 59087
},
{
"icon_id": "8721197",
"name": "加号",
"font_class": "jiahao",
"unicode": "e607",
"unicode_decimal": 58887
},
{
"icon_id": "8941841",
"name": "身份认证_成功",
"font_class": "shenfenrenzheng_chenggong",
"unicode": "e63e",
"unicode_decimal": 58942
},
{
"icon_id": "9509962",
"name": "对号",
"font_class": "duihao",
"unicode": "e60f",
"unicode_decimal": 58895
},
{
"icon_id": "10905645",
"name": "支付宝",
"font_class": "zhifubao",
"unicode": "e636",
"unicode_decimal": 58934
},
{
"icon_id": "17875595",
"name": "图片",
"font_class": "tupian",
"unicode": "e620",
"unicode_decimal": 58912
},
{
"icon_id": "24859937",
"name": "下载-文件下载-05",
"font_class": "xiazai-wenjianxiazai-05",
"unicode": "e855",
"unicode_decimal": 59477
},
{
"icon_id": "31919305",
"name": "转发",
"font_class": "zhuanfa",
"unicode": "e657",
"unicode_decimal": 58967
},
{
"icon_id": "629343",
"name": "首页",
"font_class": "shouye",
"unicode": "e64f",
"unicode_decimal": 58959
},
{
"icon_id": "1304890",
"name": "搜索",
"font_class": "sousuo",
"unicode": "e622",
"unicode_decimal": 58914
},
{
"icon_id": "2076266",
"name": "扫一扫",
"font_class": "saoyisao",
"unicode": "e891",
"unicode_decimal": 59537
},
{
"icon_id": "6170345",
"name": "消息",
"font_class": "xiaoxi",
"unicode": "e608",
"unicode_decimal": 58888
},
{
"icon_id": "17816857",
"name": "我的",
"font_class": "wode",
"unicode": "e600",
"unicode_decimal": 58880
},
{
"icon_id": "26847643",
"name": "筛选",
"font_class": "shaixuan",
"unicode": "e665",
"unicode_decimal": 58981
},
{
"icon_id": "2418274",
"name": "右箭头",
"font_class": "youjiantou",
"unicode": "e678",
"unicode_decimal": 59000
},
{
"icon_id": "11372640",
"name": "编辑",
"font_class": "bianji",
"unicode": "e8ac",
"unicode_decimal": 59564
}
]
}
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