From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目
---
src/components/DiyEditor/components/mobile/PromotionArticle/index.vue | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/src/components/DiyEditor/components/mobile/PromotionArticle/index.vue b/src/components/DiyEditor/components/mobile/PromotionArticle/index.vue
new file mode 100644
index 0000000..e003b08
--- /dev/null
+++ b/src/components/DiyEditor/components/mobile/PromotionArticle/index.vue
@@ -0,0 +1,27 @@
+<template>
+ <div class="min-h-30px" v-html="article?.content"></div>
+</template>
+<script setup lang="ts">
+import { PromotionArticleProperty } from './config'
+import * as ArticleApi from '@/api/mall/promotion/article/index'
+
+/** 钀ラ攢鏂囩珷 */
+defineOptions({ name: 'PromotionArticle' })
+// 瀹氫箟灞炴��
+const props = defineProps<{ property: PromotionArticleProperty }>()
+// 鍟嗗搧鍒楄〃
+const article = ref<ArticleApi.ArticleVO>()
+watch(
+ () => props.property.id,
+ async () => {
+ if (props.property.id) {
+ article.value = await ArticleApi.getArticle(props.property.id)
+ }
+ },
+ {
+ immediate: true
+ }
+)
+</script>
+
+<style scoped lang="scss"></style>
--
Gitblit v1.8.0