- 微信公众号管理员账号是我,但是认证是别人,然后联系不到他了,应该怎么注销或者解绑微信?
微信公众号管理员账号是我,但是认证是别人,然后联系不到他了,我应该怎么注销或者解绑我的微信啊
1天前 - 使用开发者工具提示未定义该怎么办?
页面点击保存会提示 statics.js:8 Uncaught ReferenceError: define is not defined,开发者工具是最新的,而且只有当前页面才会出现这个提示,并且打开图表之后也无法正常显示图表信息 下面是我当前页面的js代码 var app = getApp(); var util = require('../../utils/util.js'); var wxCharts = require('../../utils/wxcharts.js'); Page({ data: { date: '', amount: '', ring: '', line: '' }, onShow: function (options) { var date = util.formatDate(new Date()); this.setData({ date: date }) this.getRing(); this.getLine(); }, getRing: function () { var that = this; var date = that.data.date.substring(0, 7); var param = { "company_code": wx.getStorageSync("loginUserName"), "start": date + '-01', "end": date + '-31', "app_order_type": "1" }; app.ajax('/order/order/count/companyMoney', param, function (res) { console.log(res) if (res.ok) { that.setData({ amount: { sum: res.sum, yy_sum: res.yy_sum, qd_sum: res.qd_sum }, ring: res.result }) // that.showHt(res); } }); }, getLine: function () { var that = this; var date = that.data.date.substring(0, 7); var param = { "company_code": wx.getStorageSync("loginUserName"), "start": that.sixMonth() + '-01', "end": date + '-31', "app_order_type": "1" }; app.ajax('/order/order/count/companyMoney/other', param, function (res) { console.log(res) that.setData({ line: res.result }) // if(res.ok) { // that.showLine(res) // } }); }, left: function () { var date = this.data.date; var arr = date.split('-'); var year = arr[0]; //获取当前日期的年份 var month = arr[1]; //获取当前日期的月份 var year2 = year; var month2 = parseInt(month) - 1; if (month2 == 0) { year2 = parseInt(year2) - 1; month2 = 12; } if (month2 < 10) { month2 = '0' + month2; } var t2 = year2 + '-' + month2 + '-' + '-01'; this.setData({ date: t2 }) this.getRing(); this.getLine(); }, right: function () { var date = this.data.date; var arr = date.split('-'); var year = arr[0]; //获取当前日期的年份 var month = arr[1]; //获取当前日期的月份 var year2 = year; var month2 = parseInt(month) + 1; if (month2 == 13) { year2 = parseInt(year2) + 1; month2 = 1; } if (month2 < 10) { month2 = '0' + month2; } var t2 = year2 + '-' + month2 + '-' + '-01'; this.setData({ date: t2 }) this.getRing(); this.getLine(); }, showHt: function () { var data = this.data.ring,amount = this.data.amount; var windowWidth = 320; try { var res = wx.getSystemInfoSync(); windowWidth = res.windowWidth; } catch (e) { console.error('getSystemInfoSync failed!'); } var ser = []; data.forEach(function (item) { var one = { name: item._id.serviceType1_title + item.type_sum + '元', data: item.type_sum, stroke: false }; ser.push(one) }) new wxCharts({ animation: true, canvasId: 'ringCanvas', type: 'ring', extra: { ringWidth: 25, pie: { offsetAngle: 45 } }, title: { name: amount.sum + '元', color: '#7cb5ec', fontSize: 20 }, subtitle: { name: '营业收入', color: '#666666', fontSize: 15 }, series: ser, disablePieStroke: true, width: windowWidth, height: 200, dataLabel: false, legend: true, background: '#f5f5f5', padding: 0 }); }, showLine: function () { var data = this.data.line; var windowWidth = 320; try { var res = wx.getSystemInfoSync(); windowWidth = res.windowWidth; } catch (e) { console.error('getSystemInfoSync failed!'); } var cats = [], datas = []; data.forEach(function (item) { cats.push(item._id); datas.push(item.type_sum); }) new wxCharts({ canvasId: 'columnCanvas', type: 'column', animation: true, categories: cats, series: [{ name: '成交额', data: datas, format: function (val, name) { return val.toFixed(2) + '元'; } }], yAxis: { format: function (val) { return val + '元'; }, title: 'hello', min: 0 }, xAxis: { disableGrid: false, type: 'calibration' }, extra: { column: { width: 15 } }, width: windowWidth, height: 200 }); }, sixMonth: function () { var date = this.data.date; var arr = date.split('-'); var year = arr[0]; //获取当前日期的年份 var month = arr[1]; //获取当前日期的月份 var year2 = year; var month2 = parseInt(month) - 6; if (month2 <= 0) { year2 = parseInt(year2) - 1; month2 = 12 - (Math.abs(month2) % 12); } if (month2 < 10) { month2 = '0' + month2; } return year2 + '-' + month2 + '-01'; } })
2021-01-04