- 微信开发者工具内扫码及真机测试跟手机小程序正式版本看到的效果不一致问题
- 当前 Bug 的表现(可附上截图) - 微信开发者工具内扫码及真机测试表现[图片] - 直飞航线小程序内价格预测Tab点击北京-柏林当天日期进行搜索路径表现 不一致(更新发布过代码后的验证)[图片] @审核管理员 Bling官
2019-01-02 - canvas制作图表多次进入页面打开图表页进行数据动画闪烁bug
canvas中设置animation: true 第一次进入制作的图表正常显示多次进行退出进入图表后图表中数据随动画上线闪烁后才展示全面,如图。这个如何处理呢?是否属于bug?小程序名称为:请求管理员帮助 [图片] 代码如下: 运用了此chartjs库 [代码]var[代码] [代码]wxCharts = require([代码][代码]'../../../utils/wxcharts.js'[代码][代码]);[代码][代码]var[代码] [代码]app = getApp();[代码][代码]var[代码] [代码]lineChart = [代码][代码]null[代码][代码];[代码][代码]Page({[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]},[代码][代码] [代码][代码]touchHandler: [代码][代码]function[代码] [代码](e) {[代码][代码] [代码][代码]console.log(e);[代码][代码] [代码][代码]console.log(lineChart.getCurrentDataIndex(e));[代码][代码] [代码][代码]lineChart.showToolTip(e, {[代码][代码] [代码][代码]// background: '#7cb5ec'[代码][代码] [代码][代码]}); [代码][代码] [代码][代码]},[代码][代码] [代码][代码]createSimulationData: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]var[代码] [代码]categories = [];[代码][代码] [代码][代码]var[代码] [代码]data = [];[代码][代码] [代码][代码]for[代码] [代码]([代码][代码]var[代码] [代码]i = 0; i < 10; i++) {[代码][代码] [代码][代码]categories.push([代码][代码]'2016-'[代码] [代码]+ (i + 1));[代码][代码] [代码][代码]data.push(Math.random()*(20-10)+10);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]// data[4] = null;[代码][代码] [代码][代码]return[代码] [代码]{[代码][代码] [代码][代码]categories: categories,[代码][代码] [代码][代码]data: data[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]updateData: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]var[代码] [代码]simulationData = [代码][代码]this[代码][代码].createSimulationData();[代码][代码] [代码][代码]var[代码] [代码]series = [{[代码][代码] [代码][代码]name: [代码][代码]'成交量1'[代码][代码],[代码][代码] [代码][代码]data: simulationData.data,[代码][代码] [代码][代码]format: [代码][代码]function[代码] [代码](val, name) {[代码][代码] [代码][代码]return[代码] [代码]val.toFixed(2) + [代码][代码]'万'[代码][代码];[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}];[代码][代码] [代码][代码]lineChart.updateData({[代码][代码] [代码][代码]categories: simulationData.categories,[代码][代码] [代码][代码]series: series[代码][代码] [代码][代码]});[代码][代码] [代码][代码]},[代码][代码] [代码][代码]onLoad: [代码][代码]function[代码] [代码](e) {[代码][代码] [代码][代码]var[代码] [代码]windowWidth = 320;[代码][代码] [代码][代码]try[代码] [代码]{[代码][代码] [代码][代码]var[代码] [代码]res = wx.getSystemInfoSync();[代码][代码] [代码][代码]windowWidth = res.windowWidth;[代码][代码] [代码][代码]} [代码][代码]catch[代码] [代码](e) {[代码][代码] [代码][代码]console.error([代码][代码]'getSystemInfoSync failed!'[代码][代码]);[代码][代码] [代码][代码]}[代码][代码] [代码] [代码] [代码][代码]var[代码] [代码]simulationData = [代码][代码]this[代码][代码].createSimulationData();[代码][代码] [代码][代码]lineChart = [代码][代码]new[代码] [代码]wxCharts({[代码][代码] [代码][代码]canvasId: [代码][代码]'lineCanvas'[代码][代码],[代码][代码] [代码][代码]type: [代码][代码]'line'[代码][代码],[代码][代码] [代码][代码]categories: simulationData.categories,[代码][代码] [代码][代码]animation: [代码][代码]true[代码][代码],[代码][代码] [代码][代码]background: [代码][代码]'#f5f5f5'[代码][代码],[代码][代码] [代码][代码]series: [{[代码][代码] [代码][代码]name: [代码][代码]'成交量1'[代码][代码],[代码][代码] [代码][代码]data: simulationData.data,[代码][代码] [代码][代码]format: [代码][代码]function[代码] [代码](val, name) {[代码][代码] [代码][代码]return[代码] [代码]val.toFixed(2) + [代码][代码]'万'[代码][代码];[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}, {[代码][代码] [代码][代码]name: [代码][代码]'成交量2'[代码][代码],[代码][代码] [代码][代码]data: [11, 24, 29, 15, [代码][代码]null[代码][代码], 21, 32, 23, 45, 21],[代码][代码] [代码][代码]format: [代码][代码]function[代码] [代码](val, name) {[代码][代码] [代码][代码]return[代码] [代码]val.toFixed(2) + [代码][代码]'万'[代码][代码];[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}],[代码][代码] [代码][代码]xAxis: {[代码][代码] [代码][代码]disableGrid: [代码][代码]true[代码][代码] [代码][代码]},[代码][代码] [代码][代码]yAxis: {[代码][代码] [代码][代码]title: [代码][代码]'成交金额 (万元)'[代码][代码],[代码][代码] [代码][代码]format: [代码][代码]function[代码] [代码](val) {[代码][代码] [代码][代码]return[代码] [代码]val.toFixed(2);[代码][代码] [代码][代码]},[代码][代码] [代码][代码]min: 0[代码][代码] [代码][代码]},[代码][代码] [代码][代码]width: windowWidth,[代码][代码] [代码][代码]height: 200,[代码][代码] [代码][代码]dataLabel: [代码][代码]false[代码][代码],[代码][代码] [代码][代码]dataPointShape: [代码][代码]true[代码][代码],[代码][代码] [代码][代码]extra: {[代码][代码] [代码][代码]lineStyle: [代码][代码]'curve'[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][代码] [代码][代码]}[代码][代码]});[代码]
2018-01-17 - 利用canvas创建折线图需求X轴可左右滑动展示出所有标签数据
在文档中看到提示请勿在 [代码]scroll-view[代码]、[代码]swiper[代码]、[代码]picker-view[代码]、[代码]movable-view[代码] 中使用 [代码]canvas[代码] 组件。 需求是X轴可左右滑动展示出所有标签不同数据 麻烦如果实现此功能能否给予提示帮助 谢谢🙏
2018-01-15 - 审核无具体反馈
能否给指出反馈出小程序中哪些是说的可能出现的不合适用语appid:wx9589ed2022c13dcb 谢谢🙏
2017-12-22