新增用电查询echarts和导出功能
This commit is contained in:
@@ -1,20 +1,9 @@
|
||||
import { getReportDetail } from "../../service/report";
|
||||
import { alertInfo } from "../../utils/index";
|
||||
import { alertInfo, getPixelRatio } from "../../utils/index";
|
||||
import request from '../../utils/request'
|
||||
import * as echarts from '../../components/echarts/echarts';
|
||||
const { OK } = request
|
||||
const getPixelRatio = () => {
|
||||
let pixelRatio = 0
|
||||
wx.getSystemInfo({
|
||||
success: function (res) {
|
||||
pixelRatio = res.pixelRatio
|
||||
},
|
||||
fail: function () {
|
||||
pixelRatio = 0
|
||||
}
|
||||
})
|
||||
return pixelRatio
|
||||
}
|
||||
|
||||
// pages/billDetail/index.js
|
||||
Page({
|
||||
|
||||
|
Reference in New Issue
Block a user