|
|
@@ -34,7 +34,7 @@
|
|
|
<div class="credit-lottery__box credit-lottery__record">
|
|
|
<dl class="block">
|
|
|
<dt class="block-title">- 我的红包 -</dt>
|
|
|
- <dd class="block-item" v-for="(item, index) in dataList" :key="index">
|
|
|
+ <dd class="block-item" v-for="(item, index) in creditList" :key="index">
|
|
|
<span>{{ item.createtime }}</span>
|
|
|
<span>{{ item.score }}</span>
|
|
|
</dd>
|
|
|
@@ -52,7 +52,7 @@ import { fullloading } from '@/utils/vant'
|
|
|
import { useCreditLottery } from '@/business/credit'
|
|
|
import Reward from './components/reward/index.vue'
|
|
|
|
|
|
-const { creditConfig, userAccount, dataList, redEnvelope, formSubmit, formRefresh } = useCreditLottery()
|
|
|
+const { creditConfig, userAccount, creditList, redEnvelope, formSubmit, formRefresh } = useCreditLottery()
|
|
|
const showReward = shallowRef(false) // 显示抽奖红包
|
|
|
|
|
|
const onSubmit = () => {
|
|
|
@@ -61,8 +61,8 @@ const onSubmit = () => {
|
|
|
formSubmit().then(() => {
|
|
|
hideLoading()
|
|
|
showReward.value = true
|
|
|
- }).catch((err) => {
|
|
|
- Toast.fail(err)
|
|
|
+ }).catch(() => {
|
|
|
+ Toast.fail('抽奖失败')
|
|
|
})
|
|
|
})
|
|
|
}
|