From 3291a727b2b9fdfaba829a10ad061c9525572f7b Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 11 Jun 2025 17:35:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miniprogram/pages/index/index.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/miniprogram/pages/index/index.ts b/miniprogram/pages/index/index.ts index c1d652e..1d540da 100644 --- a/miniprogram/pages/index/index.ts +++ b/miniprogram/pages/index/index.ts @@ -62,7 +62,6 @@ Page({ updatedCardList: Array<{ color: string; word: string }>, callback: () => void = () => {}, ) { - console.log('drawCanvas called updatedCardList:', updatedCardList); this.setData({ cardList: updatedCardList }, callback); this.textDrawService?.draw(updatedCardList); }, @@ -75,7 +74,6 @@ Page({ onConfirmInput(e: WechatMiniprogram.Input) { const { value } = e.detail; - console.log('indexPage onConfirmInput value:', value); const characters = value.split(''); const shuffledColors = [...WATER_COLORS.basic12].sort( () => Math.random() - 0.5, @@ -86,9 +84,6 @@ Page({ })); console.log('updatedCardList', updatedCardList); this.drawCanvas(updatedCardList); - // this.setData({ cardList: updatedCardList }); - // // this.renderCanvas(); - // this.textDrawService?.draw(updatedCardList); }, deleteWordCard(e: WechatMiniprogram.CustomEvent) { @@ -142,18 +137,6 @@ Page({ currentKey: key, currentColor: color, }); - // const { cardList } = this.data; - // const updatedCardList = cardList.map((item, index) => - // index === key ? { ...item, color } : item, - // ); - // this.setData({ cardList: updatedCardList }); - // wx.showToast({ - // title: `已更改 "${word}" 的颜色`, - // icon: 'none', - // duration: 2000, - // }); - // // this.renderCanvas(); - // this.textDrawService?.draw(updatedCardList); }, onCloseColorPopup() {