[修改账变]

This commit is contained in:
zhangjing
2021-06-24 14:15:58 +08:00
parent c8def77dc3
commit b555234d49
13 changed files with 204 additions and 229 deletions

View File

@@ -11,7 +11,7 @@ Page({
blockeds : '', //待发放余额
page : {}, //分页信息
lodingStats : false, //加载状态
screenArray: [
screenArray : [
{
channel: 'all',
name: '全部'
@@ -24,8 +24,9 @@ Page({
channel: 'out',
name: '出账'
}
], //账变记录筛选数组
screenIndex: 0 //账变记录筛选index
], //账变记录筛选数组
screenChannel: '', //账变记录筛选数组标识
screenIndex : 0 //账变记录筛选index
},
/**
@@ -38,6 +39,7 @@ Page({
},
onShow() {
console.log(this.data.screenChannel)
// 获取账变记录
this.accountInfo();
},
@@ -46,7 +48,7 @@ Page({
* 账变记录
*/
accountInfo(page) {
wx.$api.user.logs(this.data.type, page).then(res=>{
wx.$api.user.logs(this.data.type, this.data.screenChannel, page).then(res=>{
//判断金卡、银卡、钻石卡
let number
if(this.data.type == "silver") {
@@ -73,6 +75,19 @@ Page({
})
},
/**
* 筛选账变记录-条件
*/
screenBind(e) {
this.setData({
screenIndex : e.detail.value,
screenChannel: this.data.screenArray[e.detail.value].channel
})
// 获取账变记录
this.accountInfo();
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/