fix: extract order from membership and stored value create response
This commit is contained in:
@@ -26,6 +26,6 @@ export const membershipApi = {
|
||||
url: '/api/membership/orders',
|
||||
method: 'POST',
|
||||
data: { plan_id: planId }
|
||||
}).then(toOrderBrief)
|
||||
}).then((data) => toOrderBrief(data.order))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,6 @@ export const storedValueApi = {
|
||||
url: '/api/stored-value/orders',
|
||||
method: 'POST',
|
||||
data: { card_id: cardId }
|
||||
}).then(toOrderBrief)
|
||||
}).then((data) => toOrderBrief(data.order))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<template>
|
||||
<view class="mall-page">
|
||||
<view v-if="isLoading" class="load-more-tip">加载中...</view>
|
||||
|
||||
<view class="section">
|
||||
<view class="section-header">
|
||||
<text class="section-title">次卡套餐</text>
|
||||
@@ -53,8 +55,6 @@
|
||||
<view v-if="!isLoading && cards.length === 0" class="empty-state">暂无可购买的储蓄卡</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-if="isLoading" class="load-more-tip">加载中...</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user