Skip to content

Commit

Permalink
hotfix:상세페이지 url 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jaewonjjang committed Feb 22, 2023
1 parent 4aa9937 commit b2c0e1b
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 39 deletions.
25 changes: 24 additions & 1 deletion frontEnd/public/js/mapView/ExtraFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,32 @@ function FillBasicPhoneonDetail(ResultArrayElem){

function FillBasicUrlonDetail(ResultArrayElem){
const ST_url = document.getElementById("GSTdetail_url");
ST_url.innerHTML = `https://www.${ResultArrayElem.stId}.com`;
ST_url.innerHTML = `${transStidtoUrl(ResultArrayElem.stId)}`;
if(transStidtoUrl(ResultArrayElem.stId) == '홈페이지가 존재하지 않습니다.') {
ST_url.style.color = 'lightgrey';
ST_url.style.pointerEvents = 'none';
}
else {
ST_url.style.pointerEvents = 'auto';
ST_url.style.color = '#1ede88';
ST_url.setAttribute('href', transStidtoUrl(ResultArrayElem.stId));
}
}

function transStidtoUrl(stId){
switch(stId){
case 'S-Oil': return 'https://www.s-oil.com/Default.aspx';
case '오일뱅크' : return 'https://www.oilbank.co.kr/main/index.do';
case '알뜰' : return 'https://ecos.knoc.co.kr/';
case 'ex-OIL' : return 'https://ecos.knoc.co.kr/';
case 'NH-OIL' : return '홈페이지가 존재하지 않습니다.';
case 'SK' : return 'http://www.skenergy.com/';
case 'GS' : return 'https://www.gscaltex.com/kr/';
case '자가상표' : return '홈페이지가 존재하지 않습니다.';
case 'E1' : return 'https://www.e1.co.kr/ko/main';
}
return '홈페이지가 존재하지 않습니다.';
}
function FillPriceTableonDetail(ResultArrayElem){
const ST_PriceTable = document.getElementsByClassName("main__GSTdetail__Contents__OilPriceTable__Contents");
ST_PriceTable[0].innerHTML = "";
Expand Down
22 changes: 5 additions & 17 deletions frontEnd/public/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3042,14 +3042,16 @@ a {
border-bottom: 1px solid rgba(211, 211, 211, 0.4);
line-height: 30px;
height: 30px;
color: #14bd72;
}
.main .main__ForMap .main__SearchBarnDetailTab .main__GSTDetailTab .main__GSTdetail .main__GSTdetail__Contents .main__GSTdetail__Contents__Basic .main__GSTdetail__Contents__Basic__Url img {
width: 20px;
height: 20px;
margin-right: 3px;
margin-bottom: -3px;
}
.main .main__ForMap .main__SearchBarnDetailTab .main__GSTDetailTab .main__GSTdetail .main__GSTdetail__Contents .main__GSTdetail__Contents__Basic .main__GSTdetail__Contents__Basic__Url a {
color: #1ede88;
}
.main .main__ForMap .main__SearchBarnDetailTab .main__GSTDetailTab .main__GSTdetail .main__GSTdetail__Contents .main__GSTdetail__Contents__OilPriceTable {
background-color: white;
display: flex;
Expand Down Expand Up @@ -3125,9 +3127,10 @@ a {
height: 30%;
font-size: 20px;
font-weight: 500;
margin-top: 10px;
margin-top: 15px;
}
.main .main__ForMap .main__SearchBarnDetailTab .main__GSTDetailTab .main__GSTdetail .main__GSTdetail__Contents .main__GSTdetail__Contents__Chart #myChart {
margin-top: 15px;
width: 100%;
height: 40%;
}
Expand All @@ -3139,21 +3142,6 @@ a {
font-size: 18px;
font-weight: 400;
}
.main .main__ForMap .main__SearchBarnDetailTab .main__GSTDetailTab .main__GSTdetail .main__GSTdetail__Contents .main__addOilingInfo {
width: 150px;
height: 30px;
position: fixed;
display: flex;
align-items: center;
justify-content: center;
margin-top: 650px;
border-radius: 20px;
border: 1px solid #14BD72;
background-color: #14BD7E;
font-size: 1rem;
color: white;
display: none;
}
.main .main__ForMap .main__SearchBarHideButton {
display: flex;
z-index: 2;
Expand Down
2 changes: 1 addition & 1 deletion frontEnd/public/styles/index.css.map

Large diffs are not rendered by default.

41 changes: 21 additions & 20 deletions frontEnd/public/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3002,8 +3002,6 @@ a {
flex-direction: column;
width:100%;

// font-size:20px;
// font-weight: 400;
align-items: center;

& .main__GSTdetail__Contents__Oilprice {
Expand Down Expand Up @@ -3075,13 +3073,16 @@ a {
border-bottom: 1px solid rgba(211, 211, 211, 0.4);
line-height: 30px;
height:30px;
color : #14bd72;
& img {
width:20px;
height:20px;
margin-right: 3px;
margin-bottom: -3px;
}
& a{
color : #1ede88;
}

}
}
& .main__GSTdetail__Contents__OilPriceTable {
Expand Down Expand Up @@ -3163,8 +3164,9 @@ a {
height:30%;
font-size: 20px;
font-weight: 500;
margin-top: 10px;
margin-top: 15px;
& #myChart {
margin-top: 15px;
width:100%;
height:40%;
}
Expand All @@ -3177,22 +3179,21 @@ a {
font-weight: 400;
}
}

& .main__addOilingInfo {
width:150px;
height:30px;
position :fixed;
display:flex;
align-items: center;
justify-content: center;
margin-top : 650px;
border-radius: 20px;
border:1px solid #14BD72;
background-color: #14BD7E;
font-size: 1rem;
color:white;
display:none;
}
// & .main__addOilingInfo {
// width:150px;
// height:30px;
// position :fixed;
// display:flex;
// align-items: center;
// justify-content: center;
// margin-top : 650px;
// border-radius: 20px;
// border:1px solid #14BD72;
// background-color: #14BD7E;
// font-size: 1rem;
// color:white;
// display:none;
// }
}
}
}
Expand Down

0 comments on commit b2c0e1b

Please sign in to comment.