红包逻辑需要重构

This commit is contained in:
cbb
2026-01-16 17:57:43 +08:00
parent 5f9629f198
commit f0aee6ba14
16 changed files with 335 additions and 45 deletions

View File

@@ -86,6 +86,13 @@
</text>
</view>
<text class="bottom-text">积分红包{{ customData.isOpen }}</text>
<!-- 需要处理报错 -->
<!-- <text>
{{
props.messageItem?.cloudCustomData &&
JSON.parse(props.messageItem?.cloudCustomData)
}}
</text> -->
</view>
</template>
<template v-else>
@@ -95,7 +102,13 @@
</template>
<script lang="ts" setup>
import { watchEffect, ref } from '../../../../adapter-vue'
import {
watchEffect,
ref,
watch,
computed,
reactive
} from '../../../../adapter-vue'
import {
TUITranslateService,
IMessageModel
@@ -123,7 +136,7 @@
content: undefined
})
console.log(props.messageItem, '获取到红包信息后更新UI')
// console.log(props.messageItem, '获取到红包信息后更新UI')
const custom = ref()
const message = ref<IMessageModel>()
@@ -142,6 +155,7 @@
extension.value = JSONToObject(payload.extension)
}
})
const openLink = (url: any) => {
window.open(url)
}