84 lines
3.0 KiB
Plaintext
84 lines
3.0 KiB
Plaintext
<nav-bar title="测字表" />
|
|
|
|
<view class="wt-page">
|
|
<view class="wt-main">
|
|
<preview-card
|
|
id="previewCard"
|
|
showRefresh="{{true}}"
|
|
showFavorite="{{true}}"
|
|
favorited="{{isPreviewFavorite}}"
|
|
bind:canvas-ready="onCanvasReady"
|
|
bind:refresh="onPreviewRefresh"
|
|
bind:favorite="onPreviewFavorite" />
|
|
|
|
<view wx:if="{{groupList.length > 0}}" class="wt-section">
|
|
<view class="wt-section-header">
|
|
<text class="wt-section-title">选择组</text>
|
|
</view>
|
|
<view class="wt-group-grid">
|
|
<view
|
|
wx:for="{{groupList}}"
|
|
wx:key="index"
|
|
class="wt-group-card {{selectedGroupMap[item.index] ? 'wt-group-card--active' : ''}}"
|
|
data-index="{{item.index}}"
|
|
hover-class="wt-group-card--pressed"
|
|
hover-start-time="0"
|
|
hover-stay-time="70"
|
|
bindtap="onSelectGroup">
|
|
<view
|
|
wx:if="{{selectedGroupMap[item.index]}}"
|
|
class="wt-group-card__check">
|
|
<toy-icon name="check" size="20rpx" color="#fff" />
|
|
</view>
|
|
<text class="wt-group-card__name">{{item.label}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="wt-section">
|
|
<view class="wt-section-header">
|
|
<text class="wt-section-title">汉字分类</text>
|
|
</view>
|
|
<view class="wt-category-grid">
|
|
<view
|
|
wx:for="{{categoryList}}"
|
|
wx:key="id"
|
|
class="wt-category-card {{selectedCategoryMap[item.id] ? 'wt-category-card--active' : ''}}"
|
|
data-id="{{item.id}}"
|
|
hover-class="wt-category-card--pressed"
|
|
hover-start-time="0"
|
|
hover-stay-time="70"
|
|
bindtap="onSelectCategory">
|
|
<text class="wt-category-card__icon">{{item.icon}}</text>
|
|
<text class="wt-category-card__name">{{item.name}}</text>
|
|
<text
|
|
wx:if="{{item.parentName}}"
|
|
class="wt-category-card__cat"
|
|
>{{item.parentName}}</text
|
|
>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<preview-footer-actions
|
|
disabled="{{!hasContent}}"
|
|
bind:primary="exportToPrint"
|
|
bind:secondary="onShare" />
|
|
|
|
<debug-publish-tools
|
|
wx:if="{{isDevEnv && hasContent}}"
|
|
id="debugPublishTools"
|
|
visible="{{debugPublishVisible}}"
|
|
loading="{{debugPublishLoading}}"
|
|
meta="{{debugPublishMeta}}"
|
|
bind:open="onOpenDebugPublish"
|
|
bind:close="onCloseDebugPublish"
|
|
bind:confirm="onConfirmDebugPublish" />
|
|
|
|
<share-guide-popup
|
|
show="{{showShareDialog}}"
|
|
bind:onClose="onCloseShareDialog"
|
|
bind:onShareSuccess="onShareSuccess" />
|