- Introduced member business tabs for profile and dynamics, improving navigation and user experience. - Implemented image parsing and normalization functions to handle article images effectively. - Updated the UI to display article thumbnails and manage loading states, enhancing visual feedback. - Refactored data synchronization methods to ensure member business tabs reflect current content accurately. This update aims to streamline member profile interactions and improve the overall presentation of member-related content.
58 lines
2.5 KiB
Plaintext
58 lines
2.5 KiB
Plaintext
<!--订单页-->
|
|
<view class="page">
|
|
<view class="nav-bar" style="padding-top: {{statusBarHeight}}px;">
|
|
<view class="nav-back" bindtap="goBack"><icon name="chevron-left" size="44" color="rgba(255,255,255,0.8)" customClass="back-icon"></icon></view>
|
|
<text class="nav-title">订单与代付</text>
|
|
<view class="nav-placeholder"></view>
|
|
</view>
|
|
<view style="height: {{statusBarHeight + 44}}px;"></view>
|
|
|
|
<view class="content">
|
|
<view class="loading" wx:if="{{loading}}">
|
|
<view class="skeleton"></view>
|
|
<view class="skeleton"></view>
|
|
<view class="skeleton"></view>
|
|
</view>
|
|
|
|
<view class="order-history-card" wx:elif="{{displayRows.length > 0}}">
|
|
<view class="order-history-head">
|
|
<image class="order-history-icon" src="/assets/icons/unlock-muted-teal.svg" mode="aspectFit"/>
|
|
</view>
|
|
<view class="oh-list">
|
|
<view class="oh-block" wx:for="{{displayRows}}" wx:key="rowKey">
|
|
<view class="oh-row" bindtap="onUnifiedRowTap" data-index="{{index}}">
|
|
<view class="oh-left">
|
|
<text class="oh-kind {{item.kind === 'giftPay' ? 'oh-kind-gift' : 'oh-kind-order'}}">{{item.kind === 'giftPay' ? '代付' : '订单'}}</text>
|
|
<view class="oh-text-wrap">
|
|
<text class="oh-title">{{item.title}}</text>
|
|
<text class="oh-sub" wx:if="{{item.subLine}}">{{item.subLine}}</text>
|
|
</view>
|
|
</view>
|
|
<text class="oh-link">{{item.actionLabel}}</text>
|
|
</view>
|
|
<view class="oh-gift-tools" wx:if="{{item.kind === 'giftPay' && item.gpPending}}" catchtap="">
|
|
<text class="oh-tool oh-tool-cancel" catchtap="onGiftPayCancel" data-sn="{{item.requestSn}}">取消</text>
|
|
</view>
|
|
<view class="oh-gift-tools" wx:if="{{item.kind === 'giftPay' && item.gpPaid}}" catchtap="">
|
|
<text class="oh-tool" catchtap="onGiftPayShare" data-sn="{{item.requestSn}}">分享</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view
|
|
class="oh-expand"
|
|
wx:if="{{allRows.length > 5 && !historyExpanded}}"
|
|
bindtap="expandHistory"
|
|
hover-class="oh-expand-hover"
|
|
hover-stay-time="80"
|
|
>
|
|
<view class="oh-triangle"></view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="empty" wx:else>
|
|
<icon name="package" size="80" color="#3a3a3c" customClass="empty-icon"></icon>
|
|
<text class="empty-text">暂无订单与代付记录</text>
|
|
</view>
|
|
</view>
|
|
</view>
|