|
@@ -93,7 +93,7 @@
|
|
|
<levelSuccessPopup :show="showUpgradePopup" @closeLevel="closeLevel"></levelSuccessPopup>
|
|
|
<!-- 祝福弹窗 -->
|
|
|
<blessingsPopup :show="showBlessingsPopup" :showSuccess="showSuccess" :farmBuyId="farmBuyId"
|
|
|
- :clockinType="clockinType" @clockinCallback="getBySampleId" @closeBlessings="closeBlessings"></blessingsPopup>
|
|
|
+ :clockinType="clockinType" @clockinCallback="getBySampleId" @closeBlessings="closeBlessings"></blessingsPopup>
|
|
|
|
|
|
<!-- canvas生成图片 - 隐藏的canvas元素 -->
|
|
|
<canvas id="posterCanvas" canvas-id="posterCanvas" style="width: 1380rpx;height: 2280rpx;position: fixed;left: 750rpx;top: 2000rpx;z-index: 9999;"></canvas>
|
|
@@ -230,6 +230,7 @@
|
|
|
await TREE.fetchLevelAwardInfo({buyId: farmBuyId.value}).then(({data}) => {
|
|
|
if (data?.hasAward) {
|
|
|
clockinType.value = 4
|
|
|
+ levelAwardId.value = data?.levelAward?.id
|
|
|
showSuccess.value = !showSuccess.value
|
|
|
} else {
|
|
|
showCheckin.value = true
|
|
@@ -297,9 +298,12 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ const levelAwardId = ref('1')
|
|
|
// 得到200分弹窗关闭
|
|
|
function closeBlessings() {
|
|
|
- TREE.fetchClaimAward({buyId: farmBuyId.value, levelAwardId: 1}).then(({data}) => {
|
|
|
+ // 设为已读
|
|
|
+ TREE.fetchUserAsRead({type: 3, buyId: farmBuyId.value})
|
|
|
+ TREE.fetchClaimAward({buyId: farmBuyId.value, levelAwardId: levelAwardId.value}).then(({data}) => {
|
|
|
showUpgradePopup.value = true
|
|
|
})
|
|
|
}
|