- 点击非按钮区域触发点击事件?
[图片]
2020-06-22 - kbone 引入 wx -chart 总是缺少 load?
ERROR in ./node_modules/_wx-chart@1.0.1@wx-chart/src/charts/wxChart.js 286:16 Module parse failed: Unexpected token (286:16) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See ERROR in ./node_modules/_wx-chart@1.0.1@wx-chart/src/charts/wxChart.js 286:16 Module parse failed: Unexpected token (286:16) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | | /** Views operation **/ > getCurrView = (views, index) => { | if (index > views.length - 1) { | return; @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/wx-chart.js 3:0-62 9:0-76 9:0-76 @ ./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@7.1.5@babel-loader/lib??ref--5-1!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./node_modules/_vue-improve-loader@0.1.1@vue-improve-loader/src!./src/pages/home/Index.vue?vue&type=script&lang=js& @ ./src/pages/home/Index.vue?vue&type=script&lang=js& @ ./src/pages/home/Index.vue @ ./src/mp/home/main.mp.js ERROR in ./node_modules/_wx-chart@1.0.1@wx-chart/src/core/animation.js 33:19 Module parse failed: Unexpected token (33:19) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | export default class WxAnimation extends Emitter { | // Tweenzer instance > tweenzerHandler; | | /** @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/charts/bar.js 18:0-44 164:33-44 @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/wx-chart.js @ ./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@7.1.5@babel-loader/lib??ref--5-1!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./node_modules/_vue-improve-loader@0.1.1@vue-improve-loader/src!./src/pages/home/Index.vue?vue&type=script&lang=js& @ ./src/pages/home/Index.vue?vue&type=script&lang=js& @ ./src/pages/home/Index.vue @ ./src/mp/home/main.mp.js ERROR in ./node_modules/_wx-chart@1.0.1@wx-chart/src/charts/liner.js 373:21 Module parse failed: Unexpected token (373:21) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | * @private | */ > _animateLineTick = function(n, ln, sp = 1, bp = 0) { | return sp ? ((n % ln) + bp*ln) / (ln * sp) : 0; | }; @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/wx-chart.js 5:0-37 9:0-76 @ ./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@7.1.5@babel-loader/lib??ref--5-1!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./node_modules/_vue-improve-loader@0.1.1@vue-improve-loader/src!./src/pages/home/Index.vue?vue&type=script&lang=js& @ ./src/pages/home/Index.vue?vue&type=script&lang=js& @ ./src/pages/home/Index.vue @ ./src/mp/home/main.mp.js | | /** Views operation **/ > getCurrView = (views, index) => { | if (index > views.length - 1) { | return; @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/wx-chart.js 3:0-62 9:0-76 9:0-76 @ ./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@7.1.5@babel-loader/lib??ref--5-1!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./node_modules/_vue-improve-loader@0.1.1@vue-improve-loader/src!./src/pages/home/Index.vue?vue&type=script&lang=js& @ ./src/pages/home/Index.vue?vue&type=script&lang=js& @ ./src/pages/home/Index.vue @ ./src/mp/home/main.mp.js ERROR in ./node_modules/_wx-chart@1.0.1@wx-chart/src/core/animation.js 33:19 Module parse failed: Unexpected token (33:19) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | export default class WxAnimation extends Emitter { | // Tweenzer instance > tweenzerHandler; | | /** @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/charts/bar.js 18:0-44 164:33-44 @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/wx-chart.js @ ./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@7.1.5@babel-loader/lib??ref--5-1!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./node_modules/_vue-improve-loader@0.1.1@vue-improve-loader/src!./src/pages/home/Index.vue?vue&type=script&lang=js& @ ./src/pages/home/Index.vue?vue&type=script&lang=js& @ ./src/pages/home/Index.vue @ ./src/mp/home/main.mp.js ERROR in ./node_modules/_wx-chart@1.0.1@wx-chart/src/charts/liner.js 373:21 Module parse failed: Unexpected token (373:21) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | * @private | */ > _animateLineTick = function(n, ln, sp = 1, bp = 0) { | return sp ? ((n % ln) + bp*ln) / (ln * sp) : 0; | }; @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/wx-chart.js 5:0-37 9:0-76 @ ./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@7.1.5@babel-loader/lib??ref--5-1!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./node_modules/_vue-improve-loader@0.1.1@vue-improve-loader/src!./src/pages/home/Index.vue?vue&type=script&lang=js& @ ./src/pages/home/Index.vue?vue&type=script&lang=js& @ ./src/pages/home/Index.vue @ ./src/mp/home/main.mp.js
2020-04-29 - wx.switchTab: url 不支持 queryString?
kbone 使用vue 多页面开发 配置route后 href 跳转提示 VM25253:1 wx.switchTab: url 不支持 queryString 跳转方式无参数 <a href="/home/project/detail">project detail</a> mp/home/main.mp.js const router = new Router({ mode: 'history', routes: [{ path: '/', name: 'Home', component: Home, }, { path: '/index.html', name: 'HomeHtml', component: Home, }, { path: '/home/project/profile', name: 'ProjectProfile', component: ProjectProfile, }, { path: '/home/project/detail', name: 'ProjectDetail', component: ProjectDetail, }], }) minprogram.config.js router: { home: [ '/home/project/detail', '/home/project/profile', ], store: [ '/store', '/store/project-profile' ], settings: [ '/settings', ], },
2020-04-27