培训文档加刷新
This commit is contained in:
@ -23,25 +23,28 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="contentWrap" v-show="!showEmpty">
|
<div class="contentWrap" v-show="!showEmpty">
|
||||||
<div class="itemWrap" v-for="(item,index) in pageList" :key="index">
|
<van-pull-refresh v-model="isLoading" @refresh="onRefresh">
|
||||||
<div class="info flexBetween common">
|
<div class="itemWrap" v-for="(item,index) in pageList" :key="index">
|
||||||
<div class="title">{{ item.pushUser }}</div>
|
<div class="info flexBetween common">
|
||||||
<div class="time">{{ item.pushTime }}</div>
|
<div class="title">{{ item.pushUser }}</div>
|
||||||
</div>
|
<div class="time">{{ item.pushTime }}</div>
|
||||||
<div class="imgWrap">
|
|
||||||
<img :src="item.themePicture">
|
|
||||||
<div class="name">{{item.name}}</div>
|
|
||||||
</div>
|
|
||||||
<div class="num common">{{ item.synopsis }}</div>
|
|
||||||
<div class="doc flexBetween common">
|
|
||||||
<div class="left">{{ item.docType?.label }}</div>
|
|
||||||
<div class="right">
|
|
||||||
<span style="color: red;font-size: 14px;margin-right: 8px">{{ item.listShowButton==null ? '已处理' : '未处理' }}</span>
|
|
||||||
<span style="opacity: .9;color: #ccc">阅读 {{item.readCount}}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="imgWrap">
|
||||||
|
<img :src="item.themePicture">
|
||||||
|
<div class="name">{{item.name}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="num common">{{ item.synopsis }}</div>
|
||||||
|
<div class="doc flexBetween common">
|
||||||
|
<div class="left">{{ item.docType?.label }}</div>
|
||||||
|
<div class="right">
|
||||||
|
<span style="color: red;font-size: 14px;margin-right: 8px">{{ item.listShowButton==null ? '已处理' : '未处理' }}</span>
|
||||||
|
<span style="opacity: .9;color: #ccc">阅读 {{item.readCount}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</van-pull-refresh>
|
||||||
|
</div>
|
||||||
<div class="empty" style="display: flex;justify-content: center;align-items: center;height:calc(100% - 46px);background-color: #FAFAFA" v-show="showEmpty">
|
<div class="empty" style="display: flex;justify-content: center;align-items: center;height:calc(100% - 46px);background-color: #FAFAFA" v-show="showEmpty">
|
||||||
<img src="@/assets/empty.png" style="width: 100%"/>
|
<img src="@/assets/empty.png" style="width: 100%"/>
|
||||||
</div>
|
</div>
|
||||||
@ -63,7 +66,8 @@ export default {
|
|||||||
pageList:[],
|
pageList:[],
|
||||||
keyword:'',
|
keyword:'',
|
||||||
show:false,
|
show:false,
|
||||||
showEmpty:false
|
showEmpty:false,
|
||||||
|
isLoading:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -73,6 +77,13 @@ export default {
|
|||||||
// handleEnterKey() {
|
// handleEnterKey() {
|
||||||
// this.getList()
|
// this.getList()
|
||||||
// },
|
// },
|
||||||
|
onRefresh() {
|
||||||
|
this.getList()
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$toast('刷新成功');
|
||||||
|
this.isLoading = false;
|
||||||
|
}, 1000);
|
||||||
|
},
|
||||||
async getList(){
|
async getList(){
|
||||||
let res= await pageList({
|
let res= await pageList({
|
||||||
pageNum:this.pageNum,
|
pageNum:this.pageNum,
|
||||||
@ -119,6 +130,7 @@ export default {
|
|||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
margin-top: 20px;
|
||||||
.itemWrap{
|
.itemWrap{
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
@include wh(100%, 300px);
|
@include wh(100%, 300px);
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" style="height: 100%" v-show="!show">
|
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" v-show="!show">
|
||||||
<div >
|
<div >
|
||||||
<div class="content_wrap" v-for="(item,index) in orderList" :key="index">
|
<div class="content_wrap" v-for="(item,index) in orderList" :key="index">
|
||||||
<div class="codeTxt common">
|
<div class="codeTxt common">
|
||||||
@ -242,16 +242,13 @@ export default {
|
|||||||
padding: 10px 0 15px 0;
|
padding: 10px 0 15px 0;
|
||||||
color: #737373;
|
color: #737373;
|
||||||
opacity: .7;
|
opacity: .7;
|
||||||
|
|
||||||
div {
|
div {
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
color: #3678FF;
|
color: #3678FF;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active:after {
|
.active:after {
|
||||||
content: '';
|
content: '';
|
||||||
display: block;
|
display: block;
|
||||||
|
Reference in New Issue
Block a user