筛选定位

This commit is contained in:
zhaofang
2022-11-16 10:44:14 +08:00
parent b39c3b14da
commit bc8e359f24
3 changed files with 16 additions and 3 deletions

View File

@@ -10,6 +10,10 @@ import ajax from '@/utils/xajax.js'
const list=function(query){ const list=function(query){
return ajax.post('/xboe/sys/message/list',query); return ajax.post('/xboe/sys/message/list',query);
} }
const mobilelist=function(query){
return ajax.post('/xboe/sys/message/mobilelist',query);
}
// mobilelist
/* /*
删除消息 删除消息
@param ids 勾选的多个消息id @param ids 勾选的多个消息id
@@ -61,5 +65,6 @@ export default{
isRead, isRead,
updateIsRead, updateIsRead,
readAll, readAll,
cleanAll cleanAll,
mobilelist
} }

View File

@@ -7,7 +7,7 @@
<!-- ${filterWidth} --> <!-- ${filterWidth} -->
<u-popup :show="filterShow" mode="center" @close="closeFilter" :safeAreaInsetTop="true" :closeable="false"> <u-popup :show="filterShow" mode="center" @close="closeFilter" :safeAreaInsetTop="true" :closeable="false">
<view :style="{width:filterWidth}" style="height: 100vh;padding-top: 32upx; overflow: auto;position: relative;"> <view :style="{width:filterWidth}" style="height: 100vh;padding-top: 32upx; overflow: auto;position: relative;">
<view v-if="type==1" > <view v-if="type==1" style="margin-bottom: 400upx;">
<view class="filter-title-top"> <view class="filter-title-top">
<u-icon @click="filterShow = false" class="icon" name="arrow-left" color="#333333" size="20"></u-icon>课程分类 <u-icon @click="filterShow = false" class="icon" name="arrow-left" color="#333333" size="20"></u-icon>课程分类
</view> </view>
@@ -22,6 +22,9 @@
<view class="filter-option" :class="{'filter-checked':course.courseType==20}" @click="setCourseFilter('courseType',20)">录播课</view> <view class="filter-option" :class="{'filter-checked':course.courseType==20}" @click="setCourseFilter('courseType',20)">录播课</view>
<view class="filter-option" :class="{'filter-checked':course.courseType==30}" @click="setCourseFilter('courseType',30)">线下课</view> <view class="filter-option" :class="{'filter-checked':course.courseType==30}" @click="setCourseFilter('courseType',30)">线下课</view>
<view class="filter-option" :class="{'filter-checked':course.courseType==40}" @click="setCourseFilter('courseType',40)">学习项目</view> <view class="filter-option" :class="{'filter-checked':course.courseType==40}" @click="setCourseFilter('courseType',40)">学习项目</view>
</view>
<view class="">
</view> </view>
<view class="filter-title" style="margin-top: 10upx;">内容分类</view> <view class="filter-title" style="margin-top: 10upx;">内容分类</view>
<view class="filter-body"> <view class="filter-body">
@@ -189,6 +192,7 @@
} }
}, },
methods:{ methods:{
stopRoll(){},
toNewLink(){ toNewLink(){
location.href='https://m.qingxuetang.com/x/?appId=qxtcorp306130'; location.href='https://m.qingxuetang.com/x/?appId=qxtcorp306130';
}, },
@@ -492,6 +496,10 @@
} }
} }
.filter-footer{ .filter-footer{
position: fixed;
bottom: 126upx;
left: 0;
right:0;
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-top: 84upx; margin-top: 84upx;

View File

@@ -98,7 +98,7 @@
} }
let $this = this; let $this = this;
uni.showLoading({ title: '加载中...' }); uni.showLoading({ title: '加载中...' });
apiMessage.list(this.queryData).then(res => { apiMessage.mobilelist(this.queryData).then(res => {
if (res.status == 200) { if (res.status == 200) {
let ids = []; let ids = [];
this.emptyControl=true this.emptyControl=true