diff --git a/app/index/controller/ContactUs.php b/app/index/controller/ContactUs.php index 5f8b474b..44c4a74f 100644 --- a/app/index/controller/ContactUs.php +++ b/app/index/controller/ContactUs.php @@ -45,14 +45,7 @@ class ContactUs extends Common $banner_map[$v->unique_label] = $v; } $focus_image = data_get($banner_map, 'BANNER_6805e3d32dcc2')?->items->first()?->toArray(); - $info_datas = data_get($banner_map, 'BANNER_6806090c1838f')?->items->each(function($item) { - if (Str::contains($item->title, '
')) { - $title = explode('
', $item->title); - $item->title = $title[0]; - $item->title_short = $title[1]; - } - return $item; - })->toArray(); + $info_datas = data_get($banner_map, 'BANNER_6806090c1838f')?->items->toArray(); } View::assign('focus_image', $focus_image); View::assign('info_datas', $info_datas); diff --git a/app/index/view/mobile/contact_us/index.html b/app/index/view/mobile/contact_us/index.html index a96b9414..45550253 100644 --- a/app/index/view/mobile/contact_us/index.html +++ b/app/index/view/mobile/contact_us/index.html @@ -24,13 +24,13 @@
{$item.title} - {notempty name="item.title_short"} - {$item.title_short} - {/notempty} {notempty name="item.desc"} - {if condition="str_contains($item.desc, '
- {/if} + {$item.desc|raw} + {/notempty} + {notempty name="item.extra_image"} + {/notempty} {/volist} diff --git a/app/index/view/mobile/topic_nas/help.html b/app/index/view/mobile/topic_nas/help.html index b4d7435b..22564d0c 100644 --- a/app/index/view/mobile/topic_nas/help.html +++ b/app/index/view/mobile/topic_nas/help.html @@ -49,8 +49,9 @@ {notempty name="contacts"}

{:lang_i18n('联系我们')}

+ {assign name="first_section" value=":array_splice($contacts, 0, count($contacts) - 3)"}
- {volist name="contacts" id="co" key="idx" offset="0" length="4"} + {volist name="first_section" id="co"} $co.title_txt_color])}>{$co.title} @@ -61,7 +62,7 @@ {/volist}
- {volist name="contacts" id="co" key="idx" offset="4"} + {volist name="contacts" id="co"} $co.title_txt_color])}>{$co.title}
diff --git a/app/index/view/pc/contact_us/index.html b/app/index/view/pc/contact_us/index.html index 46e0cbc6..75b14e1c 100644 --- a/app/index/view/pc/contact_us/index.html +++ b/app/index/view/pc/contact_us/index.html @@ -24,16 +24,12 @@
{$item.title} - {notempty name="item.title_short"} - {$item.title_short} - {/notempty} {notempty name="item.desc"} - {if condition="str_contains($item.desc, '{$item.desc|raw} + {/notempty} + {notempty name="item.extra_image"}
- {else/} -
- {/if} - {$item.desc|raw} +
{/notempty}
diff --git a/app/index/view/pc/topic_nas/help.html b/app/index/view/pc/topic_nas/help.html index 8e5cf071..e0752832 100644 --- a/app/index/view/pc/topic_nas/help.html +++ b/app/index/view/pc/topic_nas/help.html @@ -57,33 +57,37 @@

{:lang_i18n('联系我们')}

{/notempty}