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

1

parent 632c9163
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<q-btn label="新增" size="sm" color="accent q-px-md" style="font-weight:400 !important" @click="add" /> <q-btn label="新增" size="sm" color="accent q-px-md" style="font-weight:400 !important" @click="add" />
</div> </div>
<div class="content" > <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"> <template slot-scope="props">
<span class="money" v-if="props.value.IsFee==1">{{props.value.ChargeAmount.toFixed(2)}}</span> <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> <span class="free" v-else>{{$t('advmanager.v_free')}}</span>
...@@ -122,6 +122,9 @@ export default { ...@@ -122,6 +122,9 @@ export default {
this.addatas=this.addatas.concat(res.Data.PageData) this.addatas=this.addatas.concat(res.Data.PageData)
} }
this.total=res.Data.Count this.total=res.Data.Count
if (res.Data.PageData.length == 0) {
this.$refs.waterfall.waterfallOver()
}
} }
}) })
......
...@@ -692,6 +692,7 @@ ...@@ -692,6 +692,7 @@
a.readAsDataURL(blob) a.readAsDataURL(blob)
}, },
handleCurrentChange() { handleCurrentChange() {
this.adMsg.pageIndex++
this.pageIndex++ this.pageIndex++
this.getaddatas(1) this.getaddatas(1)
}, },
......
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
modelTeams:[], modelTeams:[],
countrys:[], countrys:[],
addatas:[], addatas:[],
pageIndex:0, pageIndex:1,
pageSize:15, pageSize:15,
total:0, total:0,
msg:{ msg:{
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
}, },
getaddatas(type){ getaddatas(type){
if(type==0){ if(type==0){
this.pageIndex=0 this.pageIndex=1
} }
let msg={ let msg={
pageIndex:this.pageIndex, 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