需要开发 IM
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user