优化取名逻辑
This commit is contained in:
@@ -6,35 +6,36 @@
|
||||
|
||||
<scroll-view class="content" scroll-y="true">
|
||||
<view class="headline">
|
||||
<text class="title">灵签揭示</text>
|
||||
<text class="subtitle">从星宿生辰推演的五重吉名,择其心有所向</text>
|
||||
<text class="title">八字名鉴</text>
|
||||
<text class="subtitle">以生辰八字为准,优选五行调衡的候选姓名</text>
|
||||
</view>
|
||||
|
||||
<view class="summary" tt:if="{{matchSummary}}">
|
||||
<text class="summary-text">{{matchSummary}}</text>
|
||||
</view>
|
||||
|
||||
<view class="empty" tt:if="{{!results.length}}">
|
||||
<text>暂无生成结果,请返回主页重新召唤。</text>
|
||||
<text>暂无生成结果,请返回主页重新生成。</text>
|
||||
<button class="primary back-button" bindtap="handleBack">返回主页</button>
|
||||
</view>
|
||||
|
||||
<view tt:if="{{results.length}}">
|
||||
<view class="tip">轻触收藏,铭记心仪之名</view>
|
||||
<view class="tip">轻触收藏按钮即可将心仪姓名收入星册</view>
|
||||
<block tt:for="{{results}}" tt:for-index="index" tt:for-item="item" tt:key="name">
|
||||
<view class="result-card">
|
||||
<view class="result-header">
|
||||
<text class="name">{{item.name}}</text>
|
||||
<button
|
||||
class="collect-button"
|
||||
size="mini"
|
||||
bindtap="handleFavorite"
|
||||
data-name="{{item.name}}"
|
||||
data-meaning="{{item.meaning}}"
|
||||
>
|
||||
收藏
|
||||
</button>
|
||||
</view>
|
||||
<text class="meaning">{{item.meaning}}</text>
|
||||
<text class="result-line">{{item.name}}|{{item.meaning}}|{{item.elementReason}}</text>
|
||||
<button
|
||||
class="collect-button"
|
||||
size="mini"
|
||||
bindtap="handleFavorite"
|
||||
data-name="{{item.name}}"
|
||||
data-meaning="{{item.meaning}}"
|
||||
>
|
||||
收藏
|
||||
</button>
|
||||
</view>
|
||||
</block>
|
||||
<button class="primary back-button" bindtap="handleBack">再占一卦</button>
|
||||
<button class="primary back-button" bindtap="handleBack">再测一批</button>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user