refactor: 修改英文nas相关

This commit is contained in:
2025-04-15 14:38:34 +08:00
parent 473b84cd11
commit a7d68b57e5
10 changed files with 183 additions and 81 deletions

View File

@@ -7,10 +7,6 @@
<title>帮助中心</title>
{include file='include/head-nas' /}
<style>
[class*=' icon-'] {
color: #000;
}
.narshelpCenterPc {
display: flex;
flex-direction: column;
@@ -261,7 +257,8 @@
}
.narshelpCenterPc .nhlp-lxwm .nhlp-row .nhlplxwmit-w2 {
width: 24.3%;
/*width: 24.3%;*/
flex: 1;
}
.narshelpCenterPc .dropdown {
@@ -423,8 +420,12 @@
<h1 class=" helph1 lxwmtitle">Contact US</h1>
<div class="nhlp-row">
{if condition="$banners_size > 0"}
{notempty name="banners[0]['link']"}
<a href="{$banners[0]['link']}" class="nhlplxwmit nhlplxwmit-w1" target="_blank">
<img src="__PUBLIC__/m_web/images/nas/help/nhlp-lx1.png" class="lximg" />
{else/}
<a href="javascript:void(0);" class="nhlplxwmit nhlplxwmit-w1" target="_blank">
{/notempty}
<img src="__PUBLIC__/web/images/nas/help/nas_helper_facebook.png" class="lximg" />
{if condition="!empty($banners[0]['picture']) && $banners[0]['picture'] != '/uploads/nopic.jpg'"}
<img src="{$banners[0]['picture']}" class="lxewmimg">
{/if}
@@ -433,8 +434,12 @@
</a>
{/if}
{if condition="$banners_size > 1"}
{notempty name="banners[1]['link']"}
<a href="{$banners[1]['link']}" class="nhlplxwmit nhlplxwmit-w1" target="_blank">
<img src="__PUBLIC__/m_web/images/nas/help/nhlp-lx2.png" class="lximg" />
{else/}
<a href="javascript:void(0);" class="nhlplxwmit nhlplxwmit-w1" target="_blank">
{/notempty}
<img src="__PUBLIC__/web/images/nas/help/nas_helper_instagram.png" class="lximg" />
{if condition="!empty($banners[1]['picture']) && $banners[1]['picture'] != '/uploads/nopic.jpg'"}
<img src="{$banners[1]['picture']}" class="lxewmimg">
{/if}
@@ -443,8 +448,12 @@
</a>
{/if}
{if condition="$banners_size > 2"}
{notempty name="banners[2]['link']"}
<a href="{$banners[2]['link']}" class="nhlplxwmit nhlplxwmit-w1" style="margin-right: 0;" target="_blank">
<img src="__PUBLIC__/m_web/images/nas/help/nhlp-lx3.png" class="lximg" />
{else/}
<a href="javascript:void(0);" class="nhlplxwmit nhlplxwmit-w1" style="margin-right: 0;" target="_blank">
{/notempty}
<img src="__PUBLIC__/web/images/nas/help/nas_helper_youtobe.png" class="lximg" />
{if condition="!empty($banners[2]['picture']) && $banners[2]['picture'] != '/uploads/nopic.jpg'"}
<img src="{$banners[2]['picture']}" class="lxewmimg">
{/if}
@@ -453,8 +462,12 @@
</a>
{/if}
{if condition="$banners_size > 3"}
{notempty name="banners[3]['link']"}
<a href="{$banners[3]['link']}" class="nhlplxwmit nhlplxwmit-w2" target="_blank">
<img src="__PUBLIC__/m_web/images/nas/help/nhlp-lx4.png" class="lximg" />
{else/}
<a href="javascript:void(0);" class="nhlplxwmit nhlplxwmit-w2" target="_blank">
{/notempty}
<img src="__PUBLIC__/web/images/nas/help/nas_helper_twitter.png" class="lximg" />
{if condition="!empty($banners[3]['picture']) && $banners[3]['picture'] != '/uploads/nopic.jpg'"}
<img src="{$banners[3]['picture']}" class="lxewmimg">
{/if}
@@ -463,8 +476,12 @@
</a>
{/if}
{if condition="$banners_size > 4"}
<a href="{$banners[4]['link']}" class="nhlplxwmit nhlplxwmit-w2" target="_blank">
<img src="__PUBLIC__/m_web/images/nas/help/nhlp-lx5.png" class="lximg" />
{notempty name="banners[4]['link']"}
<a href="{$banners[4]['link']}" class="nhlplxwmit nhlplxwmit-w2" style="margin-right: 0;" target="_blank">
{else/}
<a href="javascript:void(0);" class="nhlplxwmit nhlplxwmit-w2" style="margin-right: 0;" target="_blank">
{/notempty}
<img src="__PUBLIC__/web/images/nas/help/nas_helper_tiktok.png" class="lximg" />
{if condition="!empty($banners[4]['picture']) && $banners[4]['picture'] != '/uploads/nopic.jpg'"}
<img src="{$banners[4]['picture']}" class="lxewmimg">
{/if}
@@ -472,16 +489,6 @@
<span class="t2">{$banners[4]['desc']}</span>
</a>
{/if}
{if condition="$banners_size > 5"}
<a href="{$banners[5]['link']}" class="nhlplxwmit nhlplxwmit-w2" target="_blank">
<img src="__PUBLIC__/m_web/images/nas/help/nhlp-lx6.png" class="lximg" />
{if condition="!empty($banners[5]['picture']) && $banners[5]['picture'] != '/uploads/nopic.jpg'"}
<img src="{$banners[5]['picture']}" class="lxewmimg">
{/if}
<span class="t1">{$banners[5]['name']}</span>
<span class="t2">{$banners[5]['desc']}</span>
</a>
{/if}
</div>
</div>
</div>
@@ -527,11 +534,17 @@
$('#dropdown').hide();
}
});
$('.nhlplxwmit:not(:first)').hover(function() {
$('.nhlplxwmit').hover(function() {
if ($(this).find('.lxewmimg').length == 0) {
return false;
}
// 当鼠标移入时,显示.lxewmimg 并隐藏.lximg
$(this).find('.lxewmimg').show();
$(this).find('.lximg').hide();
}, function() {
if ($(this).find('.lxewmimg').length == 0) {
return false;
}
// 当鼠标移出时,隐藏.lxewmimg 并显示.lximg
$(this).find('.lxewmimg').hide();
$(this).find('.lximg').show();