feat:合作商家显示店铺信息
This commit is contained in:
1 parent
352df06fab
commit
e37868b878
2 files changed
+10
-3
No files matched your search
@@ -35,7 +35,8 @@
|
||||
<view class="h-20rpx" />
|
||||
<view class="card rounded-24rpx bg-white p-20rpx pb-0rpx mb-20rpx" v-for="(v, index) in pageHook.list"
|
||||
:key="v.id">
|
||||
<order-car visibleUser :visibleMch="false" :cardetail="v" :footerOperate="['refund', 'qrCodeDetail']" />
|
||||
<order-car visibleUser :visibleMchOrderStatus="false" :cardetail="v"
|
||||
:footerOperate="['refund', 'qrCodeDetail']" />
|
||||
</view>
|
||||
</z-paging>
|
||||
</crud-layout>
|
||||
|
||||
@@ -20,6 +20,8 @@ export type Props = {
|
||||
goodsCollapsed?: boolean
|
||||
// 是否显示商户信息
|
||||
visibleMch?: boolean
|
||||
// 是否显示商户订单状态
|
||||
visibleMchOrderStatus?: boolean
|
||||
// 是否显示用户信息
|
||||
visibleUser?: boolean
|
||||
// 是否显示底部边框
|
||||
@@ -36,6 +38,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
cardetail: {},
|
||||
goodsCollapsed: true,
|
||||
visibleMch: true,
|
||||
visibleMchOrderStatus: true,
|
||||
visibleUser: false,
|
||||
visibleBottomBorder: false,
|
||||
isLast: false,
|
||||
@@ -167,7 +170,9 @@ const doCancel = (v: any) => {
|
||||
:src="filePath(props.cardetail.logoPic) || '/static/logo/zax.png'" mode="aspectFill" />
|
||||
<view class="flex-1 ml-20rpx">
|
||||
<view class="flex-row items-center justify-between">
|
||||
<view class="sub-text-26">{{ props.cardetail.merchantName }}</view>
|
||||
<view v-if="props.visibleMchOrderStatus" class="sub-text-26">
|
||||
{{ props.cardetail.merchantName }}
|
||||
</view>
|
||||
<view class="w-100rpx flex-row-center">
|
||||
<order-status-tag :cardetail="props.cardetail" />
|
||||
</view>
|
||||
@@ -180,7 +185,8 @@ const doCancel = (v: any) => {
|
||||
</text>
|
||||
<text v-else class="ml-10rpx color-blue">正在下单</text>
|
||||
</view>
|
||||
<view class="w-100rpx flex-row-center mt-10rpx" v-if="props.cardetail.refundStatus">
|
||||
<view class="w-100rpx flex-row-center mt-10rpx"
|
||||
v-if="props.cardetail.refundStatus && props.visibleMchOrderStatus">
|
||||
{{ hooks.useEnum("hardwareRefundStatusEnum", props.cardetail.refundStatus) }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in new issue
Block a user