const load = ["load/icon.png", "load/bg.jpg"];

const page = [
  "index/logo.png",
  "index/rule-btn.png",
  "index/sub-title.png",
  "index/cloud-2.png",
  "index/prize-btn.png",
  "index/cloud-1.png",
  "index/bg.jpg",
  "index/start-btn.png",
  "index/tree-1.png",
  "index/title.png",
  "index/island.png",
  
  "prize/copy-btn2.png",
  "prize/copy-btn.png",
  "prize/cls-btn.png",
  "prize/got-btn.png",
  "prize/no-get-btn.png",
  "prize/draw-text.png",
  "prize/tips.png",
  "prize/no-prize.png",
  "prize/lucky-bag.png",
  "prize/star.png",
  "prize/light.png",
  "prize/prize-box.png",
  "prize/myPrize-box.png",
  "prize/draw-box.png",

  "qa/bubble-1.png",
  "qa/analysis-icon.png",
  "qa/create-btn.png",
  "qa/next-btn.png",
  "qa/incorrect.png",
  "qa/correct.png",
  "qa/question-box.png",
  "qa/tree.png",
  "qa/bg.jpg",

  "result/cls-btn.png",
  "result/poster-text.png",
  "result/go-draw-btn.png",
  "result/go-share-btn.png",
  "result/text-1.png",
  "result/title.png",
  "result/create-btn.png",
  "result/text-3.png",
  "result/text-2.png",
  "result/r-bg-2.jpg",
  "result/r-bg-1.jpg",
  "result/r-bg-3.jpg",
  "result/poster-1.jpg",
  "result/poster-3.jpg",
  "result/poster-2.jpg",

  "rule/cls-btn.png",
  "rule/arrow.png",
  "rule/rule-box.png",
  "rule/icon.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 };
