需要开发 IM

This commit is contained in:
cbb
2025-12-30 17:52:19 +08:00
parent 8fe2079446
commit d0cf491201
23 changed files with 515 additions and 61 deletions

View File

@@ -1,18 +1,34 @@
<script setup></script>
<script setup>
import { getArticleDetail } from '@/api'
import { onLoad } from '@dcloudio/uni-app'
import { ref } from 'vue'
const formData = ref({})
const getData = async () => {
const res = await getArticleDetail('company_info')
formData.value = res.data
}
onLoad(() => {
getData()
})
</script>
<template>
<view class="company">
<view class="top-log">
<image
src="https://qcloud.dpfile.com/pc/TrdZpLN1zkXDV4oN2FH98LdVnvHj694NKQu0_KA3ul4eYxZWRPQ7CJuw-PqyZBS4.jpg"
:src="formData.articleImg"
mode="aspectFill"
class="img"
></image>
<text>名字</text>
<text>{{ formData.articleTitle }}</text>
</view>
<view class="consten">
<view class="item">富文本</view>
<view class="item">
<mp-html :content="formData.articleDetails"></mp-html>
</view>
</view>
</view>
</template>