2024-04-06 13:25:13 +08:00
|
|
|
<div class="js-iconSelector">
|
|
|
|
<div class="FormAccount-rowLabel">
|
2024-04-09 12:00:11 +08:00
|
|
|
<label class="CDB-Text CDB-Size-medium is-semibold u-mainTextColor">App图标</label>
|
2024-04-06 13:25:13 +08:00
|
|
|
</div>
|
|
|
|
<div class="FormAccount-rowData FormAccount-avatar">
|
|
|
|
<div class="FormAccount-avatarPreview">
|
|
|
|
<% if (iconURL == null) { %>
|
2024-04-09 12:00:11 +08:00
|
|
|
<div class="FormAccount-inputIcon--noIcon">无图标</div>
|
2024-04-06 13:25:13 +08:00
|
|
|
<% } else { %>
|
|
|
|
<img src="<%- iconURL %>" title="<%- name %>" alt="<%- name %>" class="FormAccount-avatarPreviewImage" />
|
|
|
|
<% } %>
|
|
|
|
<% if ( state === "loading" ) { %>
|
|
|
|
<div class="FormAccount-avatarPreviewLoader">
|
|
|
|
<div class="Spinner FormAccount-avatarPreviewSpinner"></div>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
<input class="js-fileIcon" type="file" value="Choose image" accept="<%- iconAcceptedExtensions %>" />
|
|
|
|
<input class="js-inputIcon" id="mobile_app_icon_url" name="<%- inputName %>" type="hidden" value="<%- iconURL %>" />
|
|
|
|
<div class="FormAccount-rowInfo FormAccount-rowInfo--marginLeft">
|
|
|
|
<% if (state === "error") { %>
|
2024-04-09 12:00:11 +08:00
|
|
|
<p class="FormAccount-rowInfoText FormAccount-rowInfoText--error FormAccount-rowInfoText--maxWidth">上传错误</p>
|
2024-04-06 13:25:13 +08:00
|
|
|
<% } else { %>
|
2024-04-09 12:00:11 +08:00
|
|
|
<p class="FormAccount-rowInfoText FormAccount-rowInfoText--smaller">推荐尺寸 128x128 </p>
|
2024-04-06 13:25:13 +08:00
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|