|
@ -41,10 +41,18 @@ const getTotalBeans = async () => { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (result.code == 200) { |
|
|
if (result.code == 200) { |
|
|
|
|
|
if (result.data) { |
|
|
permanentBeans.value = result.data.permanentBean |
|
|
permanentBeans.value = result.data.permanentBean |
|
|
freeBean.value = result.data.freeBean |
|
|
freeBean.value = result.data.freeBean |
|
|
beanNum.value = result.data.beanNum |
|
|
beanNum.value = result.data.beanNum |
|
|
money.value = result.data.money |
|
|
money.value = result.data.money |
|
|
|
|
|
}else{ |
|
|
|
|
|
permanentBeans.value = 0 |
|
|
|
|
|
freeBean.value = 0 |
|
|
|
|
|
beanNum.value = 0 |
|
|
|
|
|
money.value = 0 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
console.log('金豆总数获取成功'); |
|
|
console.log('金豆总数获取成功'); |
|
|
} |
|
|
} |
|
|
console.log('获取金豆总数失败:', result.msg); |
|
|
console.log('获取金豆总数失败:', result.msg); |
|
|