From 6d37b5c5bda3efc99985d428eb79ce088fbd3114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=8D=A3=E5=B9=B3?= <1473166181@qq.com> Date: Wed, 10 May 2023 17:46:40 +0800 Subject: [PATCH 1/2] fix --- config/settings_data.json | 3 ++- config/settings_schema.json | 6 ++++++ lib/config/page.json | 3 ++- sections/block_collection_list.liquid | 16 +++++++++++++++- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/config/settings_data.json b/config/settings_data.json index 8e71252..3527262 100644 --- a/config/settings_data.json +++ b/config/settings_data.json @@ -319,7 +319,8 @@ "detail": "", "product_number": "8", "pc_number": "4", - "wap_number": "2" + "wap_number": "2", + "more_text": "View More" }, "blocks": [] } diff --git a/config/settings_schema.json b/config/settings_schema.json index 6b48305..6ac1046 100644 --- a/config/settings_schema.json +++ b/config/settings_schema.json @@ -1251,6 +1251,7 @@ "zh_CN": "单排图片" }, "type": "block", + "icon": "icon-duotu2", "id": "block_image2" }, { @@ -1258,6 +1259,7 @@ "zh_CN": "多图3" }, "type": "block", + "icon": "icon-duotu3", "id": "block_image3" }, { @@ -1273,6 +1275,7 @@ "zh_CN": "多图5" }, "type": "block", + "icon": "icon-duotu5", "id": "block_image5" }, { @@ -1377,6 +1380,7 @@ "zh_CN": "商品选项卡" }, "type": "block", + "icon": "icon-shangpinxuanxiangka", "id": "block_collection_tab" } ] @@ -1409,6 +1413,7 @@ "zh_CN": "文字评论" }, "type": "block", + "icon": "icon-wenzipinglun", "id": "block_comment" }, { @@ -1416,6 +1421,7 @@ "zh_CN": "晒图评论" }, "type": "block", + "icon": "icon-shaitupinglun", "id": "block_comment_image" }, { diff --git a/lib/config/page.json b/lib/config/page.json index 91e67e3..df092e7 100644 --- a/lib/config/page.json +++ b/lib/config/page.json @@ -154,7 +154,8 @@ "detail": "", "product_number": "8", "pc_number": "4", - "wap_number": "2" + "wap_number": "2", + "more_text": "View More" }, "blocks": [] } diff --git a/sections/block_collection_list.liquid b/sections/block_collection_list.liquid index 1e6e67f..17bbf17 100644 --- a/sections/block_collection_list.liquid +++ b/sections/block_collection_list.liquid @@ -38,6 +38,12 @@ {%- endfor -%} {%- endif -%} + + {% if section.settings.more_text != ""%} +
+ {% endif %} {% schema %} { @@ -111,6 +117,13 @@ "id": "wap_number", "max": "2", "min": "1" + }, + { + "type": "card_input", + "label": { + "zh_CN": "查看更多文案" + }, + "id": "more_text" } ], "blocks": [], @@ -124,7 +137,8 @@ "detail": "", "product_number": "8", "pc_number": "4", - "wap_number": "2" + "wap_number": "2", + "more_text": "View More" }, "blocks": [] } -- Gitee From 46f9e36cecd0c67dd6868cd728c8d209fc2dd1bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=8D=A3=E5=B9=B3?= <1473166181@qq.com> Date: Wed, 10 May 2023 17:53:30 +0800 Subject: [PATCH 2/2] fix --- sections/block_collection_list.liquid | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sections/block_collection_list.liquid b/sections/block_collection_list.liquid index 17bbf17..42c2911 100644 --- a/sections/block_collection_list.liquid +++ b/sections/block_collection_list.liquid @@ -16,6 +16,11 @@ } {% endstylesheet %} + +{% if section.settings.collection.id %} + {% get_collection collections_id={section.settings.collection.id} %} + {% assign collection = collection %} +{% endif %}