mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
提交
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<view class="assess-info-content">
|
||||
<img :src="coverFilter(item.cover)">
|
||||
<view class="assess-text">
|
||||
<view class="assess-text-title">{{item.title}}</view>
|
||||
<view class="assess-text-title" v-html="$keywordActiveShow(item.title,keyword)"></view>
|
||||
<view class="assess-text-text">完成时间:{{item.date}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<view>
|
||||
<u-search
|
||||
:clearabled="true"
|
||||
@search="findData(true)"
|
||||
@clear="findData(true)"
|
||||
@search="search()"
|
||||
@clear="search()"
|
||||
placeholder="搜索"
|
||||
:height="36"
|
||||
v-model="keyword"
|
||||
@@ -25,7 +25,7 @@
|
||||
<view style="" class="artical-tit" @click="toDetail(put)">
|
||||
<text class="qa-basic qa-solve" v-if="put.isResolve">【已解决】</text>
|
||||
<text class="qa-basic qa-unSolve" v-else >【待解决】</text>
|
||||
{{put.title}}
|
||||
<text v-html="$keywordActiveShow(put.title,keyword)"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="qa-author-time">
|
||||
@@ -72,7 +72,7 @@
|
||||
">
|
||||
<text class="qa-basic qa-solve" v-if="item.isResolve">【已解决】</text>
|
||||
<text class="qa-basic qa-unSolve" v-else >【待解决】</text>
|
||||
{{item.title}}
|
||||
<text v-html="$keywordActiveShow(item.title,keyword)"></text>
|
||||
</view>
|
||||
<view class="articl-box-cont">
|
||||
<view>
|
||||
@@ -196,6 +196,15 @@
|
||||
|
||||
|
||||
methods:{
|
||||
search() {
|
||||
if(this.active == 1) {
|
||||
this.putList.pageIndex = 1;
|
||||
this.findData(true);
|
||||
} else {
|
||||
this.answerList.pageIndex=1;
|
||||
this.findAnData(true);
|
||||
}
|
||||
},
|
||||
//展示全部
|
||||
displayAll(item) {
|
||||
// let content = '';
|
||||
@@ -337,8 +346,8 @@
|
||||
pageSize:this.answerList.pageSize,
|
||||
isResolve:this.answerList.isResolve,
|
||||
};
|
||||
if (this.answerList.keyWord) {
|
||||
params.keyWord = this.answerList.keyWord;
|
||||
if (this.keyWord) {
|
||||
params.keyWord = this.keyWord;
|
||||
}
|
||||
let $this=this;
|
||||
apiQa.queryAnswer(params).then(async res => {
|
||||
@@ -372,10 +381,11 @@
|
||||
let params = {
|
||||
pageIndex: this.putList.pageIndex,
|
||||
pageSize: this.putList.pageSize,
|
||||
keyWord:'',
|
||||
isResolve: this.putList.isResolve
|
||||
};
|
||||
if (this.keyWord) {
|
||||
params.keyWord = this.keyWord;
|
||||
if (this.keyWord != '') {
|
||||
params.keyWord = this.keyword;
|
||||
}
|
||||
apiQa.queryQuestion(params).then(async rs => {
|
||||
if (rs.status == 200) {
|
||||
@@ -437,6 +447,7 @@
|
||||
|
||||
},
|
||||
tabsClick(tab) {
|
||||
this.keyword = '';
|
||||
this.active=tab
|
||||
},
|
||||
highlightedFilter(value) {
|
||||
|
||||
Reference in New Issue
Block a user