Files
shopxo/app/admin/view/default/lib/module/user.html
gongfuxiang 636daec54b v3.0
2023-08-27 16:59:15 +08:00

59 lines
5.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{if !empty($module_data) and ((!empty($module_data['user']) and !empty($module_data['user']['user_name_view'])) || !empty($module_data['user_name_view']))}}
<figure data-am-widget="figure" class="am-figure am-align-left am-margin-bottom-0 am-inline-block" data-am-figure="{pureview: 'true'}">
<img src="{{if empty($module_data['user'])}}{{if !empty($module_data['avatar'])}}{{$module_data.avatar}}{{/if}}{{else /}}{{$module_data.user.avatar}}{{/if}}" alt="{{if empty($module_data['user'])}}{{if !empty($module_data['user_name_view'])}}{{$module_data.user_name_view}}{{/if}}{{else /}}{{$module_data.user.user_name_view}}{{/if}}" class="am-img-thumbnail am-radius am-block" width="35" height="35" />
</figure>
<ul class="user-base">
<li class="am-text-truncate">{{if empty($module_data['user'])}}{{if !empty($module_data['user_name_view'])}}{{$module_data.user_name_view}}{{/if}}{{else /}}{{$module_data.user.user_name_view}}{{/if}}</li>
<li>
{{if empty($module_data['user'])}}
{{if !empty($module_data['username'])}}
<a href="javascript:;" class="am-icon-user am-text-grey am-margin-right-sm text-copy-submit" data-value="{{$module_data.username}}" data-am-popover="{content: '{{:MyLang('user_username_title')}}{{$module_data.username}}{{if !empty($module_data['user']['nickname'])}}<br />{{:MyLang('user_nickname_title')}}{{$module_data.nickname}}{{/if}}', trigger: 'hover focus', theme: 'sm'}"></a>
{{/if}}
{{if !empty($module_data['number_code'])}}
<div class="am-dropdown am-inline-block am-margin-right-sm text-copy-submit user-number-code" data-value="{{$module_data.number_code}}" data-am-dropdown="{trigger: 'hover'}">
<a href="javascript:;" class="am-icon-qrcode am-text-grey am-dropdown-toggle"></a>
<div class="am-dropdown-content am-radius am-padding-sm am-text-center">
<a href="javascript:;">
<div class="view-qrcode-init" data-width="70" data-height="70">{{$module_data.number_code}}</div>
<p class="am-margin-top-xs">{{$module_data.number_code}}</p>
</a>
</div>
</div>
{{/if}}
{{if !empty($module_data['mobile'])}}
<a href="javascript:;" class="am-icon-phone-square am-text-grey am-margin-right-sm text-copy-submit" data-value="{{$module_data.mobile}}" data-am-popover="{content: '{{$module_data.mobile}}', trigger: 'hover focus', theme: 'sm'}"></a>
{{/if}}
{{if !empty($module_data['email'])}}
<a href="javascript:;" class="am-icon-envelope am-text-grey am-margin-right-sm text-copy-submit" data-value="{{$module_data.email}}" data-am-popover="{content: '{{$module_data.email}}', trigger: 'hover focus', theme: 'sm'}"></a>
{{/if}}
{{if !empty($module_data['gender_text'])}}
<a href="javascript:;" class="am-icon-child am-text-grey text-copy-submit" data-value="{{$module_data.gender_text}}" data-am-popover="{content: '{{$module_data.gender_text}}', trigger: 'hover focus', theme: 'sm'}"></a>
{{/if}}
{{else /}}
{{if !empty($module_data['user']['username'])}}
<a href="javascript:;" class="am-icon-user am-text-grey am-margin-right-sm text-copy-submit" data-value="{{$module_data.user.username}}" data-am-popover="{content: '{{:MyLang('user_username_title')}}{{$module_data.user.username}}{{if !empty($module_data['user']['nickname'])}}<br />{{:MyLang('user_nickname_title')}}{{$module_data.user.nickname}}{{/if}}', trigger: 'hover focus', theme: 'sm'}"></a>
{{/if}}
{{if !empty($module_data['user']['number_code'])}}
<div class="am-dropdown am-inline-block am-margin-right-sm text-copy-submit user-number-code" data-value="{{$module_data.user.number_code}}" data-am-dropdown="{trigger: 'hover'}">
<a href="javascript:;" class="am-icon-qrcode am-text-grey am-dropdown-toggle"></a>
<div class="am-dropdown-content am-radius am-padding-sm am-text-center">
<a href="javascript:;">
<div class="view-qrcode-init" data-width="70" data-height="70">{{$module_data.user.number_code}}</div>
<p class="am-margin-top-xs">{{$module_data.user.number_code}}</p>
</a>
</div>
</div>
{{/if}}
{{if !empty($module_data['user']['mobile'])}}
<a href="javascript:;" class="am-icon-phone-square am-text-grey am-margin-right-sm text-copy-submit" data-value="{{$module_data.user.mobile}}" data-am-popover="{content: '{{$module_data.user.mobile}}', trigger: 'hover focus', theme: 'sm'}"></a>
{{/if}}
{{if !empty($module_data['user']['email'])}}
<a href="javascript:;" class="am-icon-envelope am-text-grey am-margin-right-sm text-copy-submit" data-value="{{$module_data.user.email}}" data-am-popover="{content: '{{$module_data.user.email}}', trigger: 'hover focus', theme: 'sm'}"></a>
{{/if}}
{{if !empty($module_data['user']['gender_text'])}}
<a href="javascript:;" class="am-icon-child am-text-grey text-copy-submit" data-value="{{$module_data.user.gender_text}}" data-am-popover="{content: '{{$module_data.user.gender_text}}', trigger: 'hover focus', theme: 'sm'}"></a>
{{/if}}
{{/if}}
</li>
</ul>
{{/if}}