活动显示

master
shenhan000 2025-05-12 15:37:48 +08:00
parent deb3a1bacc
commit 13eea2f2d9
1 changed files with 13 additions and 3 deletions

View File

@ -176,7 +176,7 @@ async function getIntegralGold() {
}
}
getIntegralGold()
const isShowActivity = ref(true)
const isShowActivity = ref(false)
//
function closeActivityIcon() {
@ -187,20 +187,30 @@ function closeActivityIcon() {
const activityList = ref([])
const isShowactivityList = ref(false)
async function showActivityList() {
isShowactivityList.value = true
}
async function getActivityList() {
try {
const res = await request.post('/promotion/promotionList', {
pageNum: 1,
pageSize: 50,
})
if (res.code === 200) {
if (res.rows.length > 0) {
isShowActivity.value = true
activityList.value = res.rows
isShowactivityList.value = true
}
else {
isShowActivity.value = false
}
}
}
catch (err) {
console.log(err)
}
}
getActivityList()
//
async function getActivity(item) {