|
|
|
@ -108,7 +108,11 @@ Page({
|
|
|
|
|
iGroupBy: this.data.iGroupBy, //0不去重 1相似度去重
|
|
|
|
|
listType: this.data.listType, //0默认 1影响力倒序
|
|
|
|
|
}).then(res => {
|
|
|
|
|
let arr = [...this.data.dataList, ...res]
|
|
|
|
|
let data = res
|
|
|
|
|
data.forEach(ele => {
|
|
|
|
|
ele._source.title = ele._source.title.replace(/<em>/g,'<em style="color: red">');
|
|
|
|
|
})
|
|
|
|
|
let arr = [...this.data.dataList, ...data]
|
|
|
|
|
this.setData({
|
|
|
|
|
dataList: arr
|
|
|
|
|
});
|
|
|
|
@ -203,8 +207,12 @@ Page({
|
|
|
|
|
total: res.totalNum
|
|
|
|
|
})
|
|
|
|
|
}).then(res => {
|
|
|
|
|
let data = res
|
|
|
|
|
data.forEach(ele => {
|
|
|
|
|
ele._source.title = ele._source.title.replace(/<em>/g,'<em style="color: red">');
|
|
|
|
|
})
|
|
|
|
|
this.setData({
|
|
|
|
|
dataList: res
|
|
|
|
|
dataList: data
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|