完善订单信息
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<!-- 团购和抖音团购 -->
|
||||
<view v-if="type === 'GroupBuying'" class="bg-white rounded-10rpx p-30rpx">
|
||||
<view v-if="type === 'Direct' || type === 'Franchise' || type === 'DouYin'" class="bg-white rounded-10rpx p-30rpx">
|
||||
<view class="flex justify-between items-center">
|
||||
<view class="flex items-center">
|
||||
<view class="w-40rpx h-40rpx mr-10rpx">
|
||||
@ -13,9 +13,9 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="font-400 text-28rpx leading-40rpx mt-12rpx">
|
||||
<text class="text-[#4C9F44]">待使用</text>
|
||||
<!-- <text class="text-[#606266]">已使用</text>
|
||||
<text class="text-[#C9C9C9]">已退款</text> -->
|
||||
<text class="text-[#4C9F44]" v-if="orderType === OrderStatus.ToUse">待使用</text>
|
||||
<text class="text-[#606266]" v-if="orderType === OrderStatus.Used">已使用</text>
|
||||
<text class="text-[#C9C9C9]" v-if="orderType === OrderStatus.AfterSaleFinished">已退款</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt-22rpx">
|
||||
@ -24,7 +24,7 @@
|
||||
<wd-img width="100%" height="100%" :src="`${OSS}images/home/home_image5.png`"></wd-img>
|
||||
</view>
|
||||
<view class="flex-1">
|
||||
<view @click="comboCard.handleToGroupBuyingDetail">
|
||||
<view @click="comboCard.handleToOrderDetail">
|
||||
<view class="font-500 text-30rpx text-[#303133] leading-42rpx line-1 w-400rpx">这是套餐的名字这是套餐的名字这是套餐的名字这是套餐的名字这是套餐的名字</view>
|
||||
<view>
|
||||
<wd-tag bg-color="#F3F3F3" color="#606266" custom-class="!px-16rpx">3小时</wd-tag>
|
||||
@ -37,9 +37,9 @@
|
||||
</view>
|
||||
|
||||
<!-- TODO 直营店有申请退款和立即预定按钮,加盟店只有申请退款按钮,抖音只有立即预定按钮 -->
|
||||
<view class="text-center flex items-center text-28rpx mt-28rpx" v-if="type === 'GroupBuying' ? 'justify-start' : 'justify-end'">
|
||||
<view class="w-178rpx h-70rpx leading-70rpx rounded-8rpx border-[2rpx] border-[#9CA3AF] text-[#303133] mr-28rpx">申请退款</view>
|
||||
<view class="w-178rpx h-70rpx leading-70rpx rounded-8rpx border-[2rpx] border-[#4C9F44] text-[#4C9F44]">立即预定</view>
|
||||
<view class="text-center flex items-center text-28rpx mt-28rpx" v-if="type === 'Direct' ? 'justify-start' : 'justify-end'">
|
||||
<view class="w-178rpx h-70rpx leading-70rpx rounded-8rpx border-[2rpx] border-[#9CA3AF] text-[#303133] mr-28rpx" v-if="type === 'Direct' || type === 'Franchise'">申请退款</view>
|
||||
<view class="w-178rpx h-70rpx leading-70rpx rounded-8rpx border-[2rpx] border-[#4C9F44] text-[#4C9F44]" v-if="type === 'Direct' || type === 'DouYin'">立即预定</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -59,9 +59,20 @@
|
||||
const OSS = inject('OSS')
|
||||
|
||||
const props = defineProps({
|
||||
/**
|
||||
* 类型: 直营(Direct)、抖音(DouYin)、加盟(Franchise) 等
|
||||
*/
|
||||
type: {
|
||||
type: String,
|
||||
default: 'GroupBuying'
|
||||
default: 'Direct'
|
||||
},
|
||||
/**
|
||||
* 订单类型: 待使用、退款等
|
||||
* TODO 这里的orderType在接入接口的时候需要改为类似于data.orderType这种形式
|
||||
*/
|
||||
orderType: {
|
||||
type: String,
|
||||
default: 'toUse'
|
||||
}
|
||||
})
|
||||
|
||||
@ -74,7 +85,7 @@
|
||||
},
|
||||
|
||||
// 跳转到团购订单详情页
|
||||
handleToGroupBuyingDetail: () => {
|
||||
handleToOrderDetail: () => {
|
||||
uni.navigateTo({
|
||||
url: `/bundle/group-buying/platform/order-detail?type=${props.type}&orderType=${OrderStatus.ToUse}`
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user