Merge branch 'dev' of http://git.sinoecare.com/sinoecare/digital_village_v2/dvcp_v2_wxcp_app into dev
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
<i>{{ item.createUserId === user.id ? '我' : item.createUserName }} </i>
|
<i>{{ item.createUserId === user.id ? '我' : item.createUserName }} </i>
|
||||||
<span>于{{ item.createTime }} 提问</span>
|
<span>于{{ item.createTime }} 提问</span>
|
||||||
</div>
|
</div>
|
||||||
<p>{{ item.content }}</p>
|
<p v-html="item.content"></p>
|
||||||
<div class="item-bottom">
|
<div class="item-bottom">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<span>共</span>
|
<span>共</span>
|
||||||
@@ -41,7 +41,6 @@
|
|||||||
return {
|
return {
|
||||||
search: {
|
search: {
|
||||||
current: 1,
|
current: 1,
|
||||||
title: '',
|
|
||||||
size: 10
|
size: 10
|
||||||
},
|
},
|
||||||
content: '',
|
content: '',
|
||||||
@@ -94,9 +93,21 @@
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
if (this.search.current > 1) {
|
if (this.search.current > 1) {
|
||||||
this.list = [...this.list, ...res.data.records]
|
this.list = [...this.list, ...res.data.records.map(v => {
|
||||||
|
if (v.content.indexOf(this.content) > -1) {
|
||||||
|
v.content = v.content.replaceAll(this.content, `<i style="font-style: normal; color: #3975C6;" class="keyworld">${this.content}</i>`)
|
||||||
|
}
|
||||||
|
|
||||||
|
return v
|
||||||
|
})]
|
||||||
} else {
|
} else {
|
||||||
this.list = res.data.records
|
this.list = res.data.records.map(v => {
|
||||||
|
if (v.content.indexOf(this.content) > -1) {
|
||||||
|
v.content = v.content.replaceAll(this.content, `<i style="font-style: normal; color: #3975C6;" class="keyworld">${this.content}</i>`)
|
||||||
|
}
|
||||||
|
|
||||||
|
return v
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
@@ -187,6 +198,11 @@
|
|||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|
||||||
|
.keyworld {
|
||||||
|
font-style: normal;
|
||||||
|
color: #3975C6;
|
||||||
|
}
|
||||||
|
|
||||||
.item-bottom {
|
.item-bottom {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user