
const load = [
    'load/clock-second.png',
    'load/clock-minute.png',
    'load/clock-hour.png',
    'load/clock-circle.png',
    'load/clock-bg.png',
    'load/bg.jpg',
]

const page = [

    'prize/tips.png',
    'prize/star.png',
    'prize/cls-btn.png',
    'prize/copy-btn.png',
    'prize/draw-box.png',
    'prize/draw-text.png',
    'prize/light.png',
    'prize/myPrize-box.png',
    'prize/no-prize.png',
    'music-on.png',
    'music-off.png',
    'index/title.png',
    'index/start-btn.png',
    'index/rule-btn.png',
    'index/prize-btn.png',
    'index/bg.jpg',
    'qa/showResult-btn.png',
    'qa/question.png',
    'qa/prev-btn.png',
    'qa/answer-box-2.png',
    'qa/answer-box-1.png',
    'result/theme-4.png',
    'result/theme-3.png',
    'result/theme-2.png',
    'result/theme-1.png',
    'result/share-tips.svg',
    'result/select-tips.png',
    'result/product-1.png',
    'result/select-arrow.png',
    'result/poster-bg-4.jpg',
    'result/poster-bg-3.jpg',
    'result/poster-bg-2.jpg',
    'result/poster-bg-1.jpg',
    'result/go-share-btn.png',
    'result/go-draw-btn.png',
    'result/create-btn.png',
    'result/bg-4.jpg',
    'result/cls-btn.png',
    'result/bg-2.jpg',
    'result/bg-3.jpg',
    'result/bg-1.jpg',
    'rule/rule-box.png',
    'rule/cls-btn.png',
    'rule/caidai.png',
    'rule/arrow.png',
    
]

// 处理为vite引入图片格式
function imgCreate(url, img) {
    let i = new URL(`../assets/images/${url}`, import.meta.url).href
    img.push(i)
}


const loadImg = []
const pageImg = []

load.forEach(element => {
    imgCreate(element, loadImg)
});

page.forEach(element => {
    imgCreate(element, pageImg)
});

export { loadImg, pageImg }