-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfish.html
256 lines (253 loc) · 8.54 KB
/
fish.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
</head>
<body>
<div id="app">
<v-app>
<v-content>
<v-container>
<v-row>
<v-btn
color="primary"
dark
@click.stop="dialog = true"
>
주문 이미지
</v-btn>
</v-row>
<v-row>
<v-dialog
v-model="dialog"
max-width="1000"
>
<v-img src="https://github.com/KangHyunMo/fish-test/blob/master/cap1.PNG"></v-img>
<v-img src="https://github.com/KangHyunMo/fish-test/blob/master/cap2.PNG"></v-img>
</v-dialog>
<v-tabs v-model="tabs">
<v-tab v-for="(people,idx) in peoples" :key="idx">
{{ people.name }}
</v-tab>
</v-tabs>
</v-row>
<v-row>
<v-col cols="12" v-for="item in peoples[tabs].items" :key="item.idx">
<v-card
color="white"
dense
small
>
<v-row v-if="item.idx == 0">
<v-col clos="12" style="background-color: #5c9edf; color: #fff;" >
{{ getSum (tabs)}} 원
</v-col>
</v-row>
<div class="d-flex flex-no-wrap justify-space-between">
<div>
<v-card-title class="headline" style="font-size:14px !important;">{{ fishs[item.idx].name }}</v-card-title>
<v-card-subtitle>{{ fishs[item.idx].price }} 원 </v-card-subtitle>
<v-card-subtitle>{{ item.cnt }} 개 </v-card-subtitle>
<v-card-subtitle>{{ item.cnt * fishs[item.idx].price }} 원 </v-card-subtitle>
</div>
<div>
<v-avatar
class="ma-3"
size="110"
tile
>
<v-img :src="fishs[item.idx].img"></v-img>
</v-avatar>
</div>
</div>
</v-card>
</v-col>
</v-row>
</v-container>
</v-content>
</v-app>
</div>
<script>
new Vue({
el: '#app',
vuetify: new Vuetify(),
data: {
tabs: 0,
dialog: false,
peoples: [
{
name: '실장님',
items: [
{idx:0, cnt:2},
{idx:1, cnt:1},
{idx:3, cnt:1},
{idx:4, cnt:1},
{idx:6, cnt:2},
{idx:10, cnt:2},
{idx:11, cnt:2},
{idx:12, cnt:2},
{idx:13, cnt:1},
{idx:14, cnt:2},
]
},
{
name: '부장님',
items: [
{idx:0, cnt:2},
{idx:1, cnt:1},
{idx:3, cnt:1},
{idx:4, cnt:1},
{idx:6, cnt:2},
{idx:10, cnt:2},
{idx:11, cnt:2},
{idx:12, cnt:2},
{idx:13, cnt:1},
{idx:14, cnt:2},
]
},
{
name: '백대리님',
items: [
{idx:0, cnt:2},
{idx:4, cnt:1},
{idx:6, cnt:2},
{idx:7, cnt:1},
{idx:8, cnt:1},
{idx:9, cnt:1},
{idx:10, cnt:2},
{idx:11, cnt:2},
{idx:12, cnt:2},
{idx:13, cnt:1},
{idx:14, cnt:2},
]
},
{
name: '강현모',
items: [
{idx:0, cnt:2},
{idx:2, cnt:1},
{idx:3, cnt:1},
{idx:5, cnt:1},
{idx:6, cnt:1},
{idx:7, cnt:1},
{idx:8, cnt:1},
{idx:10, cnt:2},
{idx:11, cnt:2},
{idx:12, cnt:2},
{idx:13, cnt:1},
{idx:14, cnt:2},
]
}
],
fishs: [
//0
{
name: '색동 왕눈이 에기',
price: '405',
img: 'http://zlenak.co.kr/data/goods/19/09/36/1000000747/1000000747_list_034.jpg'
},
//1
{
name: '히트 페이스 추(10 호)',
price: '1620',
img: 'http://zlenak.co.kr//data/goods/19/02/06/1000000422/1000000422_list_012.jpg'
},
//2
{
name: '히트 페이스 추(12 호)',
price: '1620',
img: 'http://zlenak.co.kr/data/goods/19/02/06/1000000422/1000000422_list_012.jpg'
},
//3
{
name: '히트 페이스 야광 테이프',
price: '900',
img: 'http://ai.esmplus.com/mallfishing/fishingmall/sum/20150817_01.jpg'
},
//4
{
name : '나이트메어 야광에기 2.5호',
price: '1125',
img: 'http://ai.esmplus.com/mallfishing/fishingmall/sum/20150828_03.jpg'
},
//5
{
name : '스트레이트 수평 에기 (그린)',
price: '891',
img: 'http://zlenak.co.kr//data/goods/19/09/38/1000000762/1000000762_list_061.jpg'
},
//6
{
name : '스트레이트 수평 에기 (오렌지)',
price: '891',
img: 'http://zlenak.co.kr//data/goods/19/09/38/1000000762/1000000762_list_061.jpg'
},
//7
{
name : '스트레이트 수평 에기 (레드헤드)',
price: '891',
img: 'http://zlenak.co.kr//data/goods/19/09/38/1000000762/1000000762_list_061.jpg'
},
//8
{
name : '스트레이트 수평 에기 (블루)',
price: '891',
img: 'http://zlenak.co.kr//data/goods/19/09/38/1000000762/1000000762_list_061.jpg'
},
//9
{
name : '에기스커트',
price: '531',
img: 'http://ai.esmplus.com/mallfishing/fishingmall/sum/20180801_03.jpg'
},
//10
{
name : 'ZLE 야광어부에기 (형광) ',
price: '405',
img: 'http://ai.esmplus.com/mallfishing/fishingmall/sum/20150828_02.jpg'
},
//11
{
name : 'ZLE 야광어부에기 (레드) ',
price: '405',
img: 'http://ai.esmplus.com/mallfishing/fishingmall/sum/20150828_02.jpg'
},
//12
{
name : '히트페이스 진주에기 (야광)',
price: '531',
img: 'http://ai.esmplus.com/mallfishing/fishingmall/sum/20170817_01.jpg'
},
//13
{
name : '히트페이스 진주에기 (핑크)',
price: '531',
img: 'http://ai.esmplus.com/mallfishing/fishingmall/sum/20170817_01.jpg'
},
//14
{
name : '히트페이스 진주에기 (실버)',
price: '531',
img: 'http://ai.esmplus.com/mallfishing/fishingmall/sum/20170817_01.jpg'
},
]
}
,methods: {
getSum(idx){
var sumAmt = 0;
var _fishs = this.fishs
this.peoples[idx].items.forEach(function(v){
sumAmt += Number(v.cnt) * Number(_fishs[v.idx].price)
})
return sumAmt
}
}
})
</script>
</body>
</html>