Commit d21a8dc1 authored by prumde's avatar prumde

Updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174427 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 319e80a5
...@@ -50,9 +50,9 @@ ...@@ -50,9 +50,9 @@
*/ */
/* New */ /* New */
.row.sub-heading[_ngcontent-c19] { .sub-heading {
top: 70px;
position: relative; position: relative;
top: 70px;
padding-left: 3rem; padding-left: 3rem;
} }
......
...@@ -333,6 +333,8 @@ ecm-search{ ...@@ -333,6 +333,8 @@ ecm-search{
.toolbar-spacer{ .toolbar-spacer{
flex: 1 1 auto; flex: 1 1 auto;
} }
/*
.mat-dialog-container { .mat-dialog-container {
max-width: 100% !important; max-width: 100% !important;
height: 60px !important; height: 60px !important;
...@@ -340,6 +342,11 @@ ecm-search{ ...@@ -340,6 +342,11 @@ ecm-search{
padding: 0px !important; padding: 0px !important;
border-radius: 0 !important; border-radius: 0 !important;
} }
*/
.mat-dialog-container {
padding: 0px !important;
}
.mobile-search{ .mobile-search{
color: #fff; color: #fff;
} }
......
...@@ -13,6 +13,7 @@ export class ItemDetail { ...@@ -13,6 +13,7 @@ export class ItemDetail {
public itemDetail2: any; // JSON String public itemDetail2: any; // JSON String
public itemRatings: any; // JSON String public itemRatings: any; // JSON String
public itemVariants: any; // JSON String public itemVariants: any; // JSON String
public productStatus: any; // JSON String
/* /*
any = { "itemPackages": [{"package": "Experienced Instructor"},{"package":"Meal(option)"}, {"package":"Large group concession"}], any = { "itemPackages": [{"package": "Experienced Instructor"},{"package":"Meal(option)"}, {"package":"Large group concession"}],
......
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
.ecm-ratings{ .ecm-ratings{
color: rgb(500, 150, 50); color: rgb(500, 150, 50);
font-size: 20px; font-size: 20px;
display: block; display: inline-block;
position: relative; position: relative;
text-align: center; text-align: center;
} }
...@@ -306,3 +306,124 @@ md-card { ...@@ -306,3 +306,124 @@ md-card {
border-radius: 3px !important; border-radius: 3px !important;
box-shadow: 0 0px 16px -3px rgba(0,0,0,.1) !important; box-shadow: 0 0px 16px -3px rgba(0,0,0,.1) !important;
} }
.submit-review-btn {
background: #fff;
color: mediumvioletred;
max-width: 190px;
height: 50px;
font-size: 15px;
line-height: 15px;
text-align: center;
/* border-radius: 2px; */
position: relative;
/* float: left; */
width: calc(50% - 40px);
font-weight: 700;
box-shadow: 0 0px 5px 1px rgba(0,0,0,.1);
border-radius: 3px;
float: right;
margin: 20px;
}
.write-review-title {
border-bottom: 2px solid #c71585;
font-size: 20px;
max-width: 400px;
padding-bottom: 20px;
margin-left: 17px;
}
.review-title-box{
display: block;
margin-top: 20px;
}
.descr-box {
display: block;
margin-top: 20px;
}
.write-review-section {
padding: 20px;
}
.descr-input, .review-title-input {
padding-top: 10px;
}
.descr-input {
resize: none;
}
.product-rating-title {
font-size: 1.1rem;
vertical-align: super;
}
.ratings {
padding-left: 20px;
}
.star-rating-block {
display: block;
text-align: center;
}
/* Toggle button */
.hide-button {
top: 0;
right: 0;
position: absolute;
display: inline-block;
width: 24px;
height: 24px;
margin: 15px;
background-color: transparent;
border: none;
cursor: pointer;
border-radius: 100%;
transition: 0.6s;
-webkit-transition: 0.6s;
z-index: 4;
}
.hide-button:hover {
box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.1), inset 0 0 0 20px
rgba(0, 0, 0, 0.1);
}
.hide-button:before, .hide-button:after {
position: absolute;
content: '';
top: 50%;
left: 0;
width: 100%;
height: 2px;
background-color: #EC7263;
background-color: mediumvioletred;
border-radius: 5px;
transition: 0.5s;
}
.hide-button:before {
transform: translateY(-50%) rotate(45deg) scale(1);
}
.hide-button:after {
transform: translateY(-50%) rotate(-45deg) scale(1);
}
.product-title {
padding: 20px;
display: block;
font-size: 1rem;
}
.review-title-block {
padding: 20px;
}
button.write-review-button.mat-button:hover {
box-shadow: 0 1px 0 0 rgba(0,0,0,0.27);
border: 1px solid rgba(0,0,0,0.27);
}
md-error{
padding-top: 14px;
}
\ No newline at end of file
...@@ -37,6 +37,22 @@ export class EcmProductReviewService { ...@@ -37,6 +37,22 @@ export class EcmProductReviewService {
}); });
} }
submitReview(reviewData){
let userServiceUrl = '/ecm/service/feeds/review';
let headers = new Headers( { 'Content-Type': 'application/json' });
let options = new RequestOptions( { headers: headers });
console.log("Submitting Review...");
console.log(JSON.stringify(reviewData));
this.http.post(userServiceUrl, reviewData, options)
.subscribe(data => {
console.log("Add Review");
}, error => {
console.log(error.json());
});
}
private extractData(res: Response) { private extractData(res: Response) {
let body = res.json(); let body = res.json();
console.log('extractData[' + JSON.stringify(body) + ']'); console.log('extractData[' + JSON.stringify(body) + ']');
......
...@@ -527,6 +527,22 @@ li::BEFORE { ...@@ -527,6 +527,22 @@ li::BEFORE {
width: 100%; width: 100%;
} }
.ecm-ratingStars {
color: rgb(500, 150, 50);
}
.ecm-itemAvgRating {
color: black;
padding-right: 5px;
padding-left: 5px;
}
.ecm-itemNumOfReviews {
padding-left: 5px;
color: black;
border-left: 1px solid #f3f3f3;
}
md-card { md-card {
border-radius: 3px !important; border-radius: 3px !important;
box-shadow: 0 0px 16px -3px rgba(0,0,0,.1) !important; box-shadow: 0 0px 16px -3px rgba(0,0,0,.1) !important;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment