宴席2.0
Some checks are pending
deploy / deploy (push) Waiting to run

This commit is contained in:
sjeam 2025-08-15 17:10:19 +08:00
parent dd3e5e53fc
commit 6119af35df
4 changed files with 34 additions and 43 deletions

View File

@ -124,7 +124,9 @@
:show="true" prefixIcon="" customStyle="" :show="true" prefixIcon="" customStyle=""
iconStyle="font-size:28rpx;color:#59CB56;margin-right:10rpx;" lines="1" decoration="none"> iconStyle="font-size:28rpx;color:#59CB56;margin-right:10rpx;" lines="1" decoration="none">
</up-text> </up-text>
<u-icon slot="right" label-color="#fa4e62" :label="`X${item.number}`"></u-icon> <u-icon v-if="oder_type===1" slot="right" label-color="#fa4e62" :label="`X${item.number}`"></u-icon>
<u-icon v-else slot="right" label-color="#fa4e62" :label="`X${orderInfo.table_number}`"></u-icon>
</view> </view>
</template> </template>
</u-cell> </u-cell>
@ -140,8 +142,10 @@
<template #title> <template #title>
<view class="title font-size-32"> <view class="title font-size-32">
<view>费用合计</view> <view>费用合计</view>
<view class="title-tip "> <view class="title-tip " >
<text class="font-size-32 font-bold color-red">{{ totalPrice }}</text> <text v-if="oder_type===1" class="font-size-32 font-bold color-red">{{ totalPrice }}</text>
<text v-else class="font-size-32 font-bold color-red">{{ matchedItems_sp[0][0].dishes.price *orderInfo.table_number }}</text>
</view> </view>
</view> </view>
</template> </template>
@ -236,7 +240,6 @@
</wd-cell-group> </wd-cell-group>
</wd-form> </wd-form>
<!-- 一般的检举内容由承办的党的委员会或纪律检查委员会将处理意见或复议复查结论同申诉人见面听取其意见复议复查的结论和决定应交给申诉人一份 -->
<template #footer> <template #footer>
<!-- <wd-button size="small" plain>查看详情</wd-button> --> <!-- <wd-button size="small" plain>查看详情</wd-button> -->
</template> </template>

View File

@ -168,18 +168,14 @@
<view>3.如若档期冲突订单被厨师取消定金将原路返回请放心下单</view> <view>3.如若档期冲突订单被厨师取消定金将原路返回请放心下单</view>
<view>4.在此感谢您对此平台以及厨师们的支持您的支持就是我们前进的最大动力</view> <view>4.在此感谢您对此平台以及厨师们的支持您的支持就是我们前进的最大动力</view>
<wd-form ref="form" :model="orderInfo" errorType="message">
<wd-cell-group border>
<view class="pb-4" />
<wd-button plain hairline custom-style="width: calc(100vw - 100rpx);" @click="payOrder(1)">确定支付</wd-button>
<view class="pb-2" />
<wd-button hairline custom-style="width: calc(100vw - 100rpx);" @click="payOrder(2)">取消订单</wd-button>
</wd-cell-group>
</wd-form>
<template #footer> <template #footer>
<view class="pb-4" />
<wd-button plain hairline custom-style="width: calc(100vw - 120rpx);" @click="payOrder(1)">确定支付</wd-button>
<view class="pb-2" />
<wd-button hairline custom-style="width: calc(100vw - 120rpx);" @click="payOrder(2)">取消订单</wd-button>
</template> </template>
</wd-card> </wd-card>
<view class="p-2"></view>
</view> </view>
</template> </template>

View File

@ -1,20 +1,3 @@
<style>
.ellipsis {
/* 在末尾显示省略号 */
width: 420rpx;
/* 防止文字换行 */
overflow: hidden;
/* 隐藏超出部分的文字 */
text-overflow: ellipsis;
white-space: nowrap;
/* 确保元素有宽度 */
}
html,
body {
height: 0rpx;
}
</style>
<template> <template>
<view> <view>
@ -31,23 +14,30 @@ body {
:paging-style="{ 'background-color': '#FFFFFFFF', 'padding': '20rpx' }" ref="pagingRefSP" :paging-style="{ 'background-color': '#FFFFFFFF', 'padding': '20rpx' }" ref="pagingRefSP"
v-model="matchedItems_sp" @query="changeSP" class="fv-page flex-col "> v-model="matchedItems_sp" @query="changeSP" class="fv-page flex-col ">
<view v-for="(item, index) in matchedItems_sp" :key="index" @click="orderDetail(item.id)"> <view v-for="(item, index) in matchedItems_sp" :key="index" @click="orderDetail(item.id)">
<wd-card> <wd-card >
<!-- <template #title> <template #title>
<view> {{ item.order_sn }}</view> <view class="title">
</template> --> <view> 创建时间{{ item.create_time }} </view>
<view class="pt-2">订单编号{{ item.order_sn }} </view> <text v-if="item.paid === 0">
<wd-tag custom-class="space" mark>未付款</wd-tag>
</text>
<text v-else>
<wd-tag custom-class="space" type="primary" mark>已付款</wd-tag>
</text>
</view>
</template>
<view>订单编号{{ item.order_sn }} </view>
<view class="pt-2">联系人{{ item.customer_name }}</view> <view class="pt-2">联系人{{ item.customer_name }}</view>
<view class="pt-2">联系电话{{ item.phone }}</view> <view class="pt-2">联系电话{{ item.phone }}</view>
<view class="pt-2">宴席类型{{ item.banquet_type }}</view> <view class="pt-2">宴席类型{{ item.banquet_type }}</view>
<view class="pt-2">宴席地址{{ item.address }}</view> <view class="pt-2">宴席地址{{ item.address }}</view>
<view class="pt-2">支付金额<text >{{ item.final_price }}</text></view>
<view class="pt-2">预付金额<text >{{ item.prepay_price }}</text></view>
<view class="pt-2">备注{{ item.remark }}</view> <view class="pt-2">备注{{ item.remark }}</view>
<view class="pt-2">支付金额<text class="color-red">{{ item.final_price }}</text></view>
<view class="pt-2">预付金额<text class="color-red">{{ item.prepay_price }}</text></view>
<template #footer> <template #footer>
<view> <!-- <view>
<!-- <wd-button size="small" style="margin-right: 8px;">评价</wd-button> -->
<wd-button size="small" plain>查看详情</wd-button> <wd-button size="small" plain>查看详情</wd-button>
</view> </view> -->
</template> </template>
</wd-card> </wd-card>
</view> </view>

View File

@ -27,7 +27,9 @@ body {
text-decoration: line-through; text-decoration: line-through;
/* 禁用日期的文字带有删除线 */ /* 禁用日期的文字带有删除线 */
} }
// .wd-card {
// border: 1px solid #e2e2e2;
// }
html, html,
body { body {