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}); } } };