|
@@ -14,6 +14,29 @@
|
|
|
.red{color: red;}
|
|
|
.flex-wrap >.item {margin-right: 20px;}
|
|
|
.jbox span.jbox-icon {top: auto !important;}
|
|
|
+
|
|
|
+ .process-details span{width:140px;margin-left:50px;font-weight:600}
|
|
|
+ .process-details div{display:inline-block}
|
|
|
+ .check-btn button{width:100px;height:35px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;border:none;border:1px solid #ddd}
|
|
|
+ .check-cfm-btn{background:#3daae9;color:#fff}
|
|
|
+ .mask{width:100%;height:100%;position:fixed;top:0;background:rgba(0,0,0,0.7);display:none}
|
|
|
+ .tips-popup-content{width:40%;height:auto;padding-bottom:30px;background:#fff;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
|
|
|
+ .tips-popup-content div{width:100%;text-align:center}
|
|
|
+ .tips-popup-content{width:25%}
|
|
|
+ .tips-popup-content p{text-align:center;padding:80px;font-size:20px}
|
|
|
+ .tips-popup-content h4{padding-left:10px;height:40px;line-height:40px;border-bottom:1px solid #eee;margin-bottom:20px}
|
|
|
+ .tips-cfm-btn,.tips-cancel-btn,.check-blue-btn,.check-grey-btn{width:100px;height:40px;margin:auto;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;background:#3daae9;color:#fff;border:none}
|
|
|
+ .return-btn,.tips-cancel-btn,.check-grey-btn{background:#fff;color:#555;margin-left:50px}
|
|
|
+ .tips-cancel-btn,.check-grey-btn{border:1px solid #ddd;margin-left:20px;display:none}
|
|
|
+ .close-btn1{top:8px;right:10px;width:18px;position:absolute;cursor:pointer}
|
|
|
+ .tips-popup-reason .tips-popup-content{height:220px}
|
|
|
+ .tips-popup-reason .tips-popup-content div{position:absolute;bottom:15px}
|
|
|
+ .tips-popup-reason .check-grey-btn{display:inline-block}
|
|
|
+ #refuse-reason{width:80%;height:30%;left:8%;position:absolute;resize:none}
|
|
|
+ .tips-popup-reason h5{color:#555;padding-left:8%;margin-bottom:4px;margin-top:-12px}
|
|
|
+ .red{color:red;}
|
|
|
+ .payment-form-bottom .wipeImgs{height:auto;padding:8px 0;}
|
|
|
+ .wipeImgs img{width:120px;height:90px;background-color:#eee;margin-right:15px;}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
@@ -101,14 +124,6 @@
|
|
|
<form:options items="${brandList}" itemLabel="name" itemValue="id" htmlEscape="false"/>
|
|
|
</form:select>
|
|
|
</div>
|
|
|
- <%--<div class="item">
|
|
|
- <label>二手商品:</label>
|
|
|
- <form:select path="searchProductCategory" class="input-medium">
|
|
|
- <form:option value="" label="请选择"/>
|
|
|
- <form:option value="1" label="否"/>
|
|
|
- <form:option value="2" label="是"/>
|
|
|
- </form:select>
|
|
|
- </div>--%>
|
|
|
<div class="item">
|
|
|
<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" style="margin-left:20px;"/>
|
|
|
</div>
|
|
@@ -274,6 +289,7 @@
|
|
|
<a class="red" href="javascript:void(0);" onclick="validChange(${product.id}, 2)">显身</a>
|
|
|
</c:if>
|
|
|
<a class="red" href="javascript:void(0);" onclick="validChange(${product.id}, 0)" >删除</a>
|
|
|
+ <a href="${ctx}/product/new/statusRemarks?productId=${product.id}">状态备注</a>
|
|
|
</td>
|
|
|
</c:if>
|
|
|
</c:if>
|
|
@@ -283,11 +299,39 @@
|
|
|
</c:forEach>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
+ <div class="mask tips-popup-reason">
|
|
|
+ <div class="tips-popup-content">
|
|
|
+ <h4>确认提示</h4>
|
|
|
+ <h5 id="msg"></h5><br>
|
|
|
+ <h5><font color="red">* </font>备注:</h5>
|
|
|
+ <textarea id="refuse-reason" cols="30" rows="10" maxlength="200" placeholder="请填写备注信息描述原因,200字以内"></textarea>
|
|
|
+ <div>
|
|
|
+ <button class="check-cfm-btn check-blue-btn" type="button">确定</button>
|
|
|
+ <button class="check-grey-btn" type="button">取消</button>
|
|
|
+ </div>
|
|
|
+ <img class="close-btn1" src="/static/images/close-btn.png" alt="close-btn">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="mask tips-popup">
|
|
|
+ <div class="tips-popup-content">
|
|
|
+ <h4>信息提示</h4>
|
|
|
+ <p></p>
|
|
|
+ <div>
|
|
|
+ <button class="tips-cfm-btn tips-cfm-directly" type="button">确定</button>
|
|
|
+ <button class="tips-cancel-btn" type="button">取消</button>
|
|
|
+ </div>
|
|
|
+ <img class="close-btn1" src="/static/images/close-btn.png" alt="close-btn">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="pagination">${page}</div>
|
|
|
<% request.setAttribute("caimeiSpi", Global.getConfig("caimei.spi"));%>
|
|
|
<% request.setAttribute("caimeiCore", Global.getConfig("caimei.core"));%>
|
|
|
<script type="text/javascript">
|
|
|
- var num = '';
|
|
|
+ var num = '';
|
|
|
+ //商品id
|
|
|
+ var productID = 0;
|
|
|
+ //商品状态
|
|
|
+ var validFlag;
|
|
|
function page(n,s){
|
|
|
$("#pageNo").val(n);
|
|
|
$("#pageSize").val(s);
|
|
@@ -319,40 +363,47 @@
|
|
|
$("#tinyType").val(tinyType);
|
|
|
$("#tinyType").prev().find(".select2-chosen").text($("#tinyType option:selected").text());
|
|
|
},500)
|
|
|
- });
|
|
|
|
|
|
- // 选择配置
|
|
|
- /*function settingApplets(that) {
|
|
|
- var productId = that.attr('data-productid');
|
|
|
- var preferred = that.attr('data-preferred');
|
|
|
- var html = '<div id="auditBox"><div>请选择把该商品加入到如下商品列表中(可以多选)</div><div class="preferred">'
|
|
|
- +'<label><input '+(parseInt(preferred%10)>=1?'checked':'')+' name="preferredFlag" type="checkbox" value="1">新品上线</label>'
|
|
|
- +'<label><input '+(parseInt((preferred%100)/10)>=1?'checked':'')+' name="preferredFlag" type="checkbox" value="10">优惠商品</label>'
|
|
|
- +'<label><input '+(parseInt(preferred/100)>=1?'checked':'')+' name="preferredFlag" type="checkbox" value="100">常用商品</label>'
|
|
|
- +'</div></div>';
|
|
|
- var submit = function (v, h, f) {
|
|
|
- // 新品上线(001) 优惠商品(010) 常用商品(100),三者同时存在111
|
|
|
- var preferredFlag = 0;
|
|
|
- if (f.preferredFlag) {
|
|
|
- var temp = f.preferredFlag.toString().split(",");
|
|
|
- temp.forEach(function(item){
|
|
|
- preferredFlag += item*1;
|
|
|
- });
|
|
|
- }
|
|
|
- $.post("${ctx}/product/new/addPreferred", {
|
|
|
- 'productId': productId,
|
|
|
- 'preferredFlag': preferredFlag
|
|
|
- }, function (data) {
|
|
|
- if (true == data.success) {
|
|
|
- $.jBox.tip(data.msg, 'info');
|
|
|
- $("#searchForm").submit();
|
|
|
- } else {
|
|
|
- $.jBox.tip(data.msg, 'error');
|
|
|
- }
|
|
|
- }, "JSON");
|
|
|
- };
|
|
|
- $.jBox(html, {title: "选择配置", submit: submit});
|
|
|
- }*/
|
|
|
+ $('.check-grey-btn').on('click', function () {
|
|
|
+ $('.tips-popup-reason').hide();
|
|
|
+ });
|
|
|
+
|
|
|
+ $('.tips-cfm-directly').on('click', function () {
|
|
|
+ if ($('.tips-cfm-btn').hasClass('tips-cfm-directly')) {
|
|
|
+ $('.tips-popup').hide();
|
|
|
+ } else {
|
|
|
+ $('#form').submit();
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ $('.check-cfm-btn').on('click', function (e) {
|
|
|
+ var textareaVal = $('#refuse-reason').val();
|
|
|
+ if (!textareaVal.trim()) {
|
|
|
+ showTips('信息提示', '备注内容不能为空');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ url: "${ctx}/product/new/auditProduct",
|
|
|
+ data: {"productID": productID, "validFlag": validFlag, "remarks": textareaVal},
|
|
|
+ async: false,
|
|
|
+ type: "POST",
|
|
|
+ success: function (data) {
|
|
|
+ if (true == data.success) {
|
|
|
+ $.jBox.tip(data.msg, 'info');
|
|
|
+ } else {
|
|
|
+ $.jBox.tip(data.msg, 'error');
|
|
|
+ }
|
|
|
+ $("#searchForm").submit();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ });
|
|
|
+
|
|
|
+ function showTips(title, text) {
|
|
|
+ $('.tips-popup h4').text(title);
|
|
|
+ $('.tips-popup p').text(text);
|
|
|
+ $('.tips-popup').show();
|
|
|
+ }
|
|
|
|
|
|
// 更新索引
|
|
|
function updateIndex(id) {
|
|
@@ -490,21 +541,26 @@
|
|
|
};
|
|
|
$.jBox(html, {title: "审核", submit: submit});
|
|
|
}
|
|
|
- function validChange(id, flag) {
|
|
|
- var msg = "提示信息";
|
|
|
- if(flag == 10){
|
|
|
- msg = "确定冻结该商品吗?冻结后该商品不会出现在采美商城。";
|
|
|
- }else if(flag == 22){
|
|
|
- msg = "确定解除冻结该商品吗?";
|
|
|
- }else if(flag == 9){
|
|
|
- msg = "确定隐身此商品吗?";
|
|
|
- }else if(flag == 2){
|
|
|
- msg = "确定显身此商品吗?";
|
|
|
- }else if(flag == 0){
|
|
|
- msg = "确定删除该商品吗?删除后不可恢复。";
|
|
|
- }
|
|
|
|
|
|
- top.$.jBox.confirm(msg,'系统提示',function(v,h,f){
|
|
|
+ function validChange(id, flag) {
|
|
|
+ var msg = "提示信息";
|
|
|
+ if (flag == 10) {
|
|
|
+ msg = "确定冻结该商品吗?";
|
|
|
+ } else if (flag == 22) {
|
|
|
+ msg = "确定解除冻结该商品吗?";
|
|
|
+ } else if (flag == 9) {
|
|
|
+ msg = "确定隐身此商品吗?";
|
|
|
+ } else if (flag == 2) {
|
|
|
+ msg = "确定显身此商品吗?";
|
|
|
+ } else if (flag == 0) {
|
|
|
+ msg = "确定删除该商品吗?";
|
|
|
+ }
|
|
|
+ $("#msg").text(msg);
|
|
|
+ $('.tips-popup-reason').show();
|
|
|
+ productID = id;
|
|
|
+ validFlag = flag;
|
|
|
+
|
|
|
+ /*top.$.jBox.confirm(msg,'系统提示',function(v,h,f){
|
|
|
if(v=='ok'){
|
|
|
$.post("${ctx}/product/new/auditProduct",{'productID': id,'validFlag': flag}, function(data) {
|
|
|
if(true==data.success){
|
|
@@ -516,7 +572,7 @@
|
|
|
},"JSON");//这里返回的类型有:json,html,xml,text
|
|
|
}
|
|
|
return;
|
|
|
- },{buttonsFocus:1,persistent: true});
|
|
|
+ },{buttonsFocus:1,persistent: true});*/
|
|
|
}
|
|
|
// 一级分类
|
|
|
var bigtypeList = [
|