摘要: js获取天数 阅读全文
posted @ 2021-12-04 21:57 码渣渣123 阅读(586) 评论(0) 推荐(0)
摘要: 1.下载 GitHub 上的 ecomfe/echarts-for-weixin 项目2.echarts下载,在线定制,选择图表,代码压缩 3.替换项目ec-canvas中的echarts.js 4.page.json引入 { "usingComponents": { "ec-canvas":".. 阅读全文
posted @ 2021-12-04 21:53 码渣渣123 阅读(133) 评论(0) 推荐(0)
摘要: wxml部分 <view class="swiper-tab"> <view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">tab1</view> <view cla 阅读全文
posted @ 2021-12-04 21:38 码渣渣123 阅读(183) 评论(0) 推荐(0)
摘要: rules: { orderNum: [ { required: true, message: "请输入订单号", trigger: "blur" }, { validator: this.checkData, trigger: "blur" }, ], model: [ { required: t 阅读全文
posted @ 2021-12-04 14:36 码渣渣123 阅读(359) 评论(0) 推荐(0)
摘要: getNowTime() {//获取当前时间 let dateTime let yy = new Date().getFullYear() let mm = new Date().getMonth() + 1 let dd = new Date().getDate() let hh = new Da 阅读全文
posted @ 2021-12-03 15:56 码渣渣123 阅读(370) 评论(0) 推荐(0)
摘要: Echarts饼状图 let myChart = echarts.init(document.getElementById("charts")); let option = { title: { text: "99999", textStyle: { color: "#000", fontSize: 30, fontWe 阅读全文
posted @ 2021-12-03 15:49 码渣渣123 阅读(157) 评论(0) 推荐(0)
摘要: echarts横向柱状图 //图表方法 drawLine(xData,sData) { let myChart = echarts.init(document.getElementById("chart")); let option = { //color: ['rgba(68, 222, 192, 1)'],//柱状图颜色 阅读全文
posted @ 2021-12-03 15:23 码渣渣123 阅读(1549) 评论(0) 推荐(0)