修改文章列表筛选

master
chen 2022-08-11 17:52:03 +08:00
parent 8809e0d27b
commit 0a2511967b
18 changed files with 21 additions and 20 deletions

View File

@ -65,6 +65,7 @@
total:'',// total:'',//
isZanw:true, isZanw:true,
category_id:'',//ID category_id:'',//ID
disease_id:'',//id
diseaseText:'',// diseaseText:'',//
sreenList:[],// sreenList:[],//
sreenIndex:0, sreenIndex:0,
@ -120,7 +121,7 @@
itemList:this.sreenList, itemList:this.sreenList,
success: (res) => { success: (res) => {
this.dataList = []; this.dataList = [];
this.category_id = this.sreenIdList[res.tapIndex]; this.disease_id = this.sreenIdList[res.tapIndex];
this.diseaseText = this.sreenList[res.tapIndex]; this.diseaseText = this.sreenList[res.tapIndex];
this.searchEv(); this.searchEv();
} }
@ -133,7 +134,7 @@
chooseSreen(e){ chooseSreen(e){
this.sreenIndex = e.detail.value; this.sreenIndex = e.detail.value;
this.page = 1; this.page = 1;
this.category_id = this.sreenIdList[this.sreenIndex]; this.disease_id = this.sreenIdList[this.sreenIndex];
this.diseaseText = this.sreenList[this.sreenIndex]; this.diseaseText = this.sreenList[this.sreenIndex];
this.searchEv(); this.searchEv();
}, },
@ -195,7 +196,7 @@
}, },
searchEv(){// searchEv(){//
this.$toolAll.tools.showToast('搜索中...') this.$toolAll.tools.showToast('搜索中...')
this.$requst.post('archives/category',{page:this.page,size:this.size,category_id:this.category_id,keyword:this.searchVal}).then(res=>{ this.$requst.post('archives/category',{page:this.page,size:this.size,category_id:this.category_id,keyword:this.searchVal,disease_id:this.disease_id}).then(res=>{
// console.log('',res); // console.log('',res);
if(res.code==0){ if(res.code==0){
uni.hideToast() uni.hideToast()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long