-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
114 lines (112 loc) · 4.53 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>收集品計算 - Destiny Child</title>
<link rel="Shortcut Icon" type="image/x-icon" href="images/favicon.ico" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.2/css/bootstrap.min.css"
/>
<link
href="https://fonts.googleapis.com/earlyaccess/mplus1p.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="./style/style.css" />
</head>
<body>
<div id="app" class="container">
<template v-if="setting">
<h1>
<a :href="setting.link" target="_blank"> {{ setting.title }} </a>
</h1>
<div class="row">
<div class="col-12 col-xl-4">
<div class="row">
<div class="col-12 col-lg-7 col-xl-12">
<div class="banner" :class="{enabled: dayLeft >= 0}">
<img :src="setting.banner" :alt="setting.title" />
<a class="btn btn-prev" @click="changeShowIndex(-1)"> <span></span></a>
<a class="btn btn-next" @click="changeShowIndex(1)"><span></span></a>
<hr class="d-none" />
</div>
</div>
<div class="col-12 col-lg-5 col-xl-12">
<hr class="d-block d-lg-none d-xl-block" />
<div class="row">
<div class="col-12 col-sm-6 col-lg-12">
<strong>開催期間</strong> <br class="d-none d-sm-block" />
{{ setting.eventStart }} ~ {{ setting.eventEnd }}
</div>
<div class="col-12 col-sm-6 col-lg-12">
<hr class="d-block d-sm-none d-lg-block " />
<strong>BOOST</strong>
<br class="d-none d-sm-block" />
<select v-model="boost">
<option :value="value" v-for="value in setting.boost"
>+{{ value - 100 }}%</option
>
</select>
</div>
<div class="col-12 col-md-12" v-if="setting.reward">
<hr class="d-xl-block" />
<div class="row">
<p class="col-4 col-lg-5 col-xl-12">
<strong>期望值(1回)</strong> <br class="d-md-none" />{{
expectedReward(1)
}}
</p>
<p class="col-4 col-lg-5 col-xl-12">
<strong>期望值(1日)</strong> <br class="d-md-none" />{{
expectedReward(setting.freeReset)
}}
</p>
<p class="col-4 col-lg-5 col-xl-12">
<strong>期望值({{ eventDays }}日)</strong>
<br class="d-md-none" />{{
expectedReward(setting.freeReset * eventDays)
}}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-12 col-xl-8">
<hr class="d-lg-block d-xl-none" />
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>目標值</th>
<th v-for="target in setting.rewardTarget">
{{ numberWithComma(target) }}
</th>
</tr>
</thead>
<tbody>
<tr
:class="{'table-focus': isToday(day)}"
v-for="(day, index) in days"
>
<td>{{ day }}</td>
<td v-for="target in setting.rewardTarget">
{{ minReward(index + 1, target) }}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<hr />
</template>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.16/vue.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-router/3.0.1/vue-router.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vuex/3.0.1/vuex.min.js"></script>
<script src="./script/script.js"></script>
</body>
</html>