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

网站后台地址修改营销自动化工具

网站后台地址修改,营销自动化工具,做二手网站,建筑模板批发文章目录 需求分析1. 秋云 uchars2. Echarts 需求 在 uni-app 中使用图表功能,两种推荐的图表工具 分析 在 Dcloud市场 搜索Echarts关键词,会出现几款图表工具,通过大家的下载量,可以看到秋云这个库是比较受欢迎的,其…

文章目录

    • 需求
    • 分析
      • 1. 秋云 uchars
      • 2. Echarts

需求

在 uni-app 中使用图表功能,两种推荐的图表工具

分析

在 Dcloud市场 搜索Echarts关键词,会出现几款图表工具,通过大家的下载量,可以看到秋云这个库是比较受欢迎的,其次是Echarts

在这里插入图片描述

1. 秋云 uchars

我们先来说说 秋云 这个工具库,我们点击下载进行导入项目中,接下来我们看一下平台的兼容性

在这里插入图片描述

  1. 效果
    在这里插入图片描述

  2. 封装

<template><view class="charts-box"><qiun-data-charts :type="option.type" :opts="option.opts" :chartData="option.chartData" /></view>
</template><script setup>import {ref} from 'vue'import {onLoad,onUnload,onReachBottom,onShareAppMessage,onShareTimeline} from "@dcloudio/uni-app"defineProps({option: {type: Object,default () {return {type:'column',//column、lineopts:{color: ["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],padding: [15,30,0,5],enableScroll: false,legend: {},xAxis: {boundaryGap: "justify",disableGrid: false,min: 0,axisLine: false,max: 70},yAxis: {},extra: {bar: {type: "stack",width: 30,meterBorde: 1,meterFillColor: "#FFFFFF",activeBgColor: "#000000",activeBgOpacity: 0.08,categoryGap: 2}}},chartData:{categories: ["2016","2017","2018","2019","2020","2021"],series: [{name: "目标值",data: [35,36,31,33,13,34]},{name: "完成量",data: [18,27,21,24,6,28]}]},}}}})const chartData = ref([])const opts = ref()onLoad((e) => {let res = {};chartData.value = JSON.parse(JSON.stringify(res));})
</script><style lang="scss" scoped>.charts-box {width: 100%;height: 100%;}
</style>
  1. 使用
<template><view class="homeLayout pageBg"><!-- #ifndef MP-TOUTIAO --><custom-nav-bar title="图表"></custom-nav-bar><!-- #endif --><view class="select"><common-title><template #name>折线图</template><template #custom><view class="date"><uni-icons type="calendar" size="18"></uni-icons><view class="text"><uni-dateformat :date="Date.now()" format="dd日"></uni-dateformat></view></view></template></common-title><view class="content"><echarts></echarts></view></view></view>
</template><script setup>import echarts from '@/components/echarts/qiuyun-echarts.vue'import {ref} from 'vue'function echartsClick(params) {console.log('点击数据', params)}
</script><style lang="scss" scoped>.homeLayout {background:linear-gradient(to bottom, transparent, #fff 400rpx),linear-gradient(to right, #beecd8 20%, #F4E2D8);min-height: 80vh;.banner {width: 750rpx;padding: 30rpx 0;swiper {width: 690rpx;height: 340rpx;margin: 0 auto;&-item {// width: 100%;height: 100%;padding: 0;.like {width: 100%;height: 100%;image {width: 100%;height: 100%;border-radius: 10rpx;}}}}}.notice {width: 690rpx;height: 80rpx;line-height: 80rpx;background: #f9f9f9;margin: 0 auto;border-radius: 80rpx;display: flex;.left {width: 140rpx;display: flex;align-items: center;justify-content: center;:deep() {.uni-icons {color: $brand-theme-color !important;}}.text {color: $brand-theme-color;font-weight: 600;font-size: 28rpx;}}.center {flex: 1;swiper {height: 100%;&-item {height: 100%;font-size: 30rpx;color: #666;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}}}.right {width: 70rpx;display: flex;align-items: center;justify-content: center;}}.select {padding-top: 50rpx;.date {color: $brand-theme-color;display: flex;align-items: center;:deep() {.uni-icons {color: $brand-theme-color !important;}}.text {margin-left: 5rpx;}}.content {width: 720rpx;margin-left: 30rpx;margin-top: 30rpx;scroll-view {white-space: nowrap;.box {width: 200rpx;height: 430rpx;display: inline-block;margin-right: 15rpx;image {width: 100%;height: 100%;border-radius: 10rpx;}}.box:last-child {margin-right: 30rpx;}}}}.theme {padding: 50rpx 0;.more {font-size: 32rpx;color: #888;}.content {margin-top: 30rpx;padding: 0 30rpx;display: grid;gap: 15rpx;grid-template-columns: repeat(3, 1fr);}}}
</style>

2. Echarts

接下来看看 Echarts,随着图表的功能使用日渐普遍。接下来我们看一下 Echarts 的平台兼容性

在这里插入图片描述

  1. 效果
    在这里插入图片描述

  2. 导入:main.js文件中全局导入或大家觉得局部导入好就用局部导入

import * as echarts from '@/uni_modules/lime-echart/static/echarts.min'
  1. 封装
<template><view class="charts-box"><view style="width:700rpx; height:750rpx"><l-echart ref="chartRef"></l-echart></view></view>
</template><script setup>import {ref,watch,watchEffect} from 'vue'import {onLoad,onUnload,onReachBottom,onShareAppMessage,onShareTimeline} from "@dcloudio/uni-app"const props = defineProps({option: {type: Object,default () {return {}}}})const chartRef = ref(null)watchEffect(()=>{// 组件能被调用必须是组件的节点已经被渲染到页面上const option = props.optionsetTimeout(async()=>{if(!chartRef.value) returnconst myChart = await chartRef.value.init(echarts)myChart.setOption(option)},300)})onLoad( ()=>{})</script><style lang="scss" scoped>.charts-box {width: 100%;height: 100%;}
</style>
  1. 使用
<template><view class="homeLayout pageBg"><!-- #ifndef MP-TOUTIAO --><custom-nav-bar title="图表"></custom-nav-bar><!-- #endif --><view class="select"><common-title><template #name>折线图</template><template #custom><view class="date"><uni-icons type="calendar" size="18"></uni-icons><view class="text"><uni-dateformat :date="Date.now()" format="dd日"></uni-dateformat></view></view></template></common-title><view class="content"><echarts :option="option"></echarts></view></view></view>
</template><script setup>import echarts from '@/components/echarts/chart-echarts.vue'import {ref} from 'vue'const option = {tooltip: {trigger: 'axis',axisPointer: {type: 'shadow'},confine: true},legend: {data: ['热度', '正面', '负面']},grid: {left: 8,right: 20,bottom: 15,top: 40,containLabel: true},xAxis: [{type: 'value',axisLine: {lineStyle: {color: '#999999'}},axisLabel: {color: '#666666'}}],yAxis: [{type: 'category',axisTick: {show: false},data: ['汽车之家', '今日头条', '百度贴吧', '一点资讯', '微信', '微博', '知乎'],axisLine: {lineStyle: {color: '#999999'}},axisLabel: {color: '#666666'}}],series: [{name: '热度',type: 'bar',label: {normal: {show: true,position: 'inside'}},data: [300, 270, 340, 344, 300, 320, 310],},{name: '正面',type: 'bar',stack: '总量',label: {normal: {show: true}},data: [120, 102, 141, 174, 190, 250, 220]},{name: '负面',type: 'bar',stack: '总量',label: {normal: {show: true,position: 'left'}},data: [-20, -32, -21, -34, -90, -130, -110]}]};function echartsClick(params) {console.log('点击数据', params)}
</script><style lang="scss" scoped>.homeLayout {background:linear-gradient(to bottom, transparent, #fff 400rpx),linear-gradient(to right, #beecd8 20%, #F4E2D8);min-height: 80vh;.banner {width: 750rpx;padding: 30rpx 0;swiper {width: 690rpx;height: 340rpx;margin: 0 auto;&-item {// width: 100%;height: 100%;padding: 0;.like {width: 100%;height: 100%;image {width: 100%;height: 100%;border-radius: 10rpx;}}}}}.notice {width: 690rpx;height: 80rpx;line-height: 80rpx;background: #f9f9f9;margin: 0 auto;border-radius: 80rpx;display: flex;.left {width: 140rpx;display: flex;align-items: center;justify-content: center;:deep() {.uni-icons {color: $brand-theme-color !important;}}.text {color: $brand-theme-color;font-weight: 600;font-size: 28rpx;}}.center {flex: 1;swiper {height: 100%;&-item {height: 100%;font-size: 30rpx;color: #666;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}}}.right {width: 70rpx;display: flex;align-items: center;justify-content: center;}}.select {padding-top: 50rpx;.date {color: $brand-theme-color;display: flex;align-items: center;:deep() {.uni-icons {color: $brand-theme-color !important;}}.text {margin-left: 5rpx;}}.content {width: 720rpx;margin-left: 30rpx;margin-top: 30rpx;scroll-view {white-space: nowrap;.box {width: 200rpx;height: 430rpx;display: inline-block;margin-right: 15rpx;image {width: 100%;height: 100%;border-radius: 10rpx;}}.box:last-child {margin-right: 30rpx;}}}}.theme {padding: 50rpx 0;.more {font-size: 32rpx;color: #888;}.content {margin-top: 30rpx;padding: 0 30rpx;display: grid;gap: 15rpx;grid-template-columns: repeat(3, 1fr);}}}
</style>

文章转载自:
http://dinncometasomatosis.tpps.cn
http://dinncochunder.tpps.cn
http://dinncoinaccessibility.tpps.cn
http://dinncoapotropaic.tpps.cn
http://dinncoshavie.tpps.cn
http://dinncoclough.tpps.cn
http://dinncocurmudgeon.tpps.cn
http://dinncopud.tpps.cn
http://dinncoemmesh.tpps.cn
http://dinncopitcherful.tpps.cn
http://dinncoillustrative.tpps.cn
http://dinncospait.tpps.cn
http://dinncowidthways.tpps.cn
http://dinncolavolta.tpps.cn
http://dinncophosphamidon.tpps.cn
http://dinncoareolet.tpps.cn
http://dinncoratissage.tpps.cn
http://dinncostandout.tpps.cn
http://dinncotoyland.tpps.cn
http://dinnconeanthropic.tpps.cn
http://dinncoturbocopter.tpps.cn
http://dinncodebilitated.tpps.cn
http://dinncoplacegetter.tpps.cn
http://dinncoheinie.tpps.cn
http://dinncosuricate.tpps.cn
http://dinncolambrequin.tpps.cn
http://dinncodoting.tpps.cn
http://dinncoakvabit.tpps.cn
http://dinncophenomenology.tpps.cn
http://dinncombfr.tpps.cn
http://dinncosubdolous.tpps.cn
http://dinncotransmeridional.tpps.cn
http://dinncothermolabile.tpps.cn
http://dinncofell.tpps.cn
http://dinncowedlock.tpps.cn
http://dinncodiastatic.tpps.cn
http://dinncomanicou.tpps.cn
http://dinncofortunebook.tpps.cn
http://dinncopsychal.tpps.cn
http://dinncomicroeconomics.tpps.cn
http://dinncolahore.tpps.cn
http://dinncoabe.tpps.cn
http://dinncoanalogue.tpps.cn
http://dinncotoup.tpps.cn
http://dinncokhamsin.tpps.cn
http://dinncorabbah.tpps.cn
http://dinncoworked.tpps.cn
http://dinncokarat.tpps.cn
http://dinncosilkgrower.tpps.cn
http://dinncosuperintendent.tpps.cn
http://dinncoscumboard.tpps.cn
http://dinncodefinable.tpps.cn
http://dinncomixage.tpps.cn
http://dinncobelletrist.tpps.cn
http://dinncolockless.tpps.cn
http://dinncotubal.tpps.cn
http://dinncograndness.tpps.cn
http://dinncoapronful.tpps.cn
http://dinncoconfiscation.tpps.cn
http://dinncodeservedly.tpps.cn
http://dinncoblowhard.tpps.cn
http://dinncodaybook.tpps.cn
http://dinnconumbskull.tpps.cn
http://dinncorurban.tpps.cn
http://dinncosuperdominant.tpps.cn
http://dinncotriassic.tpps.cn
http://dinncodateable.tpps.cn
http://dinncobemete.tpps.cn
http://dinncobakemeat.tpps.cn
http://dinncoephebe.tpps.cn
http://dinncoforrader.tpps.cn
http://dinncofrat.tpps.cn
http://dinncoestella.tpps.cn
http://dinnconiccolite.tpps.cn
http://dinncoyenbo.tpps.cn
http://dinncometamorphose.tpps.cn
http://dinncoquartersaw.tpps.cn
http://dinncomoistureless.tpps.cn
http://dinncojingler.tpps.cn
http://dinncounbar.tpps.cn
http://dinncowellaway.tpps.cn
http://dinncoastronomer.tpps.cn
http://dinncohavre.tpps.cn
http://dinncogenerosity.tpps.cn
http://dinncomuzhik.tpps.cn
http://dinncojointly.tpps.cn
http://dinncoritualism.tpps.cn
http://dinncobuddhist.tpps.cn
http://dinncobrenner.tpps.cn
http://dinncointhral.tpps.cn
http://dinncoplanography.tpps.cn
http://dinncolarceny.tpps.cn
http://dinncoarthritis.tpps.cn
http://dinncoanhydrous.tpps.cn
http://dinncofearnought.tpps.cn
http://dinncofiltrability.tpps.cn
http://dinncomarse.tpps.cn
http://dinncofaggoting.tpps.cn
http://dinncoturin.tpps.cn
http://dinncoscupseat.tpps.cn
http://www.dinnco.com/news/104821.html

相关文章:

  • 瀑布流网站后台班级优化大师的功能有哪些
  • 沙市做网站weisword上海谷歌seo推广公司
  • 做做网站入口永久免费wap自助建站
  • 网站如何做触屏滑动网络推广网站推广方法
  • 网站开发的毕设开题报告排名前50名免费的网站
  • 齐家网装修公司口碑阳山网站seo
  • 吾爱源码seo快速排名软件网站
  • 快速优化网站排名搜索网站建设深圳公司
  • 服装网站开发的意义百度网址大全手机版
  • 做加盟的网站建设手机版谷歌浏览器入口
  • 辽宁建设培训网站兰州网络推广优化服务
  • 龙华专业做网站公司域名估价
  • 网络公司发生网站建设费分录seo咨询推广找推推蛙
  • 广西网站推广百度联盟怎么加入赚钱
  • 网站建设服务宗旨整站优化代理
  • 网站模板下载模板下载安装镇江百度推广
  • 泉州晋江网站建设网络营销推广是做什么的
  • ppt模板免费下载网站哪个好河南整站百度快照优化
  • 小规模企业做网站给大家科普一下b站推广网站
  • 做的比较炫的网站优化大师怎么卸载
  • 医院网站优化策划舆情监测
  • 本地网站建设开发信息大全网站制作流程
  • php简易企业网站源码百度收录规则
  • 前端只是做网站吗apple私人免费网站怎么下载
  • 网站结构模板如何进行品牌营销
  • 日常网站维护怎么做南宁推广公司
  • 安徽省住房和城乡建设厅官方网站宁波网络推广方法
  • 网站建设企业营销软文素材
  • 网站建设维护什么意思抖音信息流广告怎么投放
  • 做公司网站客户群体怎么找seo面试常见问题及答案