Commit 2237a5c7 authored by 罗超's avatar 罗超

1

parent 632c9163
......@@ -13,7 +13,7 @@
<q-btn label="新增" size="sm" color="accent q-px-md" style="font-weight:400 !important" @click="add" />
</div>
<div class="content" >
<vueWaterfallEasy :imgsArr="addatas" @scrollReachBottom="handleCurrentChange" :maxCols='7' :imgWidth='208' :enablePullDownEvent='true'>
<vueWaterfallEasy :imgsArr="addatas" ref="waterfall" @scrollReachBottom="handleCurrentChange" :maxCols='7' :imgWidth='208' :enablePullDownEvent='true'>
<template slot-scope="props">
<span class="money" v-if="props.value.IsFee==1">{{props.value.ChargeAmount.toFixed(2)}}</span>
<span class="free" v-else>{{$t('advmanager.v_free')}}</span>
......@@ -122,6 +122,9 @@ export default {
this.addatas=this.addatas.concat(res.Data.PageData)
}
this.total=res.Data.Count
if (res.Data.PageData.length == 0) {
this.$refs.waterfall.waterfallOver()
}
}
})
......
......@@ -692,6 +692,7 @@
a.readAsDataURL(blob)
},
handleCurrentChange() {
this.adMsg.pageIndex++
this.pageIndex++
this.getaddatas(1)
},
......
......@@ -35,7 +35,7 @@ export default {
modelTeams:[],
countrys:[],
addatas:[],
pageIndex:0,
pageIndex:1,
pageSize:15,
total:0,
msg:{
......@@ -74,7 +74,7 @@ export default {
},
getaddatas(type){
if(type==0){
this.pageIndex=0
this.pageIndex=1
}
let msg={
pageIndex:this.pageIndex,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment