From 710a066db463ba56704d3eeb8dbcfa29bdeb1480 Mon Sep 17 00:00:00 2001 From: liqian <735273025@qq.com> Date: Tue, 25 Nov 2025 14:56:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=B8=93=E9=A2=98=20-=20=E7=94=B5?= =?UTF-8?q?=E5=8A=9B=E5=93=81=E7=BA=BFpc=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/pc/topic_power_prodline/index.html | 163 ++++++++---------- 1 file changed, 75 insertions(+), 88 deletions(-) diff --git a/app/index/view/pc/topic_power_prodline/index.html b/app/index/view/pc/topic_power_prodline/index.html index fd0878fa..01f654c6 100644 --- a/app/index/view/pc/topic_power_prodline/index.html +++ b/app/index/view/pc/topic_power_prodline/index.html @@ -73,6 +73,7 @@
{assign name="tc_first_section_lf" value=":array_shift($data.travel_charger)" /} + {notempty name="tc_first_section_lf"} {$tc_first_section_lf.title} @@ -80,13 +81,16 @@ {$tc_first_section_lf.short_title}
+ {/notempty} {assign name="tc_first_section_lr" value=":array_shift($data.travel_charger)" /} + {notempty name="tc_first_section_lr"}
{$tc_first_section_lr.title}
+ {/notempty} {assign name="tc_second_section" value=":array_splice($data.travel_charger, 0, 4)" /} {notempty name="tc_second_section"} @@ -208,150 +212,136 @@ {/notempty} + {assign name="dc_second_section" value=":array_splice($data.desktop_charger, 0, 2)" /} + {notempty name="dc_second_section"}
- + {volist name="dc_second_section" id="dcs"} +
-
安全 精准掌控 超长标题测试示例内容
-
12口合1 分控插排 支持多设备同时供电 安全防护更放心 过载保护不跳闸
+
{$dcs.title}
+
{$dcs.short_title}
- 了解更多 + 了解更多
- 10口合1双向取电插排 -
-
- -
- -
-
安全 精准掌控 超长标题测试示例内容
-
12口合1 分控插排 支持多设备同时供电 安全防护更放心 过载保护不跳闸
-
- 了解更多 -
-
-
-
- 10口合1双向取电插排 + {$dcs.title}
+ {/volist}
- + {/notempty} + {assign name="dc_three_section" value=":array_shift($data.desktop_charger)" /} + {notempty name="dc_three_section"} +
查看更多
+ {/notempty} - +{notempty name="data.wall_charger"}

墙插

1转多

- - 65W快充插座 + {assign name="wc_first_section_lf" value=":array_shift($data.wall_charger)" /} + {notempty name="wc_first_section_lf"} + + {$wc_first_section_lf.title}
- 产品细节图 + {$wc_first_section_lf.title}
+ {/notempty} + {assign name="wc_first_section_lr" value=":array_shift($data.wall_charger)" /} + {notempty name="wc_first_section_lr"}
- 使用场景 -
+ {/notempty}
- + {assign name="wc_more_section" value=":array_shift($data.wall_charger)" /} + {notempty name="wc_more_section"} +
查看更多
- + {/notempty}
+{/notempty} +{notempty name="data.converter"}

转换器

随你看世界

+ {assign name="ct_more_section" value=":array_pop($data.converter)" /} + {assign name="ct_chunk_section" value=":array_chunk($data.converter, 2)" /} + {assign name="ct_chunk_section_len" value=":count($ct_chunk_section)" /} + {volist name="ct_chunk_section" id="cts" key="k"}
- - 65W快充插座 + {assign name="cts_lf" value=":array_shift($cts)" /} + {notempty name="cts_lf"} + + {$cts_lf.title}
- 产品细节图 + {$cts_lf.title}
+ {/notempty} + {assign name="cts_lr" value=":array_shift($cts)" /} + {notempty name="cts_lr"}
- 使用场景 -
+ {/notempty}
+ {neq name="k" value="$ct_chunk_section_len"}
-
- - 65W快充插座 - -
- 产品细节图 -
-
-
- 使用场景 - -
-
- + {/neq} + {/volist} + {notempty name="ct_more_section"} +
查看更多
+ {/notempty}
+{/notempty} +{notempty name="data.footer_info"} - - -
- -
- × - -
- -
- - - -{/block} -{block name="footer"} - +{/notempty} + +
+
+ × +
+
{/block} {block name="script"}