当前位置: 首页 > news >正文

广州微信网站建设公司电话销售做网站犯法吗

广州微信网站建设公司,电话销售做网站犯法吗,要做一个网站得怎么做,建筑网站的功能模块目录 ​编辑 一、今日目标 二、新增the-welcome组件 2.1 template 2.2 script 2.2.1 getStatistic 2.2.2 get30DayStatistic 一、今日目标 上篇文章链接#xff1a;【wiki知识库】08.添加用户登录功能--前端Vue部分修改-CSDN博客 今天就要实现最后的东西了#xff0c… 目录 ​编辑 一、今日目标 二、新增the-welcome组件  2.1 template 2.2 script 2.2.1 getStatistic 2.2.2  get30DayStatistic 一、今日目标 上篇文章链接【wiki知识库】08.添加用户登录功能--前端Vue部分修改-CSDN博客 今天就要实现最后的东西了就是欢迎页面的展示在这个页面我展示了总浏览量还有当日的浏览量以及过去三十日的浏览量信息但是我的数据都是自己模拟的所以没有那么多的信息并且我还改出来了不少的错误大家知道这个道理就可以。 这一部分要实现数据展览还有点赞功能。 二、新增the-welcome组件  2.1 template templatespan欢迎/spandiva-rowa-col :span12a-carda-rowa-col :span12a-statistic title总阅读量 :valuestatistic.viewCounttemplate #suffixUserOutlined //template/a-statistic/a-cola-col :span12a-statistic title总点赞量 :valuestatistic.voteCounttemplate #suffixlike-outlined //template/a-statistic/a-col/a-row/a-card/a-cola-col :span12a-carda-rowa-col :span12a-statistic title今日增长阅读 :valuestatistic.todayViewCount stylemargin-right: 50pxtemplate #suffixUserOutlined //template/a-statistic/a-cola-col :span12a-statistic title今日增长点赞 :valuestatistic.todayVoteCounttemplate #suffixlike-outlined //template/a-statistic/a-col/a-row/a-card/a-col/a-rowbrbra-rowa-col :span24 idmain-coldiv idmain stylewidth: 100%;height:300px;/div/a-col/a-row/div /template2.2 script 这一部分有两个方法需要说一下。 2.2.1 getStatistic statistic是用来存储浏览量和点赞量数据的这里总共需要四个数据。 viewCount总浏览量voteCount总点赞量todayViewCount今日浏览量todayVoteCount今日点赞量 const getStatistic () {axios.get(/ebook-snapshot/get-statistic).then((response) {const data response.data;if (data.success) {const statisticResp data.content;statistic.value.viewCount statisticResp[0].viewCount;statistic.value.voteCount statisticResp[0].voteCount;statistic.value.todayViewCount statisticResp[0].viewIncrease;statistic.value.todayVoteCount statisticResp[0].voteIncrease;}});}; 2.2.2  get30DayStatistic 这个也很好理解我们从后端调出来每一天的总浏览量和总点赞数还有当日的浏览量和点赞数之后以日期为x轴当日阅读数为y轴构建echarts图标。 const get30DayStatistic () {axios.get(/ebook-snapshot/get-30-statistic).then((response) {const data response.data;if (data.success) {const statisticList data.content;init30DayEcharts(statisticList)}});};const init30DayEcharts (list: any) {const mainDom document.getElementById(main-col);if (mainDom) {mainDom.innerHTML div idmain stylewidth: 100%;height:300px;/div;}// 基于准备好的dom初始化echarts实例const myChart echarts.init(document.getElementById(main));const xAxis [];const seriesView [];const seriesVote [];for (let i 0; i list.length; i) {const record list[i];xAxis.push(record.date);seriesView.push(record.viewIncrease);seriesVote.push(record.voteIncrease);} 。。。。。。 整体代码如下。  script langtsimport { defineComponent, ref, onMounted } from vueimport axios from axios;declare let echarts: any;export default defineComponent({name: the-welcome,setup () {const statistic ref();statistic.value {};const getStatistic () {axios.get(/ebook-snapshot/get-statistic).then((response) {const data response.data;if (data.success) {const statisticResp data.content;statistic.value.viewCount statisticResp[0].viewCount;statistic.value.voteCount statisticResp[0].voteCount;statistic.value.todayViewCount statisticResp[0].viewIncrease;statistic.value.todayVoteCount statisticResp[0].voteIncrease;}});};const init30DayEcharts (list: any) {const mainDom document.getElementById(main-col);if (mainDom) {mainDom.innerHTML div idmain stylewidth: 100%;height:300px;/div;}// 基于准备好的dom初始化echarts实例const myChart echarts.init(document.getElementById(main));const xAxis [];const seriesView [];const seriesVote [];for (let i 0; i list.length; i) {const record list[i];xAxis.push(record.date);seriesView.push(record.viewIncrease);seriesVote.push(record.voteIncrease);}// 指定图表的配置项和数据const option {title: {text: 30天趋势图},tooltip: {trigger: axis},legend: {data: [总阅读量, 总点赞量]},grid: {left: 1%,right: 3%,bottom: 3%,containLabel: true},toolbox: {feature: {saveAsImage: {}}},xAxis: {type: category,boundaryGap: false,data: xAxis},yAxis: {type: value},series: [{name: 总阅读量,type: line,data: seriesView,smooth: true},{name: 总点赞量,type: line,data: seriesVote,smooth: true}]};// 使用刚指定的配置项和数据显示图表。myChart.setOption(option);};const get30DayStatistic () {axios.get(/ebook-snapshot/get-30-statistic).then((response) {const data response.data;if (data.success) {const statisticList data.content;init30DayEcharts(statisticList)}});};onMounted(() {getStatistic();get30DayStatistic();});return {statistic}}}); /script 这一部分的代码不难我就不多说这一部分的代码了。
http://www.dnsts.com.cn/news/70869.html

