红包逻辑需要重构
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user