修改订单详情,未选择用户显示服务员下单
This commit is contained in:
@@ -150,7 +150,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
const seatFeePrice = computed(() => {
|
const seatFeePrice = computed(() => {
|
||||||
if (props.seatFee.totalAmount) {
|
if (!props.seatFee.totalAmount) {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
const n = props.seatFee.totalAmount * (props.seatFee.status == 'return' ? 0 : 1)
|
const n = props.seatFee.totalAmount * (props.seatFee.status == 'return' ? 0 : 1)
|
||||||
|
|||||||
@@ -1,17 +1,30 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="u-font-28 default-box-padding u-relative bg-fff border-r-12 u-overflow-hide">
|
<view class="u-font-28 default-box-padding u-relative bg-fff border-r-12 u-overflow-hide">
|
||||||
<template v-if="orderInfo.status=='unpaid'">
|
<template v-if="orderInfo.status=='unpaid'">
|
||||||
<view class="change u-absolute my-bg-main color-fff left-top" @click="chooseUser">切换</view>
|
<view class="change u-absolute color-fff left-top" @click="chooseUser">切换</view>
|
||||||
</template>
|
</template>
|
||||||
<view class="u-flex u-row-between u-m-t-20 border-bottom u-p-b-20">
|
<template v-if="user.id">
|
||||||
<view class="u-flex">
|
<view class="u-flex u-row-between u-m-t-20 border-bottom u-p-b-20">
|
||||||
<up-avatar :size="30" :src="user.headImg"></up-avatar>
|
<view class="u-flex">
|
||||||
<view class="color-666 u-m-l-30">{{user.telephone||'未绑定手机号'}}</view>
|
<up-avatar :size="30" :src="user.headImg"></up-avatar>
|
||||||
|
<view class="color-666 u-m-l-30">{{user.telephone||'未绑定手机号'}}</view>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<my-button @click="toOrder" :height="60" plain shape="circle">他的订单</my-button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
</template>
|
||||||
<my-button @click="toOrder" :height="60" plain shape="circle">他的订单</my-button>
|
<template v-else>
|
||||||
|
<view class="u-flex u-row-between u-m-t-20 border-bottom u-p-b-20">
|
||||||
|
<view class="u-flex">
|
||||||
|
<up-avatar :size="30" :src="user.headImg"></up-avatar>
|
||||||
|
<view class="color-666 u-m-l-30">{{'服务员下单'}}</view>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<my-button @click="toOrder" :height="60" plain shape="circle">他的订单</my-button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</template>
|
||||||
<view class="u-flex u-m-t-20 u-row-between">
|
<view class="u-flex u-m-t-20 u-row-between">
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="font-bold">{{user.amount}}</view>
|
<view class="font-bold">{{user.amount}}</view>
|
||||||
@@ -66,8 +79,9 @@
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.change {
|
.change {
|
||||||
padding: 4rpx 16rpx;
|
padding: 2rpx 22rpx 4rpx 14rpx;
|
||||||
border-radius: 0 0 16rpx 0;
|
border-radius: 18rpx 0rpx 18rpx 0rpx;
|
||||||
|
background: linear-gradient( 139deg, #74B0FF 0%, #318AFE 100%);
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user