优化功能
This commit is contained in:
@ -17,7 +17,16 @@
|
||||
<view class="mx-48rpx flex items-center">
|
||||
<view class="rounded-4rpx w-60rpx text-center text-[#40AE36] border-2rpx border-solid border-[#40AE36] text-22rpx pb-4rpx" v-if="isGroupBuy">团购</view>
|
||||
<view class="rounded-4rpx w-60rpx text-center text-[#FF5951] border-2rpx border-solid border-[#FF5951] text-22rpx pb-4rpx" v-if="isDirectSale">直营</view>
|
||||
<view class="w-600rpx line-2 ml-20rpx font-bold text-30rpx text-[#303133] leading-42rpx text-left">【{{ bill?.room?.title }}】{{ bill?.order?.group?.title || '' }}</view>
|
||||
<template v-if="isRecharge">
|
||||
<view class="w-600rpx line-2 ml-20rpx font-bold text-30rpx text-[#303133] leading-42rpx text-center">
|
||||
门店余额充值
|
||||
</view>
|
||||
</template>
|
||||
<template v-else>
|
||||
<view class="w-600rpx line-2 ml-20rpx font-bold text-30rpx text-[#303133] leading-42rpx text-left">
|
||||
【{{ bill?.room?.title }}】{{ bill?.order?.group?.title || '' }}
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -64,6 +73,23 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-if="isRecharge">
|
||||
<view class="text-28rpx leading-40rpx text-[#606266] flex items-center justify-between mt-22rpx">
|
||||
<view>充值金额</view>
|
||||
<view>¥{{ bill?.order?.recharge_price }}</view>
|
||||
</view>
|
||||
|
||||
<view class="text-28rpx leading-40rpx text-[#606266] flex items-center justify-between mt-22rpx">
|
||||
<view>赠送金额</view>
|
||||
<view>¥{{ bill?.order?.gift_price }}</view>
|
||||
</view>
|
||||
|
||||
<view class="mt-20rpx">
|
||||
<wd-gap height="2rpx" bg-color="#E5E5E5"></wd-gap>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 直营和团购都显示 -->
|
||||
<view>
|
||||
<view class="text-28rpx leading-40rpx text-[#606266] flex items-center justify-between mt-22rpx">
|
||||
@ -71,7 +97,8 @@
|
||||
<view>¥{{ bill?.order?.order_amount }}</view>
|
||||
</view>
|
||||
|
||||
<view class="text-28rpx leading-40rpx text-[#606266] flex items-center justify-between mt-22rpx">
|
||||
|
||||
<view class="text-28rpx leading-40rpx text-[#606266] flex items-center justify-between mt-22rpx" v-if="bill.change_type != 9">
|
||||
<view>优惠券</view>
|
||||
<view>-¥{{ bill?.order?.coupon_price }}</view>
|
||||
</view>
|
||||
@ -82,6 +109,11 @@
|
||||
</view>
|
||||
|
||||
<view>
|
||||
<view class="text-28rpx leading-40rpx text-[#606266] flex items-center justify-between mt-22rpx">
|
||||
<view>用户手机号</view>
|
||||
<view>{{ bill?.order.mobile }}</view>
|
||||
</view>
|
||||
|
||||
<view class="text-28rpx leading-40rpx text-[#606266] flex items-center justify-between mt-22rpx">
|
||||
<view>订单编号</view>
|
||||
<view>
|
||||
@ -95,7 +127,13 @@
|
||||
<view v-if="isDirectSale" class="text-28rpx leading-40rpx text-[#606266] flex items-center justify-between mt-22rpx">
|
||||
<view>交易方式</view>
|
||||
<view>{{ bill?.order?.pay_way_title }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 充值的支付方式 -->
|
||||
<view v-if="isRecharge" class="text-28rpx leading-40rpx text-[#606266] flex items-center justify-between mt-22rpx">
|
||||
<view>支付方式</view>
|
||||
<view>{{ bill?.order?.pay_way_title }}</view>
|
||||
</view>
|
||||
|
||||
<view class="text-28rpx leading-40rpx text-[#606266] flex items-center justify-between mt-22rpx">
|
||||
<view>创建时间</view>
|
||||
@ -125,6 +163,12 @@
|
||||
<view>付款时间</view>
|
||||
<view>{{ bill?.order?.dtime }}</view>
|
||||
</view>
|
||||
|
||||
<!-- 充值 -->
|
||||
<view v-if="isRecharge" class="text-28rpx leading-40rpx text-[#606266] flex items-center justify-between mt-22rpx">
|
||||
<view>付款时间</view>
|
||||
<view>{{ bill?.order?.pay_time }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -156,6 +200,11 @@
|
||||
const isDirectSale = computed(() => {
|
||||
return bill.value.change_type === 1 || bill.value.change_type === 2
|
||||
})
|
||||
|
||||
// 充值
|
||||
const isRecharge = computed(() => {
|
||||
return bill.value.change_type === 9
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user