fix: 上线前修改

This commit is contained in:
anonymous
2025-01-09 20:23:04 +08:00
parent 246c28e5d0
commit 7ad24e1444
11 changed files with 72 additions and 50 deletions
+11 -8
View File
@@ -25,9 +25,7 @@
</view>
<view class="flex-1 text-center">
<view class="text-14">医疗</view>
<view class="text-16 font-bold mt-15">
{{ userStore.userInfo?.yiliao ? '保障中' : '未保障' }}
</view>
<view class="text-16 font-bold mt-15">{{ userStore.userInfo?.yiliao }}</view>
</view>
</view>
</view>
@@ -208,11 +206,16 @@ const onShowRights = (item: any) => {
}
const onInvest = mergeStep(async (item: any) => {
await showModal('确认投资?')
await submitInvestAPI({
investid: item.id,
type: 3,
})
try {
await submitInvestAPI({
investid: item.id,
type: 3,
})
} catch {
return uni.switchTab({
url: '/pages/invite/index',
})
}
await userStore.loadUserInfo()
uni.showToast({
title: '投资成功',