Files
persionalBrand/packages/template-acheng-campus-food/miniapp/components/templates/acheng-profile/acheng-profile.wxml
T

24 lines
1.5 KiB
Plaintext

<view class="profile-card">
<view class="portrait">
<image wx:if="{{brand.avatarUrl}}" src="{{brand.avatarUrl}}" mode="aspectFill" />
<view class="identity">
<text wx:if="{{presentation.badge}}" class="badge">{{presentation.badge}}</text>
<text class="name">{{brand.founder || brand.name}}</text>
<text wx:if="{{brand.title}}" class="title">{{brand.title}}</text>
</view>
</view>
<view wx:if="{{brand.description || presentation.storyLead || credentials.length}}" class="story">
<text wx:if="{{presentation.storyLead}}" class="story-lead">{{presentation.storyLead}}</text>
<text wx:if="{{brand.description}}" class="bio">{{brand.description}}</text>
<block wx:for="{{credentials}}" wx:key="id">
<view wx:if="{{item.config.standards.length}}" class="standards">
<view wx:for="{{item.config.standards}}" wx:for-item="standard" wx:for-index="standardIndex" wx:key="title" class="standard">
<image class="standard-icon" src="/assets/owner/{{standardIndex % 3 === 0 ? 'file-check' : standardIndex % 3 === 1 ? 'shield-check' : 'sparkles'}}.png" />
<text class="standard-title">{{standard.title}}</text><text wx:if="{{standard.detail}}" class="standard-detail">{{standard.detail}}</text>
</view>
</view>
<view wx:else class="credential-copy"><text class="credential-title">{{item.title}}</text><text wx:if="{{item.summary}}" class="bio">{{item.summary}}</text><text wx:if="{{item.content}}" class="bio">{{item.content}}</text></view>
</block>
</view>
</view>