Browse Source

修改首页轮播图颜色不变化的问题

master
Gaoxs 5 years ago
parent
commit
69e3d5cc59
  1. 3
      pages/home/components/Banner.vue

3
pages/home/components/Banner.vue

@ -66,7 +66,6 @@
success: function (image) { success: function (image) {
ctx.drawImage(image.path, 0, 0, image.width, image.height); ctx.drawImage(image.path, 0, 0, image.width, image.height);
ctx.draw(true, function (e) { ctx.draw(true, function (e) {
console.log(e)
uni.canvasGetImageData({ uni.canvasGetImageData({
canvasId: 'colorThief', canvasId: 'colorThief',
x: 0, x: 0,
@ -99,8 +98,6 @@
swiperChange(e) { swiperChange(e) {
this.swiperCurrent = e.detail.current; this.swiperCurrent = e.detail.current;
this.doColorThief(); this.doColorThief();
let bgcolor = this.bgcolorAry[this.swiperCurrent];
this.$emit('getbgcolor', bgcolor);
}, },
// //

Loading…
Cancel
Save