File tree Expand file tree Collapse file tree 5 files changed +23
-1
lines changed Expand file tree Collapse file tree 5 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export const dummyData = [
34
34
x_coordinate : 127.16017523675508 , // 경도
35
35
address : "대전광역시 00구 00동" ,
36
36
heart : 3 ,
37
+ star : true ,
37
38
category : "korea" ,
38
39
menus : [
39
40
{
@@ -53,6 +54,7 @@ export const dummyData = [
53
54
x_coordinate : 127.1583774403176 , // 경도
54
55
address : "대전광역시 00구 00동" ,
55
56
heart : 3 ,
57
+ star : true ,
56
58
category : "cafe" ,
57
59
menus : [
58
60
{
@@ -72,6 +74,7 @@ export const dummyData = [
72
74
x_coordinate : 127.15122688059974 , // 경도
73
75
address : "대전광역시 00구 00동" ,
74
76
heart : 3 ,
77
+ star : false ,
75
78
category : "japan" ,
76
79
menus : [
77
80
{
@@ -91,6 +94,7 @@ export const dummyData = [
91
94
x_coordinate : 127.15211256646381 , // 경도
92
95
address : "대전광역시 00구 00동" ,
93
96
heart : 3 ,
97
+ star : false ,
94
98
category : "china" ,
95
99
menus : [
96
100
{
Original file line number Diff line number Diff line change 165
165
font-weight : lighter;
166
166
border-radius : 10px ;
167
167
font-size : 12px ;
168
- margin-right : 10 px ;
168
+ margin-right : 40 px ;
169
169
}
170
170
171
171
.content {
208
208
209
209
.bold {
210
210
font-weight : bold;
211
+ }
212
+
213
+ .star {
214
+ position : absolute;
215
+ right : 15px ;
211
216
}
Original file line number Diff line number Diff line change @@ -169,6 +169,9 @@ const WebView = () => {
169
169
<div class="sector">
170
170
${ findCategoryEtoK ( el . category ) }
171
171
</div>
172
+ <div class='star'>
173
+ <imglocation>
174
+ </div>
172
175
</div>
173
176
<div class="body">
174
177
<div class="content">
@@ -205,6 +208,16 @@ const WebView = () => {
205
208
</div>
206
209
</div>
207
210
</div>;` ;
211
+
212
+ let starImg = document . createElement ( "img" ) ;
213
+ starImg . className = "starImg" ;
214
+ if ( el . star ) {
215
+ starImg . src = require ( "../assets/fullStar.png" ) ;
216
+ } else {
217
+ starImg . src = require ( "../assets/emptyStar.png" ) ;
218
+ }
219
+ content = content . replace ( "<imglocation>" , `${ starImg . outerHTML } ` ) ;
220
+
208
221
/* 위 div 방식을 아래처럼 바꿔야할 것 같아요
209
222
var content = document.createElement('div');
210
223
content.setAttribute('class','wrap');
You can’t perform that action at this time.
0 commit comments