|
@@ -4,7 +4,7 @@ import Card from '@/components/card.vue'
|
|
|
import { integral, interact, message, system } from '../../../core/libs/svgs'
|
|
|
import { beforeNow } from '../../../utils/date-util'
|
|
|
import dayjs from 'dayjs'
|
|
|
-import { MessageType } from '../../../core/libs/enums'
|
|
|
+import { MessageType, PointStatus } from '../../../core/libs/enums'
|
|
|
import { getPointsCoupons } from '../../../core/libs/requests'
|
|
|
|
|
|
const props = withDefaults(defineProps<{ options?: Message }>(), {})
|
|
@@ -107,7 +107,8 @@ onMounted(async () => {
|
|
|
v-if="
|
|
|
[MessageType.Integral].includes(Number(options.messageType)) &&
|
|
|
options.messageSubType === 31 &&
|
|
|
- options.isRead !== '1'
|
|
|
+ options.isRead !== '1' &&
|
|
|
+ options.pointsDetail?.pointsStauts === PointStatus.PendingConfirmation
|
|
|
"
|
|
|
>
|
|
|
<span class="text-black/40">
|
|
@@ -116,12 +117,17 @@ onMounted(async () => {
|
|
|
</template>
|
|
|
<template
|
|
|
v-else-if="
|
|
|
- [MessageType.Integral].includes(Number(options.messageType)) && options.isRead === '1'
|
|
|
+ [MessageType.Integral].includes(Number(options.messageType)) &&
|
|
|
+ options.messageSubType === 31 &&
|
|
|
+ options.isRead === '1'
|
|
|
"
|
|
|
>
|
|
|
- <span class="text-black/40">
|
|
|
- <!-- 确认积分后,即刻到账,如有问题请驳回,联系材料商修改积分后再次确认 -->
|
|
|
- </span>
|
|
|
+ <template v-if="options.pointsDetail?.pointsStauts === PointStatus.Rejected">
|
|
|
+ <span class="text-black/40">
|
|
|
+ <!-- 确认积分后,即刻到账,如有问题请驳回,联系材料商修改积分后再次确认 -->
|
|
|
+ 驳回原因:{{ options.pointsDetail?.cancelReason }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
</template>
|
|
|
<template
|
|
|
v-else-if="
|
|
@@ -144,7 +150,8 @@ onMounted(async () => {
|
|
|
v-if="
|
|
|
[MessageType.Integral].includes(Number(options.messageType)) &&
|
|
|
options.messageSubType === 31 &&
|
|
|
- options.isRead !== '1'
|
|
|
+ options.isRead !== '1' &&
|
|
|
+ options.pointsDetail?.pointsStauts === PointStatus.PendingConfirmation
|
|
|
"
|
|
|
>
|
|
|
<div class="flex gap-4">
|