活动显示
parent
deb3a1bacc
commit
13eea2f2d9
|
@ -176,7 +176,7 @@ async function getIntegralGold() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getIntegralGold()
|
getIntegralGold()
|
||||||
const isShowActivity = ref(true)
|
const isShowActivity = ref(false)
|
||||||
|
|
||||||
// 关闭活动的图标
|
// 关闭活动的图标
|
||||||
function closeActivityIcon() {
|
function closeActivityIcon() {
|
||||||
|
@ -187,20 +187,30 @@ function closeActivityIcon() {
|
||||||
const activityList = ref([])
|
const activityList = ref([])
|
||||||
const isShowactivityList = ref(false)
|
const isShowactivityList = ref(false)
|
||||||
async function showActivityList() {
|
async function showActivityList() {
|
||||||
|
isShowactivityList.value = true
|
||||||
|
}
|
||||||
|
|
||||||
|
async function getActivityList() {
|
||||||
try {
|
try {
|
||||||
const res = await request.post('/promotion/promotionList', {
|
const res = await request.post('/promotion/promotionList', {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 50,
|
pageSize: 50,
|
||||||
})
|
})
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
activityList.value = res.rows
|
if (res.rows.length > 0) {
|
||||||
isShowactivityList.value = true
|
isShowActivity.value = true
|
||||||
|
activityList.value = res.rows
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
isShowActivity.value = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
getActivityList()
|
||||||
|
|
||||||
// 参与活动
|
// 参与活动
|
||||||
async function getActivity(item) {
|
async function getActivity(item) {
|
||||||
|
|
Loading…
Reference in New Issue