This commit is contained in:
Dragon
2023-09-25 22:14:31 +08:00
parent d6684a879b
commit b9c3d5dd4e
11 changed files with 235 additions and 0 deletions

View File

@@ -0,0 +1,84 @@
body,
html {
width: 100%;
background: #CE3346;
}
.header {
width: 10rem;
height: 6.66667rem;
position: relative;
margin: 0 auto 0;
background: url(../images/header.png) no-repeat;
background-size: 100% 100%;
}
.header .headerText {
width: 7.64rem;
height: 2.98667rem;
position: absolute;
top: 0rem;
left: 50%;
transform: translateX(-50%);
}
.header .rule_icon {
width: 1.57333rem;
height: 0.53333rem;
position: absolute;
left: 0;
top: 1.18667rem;
}
.header .record_icon {
width: 1.57333rem;
height: 0.53333rem;
position: absolute;
left: 0;
top: 2.04rem;
}
.header .rank_icon {
width: 1.61333rem;
height: 1.66667rem;
position: absolute;
right: 0.25333rem;
top: 2.89333rem;
}
.header .headerH3 {
width: 4.37333rem;
height: 0.94667rem;
line-height: 0.86667rem;
background: url(../images/headerH3.png) no-repeat;
background-size: 100% 100%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 2.70667rem;
color: #FADDB4;
font-size: 0.29333rem;
text-align: center;
}
.box {
width: 9.58667rem;
height: 9.90667rem;
border-radius: 0.53333rem;
border: 0.16rem solid #FBC577;
box-sizing: border-box;
background: #8B4621;
margin: 0 auto 0;
position: relative;
}
.box .boxTitle {
width: 5.30667rem;
height: 0.92rem;
background: url(../images/boxTitle.png) no-repeat;
background-size: 100% 100%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: -0.10667rem;
}

View File

@@ -0,0 +1,88 @@
@function px2rem($px) {
@return $px / 75+rem;
}
body,
html {
width: 100%;
background: #CE3346;
}
.header {
width: px2rem(750);
height: px2rem(500);
position: relative;
margin: 0 auto 0;
background: url(../images/header.png) no-repeat;
background-size: 100% 100%;
.headerText {
width: px2rem(573);
height: px2rem(224);
position: absolute;
top: px2rem(0);
left: 50%;
transform: translateX(-50%);
}
.rule_icon {
width: px2rem(118);
height: px2rem(40);
position: absolute;
left: 0;
top: px2rem(89);
}
.record_icon {
width: px2rem(118);
height: px2rem(40);
position: absolute;
left: 0;
top: px2rem(153);
}
.rank_icon {
width: px2rem(121);
height: px2rem(125);
position: absolute;
right: px2rem(19);
top: px2rem(217);
}
.headerH3 {
width: px2rem(328);
height: px2rem(71);
line-height: px2rem(65);
background: url(../images/headerH3.png) no-repeat;
background-size: 100% 100%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(203);
color: #FADDB4;
font-size: px2rem(22);
text-align: center;
}
}
.box {
width: px2rem(719);
height: px2rem(743);
border-radius: px2rem(40);
border: px2rem(12) solid #FBC577;
box-sizing: border-box;
background: #8B4621;
margin: 0 auto 0;
position: relative;
.boxTitle {
width: px2rem(398);
height: px2rem(69);
background: url(../images/boxTitle.png) no-repeat;
background-size: 100% 100%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(-8);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 981 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>星级厨房</title>
<link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
<!-- 头部 -->
<div class="header">
<img src="./images/headerText.png" alt="" class="headerText">
<img src="./images/rule_icon.png" alt="" class="rule_icon">
<img src="./images/record_icon.png" alt="" class="record_icon">
<img src="./images/rank_icon.png" alt="" class="rank_icon">
<div class="headerH3">選擇鉆石 => 選擇圖標</div>
</div>
<!-- 食材大盒子 -->
<div class="box">
<div class="boxTitle"></div>
</div>
</body>
</html>
<script src="../../common/js/flexible.js"></script>
<script src="../../common/js/jquery-3.2.1.min.js"></script>
<script src="../../common/js/common2.js"></script>
<script src="../../common/js/layer.js"></script>
<script src="../../common/js/vconsole.min.js"></script>
<script src="../../common/js/svga.min.js"></script>
<script src="./js/index.js"></script>

View File

@@ -0,0 +1,28 @@
let urlPrefix = getUrlPrefix()
let browser = checkVersion()
let env = EnvCheck();
if (env == 'test') {
new VConsole();
}
// 封裝layer消息提醒框
let layerIndex
const showLoading = (content = '加載中...') => {
layer.open({
type: 2,
shadeClose: false,
content,
success (e) {
layerIndex = $(e).attr('index')
}
})
}
const hideLoading = (index) => {
layer.close(index)
}
const toastMsg = (content = '操作完成', time = 2) => {
layer.open({
content,
time,
skin: 'msg'
})
}