This commit is contained in:
2026-09-15 23:04:38 +08:00
parent 6be3f083cc
commit 592fa9be64
21 changed files with 1323 additions and 77 deletions
@@ -10,8 +10,9 @@ module.exports = { cls: cls }
<view class="page page-flex">
<navigation-bar title="{{outfit.outfit_name || '穿搭详情'}}" scrolled="{{navScrolled}}">
<!-- 封禁态只读:不提供编辑/删除入口 -->
<view
wx:if="{{isOwner && pageState === 'normal' && !loading}}"
wx:if="{{isOwner && pageState === 'normal' && !loading && !banned}}"
slot="right"
class="nav-more"
bindtap="onMore"
@@ -71,9 +72,11 @@ module.exports = { cls: cls }
<view class="od-tags">
<text wx:if="{{outfit.scene}}" class="pill pill--line">{{outfit.scene}}</text>
<text class="pill {{outfit.source === 2 ? 'pill--ink' : ''}}">{{outfit.source === 2 ? 'AI 推荐' : '自建'}}</text>
<text class="pill {{outfit.is_public === 2 ? 'pill--line' : ''}}">{{outfit.is_public === 2 ? '已公开' : '仅自己可见'}}</text>
<text class="pill {{statePill.cls}}">{{statePill.text}}</text>
</view>
<view class="t-bd od-desc" wx:if="{{outfit.outfit_desc}}">{{outfit.outfit_desc}}</view>
<view class="od-note" wx:if="{{banned}}">该穿搭已被封禁,暂不支持编辑、公开与分享</view>
<view class="od-note" wx:elif="{{pendingSave}}">AI 生成的推荐,保存后归入「AI 穿搭」的「已保存」</view>
</view>
<!-- 包含衣物:横滑单品 -->
@@ -115,7 +118,11 @@ module.exports = { cls: cls }
<view class="icon {{isCollected ? 'icon-star-fill' : 'icon-star'}}"></view>
</view>
<view class="spacer"></view>
<block wx:if="{{isOwner}}">
<!-- 待保存的 AI 推荐:唯一操作是保存;封禁态只读,隐藏管理操作与分享 -->
<block wx:if="{{isOwner && pendingSave}}">
<view class="btn btn--ink btn--sm" bindtap="onSaveAsOutfit">{{saving ? '保存中…' : '保存'}}</view>
</block>
<block wx:elif="{{isOwner && !banned}}">
<view class="btn btn--ghost btn--sm" bindtap="onTogglePublic">{{outfit.is_public === 2 ? '取消公开' : '公开到社区'}}</view>
<button class="od-share" open-type="share">
<view class="icon icon-share"></view>
@@ -125,7 +132,7 @@ module.exports = { cls: cls }
</view>
</block>
<!-- 提示(分享者额度不足) -->
<!-- 提示(分享者额度不足 / 保存失败) -->
<v2-overlay
visible="{{tipVisible}}"
type="modal"