62 lines
1.5 KiB
Vue
62 lines
1.5 KiB
Vue
<template>
|
|
<div class="relative">
|
|
<div
|
|
class="w-[100vw] bg-[#ffffff] z-[1] top-0 left-0 bottom-0 right-0 absolute"
|
|
></div>
|
|
<div
|
|
class="page-container overflow-hidden z-10 relative"
|
|
style="width: 900px"
|
|
>
|
|
<div
|
|
class="fixed h-[100vh] left-[50%] translate-x-[-50%] z-0"
|
|
style="width: 920px; pointer-events: none; mix-blend-mode: multiply"
|
|
>
|
|
<img src="@/assets/image/content/line.png" class="w-[100%]" alt="" />
|
|
</div>
|
|
<div id="my-richText"></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { reactive, onMounted } from "vue";
|
|
import { NSelect, NInput, NButton } from "naive-ui";
|
|
|
|
import { useI18n } from "vue-i18n";
|
|
const { t } = useI18n();
|
|
import { useRoute } from "vue-router";
|
|
const route = useRoute();
|
|
import axios from "axios";
|
|
|
|
const state = reactive({
|
|
id: "", // 新闻id
|
|
});
|
|
onMounted(() => {
|
|
if (route.query.id) {
|
|
state.id = route.query.id;
|
|
}
|
|
getPressReleasesInfo();
|
|
});
|
|
|
|
//获取新闻信息
|
|
const getPressReleasesInfo = () => {
|
|
let url = "https://erpapi.fiee.com/api/fiee/pressreleases?id=" + state.id;
|
|
axios.get(url).then((res) => {
|
|
// console.log(res)
|
|
if (res.status === 200) {
|
|
if (res.data.status === 0) {
|
|
const myRichText = document.getElementById("my-richText");
|
|
myRichText.innerHTML = res.data.data.content;
|
|
}
|
|
}
|
|
});
|
|
};
|
|
</script>
|
|
<style scoped lang="scss">
|
|
.page-container {
|
|
width: 900PX;
|
|
margin: 0 auto;
|
|
padding: 0 16px;
|
|
}
|
|
</style>
|