master
jevononlie 6 months ago
parent 1c54e9c435
commit 70452ae254

@ -94,7 +94,7 @@ const handlePayment = async () => {
const params = { const params = {
id: props.orderId, id: props.orderId,
orderDetails, orderDetails,
clientType: isUnit.value ? 2 : 1, clientType: props?.clientType || 1,
} }
isLoadingPay.value = true isLoadingPay.value = true
const res = await postOrderCompleteAPI(params) const res = await postOrderCompleteAPI(params)
@ -134,13 +134,6 @@ const switchChange = (e) => {
}) })
} }
} }
//
const isUnit = ref(false)
const switchUnitChange = (e) => {
const flag = e.detail.value
isUnit.value = flag
}
// //
// 10% // 10%
const priceChange = (item: any) => { const priceChange = (item: any) => {
@ -223,10 +216,6 @@ const popupDel = (idx) => {
<view class="viewport"> <view class="viewport">
<view class="cont"> <view class="cont">
<view class="title">回收详情</view> <view class="title">回收详情</view>
<view class="switch" v-if="props.clientType == 2">
<view class="label">单位订单</view>
<switch color="#3775F6" :checked="isUnit" @change="switchUnitChange" style="transform:scale(0.7)" />
</view>
<view class="switch"> <view class="switch">
<view class="label">{{ selectText }}</view> <view class="label">{{ selectText }}</view>
<switch color="#3775F6" :checked="allSelectd" @change="switchChange" style="transform:scale(0.7)" /> <switch color="#3775F6" :checked="allSelectd" @change="switchChange" style="transform:scale(0.7)" />

Loading…
Cancel
Save