30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
<view style="{{ customStyle }}" class="{{classPrefix}}">
|
|
<!-- theme 为 logo -->
|
|
<block wx:if="{{theme === 'logo'}}">
|
|
<view class="{{classPrefix}}__logo">
|
|
<t-image t-class="{{classPrefix}}__icon" src="{{logo.icon}}" wx:if="{{logo.icon}}" />
|
|
<view class="{{classPrefix}}__title" wx:if="{{logo.title}}">{{logo.title}}</view>
|
|
<t-image t-class="{{classPrefix}}__title-url" src="{{logo.url}}" mode="widthFix" wx:elif="{{logo.url}}" />
|
|
</view>
|
|
</block>
|
|
<!-- theme 为 text -->
|
|
<block wx:else>
|
|
<view wx:if="{{textLinkList.length > 0}}" class="{{classPrefix}}__link-list">
|
|
<block wx:for="{{textLinkList}}" wx:key="name" wx:for-item="item">
|
|
<navigator
|
|
url="{{item.url}}"
|
|
open-type="{{item.openType}}"
|
|
hover-class="none"
|
|
class="{{classPrefix}}__link-item"
|
|
>
|
|
{{item.name}}
|
|
</navigator>
|
|
<view aria-hidden="{{true}}" wx:if="{{index !== (textLinkList.length - 1)}}" class="{{classPrefix}}__link-line"
|
|
>|</view
|
|
>
|
|
</block>
|
|
</view>
|
|
<view class="{{classPrefix}}__copyright-info">{{copyright}}</view>
|
|
</block>
|
|
</view>
|