feat(order): 下单支持一口价/师傅报价竞价/用户自主定价三种方式
- 下单页新增计价方式选择;自主定价填写总价,师傅报价单进入报价大厅 - 用户订单详情展示师傅报价列表并可选定师傅;选定后同步师傅、金额与订单状态 - 师傅大厅新增用户定价筛选与按价接单;报价单禁止直接抢单 - 后端订单新增 custom 价态、金额口径统一由 calcAmount 输出 - 报价中状态纳入用户可取消范围;超时回流重新开放报价 - 新增 fa_order.price_type custom 枚举迁移脚本(schema_phase6)
这个提交包含在:
@@ -23,6 +23,8 @@
|
||||
<view class="item" v-for="o in list" :key="o.id">
|
||||
<view class="hd">
|
||||
<text class="tag-urgent" v-if="Number(o.urgent)">急单</text>
|
||||
<text class="tag-mode quote" v-if="o.price_type === 'quote'">师傅报价</text>
|
||||
<text class="tag-mode custom" v-if="o.price_type === 'custom'">用户定价</text>
|
||||
<text class="svc">{{ o.service_name }}</text>
|
||||
<text class="amt">¥{{ o.pay_amount }}</text>
|
||||
</view>
|
||||
@@ -36,7 +38,7 @@
|
||||
<text class="phone">{{ o.left_seconds > 0 ? ('剩余 ' + countdown(o.left_seconds)) : '即将关闭' }}</text>
|
||||
<view class="ft-btns">
|
||||
<view class="quote-btn" v-if="o.price_type === 'quote'" @tap="goQuote(o)">我要报价({{ o.quote_count }})</view>
|
||||
<view class="grab" v-else @tap="grab(o)">立即抢单</view>
|
||||
<view class="grab" v-else @tap="grab(o)">{{ o.price_type === 'custom' ? '按此价接单' : '立即抢单' }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -64,7 +66,8 @@
|
||||
const typeTabs = [
|
||||
{ key: 'all', name: '全部订单' },
|
||||
{ key: 'fixed', name: '一口价' },
|
||||
{ key: 'quote', name: '报价订单' }
|
||||
{ key: 'quote', name: '报价订单' },
|
||||
{ key: 'custom', name: '用户定价' }
|
||||
];
|
||||
const sortTabs = [
|
||||
{ key: 'new', name: '最新' },
|
||||
@@ -147,6 +150,9 @@
|
||||
.item { background: #fff; border-radius: 20rpx; margin-bottom: 20rpx; padding: 22rpx 24rpx; box-shadow: 0 6rpx 20rpx rgba(240,129,31,0.06); }
|
||||
.hd { display: flex; align-items: center; padding-bottom: 14rpx; border-bottom: 1rpx solid #F4F4F4; }
|
||||
.tag-urgent { padding: 0 12rpx; line-height: 34rpx; border-radius: 8rpx; background: #FDEEEB; color: #E8331B; font-size: 20rpx; margin-right: 10rpx; }
|
||||
.tag-mode { padding: 0 12rpx; line-height: 34rpx; border-radius: 8rpx; font-size: 20rpx; margin-right: 10rpx; }
|
||||
.tag-mode.quote { background: #F0EDFF; color: #5B3FD8; }
|
||||
.tag-mode.custom { background: #E9F7EE; color: #2FA84F; }
|
||||
.svc { flex: 1; font-size: 30rpx; font-weight: 700; color: #1F1F1F; }
|
||||
.amt { font-size: 32rpx; font-weight: 700; color: #F0710D; }
|
||||
.bd { display: flex; flex-direction: column; padding: 16rpx 0; }
|
||||
|
||||
在新工单中引用
屏蔽一个用户