|
|
@ -14,7 +14,8 @@ |
|
|
<view class="lf-font-32" style="width: 50%;" :class="tabIndex ==1?'text-orange':'text-black1'" @click="tabIndex = 1">提取记录</view> |
|
|
<view class="lf-font-32" style="width: 50%;" :class="tabIndex ==1?'text-orange':'text-black1'" @click="tabIndex = 1">提取记录</view> |
|
|
</view> |
|
|
</view> |
|
|
<block v-if="tabIndex == 0"> |
|
|
<block v-if="tabIndex == 0"> |
|
|
<view class="flex flex-direction justify-between lf-p-t-20 lf-p-b-20 lf-p-l-32 lf-p-r-32 solid-bottom"> |
|
|
|
|
|
|
|
|
<scroll-view class="com" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="isRefresher" @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh"> |
|
|
|
|
|
<view class="flex flex-direction justify-between lf-p-t-20 lf-p-b-20 lf-p-l-32 lf-p-r-32 solid-bottom" v-for="i of 23"> |
|
|
<view class="flex align-center text-center justify-between"> |
|
|
<view class="flex align-center text-center justify-between"> |
|
|
<view class="lf-font-36 lf-color-price">-¥10.00</view> |
|
|
<view class="lf-font-36 lf-color-price">-¥10.00</view> |
|
|
<view class="lf-font-32 text-black1">结余 ¥34.43</view> |
|
|
<view class="lf-font-32 text-black1">结余 ¥34.43</view> |
|
|
@ -24,10 +25,19 @@ |
|
|
<view class="lf-font-24 lf-color-999">2021-7-6 22:32:43</view> |
|
|
<view class="lf-font-24 lf-color-999">2021-7-6 22:32:43</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<!-- 空数据的情况 --> |
|
|
|
|
|
<view class="loading-more"> |
|
|
|
|
|
<text v-if="!tab.list.length" :class="{'loading-more-text': tab.loadingClass}">{{ tab.loadingText }}</text> |
|
|
|
|
|
<my-nocontent v-else></my-nocontent> |
|
|
|
|
|
</view> |
|
|
|
|
|
<!-- 回到顶部 --> |
|
|
|
|
|
<u-back-top :scroll-top="pageScrollTop" :custom-style="{background: 'rgba(51, 51 51, 0.3)'}"></u-back-top> |
|
|
|
|
|
</scroll-view> |
|
|
</block> |
|
|
</block> |
|
|
|
|
|
|
|
|
<block v-else> |
|
|
<block v-else> |
|
|
<view class="flex flex-direction justify-between lf-p-t-20 lf-p-b-20 lf-p-l-32 lf-p-r-32 solid-bottom"> |
|
|
|
|
|
|
|
|
<scroll-view class="com" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="isRefresher" @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh"> |
|
|
|
|
|
<view class="flex flex-direction justify-between lf-p-t-20 lf-p-b-20 lf-p-l-32 lf-p-r-32 solid-bottom" v-for="i of 3"> |
|
|
<view class="flex align-center text-center justify-between"> |
|
|
<view class="flex align-center text-center justify-between"> |
|
|
<view class="lf-font-36 lf-color-price">-¥11.00</view> |
|
|
<view class="lf-font-36 lf-color-price">-¥11.00</view> |
|
|
<view class="lf-font-28 text-orange">申请中</view> |
|
|
<view class="lf-font-28 text-orange">申请中</view> |
|
|
@ -37,6 +47,14 @@ |
|
|
<view class="lf-font-24 lf-color-999">2021-7-6 22:32:43</view> |
|
|
<view class="lf-font-24 lf-color-999">2021-7-6 22:32:43</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<!-- 空数据的情况 --> |
|
|
|
|
|
<view class="loading-more"> |
|
|
|
|
|
<text v-if="!tab.list.length" :class="{'loading-more-text': tab.loadingClass}">{{ tab.loadingText }}</text> |
|
|
|
|
|
<my-nocontent v-else></my-nocontent> |
|
|
|
|
|
</view> |
|
|
|
|
|
<!-- 回到顶部 --> |
|
|
|
|
|
<u-back-top :scroll-top="pageScrollTop" :custom-style="{background: 'rgba(51, 51 51, 0.3)'}"></u-back-top> |
|
|
|
|
|
</scroll-view> |
|
|
</block> |
|
|
</block> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
@ -45,12 +63,33 @@ |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
tabIndex: 0 |
|
|
|
|
|
|
|
|
tabIndex: 0, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
isRefresher: false, // scroll-view下拉刷新状态,当前默认没有触发 |
|
|
|
|
|
page: 1, |
|
|
|
|
|
isPage: false |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
methods: { |
|
|
|
|
|
// 页面触底,加载下一页 |
|
|
|
|
|
onScrolltolower(){ |
|
|
|
|
|
console.log('加载下一页') |
|
|
|
|
|
}, |
|
|
|
|
|
// scroll-view 下拉刷新 |
|
|
|
|
|
onRefresherrefresh(){ |
|
|
|
|
|
this.isRefresher = true; |
|
|
|
|
|
console.log('下拉刷新') |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
this.isRefresher = false; |
|
|
|
|
|
},1000) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
<style scoped> |
|
|
<style scoped> |
|
|
|
|
|
.com { |
|
|
|
|
|
height: 900rpx; |
|
|
|
|
|
} |
|
|
.wallet-top { |
|
|
.wallet-top { |
|
|
height: 404rpx; |
|
|
height: 404rpx; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
|