-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
135 lines (131 loc) · 6.82 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html>
<head>
<?!= include('main.css'); ?>
<script>id = "<?!= id?>"</script>
</head>
<body>
<div class="main" id="main">
<div class="header">
<div class="logo"> <span>K</span><span>E</span><span>B</span><span>U</span><span>K</span><span>E</span></div>
</div>
<div class="container">
<div class="menu">
<div class="out-box">
<div class="in-box">M E N U</div>
</div>
<div class="spline"></div>
<div class="drink-container">
<div class="drink" v-for="drink in drinks" @click="selectDrink(drink)">
<div class="top">
<div class="title">{{drink.name}}</div>
<div class="drink-spline"></div>
<div class="size">
<div class="M" v-if="drink.small != null"> <span>中</span><span class="sbc">:</span><span>{{drink.small}}</span></div><span class="sbc slash">/</span>
<div class="L" v-if="drink.large != null"> <span>大</span><span class="sbc">:</span><span>{{drink.large}}</span></div>
</div>
</div>
<div class="description">{{drink.description}}</div>
</div>
</div>
<div class="spline"></div>
</div>
<div class="order">
<div class="order-title">
<div class="out-box">
<div class="in-box">O R D E R</div>
</div>
</div>
<div class="spline"></div>
<div class="order-info">
<div class="name">
<div class="label-name">姓 名 :</div>
<input class="text input-name" v-model="name"/>
</div>
<div class="order-drink">
<div class="label-name">飲 品 :</div>
<div class="ordor-drink-name">{{preview.name}}</div>
</div>
<div class="size">
<div class="label-name">大 小 :</div>
<input v-if="preview.small != undefined" type="radio" id="small" name="size" value="small" v-model="size"/>
<label v-if="preview.small != undefined" for="small">中 : {{preview.small}}</label>
<input v-if="preview.large != undefined" type="radio" id="large" name="size" value="large" v-model="size"/>
<label v-if="preview.large != undefined" for="large">大 : {{preview.large}} </label>
</div>
<div class="add">
<div class="label-name">配 料 :</div><span v-for="item in preview.add">
<input type="checkbox" :id="item.name" :value="item" v-model="add"/>
<label :for="item.name">{{item.name}}</label></span>
</div>
<div class="price">
<div class="label-name">價 格 :</div><span>{{price}}</span>
</div>
<div class="info">
<div class="label-name">備 註 :</div>
<input class="text input-exinfo" v-model="exinfo"/>
</div>
</div>
<div class="is">
<div class="ice adjustment-container">
<div class="title">冰度</div>
<div class="cup">
<div class="cup-top">
<div class="cup-layer" style="color:#ddd;" @click="iceid = 5">多 冰</div>
<div class="cup-layer" style="color:#ddd;" @click="iceid = 4">正 常 冰</div>
<div class="cup-layer" style="color:#ddd;" @click="iceid = 3">少 冰</div>
<div class="cup-layer" style="color:#ddd;" @click="iceid = 2">微 冰</div>
<div class="cup-layer" style="color:#003c4f;" @click="iceid = 1">去 冰</div>
<div class="cup-layer" style="color:#003c4f;" @click="iceid = 0">完 全 去 冰</div>
</div>
<div class="cup-mask"></div>
<div class="cup-back">
<div class="cup-layer" style="background-color:rgba(0,0,0,0);" v-bind:class="{ seleted: iceid>=5 }"></div>
<div class="cup-layer" style="background-color:#0c3956;" v-bind:class="{ seleted: iceid>=4 }"></div>
<div class="cup-layer" style="background-color:#36556a;" v-bind:class="{ seleted: iceid>=3 }"></div>
<div class="cup-layer" style="background-color:#6e738f;" v-bind:class="{ seleted: iceid>=2 }"></div>
<div class="cup-layer" style="background-color:#9ca0a9;" v-bind:class="{ seleted: iceid>=1 }"></div>
<div class="cup-layer" style="background-color:#cbccd3;" v-bind:class="{ seleted: iceid>=0 }"></div>
</div>
</div>
</div>
<div class="surgar adjustment-container">
<div class="title">甜度</div>
<div class="cup">
<div class="cup-top">
<div class="cup-layer" style="color:#ddd;" @click="surgarid = 5">多 糖</div>
<div class="cup-layer" style="color:#ddd;" @click="surgarid = 4">正 常 糖</div>
<div class="cup-layer" style="color:#ddd;" @click="surgarid = 3">少 糖</div>
<div class="cup-layer" style="color:#ddd;" @click="surgarid = 2">半 糖</div>
<div class="cup-layer" style="color:#003c4f;" @click="surgarid = 1">微 糖</div>
<div class="cup-layer" style="color:#003c4f;" @click="surgarid = 0">無 糖</div>
</div>
<div class="cup-mask"></div>
<div class="cup-back">
<div class="cup-layer" style="background-color:rgba(0,0,0,0);" v-bind:class="{ seleted: surgarid>=5 }"></div>
<div class="cup-layer" style="background-color:#0c3956;" v-bind:class="{ seleted: surgarid>=4 }"></div>
<div class="cup-layer" style="background-color:#36556a;" v-bind:class="{ seleted: surgarid>=3 }"></div>
<div class="cup-layer" style="background-color:#6e738f;" v-bind:class="{ seleted: surgarid>=2 }"></div>
<div class="cup-layer" style="background-color:#9ca0a9;" v-bind:class="{ seleted: surgarid>=1 }"></div>
<div class="cup-layer" style="background-color:#cbccd3;" v-bind:class="{ seleted: surgarid>=0 }"></div>
</div>
</div>
</div>
<div class="order-floor">
<button @click="submit()">提 交</button><br/><span>{{message}}</span>
</div>
</div>
</div>
<div class="other-info">
<div class="Share"> <span @click="copyLink()" style="cursor: pointer;">複 製 此 訂 單 網 址</span>
<input class="urlink" value="<?!=url?>" type="text" id="link"/>
</div>
<div class="check-sheet"> <a href="<?!=sheeturl?>" target="_blank">查 看 目 前 訂 購</a></div>
<div class="new"><a href="<?!=rootUrl?>" target="_blank">創 建 新 的 訂 單</a></div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.min.js"></script>
</body>
<?!= include('main.js'); ?>
</html>