todolist
This commit is contained in:
16
src/App.vue
16
src/App.vue
@@ -86,15 +86,15 @@ if (isLogin()) {
|
||||
userStatus(handleLoginSuccess)
|
||||
}
|
||||
const getUserLottery = async () => {
|
||||
// const result = await Request("lottery", { pool: "all" }, "GET")
|
||||
// if (result.res.status === 200) {
|
||||
// prizelist.value = result.json.lottery_logs.length > 0 ? result.json.lottery_logs : []
|
||||
// }
|
||||
const result = await Request("lottery", { pool: "all" }, "GET")
|
||||
if (result.res.status === 200) {
|
||||
prizelist.value = result.json.lottery_logs.length > 0 ? result.json.lottery_logs : []
|
||||
}
|
||||
//TODO 上线换成上面的
|
||||
prizelist.value = [
|
||||
{ id: 1, prize_code: "FIRST", prize_name: "一等奖", coupon_type: "scene", pushed: 0 },
|
||||
{ id: 2, prize_code: "FIRST1", prize_name: "二等奖", coupon_type: "scene", pushed: 1 }
|
||||
]
|
||||
// prizelist.value = [
|
||||
// { id: 1, prize_code: "FIRST", prize_name: "一等奖", coupon_type: "scene", pushed: 0 },
|
||||
// { id: 2, prize_code: "FIRST1", prize_name: "二等奖", coupon_type: "scene", pushed: 1 }
|
||||
// ]
|
||||
}
|
||||
const handleAddressSubmitAfter = (data) => {
|
||||
const targetItem = prizelist.value.find(item => item.id === data.id)
|
||||
|
||||
Reference in New Issue
Block a user