From fdc4456f080aa9efcf3dcc10f8c098ad24d68d29 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Sat, 16 Sep 2023 13:22:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E5=90=88=E6=90=AD=E9=85=8D=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=95=86=E5=93=81=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/binding-list/binding-list.vue | 92 ++++++++++++++++++++---- pages/plugins/binding/index/index.vue | 2 +- 2 files changed, 80 insertions(+), 14 deletions(-) diff --git a/components/binding-list/binding-list.vue b/components/binding-list/binding-list.vue index 8453b6bc..063cd7c9 100644 --- a/components/binding-list/binding-list.vue +++ b/components/binding-list/binding-list.vue @@ -2,16 +2,38 @@ - - - - {{item.title}} - {{item.describe}} - {{propCurrencySymbol}}{{item.estimate_price}} - {{propCurrencySymbol}}{{item.estimate_original_price}} - - 节省 - {{propCurrencySymbol}}{{item.estimate_discount_price}} + + + + + {{item.title}} + {{propCurrencySymbol}}{{item.estimate_price}} + + 节省 + {{propCurrencySymbol}}{{item.estimate_discount_price}} + + + + + + + + + + + + + {{gv.title}} + {{propCurrencySymbol}}{{gv.price}} + 节省{{propCurrencySymbol}}{{gv.discount_price}} + + + + + + + + {{(item.is_home_show_goods || 0) == 1 ? '收起' : '展开'}}{{item.type_name}}商品 @@ -60,17 +82,28 @@ // url事件 url_event(e) { app.globalData.url_event(e); + }, + + // 商品展开关闭 + item_more_goods_event(e) { + var index = e.currentTarget.dataset.index; + var temp_data = this.data_list; + temp_data[index]['is_home_show_goods'] = (parseInt(temp_data[index]['is_home_show_goods'] || 0) == 1) ? 0 : 1; + this.setData({data_list: temp_data}); } } };