更新 index.vue
This commit is contained in:
@@ -11,6 +11,9 @@
|
|||||||
import { getInvestmentRecordAPI } from '@/service'
|
import { getInvestmentRecordAPI } from '@/service'
|
||||||
|
|
||||||
const { list: investmentRecordList } = useListPageRequest(getInvestmentRecordAPI)
|
const { list: investmentRecordList } = useListPageRequest(getInvestmentRecordAPI)
|
||||||
|
function getType(title){
|
||||||
|
return title.includes('福') ? '投保' : '投资'
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<view class="min-h-screen pb-100">
|
<view class="min-h-screen pb-100">
|
||||||
@@ -23,7 +26,7 @@ const { list: investmentRecordList } = useListPageRequest(getInvestmentRecordAPI
|
|||||||
<image src="/static/images/page-sub/money-icon.png" class="w-32 h-32 self-center" />
|
<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="flex flex-col flex-1 justify-between ml-15">
|
||||||
<view class="text-14 text-#333">{{ item.name }}</view>
|
<view class="text-14 text-#333">{{ item.name }}</view>
|
||||||
<view class="text-12 text-#999">投资</view>
|
<view class="text-12 text-#999">{{ getType(item.name) }}</view>
|
||||||
<view class="text-12 text-#999">{{ item.createtime }}</view>
|
<view class="text-12 text-#999">{{ item.createtime }}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -33,7 +36,7 @@ const { list: investmentRecordList } = useListPageRequest(getInvestmentRecordAPI
|
|||||||
class="text-14 mt-18 py-4 px-10 bg-#71C78A1A text-#71C78A"
|
class="text-14 mt-18 py-4 px-10 bg-#71C78A1A text-#71C78A"
|
||||||
v-if="Number(item.status) === 1"
|
v-if="Number(item.status) === 1"
|
||||||
>
|
>
|
||||||
投资成功
|
{{ getType(item.name) }}成功
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Reference in New Issue
Block a user