新增用电查询echarts和导出功能

This commit is contained in:
2024-05-09 11:02:40 +08:00
parent 6d35c78da9
commit e730e66c7c
9 changed files with 122 additions and 28 deletions

View File

@@ -220,3 +220,16 @@ export const wxModal = (data) => {
})
}
export const getPixelRatio = () => {
let pixelRatio = 0
wx.getSystemInfo({
success: function (res) {
pixelRatio = res.pixelRatio
},
fail: function () {
pixelRatio = 0
}
})
return pixelRatio
}