Browse Source

页面渲染内容判断

master
xiaodong 3 weeks ago
parent
commit
1fd79bcde9
  1. 8
      public/themes/website/1/zh/demo/product.html

8
public/themes/website/1/zh/demo/product.html

@ -52,7 +52,7 @@
$rich_text_two = $main_content['rich_text_two'] ?? '';
$pic_many_one = $main_content['pic_many_one'] ?? []; // 产品介绍多图
$pic_many = $main_content['pic_many'] ?? []; // 规格参数展示图集
$rich_text_three = $main_content['rich_text_three'] ?? '';
$rich_text_three = $main_content['rich_text_three'] ?? ''; // 规格参数第一个富文本框
$rich_text_four = $main_content['rich_text_four'] ?? '';
$rich_text_five = $main_content['rich_text_five'] ?? '';
$rich_text_six = $main_content['rich_text_six'] ?? '';
@ -188,8 +188,8 @@
</div>
</section>
<!-- 规格参数 -->
<section class="p-spec section__wrap" id="p-spec">
<!-- 规格参数 , 如果第一个富文本没有内容,则整个规格参数都不显示-->
<section class="p-spec section__wrap" id="p-spec" {if empty($rich_text_three)}style="display: none"{/if}>
<div class="p-spec__inner">
<h2 class="section__title">规格参数</h2>
@ -241,7 +241,7 @@
{/volist}
{if $total_standard_num == 0}
// 仅展示第一个富文本
<!-- 仅展示第一个富文本 -->
{$rich_text_three|raw}
{/if}

Loading…
Cancel
Save