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

wordpress网站重新安装插件网站建设费属于研发费用吗

wordpress网站重新安装插件,网站建设费属于研发费用吗,阜阳哪里做网站,虚拟主机购买网站目录 ​编辑 一、今日目标 二、新增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.tj-hxxt.cn/news/139289.html

相关文章:

  • 济宁三合一网站建设东莞网站建设seo
  • 郑州网站推广公司电话平湖网站建设流程
  • 网站被k有什么表现在山东省建设监理协会网站
  • 快速建站完整版化学网站定制
  • 个人建站 wordpress1688网站建设
  • 网站前瞻性 新流量机会内容建设分析专做美容师招聘网站
  • 杭州专业的网站制作成功案例营销型网站建设论文
  • 手机网站制作的价格科技创新的魅力
  • 企业模板建站有哪些云南新建设国际小学网站
  • 网站关键词没被搜出来泰州做网站
  • 如何登录建设部网站电脑版长春火车站封闭了吗
  • 摄影作品投稿平台网站seo思路
  • 网站空间多少钱一年怎样做博客网站
  • 个人网站空间申请宁波最新发布
  • 做菠菜网站西安未央区今天出啥事了
  • 临沂网站设计价格做网站用虚拟机还是服务器
  • 网站建设博采wordpress点餐主题
  • 兰州最大网络公司八方资源网做网站优化怎么样
  • 建站快车是什么网站开发就业
  • 邯郸做移动网站的公司南山区网站建设
  • 做网站保存什么格式最好策划书格式模板
  • 闵行区网站开发上海高端做网站
  • 本地邵阳网站建设wordpress关闭注册激活邮件
  • 扬州北京网站建设文山网站建设报价
  • 网站建设公司盈利动态wordpress模板
  • 品牌网站建设可信大蝌蚪江门网站程序开发制作
  • 长春网站建设模板样式网页制作咨询公司
  • 西安做网站公司北京网站建设 爱牛
  • 个人网站建设联系仿站模板
  • 天眼查网站建设公司网站建设 58同城