更改需求订单类型标识

This commit is contained in:
TOP糯米 2023-03-15 11:52:53 +08:00
parent bac7a30ced
commit bd17c7b425
3 changed files with 13 additions and 13 deletions

View File

@ -32,10 +32,10 @@
<text class="text">{{ order.serviceTime }}</text> <text class="text">{{ order.serviceTime }}</text>
</view> </view>
<!-- 购买订单|/议价订单|货运订单 可展示师傅信息 --> <!-- 购买订单|/议价订单|货运订单 可展示师傅信息 -->
<block v-if="order.listType == 't1' || order.listType == 't2' || 't3'"> <block v-if="order.listType == 't1' || order.listType == 't2' || order.listType == 't3'">
<view class="order-worker-box"> <view class="order-worker-box">
<!-- 报价订单未选择师傅 展示师傅列表 --> <!-- 报价订单未选择师傅 展示师傅列表 -->
<block v-if="order.listType == 't2' && order.orderType == 1 && order.state == 0"> <block v-if="order.listType == 't2' && order.orderType == 2 && order.state == 0">
<view class="worker-list-group"> <view class="worker-list-group">
<view class="list-group"> <view class="list-group">
<view class="list-item" v-for="(item, index) in previewWorkerList" :key="index"> <view class="list-item" v-for="(item, index) in previewWorkerList" :key="index">

View File

@ -19,14 +19,14 @@ export default {
switch (state) { switch (state) {
case 0: case 0:
if (orderType == 2) { if (orderType == 2) {
return ['待师傅接单']; return ['待选择师傅'];
} }
return ['待选择师傅']; return ['待师傅接单'];
case 1: case 1:
if (orderType == 2) { if (orderType == 2) {
return ['师傅已接单,待支付']; return ['已选择师傅,待支付'];
} }
return ['已选择师傅,待支付']; return ['师傅已接单,待支付'];
case 2: return ['服务中']; case 2: return ['服务中'];
case 4: return ['待支付尾款']; case 4: return ['待支付尾款'];
case 5: return ['服务已完成,待确认']; case 5: return ['服务已完成,待确认'];

View File

@ -38,10 +38,10 @@
</view> </view>
<view class="input-box"> <view class="input-box">
<view class="checkbox"> <view class="checkbox">
<view class="checkbox-item" :class="[type == 1 ? 'active' : '']" @click="type = 1"> <view class="checkbox-item" :class="[type == 2 ? 'active' : '']" @click="type = 2">
<text>多位师傅报价</text> <text>多位师傅报价</text>
</view> </view>
<view class="checkbox-item" :class="[type == 2 ? 'active' : '']" @click="type = 2"> <view class="checkbox-item" :class="[type == 1 ? 'active' : '']" @click="type = 1">
<text>议价</text> <text>议价</text>
</view> </view>
</view> </view>
@ -90,7 +90,7 @@
<text> <text>
<text>需求说明</text> <text>需求说明</text>
<text class="small-cate">{{ cateText }}</text> <text class="small-cate">{{ cateText }}</text>
<text class="small-cate">{{ type == 1 ? "多位师傅报价" : "议价" }}</text> <text class="small-cate">{{ type == 2 ? "多位师傅报价" : "议价" }}</text>
</text> </text>
</view> </view>
<view class="textarea-box"> <view class="textarea-box">
@ -138,7 +138,7 @@
</view> </view>
</view> </view>
<view class="common-form-container ext-box"> <view class="common-form-container ext-box">
<view v-if="type == 2" class="custom-price"> <view v-if="type == 1" class="custom-price">
<view class="title-box"> <view class="title-box">
<text>需求价格</text> <text>需求价格</text>
<text class="desc"> 请勿填写过低价格避免无师傅接单 </text> <text class="desc"> 请勿填写过低价格避免无师傅接单 </text>
@ -160,10 +160,10 @@
</view> </view>
<view class="common-bottom-components" :style="{ bottom: pageConfig.safeAreaInsets.bottom + 'px' }"> <view class="common-bottom-components" :style="{ bottom: pageConfig.safeAreaInsets.bottom + 'px' }">
<text class="price">¥ {{ utils.formatNumber(total, 2) }}</text> <text class="price">¥ {{ utils.formatNumber(total, 2) }}</text>
<view v-if="type == 1" class="btn" @click="submit"> <view v-if="type == 2" class="btn" @click="submit">
<div class="text">立即发布</div> <div class="text">立即发布</div>
</view> </view>
<view v-if="type == 2" class="btn" @click="submit"> <view v-if="type == 1" class="btn" @click="submit">
<div class="text">去支付</div> <div class="text">去支付</div>
</view> </view>
</view> </view>
@ -213,7 +213,7 @@ export default {
cateList: [], cateList: [],
cateText: "", cateText: "",
// //
type: 1, type: 2,
content: "", content: "",
cateId: 0, cateId: 0,
uploadImages: [], uploadImages: [],