feat: 修改文本

This commit is contained in:
anonymous
2025-01-12 17:04:48 +08:00
parent cf1900c5ed
commit 659dc92c90
+4 -4
View File
@@ -11,8 +11,8 @@
import { getInvestmentRecordAPI } from '@/service' import { getInvestmentRecordAPI } from '@/service'
const { list: investmentRecordList } = useListPageRequest(getInvestmentRecordAPI) const { list: investmentRecordList } = useListPageRequest(getInvestmentRecordAPI)
function getType(title){ function getType(item) {
return title.includes('福') ? '投保' : '投资' return Number(item.typedata) === 2 ? '投保' : '投资'
} }
</script> </script>
<template> <template>
@@ -26,7 +26,7 @@ function getType(title){
<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">{{ getType(item.name) }}</view> <view class="text-12 text-#999">{{ getType(item) }}</view>
<view class="text-12 text-#999">{{ item.createtime }}</view> <view class="text-12 text-#999">{{ item.createtime }}</view>
</view> </view>
@@ -36,7 +36,7 @@ function getType(title){
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) }}成功 {{ getType(item) }}成功
</view> </view>
</view> </view>
</view> </view>