|
|
@ -24,9 +24,9 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class='wrapper'> |
|
|
|
<view class='wrapper'> |
|
|
|
<view class="search"> |
|
|
|
<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> |
|
|
|
<text>{{item.name}}</text> |
|
|
|
<view class="flag" v-if="selected==index"></view> |
|
|
|
<view class="flag" v-if="selected==item.type"></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <view class='nav acea-row'> |
|
|
|
<!-- <view class='nav acea-row'> |
|
|
@ -125,11 +125,11 @@ |
|
|
|
'icon': 'icon-tishengfenzhi' |
|
|
|
'icon': 'icon-tishengfenzhi' |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
selected:0, |
|
|
|
selected:-1, |
|
|
|
searchType:[ |
|
|
|
searchType:[ |
|
|
|
{name:'全部',type:0}, |
|
|
|
{name:'全部',type:-1}, |
|
|
|
{name:'收入',type:1}, |
|
|
|
{name:'收入',type:1}, |
|
|
|
{name:'支出',type:2}, |
|
|
|
{name:'支出',type:0}, |
|
|
|
], |
|
|
|
], |
|
|
|
current: 0, |
|
|
|
current: 0, |
|
|
|
page: 1, |
|
|
|
page: 1, |
|
|
@ -164,9 +164,7 @@ |
|
|
|
this.getIntegralList(); |
|
|
|
this.getIntegralList(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
changeType(val){ |
|
|
|
|
|
|
|
this.selected=val.type |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
getUserInfo: function() { |
|
|
|
getUserInfo: function() { |
|
|
|
let that = this; |
|
|
|
let that = this; |
|
|
|
getIntegralInfo().then(function(res) { |
|
|
|
getIntegralInfo().then(function(res) { |
|
|
@ -186,6 +184,14 @@ |
|
|
|
that.protocol = res.data.sys_integral_rule |
|
|
|
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 = ''; |
|
|
|
that.loadTitle = ''; |
|
|
|
getIntegralList({ |
|
|
|
getIntegralList({ |
|
|
|
page: that.page, |
|
|
|
page: that.page, |
|
|
|
limit: that.limit |
|
|
|
limit: that.limit, |
|
|
|
|
|
|
|
pm:that.selected==-1?null:that.selected |
|
|
|
}).then(function(res) { |
|
|
|
}).then(function(res) { |
|
|
|
let list = res.data.list, |
|
|
|
let list = res.data.list, |
|
|
|
loadend = list.length < that.limit; |
|
|
|
loadend = list.length < that.limit; |
|
|
|