Master.CanYinWu.Web/Views/CustomerTypeLeve/Edit.cshtml
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@using Master.CanYinWu.Entity.ViewModel
@{
Layout = null;
List<LeveRuleViewModel> LeveRuleList = ViewBag.LeveRuleList;
}
@model Master.CanYinWu.Entity.CustomerTypeLevel
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>会员等级设置</title>
<link href="~/Content/layui/css/layui.css" rel="stylesheet" />
</head>
<body>
<blockquote class="layui-elem-quote">
<sapn style="color: #FF5722; font-size: 1rem ">提示:该会员等级配置是根据会员的消费金额进行等级配置</sapn><br />
<sapn style="color: #FF5722; font-size: 1rem ">比如:青铜 0-1000 0.98 则表示会员消费果如在1000以内就是青铜会员,享受98折的优惠</sapn><br />
<sapn style="color: #FF5722; font-size: 1rem ">比如:白银 1001-2000 0.8 则表示会员消费如果在1001-2000就是白银会员,享受8折的优惠</sapn><br />
<sapn style="color: #FF5722; font-size: 1rem ">以此类推...</sapn><br />
<sapn style="color: #FF5722; font-size: 1rem ">比如:王者 10000-100000000 0.6 则表示会员消费如果在10000-100000000就是王者会员,享受6折的优惠</sapn><br />
<sapn style="color: #FF5722; font-size: 1rem ">具体等级名称,消费金额范围和折扣,请您自行配置</sapn><br />
</blockquote>
<input id="hid_customerTypeLeveId" type="hidden" value="@Model.CustomerTypeLevelId" />
<form class="layui-form" action="" lay-filter="formTest">
<div class="divCommon">
<div class="layui-form-item">
<table class="layui-table" id="myTable">
<thead>
<tr>
<th>等级名称</th>
<th>消费金额(最低)</th>
<th>消费金额(最高)</th>
<th>折扣</th>
</tr>
</thead>
<tbody>
<!-- 动态添加的行将在这里 -->
@if (LeveRuleList.Count > 0)
{
foreach (var item in LeveRuleList)
{
int index = LeveRuleList.IndexOf(item);
<tr id="tr_@index">
<td><input name="Name" type="text" id="name_@index" value="@item.Name" class="layui-input"></td>
<td><input @(item.Name == "青铜" ? "disabled" : "") type="text" name="text-valid" id="minPrice_@index" value="@item.Range.Split('-')[0]" class="layui-input"></td>
<td><input @(item.Name == "王者" ? "disabled" : "") type="text" name="text-valid" id="maxPrice_@index" value="@item.Range.Split('-')[1]" class="layui-input"></td>
<td><input type="text" name="text-valid" id="discount_@index" class="layui-input" value="@item.Discount"></td>
</tr>
}
}
</tbody>
</table>
</div>
<div class="layui-form-item">
<div class="layui-input-block" style="text-align:center;">
<button type="button" class="layui-btn" onclick="SubmitData()">提交</button>
</div>
</div>
</div>
后面还有 67 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
