处理智能助手部分系统消息卡片点击跳转
Some checks failed
Check / lint (push) Has been cancelled
Check / typecheck (push) Has been cancelled
Check / build (build, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:app, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:app, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, windows-latest) (push) Has been cancelled

This commit is contained in:
wangyifeng 2025-08-05 16:58:42 +08:00
parent e2b41dcd8a
commit fa4c67e20b

View File

@ -63,7 +63,17 @@ const getTextContent = computed(() => {
//webview //webview
const handleSysMessagePush = () => { const handleSysMessagePush = () => {
handleFindWebview(`handleSysMessagePush('${encodeURIComponent(props?.extra?.url)}')`) handleFindWebview(
`handleChatRobotSysMessagePush('${encodeURIComponent(
JSON.stringify({
url: props?.extra?.url,
msg_type: props?.data?.msg_type,
}),
)}')`,
)
uni.reLaunch({
url: '/pages/index/index',
})
} }
</script> </script>
@ -71,8 +81,10 @@ const handleSysMessagePush = () => {
<div class="sys-message-push" @click="handleSysMessagePush"> <div class="sys-message-push" @click="handleSysMessagePush">
<div class="sys-message-push-card"> <div class="sys-message-push-card">
<span class="sys-message-push-card-title">{{ props.extra.title }}</span> <span class="sys-message-push-card-title">{{ props.extra.title }}</span>
<span class="sys-message-push-card-message" v-html="props.extra.message"> <span
</span> class="sys-message-push-card-message"
v-html="props.extra.message"
></span>
<img :src="getMessageCard" alt="" /> <img :src="getMessageCard" alt="" />
</div> </div>
<div class="sys-message-push-card-btn"> <div class="sys-message-push-card-btn">