55 lines
1.6 KiB
Vue
55 lines
1.6 KiB
Vue
<route lang="json5">
|
|
{
|
|
style: {
|
|
navigationBarTitleText: '投资记录',
|
|
navigationBarBackgroundColor: '#fff',
|
|
navigationStyle: 'custom',
|
|
},
|
|
}
|
|
</route>
|
|
|
|
<script setup lang="ts">
|
|
import NavBar from '@/components/NavBar.vue'
|
|
import { getInvestmentRecordAPI } from '@/service'
|
|
|
|
const { list: investmentRecordList } = useListPageRequest(getInvestmentRecordAPI)
|
|
function getType(item) {
|
|
return Number(item.typedata) === 2 ? '投保' : '投资'
|
|
}
|
|
</script>
|
|
<template>
|
|
<view
|
|
class="min-h-screen pb-100"
|
|
style="background: linear-gradient(180deg, #3a90f2 0%, #f7f7f7 100%)"
|
|
>
|
|
<NavBar />
|
|
<view class="mt-15" v-if="investmentRecordList.length">
|
|
<view
|
|
class="flex px-15 py-8 mb-1 bg-#ffffff"
|
|
v-for="item in investmentRecordList"
|
|
:key="item.id"
|
|
>
|
|
<image src="/static/images/page-sub/money-icon.png" class="w-32 h-32 self-center" />
|
|
<view class="flex flex-col flex-1 justify-between ml-15">
|
|
<view class="text-14 text-#333">{{ item.name }}</view>
|
|
<view class="text-12 text-#999">{{ getType(item) }}</view>
|
|
<view class="text-12 text-#999">{{ item.createtime }}</view>
|
|
</view>
|
|
|
|
<view class="flex flex-col items-end">
|
|
<view class="text-16 text-#FF5F5F">{{ item.money }}</view>
|
|
<view
|
|
class="text-14 mt-18 py-4 px-10 bg-#71C78A1A text-#71C78A"
|
|
v-if="Number(item.status) === 1"
|
|
>
|
|
{{ getType(item) }}成功
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<template v-else>
|
|
<wd-status-tip image="content" tip="暂无内容" />
|
|
</template>
|
|
</view>
|
|
</template>
|