<!--#layout("/common/layout.html",{"jsBase":"/js/admin/cuser/"}){ -->
|
<button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1" onclick="javascript:history.go(-1);">返回</button>
|
<div id="xx">
|
|
|
</div>
|
<input type="text" id="userId" value="${userId}" hidden/>
|
<input type="text" id="phone" value="${phone}" hidden/>
|
<input type="text" id="userType" value="${userType}" hidden/>
|
|
<div class="layui-form-item" style="margin-top: 20px;margin-left: 30px">
|
<div class="layui-inline">
|
<div class="layui-input-inline">
|
<input type="text" name="date" id="date" placeholder="开始时间" autocomplete="off" class="layui-input">
|
</div>
|
<div class="layui-form-mid">-</div>
|
<div class="layui-input-inline">
|
<input type="text" name="date1" id="date1" placeholder="结束时间" autocomplete="off" class="layui-input">
|
</div>
|
</div>
|
<button type="button" id="search" class="layui-btn layui-btn-primary">查询</button>
|
</div>
|
<div id="y1">
|
<span>完成注册:<span id="x1"></span> </span>
|
<span>总重量:<span id="x2"></span> </span>
|
<span>总金额:<span id="x3"></span> </span>
|
</div>
|
<style>
|
.statistics-box{
|
display: flex;
|
width: 500px;
|
}
|
.keynote{
|
font-weight: bold;
|
}
|
#y1{
|
margin-left: 30px;
|
}
|
</style>
|
<!--#} -->
|
<script>
|
var index;
|
layui.use(['promoterDetail'], function(){
|
index = layui.promoterDetail
|
});
|
</script>
|
<script>
|
|
var updateName = function(userId, phone){
|
if($("#name").val().length == 0){
|
Common.info('不能为空');
|
return;
|
}
|
$.post(Common.ctxPath+'/admin/cuser/update/updatePromoterName.json', {
|
'name':$("#name").val(), 'userId':userId, 'mobile':phone}, function (value) {
|
console.log(value);
|
if(value >= 1){
|
Common.info('更新成功');
|
}else {
|
Common.info('更新失败');
|
}
|
})
|
}
|
|
$("#search").click(function () {
|
var data = {
|
'userId':$("#userId").val(),
|
'startTime':$("#date").val(),
|
'endTime':$("#date1").val()
|
}
|
getX(data);
|
})
|
|
function getX(data){
|
$.post(Common.ctxPath + '/admin/cuser/qromoter/queryxxxx.json', data, function (data) {
|
console.log(data);
|
$("#x1").html(data.count);
|
$("#x2").html(data.weight);
|
$("#x3").html(data.money);
|
})
|
}
|
getX({'userId':$("#userId").val()})
|
|
|
</script>
|
|
<!--C端用户管理----用户管理--用户详情-->
|