学习问答
This commit is contained in:
@@ -6,29 +6,19 @@
|
||||
</template>
|
||||
<template slot="content">
|
||||
<ai-card title="基层治理需要关注什么?">
|
||||
<div slot="right" class="right-text">汪周文发布于2023-01-09 <span>已有15个回答</span></div>
|
||||
<div slot="right" class="right-text">{{info.createUserName}}发布于{{info.createTime}} <span>已有{{info.answerCount}}个回答</span></div>
|
||||
<template #content>
|
||||
<div class="item">
|
||||
<div class="item" v-for="(item, index) in info.answers" :key="index">
|
||||
<div class="flex">
|
||||
<img src="https://img0.baidu.com/it/u=1705694933,4002952892&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281" alt="">
|
||||
<img :src="item.createUserAvatar" alt="">
|
||||
<div class="user-info">
|
||||
<h3>汪周文</h3>
|
||||
<p>中卫慧通-产品部</p>
|
||||
<h3>{{item.createUserName}}</h3>
|
||||
<p>{{item.createUserDeptName}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">123</div>
|
||||
<p class="time"><span>发布于 </span>2023-01-09 16:27</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="flex">
|
||||
<img src="https://img0.baidu.com/it/u=1705694933,4002952892&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281" alt="">
|
||||
<div class="user-info">
|
||||
<h3>汪周文</h3>
|
||||
<p>中卫慧通-产品部</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">123</div>
|
||||
<p class="time"><span>发布于 </span>2023-01-09 16:27</p>
|
||||
<div class="content" v-html="item.content"></div>
|
||||
<ai-uploader :instance="instance" disabled v-model="item.files"></ai-uploader>
|
||||
<p class="time"><span>发布于 </span>{{item.createTime}}</p>
|
||||
</div>
|
||||
</template>
|
||||
</ai-card>
|
||||
@@ -39,37 +29,29 @@
|
||||
<script>
|
||||
export default {
|
||||
name: 'Detail',
|
||||
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
params: Object
|
||||
},
|
||||
|
||||
data () {
|
||||
return {
|
||||
|
||||
info: {}
|
||||
}
|
||||
},
|
||||
|
||||
created () {
|
||||
this.getInfo()
|
||||
},
|
||||
|
||||
methods: {
|
||||
getInfo () {
|
||||
// this.instance.post(`/app/appvideovoteconfig/queryDetailByCorpId`).then(res => {
|
||||
// if (res.code == 0) {
|
||||
// if (res.data) {
|
||||
// this.id = res.data.id
|
||||
// this.form = {
|
||||
// ...res.data
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
this.instance.post(`/app/applearningquestion/queryDetailById?id=${this.params.id}`).then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data) {
|
||||
this.info = {...res.data}
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
cancel () {
|
||||
this.$emit('change', {
|
||||
type: 'List',
|
||||
@@ -115,6 +97,13 @@
|
||||
.time {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.img-list {
|
||||
img {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
margin: 0 8px 8px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
.item:nth-last-of-type(1) {
|
||||
border-bottom: 0;
|
||||
|
||||
Reference in New Issue
Block a user