feat: 移除操作区域代码

This commit is contained in:
duanshuwen
2025-07-30 11:57:25 +08:00
parent 27ea45145b
commit 6831004189
3 changed files with 0 additions and 58 deletions

View File

@@ -25,11 +25,6 @@
<!-- 卡片内容 -->
<OrderCardContent :order-data="orderData" />
<!-- 操作区域 -->
<view v-if="shouldShowActionArea()" class="action-area">
<button class="action-btn" @click.stop="handleCall">立即呼叫</button>
</view>
</view>
</template>
@@ -83,14 +78,6 @@ const getStatusIcon = () => {
return ICON_MAP[props.orderData.orderType] || serviceIcon;
};
// 判断是否显示操作区域
const shouldShowActionArea = () => {
// 工单情况orderType 为 undefined且 workOrderStatus = 0 时显示
if (props.orderData.orderType === undefined) {
return props.orderData.workOrderStatus === "0";
}
};
// 获取状态文本
const getStatusText = (status) => {
// 工单情况orderType 为 undefined
@@ -121,16 +108,6 @@ const getStatusText = (status) => {
const handleCardClick = () => {
emit("click", props.orderData);
};
// 处理呼叫
const handleCall = () => {
emit("call", props.orderData);
};
// 暴露方法
defineExpose({
getStatusText,
});
</script>
<style scoped lang="scss">

View File

@@ -89,28 +89,3 @@
border: 1px solid #fd8702;
}
}
.action-area {
padding-bottom: 16px;
}
.action-btn {
width: 280px;
height: 42px;
border-radius: 50px;
border: 2px solid #ffca70;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease;
background: linear-gradient(179deg, #ffb100 0%, #ff7f19 100%);
color: #ffffff;
margin: 0 auto;
&:hover {
background: linear-gradient(135deg, #ff7a00 0%, #ff6600 100%);
}
&:active {
transform: scale(0.95);
}
}

View File

@@ -29,7 +29,6 @@
:key="item.id || index"
:orderData="item"
@click="handleOrderClick"
@call="handleOrderCall"
/>
</z-paging>
</template>
@@ -101,15 +100,6 @@ const handleOrderClick = (orderData) => {
url: `/pages/order/detail?id=${orderData.id}`,
});
};
// 处理订单呼叫
const handleOrderCall = (orderData) => {
console.log("订单呼叫:", orderData);
// 这里可以添加呼叫逻辑
uni.makePhoneCall({
phoneNumber: orderData.contactPhone,
});
};
</script>
<style scoped lang="scss">