相关文章:

  • 公司网站域名更改怎么做微信网站建设app公司
  • 学校网站开发报价表网站建设 创新
  • 网站卖掉被拿来做网站了织梦系统怎么做网站
  • 网站建设投标书模板魔智科技logo在线设计
  • ps中网站页面做多大的搜索关键词技巧
  • 主流网站开发语言会计公司
  • 网站备案号注销查询wordpress 手机模版
  • ps 做ui比较好的网站有哪些协会网站设计方案
  • 私人服装定制网站百度识图搜索
  • 河源和平县建设局网站会设计网站怎么做兼职
  • 网站推广网站江阳建设集团网站
  • 网站首页模板设计图wordpress动态标题
  • 网站外链是什么意思工信部网站备案查询 手机
  • 河南卫生基层系统网站建设房地产开发公司有哪些部门
  • 校园网站建设经费申请报告sae网站代备案
  • 建那种外卖网站该怎么做东莞seo建站优化工具
  • 武夷山网站设计花溪村镇建设银行网站
  • 网站建设应用技术个人网站能做淘宝客吗
  • 哪些网站用jsp网站标题名字和备案名字
  • 网站集约化建设 要求本地搭建wordpress建站教程
  • 天圆地方建筑网站网站建设w亿玛酷1专注
  • 贵州网站开发哪家便宜微信公众好第三方网站怎么做
  • 网站设计开发文档模板网站设计优秀作品
  • 网站定制公司地址google seo教程
  • 做搜狗网站排名深圳团购网站设计多少钱
  • 公司网站二维码怎么做wordpress自动保存编辑器图片
  • 甘肃建设银行网站上海宣传片拍摄的公司
  • c2c网站的主要功能tp5企业网站开发视频
  • 大数据软件和网站开发那个就业好网页设计与制作用什么软件
  • 域名备案和网站备案有什么区别企业网站建设请示