2020年5月21日

索引栏

摘要: <section class="sc-index-bar"> <div class="sc-index-bar-buttons" ref="bar" @touchstart.prevent.stop="touchstartIndexbar" @touchmove.prevent.stop="touc 阅读全文

posted @ 2020-05-21 17:41 一葱 阅读(165) 评论(0) 推荐(0)

2020年5月14日

PV与UV了解

摘要: PV即页面浏览量,也就是页面被加载的总次数 UV是唯一身份访问者,即在指定时间内不重复的访问者人数,也称为某段时间去重的用户数 PV和UV一般用来衡量网站的流量情况,数据大,说明流量多,人均PV越大,说明每个用户来到对应渠道之后流量页面增多,用户对内容越发感兴趣。 阅读全文

posted @ 2020-05-14 17:06 一葱 阅读(1098) 评论(0) 推荐(0)

2020年3月26日

柱状图

摘要: <template> <div class="bar" ref="chart" ></div> </template> <script> export default { data() { return { myEcharts: null, } }, props: { options: Object 阅读全文

posted @ 2020-03-26 14:02 一葱 阅读(150) 评论(0) 推荐(0)

2020年3月16日

杂记篇

摘要: 1.将数据存在缓存里: sessionStorage.setItem('名字', JSON.stringify(数据)); 2.从缓存里拿数据: JSON.parse(sessionStorage.getItem('名字')); sessionStorage.removeItem('名字'); th 阅读全文

posted @ 2020-03-16 14:40 一葱 阅读(224) 评论(0) 推荐(0)

2020年1月16日

用echarts以及css封装环形图

摘要: <template> <div class="firstrouter-card-pie-bg"> <div class="firstrouter-card-pie-circle" ref="chart"><div class="chart" ref="chart"></div></div> </di 阅读全文

posted @ 2020-01-16 10:28 一葱 阅读(875) 评论(0) 推荐(0)

2020年1月15日

地区的经纬度

摘要: export default{ geoCoordMap: { 上海市: [ 121.487899486, 31.24916171 ], 临沧市: [ 100.092612914, 23.8878061038 ], 丽江市: [ 100.229628399, 26.8753510895 ], 保山市: 阅读全文

posted @ 2020-01-15 11:59 一葱 阅读(729) 评论(0) 推荐(0)

地图

摘要: <template> <div class="map" ref="chart"></div> </template> <script> //引入中国地图的数据 import 'echarts/map/js/china' //经纬度 import geoCoordMap from '../china' 阅读全文

posted @ 2020-01-15 11:58 一葱 阅读(204) 评论(0) 推荐(0)

2018年10月30日

api中的 请求方式封装:get和post

摘要: function apiHttpGet(url, config) { //封装后的get请求 return new Promise((resolve, reject) => { let _store = false; let _res = null; let key = url; // consol 阅读全文

posted @ 2018-10-30 17:36 一葱 阅读(1306) 评论(0) 推荐(0)

2018年9月11日

vue拖拽

摘要: getDom() { var div2 = document.getElementById("addBox"); // div2.addEventListener("mousedown", () => { // this.down(); // }, false); div2.addEventList 阅读全文

posted @ 2018-09-11 17:53 一葱 阅读(207) 评论(0) 推荐(0)

环形图封装

摘要: <template> <div class="ringRadio" ref="chart" id="chart"> </div> </template> <script> // 环比图 // console.log((screen.width), (screen.width / 2) * 0.8, 阅读全文

posted @ 2018-09-11 17:53 一葱 阅读(206) 评论(0) 推荐(0)

导航