feat: 修改文本
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
import { getInvestmentRecordAPI } from '@/service'
|
||||
|
||||
const { list: investmentRecordList } = useListPageRequest(getInvestmentRecordAPI)
|
||||
function getType(title){
|
||||
return title.includes('福') ? '投保' : '投资'
|
||||
function getType(item) {
|
||||
return Number(item.typedata) === 2 ? '投保' : '投资'
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
@@ -26,7 +26,7 @@ function getType(title){
|
||||
<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.name) }}</view>
|
||||
<view class="text-12 text-#999">{{ getType(item) }}</view>
|
||||
<view class="text-12 text-#999">{{ item.createtime }}</view>
|
||||
</view>
|
||||
|
||||
@@ -36,7 +36,7 @@ function getType(title){
|
||||
class="text-14 mt-18 py-4 px-10 bg-#71C78A1A text-#71C78A"
|
||||
v-if="Number(item.status) === 1"
|
||||
>
|
||||
{{ getType(item.name) }}成功
|
||||
{{ getType(item) }}成功
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user