Authored by dongjunjie

黑名单限制菜单,基础商品分类选择潮童,勾选中童+幼童

module.exports = function (app){
app.get("/user/blacklist", "customService.BlackList", function (req,res){
this.$extend={
moduleName:"客服管理",
pageName:"黑名单限制"
}
});
//解除锁定
app.post("/profile/rmBlackUser","blackList_rmBlackUser");
}
... ...
module.exports={
namespace:"blackList",
apis:{
rmBlackUser:{
title:"解除锁定",
url:"/profile/rmBlackUser",
params:[
{name: 'uid', type: 'Number'}
]
}
}
}
... ...
<%include '../../common/views/__ui/header'%>
<%include '../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body">
<div class="row">
<div class="panel-col2">
<input placeholder="请输入用户uid" id="uid" class="form-control">
</div>
<div class="panel-col">
<a id="dismiss" href="javascript:;" class="btn btn-info">解除</a>
</div>
</div>
</div>
</div>
</div>
<%include '../../common/views/__ui/footer'%>
\ No newline at end of file
... ...
var $ = require('jquery'),
common = require('../../common/common');
$(document).on('click', "#dismiss", function() {
common.util.__ajax({
url: '/profile/rmBlackUser',
data: {uid: common.util.__input("uid")}
}, function(res) {
console.log('data' + res.data);
console.log('message' + res.data);
var code = res.code;
if (code != 200) {
alert(res.message);
}else {
$('#uid').val("");
}
});
});
\ No newline at end of file
... ...
... ... @@ -83,7 +83,7 @@ var SORTDATA={
Bll.setProductName();
}
if(data[0]&&data[0].text&&data[0].text.indexOf("潮童")>-1){
$("#ageLevel").val("2|3");
$("#ageLevel").val("2|3|4|5");
}else{
$("#ageLevel").val("1");
... ...