fix: 上线前修改
This commit is contained in:
@@ -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: '投资成功',
|
||||
|
||||
Reference in New Issue
Block a user