This commit is contained in:
zmj 2024-06-24 15:27:45 +08:00
parent edb5d70e9a
commit 1e52c22acd
1 changed files with 19 additions and 7 deletions

View File

@ -1,18 +1,17 @@
<template> <template>
<up-sticky bgColor="#fff"> <up-sticky bgColor="#fff">
{{mark}}
<up-tabs :list="tabsLst" :itemStyle="{width:'33vw',paddingBottom:'20rpx'}" lineColor='#50C758' :current='mark' <up-tabs :list="tabsLst" :itemStyle="{width:'33vw',paddingBottom:'20rpx'}" lineColor='#50C758' :current='mark'
@change="tabsChange"></up-tabs> @change="tabsChange"></up-tabs>
</up-sticky> </up-sticky>
<view class="content"> <view class="content">
<view class="li" v-for="item in 50"> <view class="li" v-for="(item,index) in lists" :key="index">
<view class="li-top"> <view class="li-top">
<text>余额宝自动转入</text> <text>{{item.title}}</text>
<text style="font-weight: bold;">-204.00</text> <text style="font-weight: bold;">{{item.amount}}</text>
</view> </view>
<view class="li-top" style="margin-bottom: 0;"> <view class="li-top" style="margin-bottom: 0;">
<text style="font-size: 24rpx;color: grey;">2024-10-21</text> <text style="font-size: 24rpx;color: grey;">{{item.create_time}}</text>
<text style="font-size: 24rpx;color: grey;">余额 204.00</text> <text style="font-size: 24rpx;color: grey;">余额 {{item.before_balance}}</text>
</view> </view>
</view> </view>
@ -46,11 +45,24 @@
const mark = ref(0) const mark = ref(0)
const tabsChange = (e) => { const tabsChange = (e) => {
mark.value = e.index mark.value = e.index
getLists()
}
const lists = ref([])
let type = ''
const getLists = async () => {
let res = await getFundList({
type,
mark: mark.value || ''
})
lists.value = res.data.lists
} }
onLoad((opt) => { onLoad((opt) => {
console.log(opt) type = opt.type
getLists()
}) })
</script> </script>