From 42fc997d6fd122ca2d9c3b70f33b07d6b39b0bc7 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Tue, 8 Oct 2024 17:48:27 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=A7=86=E9=A2=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/diy.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/components/diy/diy.vue b/components/diy/diy.vue index 3dfb1a1e..9d71f4c5 100644 --- a/components/diy/diy.vue +++ b/components/diy/diy.vue @@ -22,7 +22,7 @@ - + @@ -119,7 +119,7 @@ propkey: { type: String, default: '', - } + }, }, components: { componentDiyHeader, @@ -218,11 +218,11 @@ watch: { propkey(val) { this.setData({ - diy_key: val - }) + diy_key: val, + }); // 初始化 this.init(); - } + }, }, created() { // 初始化配置 @@ -274,6 +274,7 @@ let new_data = []; this.setData({ is_tabs_type: bool, + tabs_id: tabs_id, }); let new_params = { ...params, @@ -315,6 +316,9 @@ }, }); } else { + this.setData({ + goods_page: 1, + }); this.get_goods_list(1); } } else {