|
|
@@ -19,7 +19,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
<view class="two-box">
|
|
|
<u-grid :col="4" :border="false">
|
|
|
<u-grid-item
|
|
|
@@ -39,7 +38,7 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="thr-box">
|
|
|
- <u-sticky :offset-top="20" :customNavHeight="44">
|
|
|
+ <u-sticky :offset-top="20" :customNavHeight="54">
|
|
|
<view class="section-title">
|
|
|
<view>
|
|
|
<text>账户明细</text>
|
|
|
@@ -59,7 +58,7 @@
|
|
|
@up="getList"
|
|
|
@down="downCallback"
|
|
|
@init="mescrollInit"
|
|
|
- :use="false"
|
|
|
+ :use="{ up: true, down: true }"
|
|
|
>
|
|
|
<AccountList :list="accountData"></AccountList>
|
|
|
</mescroll-uni>
|
|
|
@@ -107,8 +106,6 @@ export default {
|
|
|
// 账户列表
|
|
|
getList(page) {
|
|
|
let params = {
|
|
|
- // mainType: '', // 结算SETTLE 提现WITHDRAW
|
|
|
- // subType: '', // 进行中PENDING 已提现DONE
|
|
|
pageNo: page.num,
|
|
|
pageSize: page.size,
|
|
|
};
|
|
|
@@ -116,18 +113,19 @@ export default {
|
|
|
.getAccountList(params)
|
|
|
.then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
- const records = res.data.result.records || [];
|
|
|
- const total = res.data.result.total || 0;
|
|
|
- if (page.num === 1) {
|
|
|
- this.accountData = records;
|
|
|
+ const records = res.data.result.records;
|
|
|
+ const total = res.data.result.total;
|
|
|
+ if (records == null && page.num === 1) {
|
|
|
+ this.accountData = [];
|
|
|
} else {
|
|
|
- this.accountData = this.accountData.concat(records);
|
|
|
+ this.accountData = records ? this.accountData.concat(records) : this.accountData;
|
|
|
}
|
|
|
-
|
|
|
this.mescroll.endSuccess(records.length, total);
|
|
|
- uni.showTabBar();
|
|
|
+ if (this.accountData.length < 5) {
|
|
|
+ this.$refs.mescrollRef.upLoadType = 'NO_DATA';
|
|
|
+ }
|
|
|
} else {
|
|
|
- this.mescroll.hideUpScroll();
|
|
|
+ this.accountData = [];
|
|
|
this.mescroll.endErr();
|
|
|
}
|
|
|
})
|
|
|
@@ -161,11 +159,12 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.container {
|
|
|
- width: 100vw;
|
|
|
+ width: 100%;
|
|
|
height: 100vh;
|
|
|
- overflow: auto;
|
|
|
background: #f7f8fc;
|
|
|
font-family: Source Han Sans SC;
|
|
|
+ position: fixed;
|
|
|
+ overflow: hidden;
|
|
|
|
|
|
/*#ifdef APP-PLUS*/
|
|
|
.top {
|
|
|
@@ -273,9 +272,13 @@ export default {
|
|
|
|
|
|
.thr-box {
|
|
|
margin: 10rpx 31rpx 40rpx;
|
|
|
- padding: 0 31rpx;
|
|
|
+ padding: 0 31rpx 31rpx;
|
|
|
background: #ffffff;
|
|
|
border-radius: 10rpx 10rpx 10rpx 10rpx;
|
|
|
+ max-height: 65vh;
|
|
|
+ overflow-y: auto;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
|
|
|
.section-title {
|
|
|
width: 100%;
|