|
|
|
@ -24,9 +24,9 @@ |
|
|
|
|
</view> |
|
|
|
|
<view class='wrapper'> |
|
|
|
|
<view class="search"> |
|
|
|
|
<view :class="selected==index?'searchItem active':'searchItem'" @click="changeType(item)" v-for="(item,index) in searchType" :key="index"> |
|
|
|
|
<view :class="selected==item.type?'searchItem active':'searchItem'" @click="changeType(item)" v-for="(item,index) in searchType" :key="index"> |
|
|
|
|
<text>{{item.name}}</text> |
|
|
|
|
<view class="flag" v-if="selected==index"></view> |
|
|
|
|
<view class="flag" v-if="selected==item.type"></view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view class='nav acea-row'> |
|
|
|
@ -125,11 +125,11 @@ |
|
|
|
|
'icon': 'icon-tishengfenzhi' |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
selected:0, |
|
|
|
|
selected:-1, |
|
|
|
|
searchType:[ |
|
|
|
|
{name:'全部',type:0}, |
|
|
|
|
{name:'全部',type:-1}, |
|
|
|
|
{name:'收入',type:1}, |
|
|
|
|
{name:'支出',type:2}, |
|
|
|
|
{name:'支出',type:0}, |
|
|
|
|
], |
|
|
|
|
current: 0, |
|
|
|
|
page: 1, |
|
|
|
@ -164,9 +164,7 @@ |
|
|
|
|
this.getIntegralList(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
changeType(val){ |
|
|
|
|
this.selected=val.type |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getUserInfo: function() { |
|
|
|
|
let that = this; |
|
|
|
|
getIntegralInfo().then(function(res) { |
|
|
|
@ -186,6 +184,14 @@ |
|
|
|
|
that.protocol = res.data.sys_integral_rule |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
changeType(val){ |
|
|
|
|
this.selected=val.type; |
|
|
|
|
this.loading=false; |
|
|
|
|
this.loadend=false; |
|
|
|
|
this.page=1; |
|
|
|
|
this.integralList=[] |
|
|
|
|
this.getIntegralList(); |
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
|
* 获取积分明细 |
|
|
|
|
*/ |
|
|
|
@ -197,7 +203,8 @@ |
|
|
|
|
that.loadTitle = ''; |
|
|
|
|
getIntegralList({ |
|
|
|
|
page: that.page, |
|
|
|
|
limit: that.limit |
|
|
|
|
limit: that.limit, |
|
|
|
|
pm:that.selected==-1?null:that.selected |
|
|
|
|
}).then(function(res) { |
|
|
|
|
let list = res.data.list, |
|
|
|
|
loadend = list.length < that.limit; |
|
|
|
|