购买页面调整
This commit is contained in:
@@ -187,121 +187,6 @@
|
||||
border-left-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
.packageitem3{
|
||||
position: relative;
|
||||
}
|
||||
.packageitem3::before {
|
||||
position: absolute;
|
||||
top: 0.3rem;
|
||||
left: -0.5rem;
|
||||
z-index: 1;
|
||||
padding-right: 0.625rem;
|
||||
font-weight: bold;
|
||||
line-height: 0px;
|
||||
color: white;
|
||||
height: 0px;
|
||||
border: 1.0rem solid #FF9933;
|
||||
border-right-color: transparent;
|
||||
content: "7.5折+送 1 天";
|
||||
box-shadow: 0px 0.3125rem 0.3125rem -0.3125rem #000;
|
||||
}
|
||||
|
||||
.packageitem3::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2.1875rem;
|
||||
left: -0.5rem;
|
||||
border: 0.25rem solid #f64e3d;
|
||||
border-left-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
|
||||
.packageitem10{
|
||||
position: relative;
|
||||
}
|
||||
.packageitem10::before {
|
||||
position: absolute;
|
||||
top: 0.3rem;
|
||||
left: -0.5rem;
|
||||
z-index: 1;
|
||||
padding-right: 0.625rem;
|
||||
font-weight: bold;
|
||||
line-height: 0px;
|
||||
color: white;
|
||||
height: 0px;
|
||||
border: 1.0rem solid #FF9933;
|
||||
border-right-color: transparent;
|
||||
content: "7.5折+送 5 天";
|
||||
box-shadow: 0px 0.3125rem 0.3125rem -0.3125rem #000;
|
||||
}
|
||||
|
||||
.packageitem10::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2.1875rem;
|
||||
left: -0.5rem;
|
||||
border: 0.25rem solid #f64e3d;
|
||||
border-left-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
|
||||
.packageitem30{
|
||||
position: relative;
|
||||
}
|
||||
.packageitem30::before {
|
||||
position: absolute;
|
||||
top: 0.3rem;
|
||||
left: -0.5rem;
|
||||
z-index: 1;
|
||||
padding-right: 0.625rem;
|
||||
font-weight: bold;
|
||||
line-height: 0px;
|
||||
color: white;
|
||||
height: 0px;
|
||||
border: 1.0rem solid #FF9933;
|
||||
border-right-color: transparent;
|
||||
content: "7.5折+送 1 月";
|
||||
box-shadow: 0px 0.3125rem 0.3125rem -0.3125rem #000;
|
||||
}
|
||||
|
||||
.packageitem30::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2.1875rem;
|
||||
left: -0.5rem;
|
||||
border: 0.25rem solid #f64e3d;
|
||||
border-left-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
|
||||
.packageitem8530{
|
||||
position: relative;
|
||||
}
|
||||
.packageitem8530::before {
|
||||
position: absolute;
|
||||
top: 0.3rem;
|
||||
left: -0.5rem;
|
||||
z-index: 1;
|
||||
padding-right: 0.625rem;
|
||||
font-weight: bold;
|
||||
line-height: 0px;
|
||||
color: white;
|
||||
height: 0px;
|
||||
border: 1.0rem solid #FF9933;
|
||||
border-right-color: transparent;
|
||||
content: "8.5折+送 1 月";
|
||||
box-shadow: 0px 0.3125rem 0.3125rem -0.3125rem #000;
|
||||
}
|
||||
|
||||
.packageitem8530::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2.1875rem;
|
||||
left: -0.5rem;
|
||||
border: 0.25rem solid #f64e3d;
|
||||
border-left-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
|
||||
.warning{
|
||||
position: fixed;
|
||||
@@ -364,23 +249,11 @@
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
if(item.Product.Id == 18) {
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id"><span class="glyphicon glyphicon-thumbs-up" style="color: #f64e3d;font-weight:bold;padding-right: 5px;">送</span>@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">7.5折</span></div>
|
||||
}
|
||||
else if(item.Product.Id == 6) {
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id"><span class="glyphicon glyphicon-thumbs-up" style="color: #f64e3d;font-weight:bold;padding-right: 5px;"> </span>@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">9折</span></div>
|
||||
}
|
||||
else if(item.Product.Id == 1||item.Product.Id == 2) {
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id">@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">7.5折</span></div>
|
||||
}
|
||||
else if(item.Product.Id == 5) {
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id">@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">9折</span></div>
|
||||
}
|
||||
else if(item.Product.Id == 23||item.Product.Id == 13||item.Product.Id == 17) {
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id"><span style="color: #f64e3d;font-weight:bold;padding-right: 5px;"></span>@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">8折</span></div>
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id"><span style="color: red;font-weight:bold;">送 </span>@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">8折</span></div>
|
||||
}
|
||||
else if(item.Product.Id == 14) {
|
||||
<div class="dropdown">
|
||||
<button type="button" class="btn dropdown-toggle" style="width: 99%;height:100%;background:white;padding:0;" id="dropdownMenu1" data-toggle="dropdown"><div style="font-size: 18px;" class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id">@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">8折</span></div>
|
||||
<button type="button" class="btn dropdown-toggle" style="width: 99%;height:100%;background:white;padding:0;" id="dropdownMenu1" data-toggle="dropdown"><div style="font-size: 18px;" class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id">@item.Product.Name</div>
|
||||
</button>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
|
||||
<li role="presentation">
|
||||
@@ -398,7 +271,7 @@
|
||||
else if(item.Product.Id == 20) {
|
||||
|
||||
<div class="dropdown">
|
||||
<button type="button" class="btn dropdown-toggle" style="width: 99%;height:100%;background:white;padding:0;" id="dropdownMenu2" data-toggle="dropdown"><div style="font-size: 18px;" class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id"><span style="color: #f64e3d;font-weight:bold;padding-right: 5px;">新</span>@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;"></span></div>
|
||||
<button type="button" class="btn dropdown-toggle" style="width: 99%;height:100%;background:white;padding:0;" id="dropdownMenu2" data-toggle="dropdown"><div style="font-size: 18px;" class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id">@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;"></span></div>
|
||||
</button>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu2">
|
||||
<li role="presentation">
|
||||
@@ -412,17 +285,17 @@
|
||||
}
|
||||
else if(item.Product.Id == 22) {
|
||||
<div style="background-color: #ccc;color:#0098fb" disabled="disabled"><span class="glyphicon glyphicon-arrow-down"></span>静态IP<span class="glyphicon glyphicon-arrow-down"></span></div>
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id"><span style="color: #f64e3d;font-weight:bold;padding-right: 5px;">新</span>@item.Product.Name</div>
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id">@item.Product.Name</div>
|
||||
|
||||
}
|
||||
|
||||
else if(item.Product.Id == 25) {
|
||||
@* <div style="background-color: #ccc;color:#0098fb" disabled="disabled"><span class="glyphicon glyphicon-arrow-down"></span>静态IP<span class="glyphicon glyphicon-arrow-down"></span></div> *@
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id"><span style="color: #f64e3d;font-weight:bold;padding-right: 5px;">新</span>@item.Product.Name</div>
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id">@item.Product.Name</div>
|
||||
|
||||
}
|
||||
else if(item.Product.Id == 23) {
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id"><span style="color: #f64e3d;font-weight:bold;padding-right: 5px;">新</span>@item.Product.Name</div>
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id">@item.Product.Name</div>
|
||||
|
||||
}
|
||||
|
||||
@@ -430,7 +303,7 @@
|
||||
|
||||
<div style="background-color: #ccc;color:#0098fb" disabled="disabled"><span class="glyphicon glyphicon-arrow-down"></span>单窗口单IP<span class="glyphicon glyphicon-arrow-down"></span></div>
|
||||
<div class="dropdown">
|
||||
<button type="button" class="btn dropdown-toggle" style="width: 99%;height:100%;background:white;padding:0;" id="dropdownMenu2" data-toggle="dropdown"><div style="font-size: 18px;" class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id"><span style="color: #f64e3d;font-weight:bold;padding-right: 5px;">新</span>@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;"></span></div>
|
||||
<button type="button" class="btn dropdown-toggle" style="width: 99%;height:100%;background:white;padding:0;" id="dropdownMenu2" data-toggle="dropdown"><div style="font-size: 18px;" class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id">@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;"></span></div>
|
||||
</button>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu2">
|
||||
<li role="presentation">
|
||||
@@ -691,37 +564,38 @@
|
||||
|
||||
@foreach (var package in item.Packages.Where(m => m.IsTest == 0 && m.Status == 1 ).OrderBy(m => m.TenantId))
|
||||
{
|
||||
@if(package.Title != "0"){
|
||||
<style>
|
||||
.packageitem-@package.Id{
|
||||
position: relative;
|
||||
}
|
||||
.packageitem-@package.Id::before {
|
||||
position: absolute;
|
||||
top: 0.3rem;
|
||||
left: -0.5rem;
|
||||
z-index: 1;
|
||||
padding-right: 0.625rem;
|
||||
font-weight: bold;
|
||||
line-height: 0px;
|
||||
color: white;
|
||||
height: 0px;
|
||||
border: 1.2rem solid #f64e3d;
|
||||
border-right-color: transparent;
|
||||
content: "@package.Title 折";
|
||||
box-shadow: 0px 0.3125rem 0.3125rem -0.3125rem #000;
|
||||
}
|
||||
|
||||
<style>
|
||||
.packageitem-@package.Id{
|
||||
position: relative;
|
||||
}
|
||||
.packageitem-@package.Id::before {
|
||||
position: absolute;
|
||||
top: 0.3rem;
|
||||
left: -0.5rem;
|
||||
z-index: 1;
|
||||
padding-right: 0.625rem;
|
||||
font-weight: bold;
|
||||
line-height: 0px;
|
||||
color: white;
|
||||
height: 0px;
|
||||
border: 1.2rem solid #f64e3d;
|
||||
border-right-color: transparent;
|
||||
content: "@package.Title 折";
|
||||
box-shadow: 0px 0.3125rem 0.3125rem -0.3125rem #000;
|
||||
}
|
||||
|
||||
.packageitem-@package.Id::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2.1875rem;
|
||||
left: -0.5rem;
|
||||
border: 0.25rem solid #f64e3d;
|
||||
border-left-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
</style>
|
||||
.packageitem-@package.Id::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2.1875rem;
|
||||
left: -0.5rem;
|
||||
border: 0.25rem solid #f64e3d;
|
||||
border-left-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
|
||||
@if(package.Price == 0.1M){
|
||||
|
||||
@@ -738,7 +612,7 @@
|
||||
<img src="~/img/check.png" class="cardCheck">
|
||||
</div>
|
||||
}
|
||||
else if(package.Id == 1030){
|
||||
else if(package.ProductId == 18){
|
||||
|
||||
<div class="item packageitem packageitem2" id="@("pkg"+package.Id)" a-pkg-id="@package.Id">
|
||||
|
||||
@@ -752,67 +626,16 @@
|
||||
<img src="~/img/check.png" class="cardCheck">
|
||||
</div>
|
||||
}
|
||||
else if(package.Id == 1031){
|
||||
|
||||
<div class="item packageitem packageitem3" id="@("pkg"+package.Id)" a-pkg-id="@package.Id">
|
||||
|
||||
<p><span class="price">@package.Price</span>元</p>
|
||||
<p class="yuanjia" style="color: #FF9900;">原价:<span>@package.LinePrice</span>元</p>
|
||||
<p>@(Math.Round(package.Price/package.DayCount,2))元/天</p>
|
||||
<div class="pkgNameCard" style="background-color:#f64e3d">
|
||||
<p class="tianka" style="font-size:17px;color:white;">@package.Name</p>
|
||||
<p class="qixian">@package.Profile</p>
|
||||
</div>
|
||||
<img src="~/img/check.png" class="cardCheck">
|
||||
</div>
|
||||
}
|
||||
else if(package.Id == 1032){
|
||||
|
||||
<div class="item packageitem packageitem10" id="@("pkg"+package.Id)" a-pkg-id="@package.Id">
|
||||
|
||||
<p><span class="price">@package.Price</span>元</p>
|
||||
<p class="yuanjia" style="color: #FF9900;">原价:<span>@package.LinePrice</span>元</p>
|
||||
<p>@(Math.Round(package.Price/package.DayCount,2))元/天</p>
|
||||
<div class="pkgNameCard" style="background-color:#f64e3d">
|
||||
<p class="tianka" style="font-size:17px;color:white;">@package.Name</p>
|
||||
<p class="qixian">@package.Profile</p>
|
||||
</div>
|
||||
<img src="~/img/check.png" class="cardCheck">
|
||||
</div>
|
||||
}
|
||||
else if(package.Id == 1033){
|
||||
|
||||
<div class="item packageitem packageitem30" id="@("pkg"+package.Id)" a-pkg-id="@package.Id">
|
||||
|
||||
<p><span class="price">@package.Price</span>元</p>
|
||||
<p class="yuanjia" style="color: #FF9900;">原价:<span>@package.LinePrice</span>元</p>
|
||||
<p>@(Math.Round(package.Price/package.DayCount,2))元/天</p>
|
||||
<div class="pkgNameCard" style="background-color:#f64e3d">
|
||||
<p class="tianka" style="font-size:17px;color:white;">@package.Name</p>
|
||||
<p class="qixian">@package.Profile</p>
|
||||
</div>
|
||||
<img src="~/img/check.png" class="cardCheck">
|
||||
</div>
|
||||
}
|
||||
else if(package.Id == 104){
|
||||
|
||||
<div class="item packageitem packageitem8530" id="@("pkg"+package.Id)" a-pkg-id="@package.Id">
|
||||
|
||||
<p><span class="price">@package.Price</span>元</p>
|
||||
<p class="yuanjia" style="color: #FF9900;">原价:<span>@package.LinePrice</span>元</p>
|
||||
<p>@(Math.Round(package.Price/package.DayCount,2))元/天</p>
|
||||
<div class="pkgNameCard" style="background-color:#f64e3d">
|
||||
<p class="tianka" style="font-size:17px;color:white;">@package.Name</p>
|
||||
<p class="qixian">@package.Profile</p>
|
||||
</div>
|
||||
<img src="~/img/check.png" class="cardCheck">
|
||||
</div>
|
||||
}
|
||||
else if(package.ProductId == 20){
|
||||
else if(package.Title!="0"){
|
||||
|
||||
<div class="item packageitem packageitem-@package.Id" id="@("pkg"+package.Id)" a-pkg-id="@package.Id">
|
||||
|
||||
|
||||
<p><span class="price">@package.Price</span>元</p>
|
||||
@if((package.Id == 64||package.Id == 1004)&&package.Price<60){
|
||||
<p><span class="price">60.00</span>元</p>
|
||||
} else {
|
||||
<p><span class="price">@package.Price</span>元</p>
|
||||
}
|
||||
<p class="yuanjia" style="color: #FF9900;">原价:<span>@package.LinePrice</span>元</p>
|
||||
<p>@(Math.Round(package.Price/package.DayCount,2))元/天</p>
|
||||
<div class="pkgNameCard" style="background-color:#f64e3d">
|
||||
@@ -821,10 +644,9 @@
|
||||
</div>
|
||||
<img src="~/img/check.png" class="cardCheck">
|
||||
</div>
|
||||
}
|
||||
else {
|
||||
|
||||
<div class="item packageitem packageitem-@package.Id" id="@("pkg"+package.Id)" a-pkg-id="@package.Id">
|
||||
} else {
|
||||
|
||||
<div class="item " id="@("pkg"+package.Id)" a-pkg-id="@package.Id">
|
||||
|
||||
|
||||
@if((package.Id == 64||package.Id == 1004)&&package.Price<60){
|
||||
|
||||
Reference in New Issue
Block a user