lottery.vue
<template>
<img :src="bg" id="background" />
<div class="imageContainer" v-if="reset">
<card
v-for="(luck, index) in luckyer.value"
:key="index"
:type="lotteryType"
:play="lotteryOpen"
:area="luck.area"
:row="luck.row"
:seat="luck.seat"
/>
</div>
</template>
<script lang="ts">
import { defineComponent, onMounted, ref, toRefs, watch, reactive, nextTick } from 'vue'
import GHttp from '@/composables/GHttp'
import Card from "@/components/Card.vue"
import Seats, { seatInfo } from "@/composables/GSeats"
import Ghttp from "@/composables/GHttp"
import bg from "../assets/bg.png"
export default defineComponent({
name: 'lottery',
components: {
Card,
},
setup() {
const lotteryType = ref("")
const lotteryNum = ref(1)
const lotteryOpen = ref(false)
const lotteryStart = ref(false)
const lotteryStop = ref(false)
const reset = ref(true)
const luckyer = reactive({ value: [] as seatInfo[] })
onMounted(
() => {
let token: postData = {
"user_id": 10086
}
GHttp.post('/auth/getToken', token).then(
(res: resData) => {
console.log(res)
//TODO:
}
)
window.addEventListener('storage',
(e) => {
let val = e.newValue
if (val != null) {
let val_json: storageData = JSON.parse(val)
switch (e.key) {
case "setTypeNum":
// {
// "type": lotteryType,
// "num": lotteryNum
// }
reset.value = false
nextTick(() => {
reset.value = true
})
lotteryType.value = ""
lotteryNum.value = 1
lotteryOpen.value = false
lotteryStart.value = false
lotteryStop.value = false
let { type, num } = val_json
lotteryType.value = type ? type : ""
lotteryNum.value = num ? num : 0
break;
case "openCard":
// {
// "open": true/false
// }
let { open } = val_json
lotteryOpen.value = (open != undefined ? open : false)
break;
case "startRandom":
// {
// "start": true/false
// }
let { start } = val_json
lotteryStart.value = (start != undefined ? start : false)
startRandom()
break;
case "stopRandom":
// {
// "stop": true/false
// }
let { stop } = val_json
lotteryStop.value = (stop != undefined ? stop : false)
break;
case "clearAll":
// {
// "clear": true/false
// }
break;
default:
console.log("other data change")
}
}
}
)
}
)
watch(reset, (item) => {
if (item) {
luckyer.value = []
for (let a = 0; a < lotteryNum.value; a++) {
luckyer.value.push({
area: "00",
row: "00",
seat: "00",
})
}
}
})
const startRandom = () => {
let interval = setInterval(
() => {
let { lucky } = Seats()
for (let a = 0; a < lotteryNum.value; a++) {
luckyer.value[a].area = lucky[a].area
luckyer.value[a].row = lucky[a].row
luckyer.value[a].seat = lucky[a].seat
}
if (lotteryStop.value) {
clearInterval(interval)
getFinal()
}
},
50
)
}
const getFinal = () => {
let { lucky } = Seats()
let paramStr = ''
for (let a = 0; a < lotteryNum.value - 1; a++) {
paramStr += lucky[a].area + '区' + lucky[a].row + '排' + lucky[a].seat + '座,'
}
paramStr += lucky[lotteryNum.value - 1].area + '区' + lucky[lotteryNum.value - 1].row + '排' + lucky[lotteryNum.value - 1].seat + '座'
Ghttp.post("/addLuckyer", { luckyerlist: paramStr }).then(
(res: resData) => {
if (res.errcode == "0") {
console.log("add luckyer: ")
console.log(res)
for (let a = 0; a < lotteryNum.value; a++) {
luckyer.value[a].area = lucky[a].area
luckyer.value[a].row = lucky[a].row
luckyer.value[a].seat = lucky[a].seat
}
}
else if (res.errcode == "40008") {
console.log("repeated")
console.log(res)
getFinal()
}
else {
console.log(res)
}
}
)
}
return {
lotteryType,
lotteryNum,
lotteryOpen,
lotteryStart,
lotteryStop,
bg,
reset,
luckyer,
}
}
})
</script>
<style>
#background {
position: absolute;
top: 0;
left: 0;
width: 1920px;
height: 1080px;
}
.imageContainer {
position: absolute;
width: 1520px;
height: 400px;
top: 350px;
left: 200px;
/* z-index: 8888; */
display: flex;
justify-content: center;
/* background-color: aliceblue; */
}
</style>
option.vue
<template>
<el-select v-model="lotteryType">
<el-option
v-for="(item, index) in lottery_list"
:key="index"
:label="item.name"
:value="item.val"
>
</el-option>
</el-select>
<el-select v-model="lotteryNum">
<el-option
v-for="(item, index) in lottery_num_list"
:key="index"
:label="item.name"
:value="item.val"
>
</el-option>
</el-select>
<el-button type="primary" @click="setTypeNum" :disabled="lotteryType=='' || lotteryNum==''">确认奖品类型及个数</el-button>
<el-button type="primary" @click="openCard" :disabled="stage!='setTypeNum'">翻牌</el-button>
<el-button type="primary" @click="startRandom" :disabled="stage!='openCard'">开始</el-button>
<el-button type="primary" @click="stopRandom" :disabled="stage!='startRandom'">暂停</el-button>
<el-button type="primary" @click="clear">清空抽奖记录</el-button>
</template>
<script lang="ts">
import { ref, defineComponent, onMounted } from 'vue'
import SetLocalStorage from '@/composables/GSetLocalStorage'
import Ghttp from '@/composables/GHttp'
interface option_entry{
name: string,
val: string
}
export default defineComponent({
setup() {
const lotteryType = ref("")
const lotteryNum = ref("")
const stage = ref("clear")
const lottery_list: option_entry[] = [
{name: "钻石", val: "diamond"},
{name: "S-天行者", val: "car"},
{name: "真我Buds Air2耳机", val: "earphone"},
{name: "真我GT手机", val: "mobilephone"},
{name: "全A车账号", val: "account"},
]
const lottery_num_list: option_entry[] = [
{name: "1个", val: "1"},
{name: "3个", val: "3"},
{name: "4个", val: "4"},
{name: "5个", val: "5"},
]
const setTypeNum = () =>{
localStorage.clear()
SetLocalStorage("setTypeNum", {"type": lotteryType.value ,"num": parseInt(lotteryNum.value)})
stage.value = "setTypeNum"
}
const openCard = () => {
SetLocalStorage("openCard", {"open": true})
}
const startRandom = ()=>{
SetLocalStorage("startRandom", {"start": true})
stage.value = "startRandom"
}
const stopRandom = ()=>{
SetLocalStorage("stopRandom", {"stop": true})
stage.value = "stopRandom"
}
onMounted(
()=> window.addEventListener('storage',
(e)=>{
let val = e.newValue
if(val != null){
let val_json: storageData = JSON.parse(val)
switch(e.key){
case "clear":
let { clear } = val_json
stage.value = (clear != undefined ? "openCard" : "setTypeNum")
break;
default:
console.log("other data change")
}
}
}
)
)
const clear = ()=>{
Ghttp.get("/initLucyer").then((res: resData)=>{
console.log(res)
})
}
return {
lotteryType,
lotteryNum,
lottery_list,
lottery_num_list,
setTypeNum,
openCard,
clear,
startRandom,
stopRandom,
stage,
}
},
})
</script>
GSeats.ts
export interface seatInfo {
area: string,
row: string,
seat: string,
}
export default function(){
const seats_list : seatInfo[] = [
{area: "01", row: "01", seat: "01"}
, {area: "01", row: "01", seat: "02"}
, {area: "01", row: "01", seat: "03"}
, {area: "01", row: "01", seat: "04"}
, {area: "01", row: "01", seat: "05"}
, {area: "01", row: "01", seat: "06"}
, {area: "01", row: "01", seat: "07"}
, {area: "01", row: "01", seat: "08"}
, {area: "01", row: "01", seat: "09"}
, {area: "01", row: "01", seat: "10"}
, {area: "01", row: "01", seat: "11"}
, {area: "01", row: "01", seat: "12"}
, {area: "01", row: "01", seat: "13"}
, {area: "01", row: "01", seat: "14"}
, {area: "01", row: "01", seat: "15"}
, {area: "01", row: "01", seat: "16"}
, {area: "01", row: "01", seat: "17"}
, {area: "01", row: "01", seat: "18"}
, {area: "01", row: "01", seat: "19"}
, {area: "01", row: "01", seat: "20"}
, {area: "01", row: "01", seat: "21"}
, {area: "01", row: "01", seat: "22"}
, {area: "01", row: "01", seat: "23"}
, {area: "01", row: "01", seat: "24"}
, {area: "01", row: "01", seat: "25"}
, {area: "01", row: "01", seat: "26"}
, {area: "01", row: "01", seat: "27"}
, {area: "01", row: "01", seat: "28"}
, {area: "01", row: "01", seat: "29"}
, {area: "01", row: "01", seat: "30"}
, {area: "01", row: "01", seat: "31"}
, {area: "01", row: "01", seat: "32"}
, {area: "01", row: "01", seat: "33"}
, {area: "01", row: "01", seat: "34"}
, {area: "01", row: "01", seat: "35"}
, {area: "01", row: "02", seat: "01"}
, {area: "01", row: "02", seat: "02"}
, {area: "01", row: "02", seat: "03"}
, {area: "01", row: "02", seat: "04"}
, {area: "01", row: "02", seat: "05"}
, {area: "01", row: "02", seat: "06"}
, {area: "01", row: "02", seat: "07"}
, {area: "01", row: "02", seat: "08"}
, {area: "01", row: "02", seat: "09"}
, {area: "01", row: "02", seat: "10"}
, {area: "01", row: "02", seat: "11"}
, {area: "01", row: "02", seat: "12"}
, {area: "01", row: "02", seat: "13"}
, {area: "01", row: "02", seat: "14"}
, {area: "01", row: "02", seat: "15"}
, {area: "01", row: "02", seat: "16"}
, {area: "01", row: "02", seat: "17"}
, {area: "01", row: "02", seat: "18"}
, {area: "01", row: "02", seat: "19"}
, {area: "01", row: "02", seat: "20"}
, {area: "01", row: "02", seat: "21"}
, {area: "01", row: "02", seat: "22"}
, {area: "01", row: "02", seat: "23"}
, {area: "01", row: "02", seat: "24"}
, {area: "01", row: "02", seat: "25"}
, {area: "01", row: "02", seat: "26"}
, {area: "01", row: "02", seat: "27"}
, {area: "01", row: "02", seat: "28"}
, {area: "01", row: "02", seat: "29"}
, {area: "01", row: "02", seat: "30"}
, {area: "01", row: "02", seat: "31"}
, {area: "01", row: "02", seat: "32"}
, {area: "01", row: "02", seat: "33"}
, {area: "01", row: "02", seat: "34"}
, {area: "01", row: "02", seat: "35"}
, {area: "01", row: "03", seat: "01"}
, {area: "01", row: "03", seat: "02"}
, {area: "01", row: "03", seat: "03"}
, {area: "01", row: "03", seat: "04"}
, {area: "01", row: "03", seat: "05"}
, {area: "01", row: "03", seat: "06"}
, {area: "01", row: "03", seat: "07"}
, {area: "01", row: "03", seat: "08"}
, {area: "01", row: "03", seat: "09"}
, {area: "01", row: "03", seat: "10"}
, {area: "01", row: "03", seat: "11"}
, {area: "01", row: "03", seat: "12"}
, {area: "01", row: "03", seat: "13"}
, {area: "01", row: "03", seat: "14"}
, {area: "01", row: "03", seat: "15"}
, {area: "01", row: "03", seat: "16"}
, {area: "01", row: "03", seat: "17"}
, {area: "01", row: "03", seat: "18"}
, {area: "01", row: "03", seat: "21"}
, {area: "01", row: "03", seat: "22"}
, {area: "01", row: "03", seat: "23"}
, {area: "01", row: "03", seat: "24"}
, {area: "01", row: "03", seat: "25"}
, {area: "01", row: "03", seat: "26"}
, {area: "01", row: "03", seat: "27"}
, {area: "01", row: "03", seat: "28"}
, {area: "01", row: "03", seat: "29"}
, {area: "01", row: "03", seat: "30"}
, {area: "01", row: "03", seat: "31"}
, {area: "01", row: "03", seat: "32"}
, {area: "01", row: "03", seat: "35"}
, {area: "01", row: "04", seat: "01"}
, {area: "01", row: "04", seat: "02"}
, {area: "01", row: "04", seat: "03"}
, {area: "01", row: "04", seat: "04"}
, {area: "01", row: "04", seat: "05"}
, {area: "01", row: "04", seat: "06"}
, {area: "01", row: "04", seat: "07"}
, {area: "01", row: "04", seat: "08"}
, {area: "01", row: "04", seat: "09"}
, {area: "01", row: "04", seat: "10"}
, {area: "01", row: "04", seat: "11"}
, {area: "01", row: "04", seat: "12"}
, {area: "01", row: "04", seat: "13"}
, {area: "01", row: "04", seat: "14"}
, {area: "01", row: "04", seat: "15"}
, {area: "01", row: "04", seat: "16"}
, {area: "01", row: "04", seat: "17"}
, {area: "01", row: "04", seat: "18"}
, {area: "01", row: "04", seat: "19"}
, {area: "01", row: "04", seat: "20"}
, {area: "01", row: "04", seat: "21"}
, {area: "01", row: "04", seat: "22"}
, {area: "01", row: "04", seat: "23"}
, {area: "01", row: "04", seat: "24"}
, {area: "01", row: "04", seat: "27"}
, {area: "01", row: "04", seat: "28"}
, {area: "01", row: "04", seat: "29"}
, {area: "01", row: "04", seat: "30"}
, {area: "01", row: "04", seat: "31"}
, {area: "01", row: "04", seat: "32"}
, {area: "01", row: "04", seat: "33"}
, {area: "01", row: "04", seat: "34"}
, {area: "01", row: "04", seat: "35"}
, {area: "01", row: "05", seat: "01"}
, {area: "01", row: "05", seat: "02"}
, {area: "01", row: "05", seat: "03"}
, {area: "01", row: "05", seat: "04"}
, {area: "01", row: "05", seat: "05"}
, {area: "01", row: "05", seat: "06"}
, {area: "01", row: "05", seat: "07"}
, {area: "01", row: "05", seat: "08"}
, {area: "01", row: "05", seat: "09"}
, {area: "01", row: "05", seat: "10"}
, {area: "01", row: "05", seat: "11"}
, {area: "01", row: "05", seat: "12"}
, {area: "01", row: "05", seat: "13"}
, {area: "01", row: "05", seat: "14"}
, {area: "01", row: "05", seat: "15"}
, {area: "01", row: "05", seat: "16"}
, {area: "01", row: "05", seat: "19"}
, {area: "01", row: "05", seat: "20"}
, {area: "01", row: "05", seat: "21"}
, {area: "01", row: "05", seat: "22"}
, {area: "01", row: "05", seat: "23"}
, {area: "01", row: "05", seat: "24"}
, {area: "01", row: "05", seat: "25"}
, {area: "01", row: "05", seat: "26"}
, {area: "01", row: "05", seat: "27"}
, {area: "01", row: "05", seat: "28"}
, {area: "01", row: "05", seat: "29"}
, {area: "01", row: "05", seat: "30"}
, {area: "01", row: "05", seat: "33"}
, {area: "01", row: "05", seat: "34"}
, {area: "01", row: "05", seat: "35"}
, {area: "01", row: "06", seat: "01"}
, {area: "01", row: "06", seat: "02"}
, {area: "01", row: "06", seat: "03"}
, {area: "01", row: "06", seat: "04"}
, {area: "01", row: "06", seat: "05"}
, {area: "01", row: "06", seat: "06"}
, {area: "01", row: "06", seat: "07"}
, {area: "01", row: "06", seat: "08"}
, {area: "01", row: "06", seat: "09"}
, {area: "01", row: "06", seat: "10"}
, {area: "01", row: "06", seat: "11"}
, {area: "01", row: "06", seat: "12"}
, {area: "01", row: "06", seat: "13"}
, {area: "01", row: "06", seat: "14"}
, {area: "01", row: "06", seat: "15"}
, {area: "01", row: "06", seat: "16"}
, {area: "01", row: "06", seat: "17"}
, {area: "01", row: "06", seat: "18"}
, {area: "01", row: "06", seat: "19"}
, {area: "01", row: "06", seat: "20"}
, {area: "01", row: "06", seat: "21"}
, {area: "01", row: "06", seat: "22"}
, {area: "01", row: "06", seat: "25"}
, {area: "01", row: "06", seat: "26"}
, {area: "01", row: "06", seat: "27"}
, {area: "01", row: "06", seat: "28"}
, {area: "01", row: "06", seat: "29"}
, {area: "01", row: "06", seat: "30"}
, {area: "01", row: "06", seat: "31"}
, {area: "01", row: "06", seat: "32"}
, {area: "01", row: "06", seat: "33"}
, {area: "01", row: "06", seat: "34"}
, {area: "01", row: "06", seat: "35"}
, {area: "01", row: "07", seat: "01"}
, {area: "01", row: "07", seat: "02"}
, {area: "01", row: "07", seat: "03"}
, {area: "01", row: "07", seat: "04"}
, {area: "01", row: "07", seat: "05"}
, {area: "01", row: "07", seat: "06"}
, {area: "01", row: "07", seat: "07"}
, {area: "01", row: "07", seat: "08"}
, {area: "01", row: "07", seat: "09"}
, {area: "01", row: "07", seat: "10"}
, {area: "01", row: "07", seat: "11"}
, {area: "01", row: "07", seat: "12"}
, {area: "01", row: "07", seat: "13"}
, {area: "01", row: "07", seat: "14"}
, {area: "01", row: "07", seat: "17"}
, {area: "01", row: "07", seat: "18"}
, {area: "01", row: "07", seat: "19"}
, {area: "01", row: "07", seat: "20"}
, {area: "01", row: "07", seat: "21"}
, {area: "01", row: "07", seat: "22"}
, {area: "01", row: "07", seat: "23"}
, {area: "01", row: "07", seat: "24"}
, {area: "01", row: "07", seat: "25"}
, {area: "01", row: "07", seat: "26"}
, {area: "01", row: "07", seat: "27"}
, {area: "01", row: "07", seat: "28"}
, {area: "01", row: "07", seat: "31"}
, {area: "01", row: "07", seat: "32"}
, {area: "01", row: "07", seat: "33"}
, {area: "01", row: "07", seat: "34"}
, {area: "01", row: "07", seat: "35"}
, {area: "01", row: "08", seat: "01"}
, {area: "01", row: "08", seat: "02"}
, {area: "01", row: "08", seat: "03"}
, {area: "01", row: "08", seat: "04"}
, {area: "01", row: "08", seat: "07"}
, {area: "01", row: "08", seat: "08"}
, {area: "01", row: "08", seat: "09"}
, {area: "01", row: "08", seat: "10"}
, {area: "01", row: "08", seat: "11"}
, {area: "01", row: "08", seat: "12"}
, {area: "01", row: "08", seat: "13"}
, {area: "01", row: "08", seat: "14"}
, {area: "01", row: "08", seat: "15"}
, {area: "01", row: "08", seat: "16"}
, {area: "01", row: "08", seat: "17"}
, {area: "01", row: "08", seat: "18"}
, {area: "01", row: "08", seat: "19"}
, {area: "01", row: "08", seat: "20"}
, {area: "01", row: "08", seat: "23"}
, {area: "01", row: "08", seat: "24"}
, {area: "01", row: "08", seat: "25"}
, {area: "01", row: "08", seat: "26"}
, {area: "01", row: "08", seat: "27"}
, {area: "01", row: "08", seat: "28"}
, {area: "01", row: "08", seat: "29"}
, {area: "01", row: "08", seat: "30"}
, {area: "01", row: "08", seat: "31"}
, {area: "01", row: "08", seat: "32"}
, {area: "01", row: "08", seat: "33"}
, {area: "01", row: "08", seat: "34"}
, {area: "01", row: "08", seat: "35"}
, {area: "01", row: "09", seat: "01"}
, {area: "01", row: "09", seat: "02"}
, {area: "01", row: "09", seat: "03"}
, {area: "01", row: "09", seat: "04"}
, {area: "01", row: "09", seat: "05"}
, {area: "01", row: "09", seat: "06"}
, {area: "01", row: "09", seat: "07"}
, {area: "01", row: "09", seat: "08"}
, {area: "01", row: "09", seat: "09"}
, {area: "01", row: "09", seat: "10"}
, {area: "01", row: "09", seat: "11"}
, {area: "01", row: "09", seat: "12"}
, {area: "01", row: "09", seat: "15"}
, {area: "01", row: "09", seat: "16"}
, {area: "01", row: "09", seat: "17"}
, {area: "01", row: "09", seat: "18"}
, {area: "01", row: "09", seat: "19"}
, {area: "01", row: "09", seat: "20"}
, {area: "01", row: "09", seat: "21"}
, {area: "01", row: "09", seat: "22"}
, {area: "01", row: "09", seat: "23"}
, {area: "01", row: "09", seat: "24"}
, {area: "01", row: "09", seat: "25"}
, {area: "01", row: "09", seat: "26"}
, {area: "01", row: "09", seat: "29"}
, {area: "01", row: "09", seat: "30"}
, {area: "01", row: "09", seat: "31"}
, {area: "01", row: "09", seat: "32"}
, {area: "01", row: "09", seat: "33"}
, {area: "01", row: "09", seat: "34"}
, {area: "01", row: "09", seat: "35"}
, {area: "01", row: "10", seat: "01"}
, {area: "01", row: "10", seat: "02"}
, {area: "01", row: "10", seat: "03"}
, {area: "01", row: "10", seat: "04"}
, {area: "01", row: "10", seat: "07"}
, {area: "01", row: "10", seat: "08"}
, {area: "01", row: "10", seat: "09"}
, {area: "01", row: "10", seat: "10"}
, {area: "01", row: "10", seat: "11"}
, {area: "01", row: "10", seat: "12"}
, {area: "01", row: "10", seat: "13"}
, {area: "01", row: "10", seat: "14"}
, {area: "01", row: "10", seat: "15"}
, {area: "01", row: "10", seat: "16"}
, {area: "01", row: "10", seat: "17"}
, {area: "01", row: "10", seat: "18"}
, {area: "01", row: "10", seat: "21"}
, {area: "01", row: "10", seat: "22"}
, {area: "01", row: "10", seat: "23"}
, {area: "01", row: "11", seat: "01"}
, {area: "01", row: "11", seat: "02"}
, {area: "01", row: "11", seat: "03"}
, {area: "01", row: "11", seat: "04"}
, {area: "01", row: "11", seat: "05"}
, {area: "01", row: "11", seat: "06"}
, {area: "01", row: "11", seat: "07"}
, {area: "01", row: "11", seat: "08"}
, {area: "01", row: "11", seat: "09"}
, {area: "01", row: "11", seat: "10"}
, {area: "01", row: "11", seat: "13"}
, {area: "01", row: "11", seat: "14"}
, {area: "01", row: "11", seat: "15"}
, {area: "01", row: "11", seat: "16"}
, {area: "01", row: "11", seat: "17"}
, {area: "01", row: "11", seat: "18"}
, {area: "01", row: "11", seat: "19"}
, {area: "01", row: "11", seat: "20"}
, {area: "01", row: "11", seat: "21"}
, {area: "01", row: "11", seat: "22"}
, {area: "01", row: "11", seat: "23"}
, {area: "01", row: "12", seat: "01"}
, {area: "01", row: "12", seat: "02"}
, {area: "01", row: "12", seat: "05"}
, {area: "01", row: "12", seat: "06"}
, {area: "01", row: "12", seat: "07"}
, {area: "01", row: "12", seat: "08"}
, {area: "01", row: "12", seat: "09"}
, {area: "01", row: "12", seat: "10"}
, {area: "01", row: "12", seat: "11"}
, {area: "01", row: "12", seat: "12"}
, {area: "01", row: "12", seat: "13"}
, {area: "01", row: "12", seat: "14"}
, {area: "01", row: "12", seat: "15"}
, {area: "01", row: "12", seat: "16"}
, {area: "01", row: "12", seat: "19"}
, {area: "01", row: "12", seat: "20"}
, {area: "01", row: "12", seat: "21"}
, {area: "01", row: "12", seat: "22"}
, {area: "01", row: "12", seat: "23"}
, {area: "01", row: "13", seat: "01"}
, {area: "01", row: "13", seat: "02"}
, {area: "01", row: "13", seat: "03"}
, {area: "01", row: "13", seat: "04"}
, {area: "01", row: "13", seat: "05"}
, {area: "01", row: "13", seat: "06"}
, {area: "01", row: "13", seat: "07"}
, {area: "01", row: "13", seat: "08"}
, {area: "01", row: "13", seat: "11"}
, {area: "01", row: "13", seat: "12"}
, {area: "01", row: "13", seat: "13"}
, {area: "01", row: "13", seat: "14"}
, {area: "01", row: "13", seat: "15"}
, {area: "01", row: "13", seat: "16"}
, {area: "01", row: "13", seat: "17"}
, {area: "01", row: "13", seat: "18"}
, {area: "01", row: "13", seat: "19"}
, {area: "01", row: "13", seat: "20"}
, {area: "01", row: "13", seat: "21"}
, {area: "01", row: "13", seat: "22"}
, {area: "01", row: "13", seat: "23"}
, {area: "01", row: "14", seat: "03"}
, {area: "01", row: "14", seat: "04"}
, {area: "01", row: "14", seat: "05"}
, {area: "01", row: "14", seat: "06"}
, {area: "01", row: "14", seat: "07"}
, {area: "01", row: "14", seat: "08"}
, {area: "01", row: "14", seat: "09"}
, {area: "01", row: "14", seat: "10"}
, {area: "01", row: "14", seat: "11"}
, {area: "01", row: "14", seat: "12"}
, {area: "01", row: "14", seat: "13"}
, {area: "01", row: "14", seat: "14"}
, {area: "01", row: "14", seat: "17"}
, {area: "01", row: "14", seat: "18"}
, {area: "01", row: "14", seat: "19"}
, {area: "01", row: "14", seat: "20"}
, {area: "01", row: "14", seat: "21"}
, {area: "01", row: "14", seat: "22"}
, {area: "01", row: "14", seat: "23"}
, {area: "01", row: "15", seat: "01"}
, {area: "01", row: "15", seat: "02"}
, {area: "01", row: "15", seat: "03"}
, {area: "01", row: "15", seat: "04"}
, {area: "01", row: "15", seat: "05"}
, {area: "01", row: "15", seat: "06"}
, {area: "01", row: "15", seat: "09"}
, {area: "01", row: "15", seat: "10"}
, {area: "01", row: "15", seat: "11"}
, {area: "01", row: "15", seat: "12"}
, {area: "01", row: "15", seat: "13"}
, {area: "01", row: "15", seat: "14"}
, {area: "01", row: "15", seat: "15"}
, {area: "01", row: "15", seat: "16"}
, {area: "01", row: "15", seat: "17"}
, {area: "01", row: "15", seat: "18"}
, {area: "01", row: "15", seat: "19"}
, {area: "01", row: "16", seat: "01"}
, {area: "01", row: "16", seat: "02"}
, {area: "01", row: "16", seat: "03"}
, {area: "01", row: "16", seat: "04"}
, {area: "01", row: "16", seat: "05"}
, {area: "01", row: "16", seat: "06"}
, {area: "01", row: "16", seat: "07"}
, {area: "01", row: "16", seat: "08"}
, {area: "01", row: "16", seat: "09"}
, {area: "01", row: "16", seat: "10"}
, {area: "01", row: "16", seat: "11"}
, {area: "01", row: "16", seat: "12"}
, {area: "01", row: "16", seat: "15"}
, {area: "01", row: "16", seat: "16"}
, {area: "01", row: "16", seat: "17"}
, {area: "01", row: "16", seat: "18"}
, {area: "01", row: "16", seat: "19"}
, {area: "02", row: "01", seat: "01"}
, {area: "02", row: "01", seat: "02"}
, {area: "02", row: "01", seat: "03"}
, {area: "02", row: "01", seat: "04"}
, {area: "02", row: "01", seat: "05"}
, {area: "02", row: "01", seat: "06"}
, {area: "02", row: "01", seat: "07"}
, {area: "02", row: "01", seat: "08"}
, {area: "02", row: "01", seat: "09"}
, {area: "02", row: "01", seat: "10"}
, {area: "02", row: "01", seat: "11"}
, {area: "02", row: "01", seat: "12"}
, {area: "02", row: "01", seat: "13"}
, {area: "02", row: "01", seat: "14"}
, {area: "02", row: "01", seat: "15"}
, {area: "02", row: "01", seat: "16"}
, {area: "02", row: "01", seat: "17"}
, {area: "02", row: "01", seat: "18"}
, {area: "02", row: "01", seat: "19"}
, {area: "02", row: "01", seat: "20"}
, {area: "02", row: "01", seat: "21"}
, {area: "02", row: "01", seat: "22"}
, {area: "02", row: "01", seat: "23"}
, {area: "02", row: "01", seat: "24"}
, {area: "02", row: "01", seat: "25"}
, {area: "02", row: "01", seat: "26"}
, {area: "02", row: "01", seat: "27"}
, {area: "02", row: "01", seat: "28"}
, {area: "02", row: "01", seat: "29"}
, {area: "02", row: "01", seat: "30"}
, {area: "02", row: "01", seat: "31"}
, {area: "02", row: "01", seat: "32"}
, {area: "02", row: "01", seat: "33"}
, {area: "02", row: "01", seat: "34"}
, {area: "02", row: "01", seat: "35"}
, {area: "02", row: "02", seat: "01"}
, {area: "02", row: "02", seat: "02"}
, {area: "02", row: "02", seat: "03"}
, {area: "02", row: "02", seat: "04"}
, {area: "02", row: "02", seat: "05"}
, {area: "02", row: "02", seat: "06"}
, {area: "02", row: "02", seat: "07"}
, {area: "02", row: "02", seat: "08"}
, {area: "02", row: "02", seat: "09"}
, {area: "02", row: "02", seat: "10"}
, {area: "02", row: "02", seat: "11"}
, {area: "02", row: "02", seat: "12"}
, {area: "02", row: "02", seat: "13"}
, {area: "02", row: "02", seat: "14"}
, {area: "02", row: "02", seat: "15"}
, {area: "02", row: "02", seat: "16"}
, {area: "02", row: "02", seat: "17"}
, {area: "02", row: "02", seat: "18"}
, {area: "02", row: "02", seat: "19"}
, {area: "02", row: "02", seat: "20"}
, {area: "02", row: "02", seat: "21"}
, {area: "02", row: "02", seat: "22"}
, {area: "02", row: "02", seat: "23"}
, {area: "02", row: "02", seat: "24"}
, {area: "02", row: "02", seat: "25"}
, {area: "02", row: "02", seat: "26"}
, {area: "02", row: "02", seat: "27"}
, {area: "02", row: "02", seat: "28"}
, {area: "02", row: "02", seat: "29"}
, {area: "02", row: "02", seat: "30"}
, {area: "02", row: "02", seat: "31"}
, {area: "02", row: "02", seat: "32"}
, {area: "02", row: "02", seat: "33"}
, {area: "02", row: "02", seat: "34"}
, {area: "02", row: "02", seat: "35"}
, {area: "02", row: "03", seat: "01"}
, {area: "02", row: "03", seat: "02"}
, {area: "02", row: "03", seat: "03"}
, {area: "02", row: "03", seat: "04"}
, {area: "02", row: "03", seat: "05"}
, {area: "02", row: "03", seat: "06"}
, {area: "02", row: "03", seat: "07"}
, {area: "02", row: "03", seat: "08"}
, {area: "02", row: "03", seat: "09"}
, {area: "02", row: "03", seat: "10"}
, {area: "02", row: "03", seat: "11"}
, {area: "02", row: "03", seat: "12"}
, {area: "02", row: "03", seat: "13"}
, {area: "02", row: "03", seat: "14"}
, {area: "02", row: "03", seat: "15"}
, {area: "02", row: "03", seat: "16"}
, {area: "02", row: "03", seat: "17"}
, {area: "02", row: "03", seat: "18"}
, {area: "02", row: "03", seat: "21"}
, {area: "02", row: "03", seat: "22"}
, {area: "02", row: "03", seat: "23"}
, {area: "02", row: "03", seat: "24"}
, {area: "02", row: "03", seat: "25"}
, {area: "02", row: "03", seat: "26"}
, {area: "02", row: "03", seat: "27"}
, {area: "02", row: "03", seat: "28"}
, {area: "02", row: "03", seat: "29"}
, {area: "02", row: "03", seat: "30"}
, {area: "02", row: "03", seat: "31"}
, {area: "02", row: "03", seat: "32"}
, {area: "02", row: "03", seat: "35"}
, {area: "02", row: "04", seat: "01"}
, {area: "02", row: "04", seat: "02"}
, {area: "02", row: "04", seat: "03"}
, {area: "02", row: "04", seat: "04"}
, {area: "02", row: "04", seat: "05"}
, {area: "02", row: "04", seat: "06"}
, {area: "02", row: "04", seat: "07"}
, {area: "02", row: "04", seat: "08"}
, {area: "02", row: "04", seat: "09"}
, {area: "02", row: "04", seat: "10"}
, {area: "02", row: "04", seat: "11"}
, {area: "02", row: "04", seat: "12"}
, {area: "02", row: "04", seat: "13"}
, {area: "02", row: "04", seat: "14"}
, {area: "02", row: "04", seat: "15"}
, {area: "02", row: "04", seat: "16"}
, {area: "02", row: "04", seat: "17"}
, {area: "02", row: "04", seat: "18"}
, {area: "02", row: "04", seat: "19"}
, {area: "02", row: "04", seat: "20"}
, {area: "02", row: "04", seat: "21"}
, {area: "02", row: "04", seat: "22"}
, {area: "02", row: "04", seat: "23"}
, {area: "02", row: "04", seat: "24"}
, {area: "02", row: "04", seat: "27"}
, {area: "02", row: "04", seat: "28"}
, {area: "02", row: "04", seat: "29"}
, {area: "02", row: "04", seat: "30"}
, {area: "02", row: "04", seat: "31"}
, {area: "02", row: "04", seat: "32"}
, {area: "02", row: "04", seat: "33"}
, {area: "02", row: "04", seat: "34"}
, {area: "02", row: "04", seat: "35"}
, {area: "02", row: "05", seat: "01"}
, {area: "02", row: "05", seat: "02"}
, {area: "02", row: "05", seat: "03"}
, {area: "02", row: "05", seat: "04"}
, {area: "02", row: "05", seat: "05"}
, {area: "02", row: "05", seat: "06"}
, {area: "02", row: "05", seat: "07"}
, {area: "02", row: "05", seat: "08"}
, {area: "02", row: "05", seat: "09"}
, {area: "02", row: "05", seat: "10"}
, {area: "02", row: "05", seat: "11"}
, {area: "02", row: "05", seat: "12"}
, {area: "02", row: "05", seat: "13"}
, {area: "02", row: "05", seat: "14"}
, {area: "02", row: "05", seat: "15"}
, {area: "02", row: "05", seat: "16"}
, {area: "02", row: "05", seat: "19"}
, {area: "02", row: "05", seat: "20"}
, {area: "02", row: "05", seat: "21"}
, {area: "02", row: "05", seat: "22"}
, {area: "02", row: "05", seat: "23"}
, {area: "02", row: "05", seat: "24"}
, {area: "02", row: "05", seat: "25"}
, {area: "02", row: "05", seat: "26"}
, {area: "02", row: "05", seat: "27"}
, {area: "02", row: "05", seat: "28"}
, {area: "02", row: "05", seat: "29"}
, {area: "02", row: "05", seat: "30"}
, {area: "02", row: "05", seat: "33"}
, {area: "02", row: "05", seat: "34"}
, {area: "02", row: "05", seat: "35"}
, {area: "02", row: "06", seat: "01"}
, {area: "02", row: "06", seat: "02"}
, {area: "02", row: "06", seat: "03"}
, {area: "02", row: "06", seat: "04"}
, {area: "02", row: "06", seat: "05"}
, {area: "02", row: "06", seat: "06"}
, {area: "02", row: "06", seat: "07"}
, {area: "02", row: "06", seat: "08"}
, {area: "02", row: "06", seat: "09"}
, {area: "02", row: "06", seat: "10"}
, {area: "02", row: "06", seat: "11"}
, {area: "02", row: "06", seat: "12"}
, {area: "02", row: "06", seat: "13"}
, {area: "02", row: "06", seat: "14"}
, {area: "02", row: "06", seat: "15"}
, {area: "02", row: "06", seat: "16"}
, {area: "02", row: "06", seat: "17"}
, {area: "02", row: "06", seat: "18"}
, {area: "02", row: "06", seat: "19"}
, {area: "02", row: "06", seat: "20"}
, {area: "02", row: "06", seat: "21"}
, {area: "02", row: "06", seat: "22"}
, {area: "02", row: "06", seat: "25"}
, {area: "02", row: "06", seat: "26"}
, {area: "02", row: "06", seat: "27"}
, {area: "02", row: "06", seat: "28"}
, {area: "02", row: "06", seat: "29"}
, {area: "02", row: "06", seat: "30"}
, {area: "02", row: "06", seat: "31"}
, {area: "02", row: "06", seat: "32"}
, {area: "02", row: "06", seat: "33"}
, {area: "02", row: "06", seat: "34"}
, {area: "02", row: "06", seat: "35"}
, {area: "02", row: "07", seat: "01"}
, {area: "02", row: "07", seat: "02"}
, {area: "02", row: "07", seat: "03"}
, {area: "02", row: "07", seat: "04"}
, {area: "02", row: "07", seat: "05"}
, {area: "02", row: "07", seat: "06"}
, {area: "02", row: "07", seat: "07"}
, {area: "02", row: "07", seat: "08"}
, {area: "02", row: "07", seat: "09"}
, {area: "02", row: "07", seat: "10"}
, {area: "02", row: "07", seat: "11"}
, {area: "02", row: "07", seat: "12"}
, {area: "02", row: "07", seat: "13"}
, {area: "02", row: "07", seat: "14"}
, {area: "02", row: "07", seat: "17"}
, {area: "02", row: "07", seat: "18"}
, {area: "02", row: "07", seat: "19"}
, {area: "02", row: "07", seat: "20"}
, {area: "02", row: "07", seat: "21"}
, {area: "02", row: "07", seat: "22"}
, {area: "02", row: "07", seat: "23"}
, {area: "02", row: "07", seat: "24"}
, {area: "02", row: "07", seat: "25"}
, {area: "02", row: "07", seat: "26"}
, {area: "02", row: "07", seat: "27"}
, {area: "02", row: "07", seat: "28"}
, {area: "02", row: "07", seat: "31"}
, {area: "02", row: "07", seat: "32"}
, {area: "02", row: "07", seat: "33"}
, {area: "02", row: "07", seat: "34"}
, {area: "02", row: "07", seat: "35"}
, {area: "02", row: "08", seat: "01"}
, {area: "02", row: "08", seat: "02"}
, {area: "02", row: "08", seat: "03"}
, {area: "02", row: "08", seat: "04"}
, {area: "02", row: "08", seat: "07"}
, {area: "02", row: "08", seat: "08"}
, {area: "02", row: "08", seat: "09"}
, {area: "02", row: "08", seat: "10"}
, {area: "02", row: "08", seat: "11"}
, {area: "02", row: "08", seat: "12"}
, {area: "02", row: "08", seat: "13"}
, {area: "02", row: "08", seat: "14"}
, {area: "02", row: "08", seat: "15"}
, {area: "02", row: "08", seat: "16"}
, {area: "02", row: "08", seat: "17"}
, {area: "02", row: "08", seat: "18"}
, {area: "02", row: "08", seat: "19"}
, {area: "02", row: "08", seat: "20"}
, {area: "02", row: "08", seat: "23"}
, {area: "02", row: "08", seat: "24"}
, {area: "02", row: "08", seat: "25"}
, {area: "02", row: "08", seat: "26"}
, {area: "02", row: "08", seat: "27"}
, {area: "02", row: "08", seat: "28"}
, {area: "02", row: "08", seat: "29"}
, {area: "02", row: "08", seat: "30"}
, {area: "02", row: "08", seat: "31"}
, {area: "02", row: "08", seat: "32"}
, {area: "02", row: "08", seat: "33"}
, {area: "02", row: "08", seat: "34"}
, {area: "02", row: "08", seat: "35"}
, {area: "02", row: "09", seat: "01"}
, {area: "02", row: "09", seat: "02"}
, {area: "02", row: "09", seat: "03"}
, {area: "02", row: "09", seat: "04"}
, {area: "02", row: "09", seat: "05"}
, {area: "02", row: "09", seat: "06"}
, {area: "02", row: "09", seat: "07"}
, {area: "02", row: "09", seat: "08"}
, {area: "02", row: "09", seat: "09"}
, {area: "02", row: "09", seat: "10"}
, {area: "02", row: "09", seat: "11"}
, {area: "02", row: "09", seat: "12"}
, {area: "02", row: "09", seat: "15"}
, {area: "02", row: "09", seat: "16"}
, {area: "02", row: "09", seat: "17"}
, {area: "02", row: "09", seat: "18"}
, {area: "02", row: "09", seat: "19"}
, {area: "02", row: "09", seat: "20"}
, {area: "02", row: "09", seat: "21"}
, {area: "02", row: "09", seat: "22"}
, {area: "02", row: "09", seat: "23"}
, {area: "02", row: "09", seat: "24"}
, {area: "02", row: "09", seat: "25"}
, {area: "02", row: "09", seat: "26"}
, {area: "02", row: "09", seat: "29"}
, {area: "02", row: "09", seat: "30"}
, {area: "02", row: "09", seat: "31"}
, {area: "02", row: "09", seat: "32"}
, {area: "02", row: "09", seat: "33"}
, {area: "02", row: "09", seat: "34"}
, {area: "02", row: "09", seat: "35"}
, {area: "02", row: "10", seat: "01"}
, {area: "02", row: "10", seat: "02"}
, {area: "02", row: "10", seat: "03"}
, {area: "02", row: "10", seat: "04"}
, {area: "02", row: "10", seat: "07"}
, {area: "02", row: "10", seat: "08"}
, {area: "02", row: "10", seat: "09"}
, {area: "02", row: "10", seat: "10"}
, {area: "02", row: "10", seat: "11"}
, {area: "02", row: "10", seat: "12"}
, {area: "02", row: "10", seat: "13"}
, {area: "02", row: "10", seat: "14"}
, {area: "02", row: "10", seat: "15"}
, {area: "02", row: "10", seat: "16"}
, {area: "02", row: "10", seat: "17"}
, {area: "02", row: "10", seat: "18"}
, {area: "02", row: "10", seat: "21"}
, {area: "02", row: "10", seat: "22"}
, {area: "02", row: "10", seat: "23"}
, {area: "02", row: "10", seat: "24"}
, {area: "02", row: "10", seat: "25"}
, {area: "02", row: "10", seat: "26"}
, {area: "02", row: "10", seat: "27"}
, {area: "02", row: "10", seat: "28"}
, {area: "02", row: "10", seat: "29"}
, {area: "02", row: "10", seat: "30"}
, {area: "02", row: "10", seat: "31"}
, {area: "02", row: "10", seat: "32"}
, {area: "02", row: "10", seat: "35"}
, {area: "02", row: "11", seat: "01"}
, {area: "02", row: "11", seat: "02"}
, {area: "02", row: "11", seat: "03"}
, {area: "02", row: "11", seat: "04"}
, {area: "02", row: "11", seat: "05"}
, {area: "02", row: "11", seat: "06"}
, {area: "02", row: "11", seat: "07"}
, {area: "02", row: "11", seat: "08"}
, {area: "02", row: "11", seat: "09"}
, {area: "02", row: "11", seat: "10"}
, {area: "02", row: "11", seat: "13"}
, {area: "02", row: "11", seat: "14"}
, {area: "02", row: "11", seat: "15"}
, {area: "02", row: "11", seat: "16"}
, {area: "02", row: "11", seat: "17"}
, {area: "02", row: "11", seat: "18"}
, {area: "02", row: "11", seat: "19"}
, {area: "02", row: "11", seat: "20"}
, {area: "02", row: "11", seat: "21"}
, {area: "02", row: "11", seat: "22"}
, {area: "02", row: "11", seat: "23"}
, {area: "02", row: "11", seat: "24"}
, {area: "02", row: "11", seat: "27"}
, {area: "02", row: "11", seat: "28"}
, {area: "02", row: "11", seat: "29"}
, {area: "02", row: "11", seat: "30"}
, {area: "02", row: "11", seat: "31"}
, {area: "02", row: "11", seat: "32"}
, {area: "02", row: "11", seat: "33"}
, {area: "02", row: "11", seat: "34"}
, {area: "02", row: "11", seat: "35"}
, {area: "02", row: "12", seat: "01"}
, {area: "02", row: "12", seat: "02"}
, {area: "02", row: "12", seat: "05"}
, {area: "02", row: "12", seat: "06"}
, {area: "02", row: "12", seat: "07"}
, {area: "02", row: "12", seat: "08"}
, {area: "02", row: "12", seat: "09"}
, {area: "02", row: "12", seat: "10"}
, {area: "02", row: "12", seat: "11"}
, {area: "02", row: "12", seat: "12"}
, {area: "02", row: "12", seat: "13"}
, {area: "02", row: "12", seat: "14"}
, {area: "02", row: "12", seat: "15"}
, {area: "02", row: "12", seat: "16"}
, {area: "02", row: "12", seat: "19"}
, {area: "02", row: "12", seat: "20"}
, {area: "02", row: "12", seat: "21"}
, {area: "02", row: "12", seat: "22"}
, {area: "02", row: "12", seat: "23"}
, {area: "02", row: "12", seat: "24"}
, {area: "02", row: "12", seat: "25"}
, {area: "02", row: "12", seat: "26"}
, {area: "02", row: "12", seat: "27"}
, {area: "02", row: "12", seat: "28"}
, {area: "02", row: "12", seat: "29"}
, {area: "02", row: "12", seat: "30"}
, {area: "02", row: "12", seat: "33"}
, {area: "02", row: "12", seat: "34"}
, {area: "02", row: "12", seat: "35"}
, {area: "02", row: "13", seat: "01"}
, {area: "02", row: "13", seat: "02"}
, {area: "02", row: "13", seat: "03"}
, {area: "02", row: "13", seat: "04"}
, {area: "02", row: "13", seat: "05"}
, {area: "02", row: "13", seat: "06"}
, {area: "02", row: "13", seat: "07"}
, {area: "02", row: "13", seat: "08"}
, {area: "02", row: "13", seat: "11"}
, {area: "02", row: "13", seat: "12"}
, {area: "02", row: "13", seat: "13"}
, {area: "02", row: "13", seat: "14"}
, {area: "02", row: "13", seat: "15"}
, {area: "02", row: "13", seat: "16"}
, {area: "02", row: "13", seat: "17"}
, {area: "02", row: "13", seat: "18"}
, {area: "02", row: "13", seat: "19"}
, {area: "02", row: "13", seat: "20"}
, {area: "02", row: "13", seat: "21"}
, {area: "02", row: "13", seat: "22"}
, {area: "02", row: "13", seat: "25"}
, {area: "02", row: "13", seat: "26"}
, {area: "02", row: "13", seat: "27"}
, {area: "02", row: "13", seat: "28"}
, {area: "02", row: "13", seat: "29"}
, {area: "02", row: "13", seat: "30"}
, {area: "02", row: "13", seat: "31"}
, {area: "02", row: "13", seat: "32"}
, {area: "02", row: "13", seat: "33"}
, {area: "02", row: "13", seat: "34"}
, {area: "02", row: "13", seat: "35"}
, {area: "02", row: "14", seat: "03"}
, {area: "02", row: "14", seat: "04"}
, {area: "02", row: "14", seat: "05"}
, {area: "02", row: "14", seat: "06"}
, {area: "02", row: "14", seat: "07"}
, {area: "02", row: "14", seat: "08"}
, {area: "02", row: "14", seat: "09"}
, {area: "02", row: "14", seat: "10"}
, {area: "02", row: "14", seat: "11"}
, {area: "02", row: "14", seat: "12"}
, {area: "02", row: "14", seat: "13"}
, {area: "02", row: "14", seat: "14"}
, {area: "02", row: "14", seat: "17"}
, {area: "02", row: "14", seat: "18"}
, {area: "02", row: "14", seat: "19"}
, {area: "02", row: "14", seat: "20"}
, {area: "02", row: "14", seat: "21"}
, {area: "02", row: "14", seat: "22"}
, {area: "02", row: "14", seat: "23"}
, {area: "02", row: "14", seat: "24"}
, {area: "02", row: "14", seat: "25"}
, {area: "02", row: "14", seat: "26"}
, {area: "02", row: "14", seat: "27"}
, {area: "02", row: "14", seat: "28"}
, {area: "02", row: "14", seat: "31"}
, {area: "02", row: "14", seat: "32"}
, {area: "02", row: "14", seat: "33"}
, {area: "02", row: "14", seat: "34"}
, {area: "02", row: "14", seat: "35"}
, {area: "02", row: "15", seat: "01"}
, {area: "02", row: "15", seat: "02"}
, {area: "02", row: "15", seat: "03"}
, {area: "02", row: "15", seat: "04"}
, {area: "02", row: "15", seat: "05"}
, {area: "02", row: "15", seat: "06"}
, {area: "02", row: "15", seat: "09"}
, {area: "02", row: "15", seat: "10"}
, {area: "02", row: "15", seat: "11"}
, {area: "02", row: "15", seat: "12"}
, {area: "02", row: "15", seat: "13"}
, {area: "02", row: "15", seat: "14"}
, {area: "02", row: "15", seat: "15"}
, {area: "02", row: "15", seat: "16"}
, {area: "02", row: "15", seat: "17"}
, {area: "02", row: "15", seat: "18"}
, {area: "02", row: "15", seat: "19"}
, {area: "02", row: "15", seat: "20"}
, {area: "02", row: "16", seat: "01"}
, {area: "02", row: "16", seat: "02"}
, {area: "02", row: "16", seat: "03"}
, {area: "02", row: "16", seat: "04"}
, {area: "02", row: "16", seat: "05"}
, {area: "02", row: "16", seat: "06"}
, {area: "02", row: "16", seat: "07"}
, {area: "02", row: "16", seat: "08"}
, {area: "02", row: "16", seat: "09"}
, {area: "02", row: "16", seat: "10"}
, {area: "02", row: "16", seat: "11"}
, {area: "02", row: "16", seat: "12"}
, {area: "02", row: "16", seat: "15"}
, {area: "02", row: "16", seat: "16"}
, {area: "02", row: "16", seat: "17"}
, {area: "02", row: "16", seat: "18"}
, {area: "02", row: "16", seat: "19"}
, {area: "02", row: "16", seat: "20"}
];
let tempArr: number[] = []
let lucky: seatInfo[] = []
for (let idx in seats_list){
tempArr.push(parseInt(idx))
}
for (let a = 0; a < 5; a++){
let ran = Math.random()
lucky.push(seats_list[tempArr[Math.floor(ran*tempArr.length)]])
}
return {
lucky
}
}
Ghttp.ts
import axios, { AxiosResponse, AxiosError, AxiosRequestConfig } from 'axios';
import { ElNotification } from 'element-plus'
interface postData {[key: string]: any}
interface HttpFnGet {<T = any>(url: string, config?: AxiosRequestConfig): Promise<T>}
interface HttpFnPost {<T = any>(url: string, data: postData, config?: AxiosRequestConfig): Promise<T>}
const baseURL: string = process.env.NODE_ENV === 'development' ? '/api' : '';
type GHttpMethods = {
get: HttpFnGet,
post: HttpFnPost
}
const GHTTP: GHttpMethods = {
get: async (url: string, options: AxiosRequestConfig = {}) => {
const { ...config } = options
try {
const response = await axios.get(baseURL + url, config);
return response ? response.data : null;
} catch (error) {
ElNotification({
title: '错误',
showClose: true,
message: '网络错误',
type: 'error'
});
}
},
post: async (url: string, data: postData, options: AxiosRequestConfig = {}) => {
const { ...config } = options
try {
const response = await axios.post(baseURL + url, data, config);
return response ? response.data : null;
} catch (error) {
console.log(error)
ElNotification({
title: '错误',
showClose: true,
message: '网络错误',
type: 'error'
});
}
}
}
export default GHTTP
GSetLocalStorage.ts
export default function(method: string, data: storageData){
let data_str = JSON.stringify(data);
localStorage.setItem(method, data_str);
}