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

本地建站软件有哪些网店营销策划方案ppt

本地建站软件有哪些,网店营销策划方案ppt,网站域名跟谁买,网站上滚动海报怎么做插件地址:echarts-for-uniapp - DCloud 插件市场 图例: 一、uniapp 安装 npm i uniapp-echarts --save 二、文件夹操作 将 node_modules 下的 uniapp-echarts 文件夹复制到 components 文件夹下 当前不操作此步骤的话,运行 -> 运行到小…

 插件地址:echarts-for-uniapp - DCloud 插件市场

图例:

 

一、uniapp 安装 

npm i uniapp-echarts --save

 二、文件夹操作

将 node_modules 下的 uniapp-echarts 文件夹复制到 components 文件夹下

 当前不操作此步骤的话,运行 -> 运行到小程序模拟器 -> 微信开发者工具 时,echarts图表显示不出来

原因:运行到小程序打包过程中,此插件不在小程序文件包内

三、地址引入

根据当前插件放的地址进行引入

import * as echarts from "@/components/uniapp-echarts/static/echarts.min.js";
import uniChart from "@/components/uniapp-echarts/components/uni-chart/uni-chart.vue"; 

四、组件封装 echartLine.vue

<template><view class="content"><uniChart :option="person.option" /></view>
</template><script setup>
import { reactive, shallowRef, onMounted } from 'vue'
import * as echarts from "@/components/uniapp-echarts/static/echarts.min.js";
import uniChart from "@/components/uniapp-echarts/components/uni-chart/uni-chart.vue"; const props = defineProps({id: {type: String,required: true},datas:{type: Array,required: true}
})
let person=reactive({userScore:[],userAvgScore:[], xTime:[], // x轴数据max: 600, // 最大数值option: {}
})onMounted(()=>{load()GetEchar()
})
const load=()=>{// 指定配置项和数据person.userScore = props.datas.map(f => { return f.score })person.userAvgScore = props.datas.map(f => { return f.avgScore })person.xTime = props.datas.map(f => { return f.name })
}const GetEchar = () => {person.option = {tooltip: {trigger: 'axis',formatter: function (params) {return params[0].name+'\n'+option.legend.data[0].name+':'+person.userScore[params[0].dataIndex]+'分\n'+option.legend.data[1].name+':'+person.userAvgScore[params[0].dataIndex]+'分'}},legend: {data: [{ name: '学生/张小雨', icon: 'circle' },{ name: '年级平均', icon: 'circle' }],icon: 'circle',y: 'bottom',itemWidth: 12, //宽度itemHeight: 12, //高度itemGap: 25, //间距textStyle: {color: '#333',fontSize: 12,lineHight: 40}},grid: {top: '3%',left: '3%',right: '5%',bottom: '12%',containLabel: true},xAxis: [{type: 'category',axisTick: {show:false},axisLine: {onZero: false,lineStyle: {color: '#2A2A2A',width: 2}},axisLabel: {//坐标轴刻度标签的相关设置。textStyle: {color: '#6F6F70',fontSize: 12},formatter: function (params) {return params;}},data: person.xTime}],yAxis: [{type: 'value',axisTick: {show:false},axisLine: {show:false},max: person.max,min: 0,// y轴文字颜色axisLabel: {textStyle: {color: '#6F6F70',fontSize: 12}},splitLine: {show: true,lineStyle: {color: ['#5E5E5E'],width: 1,type: 'dashed'}}}],series: [{name: '学生/张小雨',type: 'line',symbol: 'circle', //拐点样式symbolSize: 4, //拐点大小// 折线拐点的样式itemStyle: {normal: {// 静止时:color: '#6B86FF',borderColor: '#6B86FF', //拐点的边框颜色borderWidth: 2},emphasis: {// 鼠标经过时:color: '#fff'}},data: person.userScore},{name: '年级平均',type: 'line',symbol: 'circle', //拐点样式symbolSize: 4, //拐点大小// 折线拐点的样式itemStyle: {normal: {// 静止时:color: '#FFA755',borderColor: '#FFA755', //拐点的边框颜色borderWidth: 2},emphasis: {// 鼠标经过时:color: '#fff'}},data: person.userAvgScore}]};
}
</script>
<style>
.content {width: 375px;height: 250px;
}
</style>

五、页面调用

<EchartLine v-if="person.studentScore && person.studentScore.length > 0" :id="'studentGrade'" :datas="person.studentScore" /><script setup>
import { reactive } from 'vue'
import EchartLine from "@/components/echarts/echartLine.vue"let person=reactive({// 学生总成绩studentScore:[{name:'7月5日',score:10,avgScore:90},{name:'7月6日',score:93,avgScore:80},{name:'7月7日',score:60,avgScore:70},{name:'7月8日',score:50,avgScore:70},{name:'7月9日',score:86,avgScore:50}]
})
</script>

     希望我的愚见能够帮助你哦~,若有不足之处,还望指出,你们有更好的解决方法,欢迎大家在评论区下方留言支持,大家一起相互学习参考呀~

http://www.jinmujx.cn/news/109280.html

相关文章:

  • 做单平台网站制作谷歌关键词分析工具
  • 成都学校网站建设企业新产品怎样推广
  • 个人设计师网站 青春响应式网站模板的优势
  • 微网站和普通网站区别石家庄百度seo排名
  • 规模大的企业建站淘宝推广哪种方式最好
  • 网站怎么做前台跟后台的接口百度输入法下载
  • 英德网站seo网络推广方式
  • 做app要不要建网站北京网站制作建设公司
  • 社区网站制作教程最佳磁力引擎吧
  • 多媒体教学网站开发的一般步骤关键词优化方法
  • 网站突然消失了石家庄seo代理商
  • 武汉网站建设网站推广网络营销做得比较好的企业
  • 做1688网站到哪里找图片谷歌全球营销
  • 制作网站高手网站推广网络营销方案
  • 网站导航结构设计网络营销师课程
  • 昆明房产网站建设怎么做好推广和营销
  • 网吧网站怎么做微信如何引流推广精准加人
  • 公司企业文化内容跨境电商seo是什么意思
  • 网络推广员是干嘛的网站seo完整seo优化方案
  • 洛阳市政建设集团网站网站的排名优化怎么做
  • 做外贸网站怎么访问外国网站百度视频
  • 网站怎么做才 吸引人福清市百度seo
  • 营销型网站建设公司易网拓近期重大新闻事件10条
  • 嘉兴简单建站今日国内新闻头条新闻
  • 网站解析后怎么做新东方烹饪学校学费一年多少钱
  • 做的比较好的猎头网站某网站搜索引擎优化
  • wordpress多重分类seo线下培训机构
  • 学php网站开发seo是什么姓
  • 织梦做商城网站百度如何发布作品
  • 可以做简历的网站天津seo博客