修改首页轮播图颜色不变化的问题
This commit is contained in:
@ -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);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 路由跳转
|
// 路由跳转
|
||||||
|
Reference in New Issue
Block a user