首页 .home-purchase-embed 入场动画残留 transform,使内部 position:fixed 弹层被当成包含块(贴容器底部、随页面滚动)。按仓库既有惯例给 bid-panel 详情抽屉与 order-entry-panel 新建分类弹窗补 root-portal。
66 lines
2.7 KiB
Plaintext
66 lines
2.7 KiB
Plaintext
<view class="bid-panel {{embedded ? 'is-embedded' : ''}}">
|
|
<view class="tabs">
|
|
<view class="tab {{tab==='open'?'active':''}}" data-tab="open" bindtap="onTab">待报价</view>
|
|
<view class="tab {{tab==='done'?'active':''}}" data-tab="done" bindtap="onTab">已处理</view>
|
|
</view>
|
|
|
|
<view wx:if="{{loading}}" class="muted center">加载中…</view>
|
|
<view wx:elif="{{error}}" class="error">{{error}}</view>
|
|
<view wx:elif="{{!enabled}}" class="muted center">分公司未开启竞价</view>
|
|
<view wx:elif="{{list.length===0}}" class="muted center">暂无竞价邀约</view>
|
|
|
|
<block wx:else>
|
|
<view class="card" wx:for="{{list}}" wx:key="id" data-id="{{item.round_id}}" bindtap="openDetail">
|
|
<view class="row">
|
|
<text class="title">{{item.round_code}}</text>
|
|
<text class="badge {{item.statusClass}}">{{item.statusText}}</text>
|
|
</view>
|
|
<view class="sub">{{item.title || '竞价轮次'}} · {{item.item_count}} 个商品</view>
|
|
<view class="sub">截止:{{item.deadlineText}}</view>
|
|
</view>
|
|
</block>
|
|
|
|
<root-portal enable="{{true}}">
|
|
<view wx:if="{{detail}}" class="drawer">
|
|
<view class="drawer-mask" bindtap="closeDetail"></view>
|
|
<view class="drawer-panel">
|
|
<view class="drawer-head">
|
|
<text class="title">{{detail.round.round_code}}</text>
|
|
<text class="link" bindtap="closeDetail">关闭</text>
|
|
</view>
|
|
<view class="sub">{{detail.round.title || ''}}</view>
|
|
<view class="sub">状态:{{detail.invitation.statusText}} · 截止 {{detail.invitation.deadlineText}}</view>
|
|
|
|
<view wx:if="{{detail.invitation.status==='expired'}}" class="warn">已超过响应时限,本轮已出局</view>
|
|
<view wx:elif="{{detail.round.status!=='open'}}" class="muted">轮次已结束,仅可查看</view>
|
|
|
|
<view class="section-title">报价明细</view>
|
|
<view class="quote-row" wx:for="{{detail.items}}" wx:key="sku_code">
|
|
<view class="quote-name">{{item.sku_name || item.sku_code}}</view>
|
|
<input
|
|
class="quote-input"
|
|
type="digit"
|
|
placeholder="单价"
|
|
disabled="{{!detail.canQuote}}"
|
|
value="{{priceMap[item.sku_code]}}"
|
|
data-sku="{{item.sku_code}}"
|
|
bindinput="onPriceInput"
|
|
/>
|
|
</view>
|
|
|
|
<button
|
|
wx:if="{{detail.canQuote}}"
|
|
class="submit"
|
|
loading="{{submitting}}"
|
|
bindtap="submitQuotes"
|
|
>提交报价(提交即响应)</button>
|
|
|
|
<view wx:if="{{detail.awards.length}}" class="section-title">中标结果</view>
|
|
<view wx:for="{{detail.awards}}" wx:key="sku_code" class="sub">
|
|
{{item.sku_code}} @ {{item.unit_price}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</root-portal>
|
|
</view>
|