|
@@ -0,0 +1,633 @@
|
|
|
+<%@ page language="java" contentType="text/html; charset=utf-8"
|
|
|
+ pageEncoding="utf-8"%>
|
|
|
+<%@ include file="../../../taglibs/taglibs.jsp"%>
|
|
|
+<%pageContext.setAttribute("root", request.getContextPath()); %>
|
|
|
+<!doctype html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <title>销售员积分管理</title>
|
|
|
+ <meta http-equiv="Cache-Control" content="no-siteapp">
|
|
|
+ <meta http-equiv="Cache-Control" content="no-transform">
|
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
|
+ <link rel="stylesheet" href="${root}/resources/js/light/css/jquery.lightbox-0.5.css" />
|
|
|
+ <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/netstyle/css/main.css"/>
|
|
|
+ <script src="${root}/resources/js/jquery-1.7.js" type="text/javascript"></script>
|
|
|
+ <script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/sessionout.js"></script>
|
|
|
+ <script src="${root}/resources/netstyle/js/page.js" type="text/javascript"></script>
|
|
|
+ <script src="${root}/resources/js/light/js/jquery.lightbox-0.5.js" type="text/javascript"></script>
|
|
|
+ <script type="text/javascript">
|
|
|
+ var ctx = "${root}";
|
|
|
+ var proArray = new Array();
|
|
|
+ </script>
|
|
|
+
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<div>
|
|
|
+ <p class="main_r_t cc"><span class="span2">当前位置:</span><span>销售员积分管理</span>
|
|
|
+ </p>
|
|
|
+ <form id="queryDiggerList">
|
|
|
+ <div class="act_list">
|
|
|
+ <div class="list_search1">
|
|
|
+ <span>销售员ID:</span> <input style="width:70px;" type="text" name="saleId" id = "query_saleId"/>
|
|
|
+ <span>代理品牌:</span> <input style="width:70px;" type="text" name="agentBrandNames" id = "query_agentBrandNames"/>
|
|
|
+ <span>微信昵称:</span> <input style="width:70px;" type="text" name="saleWxnc" id = "query_saleWxncc"/>
|
|
|
+ <span>加入渠道:</span><input style="width:70px;" type="text" name="saleChannel" id = "query_saleChannel"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="list_search1">
|
|
|
+ <span>姓名:</span> <input style="width:70px;" type="text" name="saleName" id = "query_saleName"/>
|
|
|
+ <span>手机号码:</span> <input style="width:70px;" type="text" name="salePhone" id = "query_salePhone"/>
|
|
|
+ </div>
|
|
|
+ <a class="list_button" style="background-color: #CE0000;" onclick="resetForm();">重置</a>
|
|
|
+ <a class="list_button" onclick="queryDiggerList()">查询</a>
|
|
|
+ <a class="list_button" onclick="exportDiggerList()">导出</a>
|
|
|
+ </div>
|
|
|
+ <div id="appendId" class="overflow_main"></div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+</div>
|
|
|
+<div class="tc_newts" id="tishialert">
|
|
|
+ <div class="tcnewts_main">
|
|
|
+ <img class="newts_xxx" onclick="qx_tan($('#tishitc'));" src="${pageContext.request.contextPath}/resources/images/tan_xxx.png">
|
|
|
+ <h3>温馨提示</h3>
|
|
|
+ <p id="tishiwen"></p>
|
|
|
+ <div class="newts_btn" style="text-align:center;" ><a class="btn2" onclick="qx_tan($('#tishialert'));" style="text-align: center;margin-right:0px;">我知道了</a></div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<!-- 弹出的审核页面-->
|
|
|
+<div class="tcbox3">
|
|
|
+ <div class="tcbox_main" style="width:900px;height:550px; overflow:auto">
|
|
|
+ <div style="width: 100%;height: 50px;background-color: #0c91d0"><p style="float: left;margin-top: 10px;font-size: 18px;margin-left: 10px;">身份认证审核</p></div>
|
|
|
+ <div class="new_price cc" style="width: 100%;height: 200px">
|
|
|
+ <div class="left left1" style="width: 200px;height: 200px;">
|
|
|
+ <img src="${root}/resources/images/photoerr.png" id="idCardImaPo" onerror="this.src='${root}/resources/images/photoerr.png'" style="width: 100%;height: 100%"/>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="left left1" style="width: 200px;height: 200px">
|
|
|
+ <img src="${root}/resources/images/photoerr.png" id="idCardImaSi" onerror="this.src='${root}/resources/images/photoerr.png'" style="width: 100%;height: 100%"/>
|
|
|
+ </div>
|
|
|
+ <div class="left left1" style="width: 200px;height: 200px; ">
|
|
|
+ <img src="${root}/resources/images/photoerr.png" id="headPortrait" onerror="this.src='${root}/resources/images/photoerr.png'" style="width: 100%;height: 100%" />
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="left" style="width: 100%">
|
|
|
+ <input type="hidden" name="id" id="authenticId" />
|
|
|
+ <input type="hidden" name="wxOpenId" id="wxOpenId" />
|
|
|
+ <input type="hidden" name="agentId" id="agentId" />
|
|
|
+ <div class="tc3_search1"><span style="width:120px;">身份证号:</span><input autocomplete="off" type="text" name="idCardNo" id="idCardNo" readonly="readonly" /></div>
|
|
|
+ <div class="tc3_search1"><span style="width:120px;">身份证有效期:</span><input autocomplete="off" type="text" name="cardvalidity" id="cardvalidity" readonly="readonly" /></div>
|
|
|
+ <div class="tc3_search1"><span style="width:120px;">真实姓名:</span><input autocomplete="off" type="text" name="realName" id="realName" readonly="readonly"/></div>
|
|
|
+ <div class="tc3_search1"><span style="width:120px;">银行卡号:</span><input autocomplete="off" type="text" name="bankCardNo" id="bankCardNo" readonly="readonly"/></div>
|
|
|
+ <div class="tc3_search1"><span style="width:120px;">联系号码:</span><input autocomplete="off" type="text" name="phone" id="phone" readonly="readonly"/></div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="left" style="width: 100%;margin-top: 20px">
|
|
|
+ <p class="tc_btm"><a class="tc_btm_r" onclick="authenticNCheck(3);" id="noC">不通过</a><a class="tc_btm_r" onclick="authenticYCheck(2);" id="isC">通过</a></p>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <img class="tc_xxx tc_xxx3" src="${root}/resources/images/tan_xxx.png" />
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class="tcbox4" >
|
|
|
+ <div class="tcbox_main" style="width:600px;height:400px; overflow:auto">
|
|
|
+ <div style="width: 100%;height: 50px;background-color: #0c91d0"><p style="float: left;margin-top: 10px;font-size: 18px;margin-left: 10px;">修改会员等级</p></div>
|
|
|
+
|
|
|
+ <input type="hidden" name="id" id="cheshangId1" />
|
|
|
+ <div class="tc3_search1"><span style="width:120px;">用户账号名:</span><input autocomplete="off" type="text" name="idCardNo" id="daName1" readonly="readonly" /></div>
|
|
|
+ <div class="tc3_search1"><span style="width:120px;">联系号码:</span><input autocomplete="off" type="text" name="idCardNo" id="daPhone1" readonly="readonly" /></div>
|
|
|
+
|
|
|
+ <div class="tc3_search1"><span style="width:120px;">请选择会员等级:</span>
|
|
|
+ <select id="selectedd">
|
|
|
+ <option value="1">贵宾会员</option>
|
|
|
+ <option value="2">金尊会员</option>
|
|
|
+ <option value="3">至尊会员</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <p class="tc_btm"><a class="tc_btm_l tc_qx3" onclick="quxiao()">取消</a><a class="tc_btm_r" href="javascript:void(0);" onclick="savaHy();">保存</a></p>
|
|
|
+
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<!-- 修改积分弹窗-->
|
|
|
+<div class="tcbox2">
|
|
|
+ <div class="tcbox_main" style="width:600px;height:400px; overflow:auto">
|
|
|
+ <div style="width: 100%;height: 50px;background-color: #0c91d0"><p style="float: left;margin-top: 10px;font-size: 18px;margin-left: 10px;">修改用户积分</p></div>
|
|
|
+ <input type="hidden" name="id" id="cheshangId" />
|
|
|
+ <div class="tc3_search1"><span style="width:120px;">用户账号名:</span><input autocomplete="off" type="text" name="idCardNo" id="daName" readonly="readonly" /></div>
|
|
|
+ <div class="tc3_search1"><span style="width:120px;">联系号码:</span><input autocomplete="off" type="text" name="idCardNo" id="daPhone" readonly="readonly" /></div>
|
|
|
+ <div class="tc3_search1"><span style="width:120px;">积分余额:</span><input autocomplete="off" type="text" name="idCardNo" id="integral" /></div>
|
|
|
+ <p class="tc_btm"><a class="tc_btm_l tc_qx3" href="javascript:;">取消</a><a class="tc_btm_r" href="javascript:void(0);" onclick="savaInte();">保存</a></p>
|
|
|
+ <img class="tc_xxx tc_xxx2" src="${root}/resources/images/tan_xxx.png" />
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+<div class="tc_newts" id="brandtc">
|
|
|
+ <div class="tcnewts_main">
|
|
|
+ <img class="newts_xxx" onclick="qx_tan($('#brandtc'));" src="${pageContext.request.contextPath}/resources/images/tan_xxx.png">
|
|
|
+ <h3 style="margin-bottom:5px;">请选择关注的品牌(最多选择5个)</h3>
|
|
|
+ <input type="hidden" id="brand_id" value="" />
|
|
|
+ <table>
|
|
|
+ <tbody>
|
|
|
+ <c:forEach items="${brandBeanList}" var="br" varStatus="brs">
|
|
|
+ <c:if test="${brs.index % 4 == 0}">
|
|
|
+ <tr style="height:30px;">
|
|
|
+ </c:if>
|
|
|
+ <td style="padding-right:20px;">
|
|
|
+ <input style="margin-right: 5px;" id="brands_${br.id}" name="brands" type="checkbox" value="${br.id}"><label for="brands_${br.id}">${br.name}</label>
|
|
|
+ </td>
|
|
|
+ <c:if test="${brs.index % 4 == 3 or brs.last}">
|
|
|
+ </tr>
|
|
|
+ </c:if>
|
|
|
+ </c:forEach>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <div class="newts_btn"><a class="btn2" id="tishiqr" onclick="confirmBrands()">确认</a></div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class="public_prompt" id="tsalert">您输入的信息有误,请确认后重新输入</div>
|
|
|
+
|
|
|
+<!-- -->
|
|
|
+
|
|
|
+</body>
|
|
|
+<script src="${root}/resources/js/index.js" type="text/javascript"></script>
|
|
|
+<script type="text/javascript">
|
|
|
+ var getHead={getDiggerHead:function(obj){
|
|
|
+ var rowstr = "<tr>";
|
|
|
+ rowstr += "<th rowspan='2'>全选<b class=\"dd_choose all\" wade=\"all\" onclick=\"confirmDigger(this)\"></b></th>";
|
|
|
+ rowstr += "<th rowspan='2'>销售员ID</th>";
|
|
|
+ rowstr += "<th rowspan='2'>姓名</th>";
|
|
|
+ rowstr += "<th rowspan='2'>手机号码</th>";
|
|
|
+ rowstr += "<th rowspan='2'>微信昵称</th>";
|
|
|
+ rowstr += "<th rowspan='2'>公众号加入渠道</th>";
|
|
|
+ rowstr += "<th rowspan='2'>代理的品牌</th>";
|
|
|
+ rowstr += "<th rowspan='2'>认证</th>";
|
|
|
+ rowstr += "<th rowspan='2'>会员等级</th>";
|
|
|
+ rowstr += "<th rowspan='2'>积分</th>";
|
|
|
+ rowstr += "<th rowspan='2'>保证金(万)</th>";
|
|
|
+ rowstr += "<tr>";
|
|
|
+ rowstr += "</tr>";
|
|
|
+ return rowstr;
|
|
|
+ }};
|
|
|
+ //列表内容
|
|
|
+ var getListContext={getDiggerList:function(headObj,bodyObj){
|
|
|
+ var rowstr = "";
|
|
|
+ for (var i = 0; i < bodyObj.length; i++) {
|
|
|
+ var bodyItem = bodyObj[i];
|
|
|
+ rowstr += "<tr>";
|
|
|
+ rowstr += "<td><b class=\"dd_choose\" wade=\""+bodyItem.id+"\" onclick=\"confirmDigger(this)\"></b></td>";
|
|
|
+ var newDaId = showDisId(bodyItem.saleId);
|
|
|
+ rowstr += "<td><span>" +newDaId+ "</span></td>";
|
|
|
+ rowstr += "<td><span>" +bodyItem.saleName+ "</span></td>";
|
|
|
+ rowstr += "<td><span>" +bodyItem.salePhone+ "</span></td>";
|
|
|
+ rowstr += "<td><span>" +bodyItem.saleWxnc+ "</span></td>";
|
|
|
+ rowstr += "<td><span>" +bodyItem.saleChannel+ "</span></td>";
|
|
|
+ rowstr += "<td>";
|
|
|
+ rowstr += "<input type='hidden' value='"+bodyItem.agentBrandIds+"' id='focus_ids_"+bodyItem.id+"' name='focus_ids_"+bodyItem.id+"' />";
|
|
|
+ rowstr += "<span id='showBrands_"+bodyItem.id+"'>" +bodyItem.agentBrandNames+ "</span>";
|
|
|
+ rowstr += "</td>";
|
|
|
+ rowstr += "<td>"
|
|
|
+ var st=bodyItem.state;
|
|
|
+ if(st==0){rowstr += "<span>未提交</span>";}
|
|
|
+ if(st==1){rowstr += "<span>未审核</span>";}
|
|
|
+ if(st==2){rowstr += "<span>通过</span>";}
|
|
|
+ if(st==3){rowstr += "<span>审核不通过</span>";}
|
|
|
+
|
|
|
+ //rowstr += "<span><b class=\"td_b2\" onclick=\"showCheck('"+bodyItem.daID+"')\">查看</b></span>";//旧的代码
|
|
|
+ if(st != 0){
|
|
|
+ rowstr += "<span><b class=\"td_b2\" onclick=\"showUserIdnetity('"+bodyItem.wxOpenid+"','"+bodyItem.agentId+"')\">查看</b></span>";//icegan--新增
|
|
|
+ }
|
|
|
+
|
|
|
+ rowstr += "</td>";
|
|
|
+
|
|
|
+ if(bodyItem.memberLevel==0){ rowstr += "<td><span><b class=\"td_b2\" onclick=\"editHy('"+bodyItem.id+"')\">普通会员</b></span></td>";}
|
|
|
+ if(bodyItem.memberLevel==1){ rowstr += "<td><span><b class=\"td_b2\" onclick=\"editHy('"+bodyItem.id+"')\">贵宾会员</b></span></td>";}
|
|
|
+ if(bodyItem.memberLevel==2){ rowstr += "<td><span><b class=\"td_b2\" onclick=\"editHy('"+bodyItem.id+"')\">金尊会员</b></span></td>";}
|
|
|
+ if(bodyItem.memberLevel==3){ rowstr += "<td><span><b class=\"td_b2\" onclick=\"editHy('"+bodyItem.id+"')\">至尊会员</b></span></td>";}
|
|
|
+
|
|
|
+ rowstr += "<td><span>" +bodyItem.integral+ "<span><b class=\"td_b2\" onclick=\"editInte('"+bodyItem.id+"')\">修改</b></span>"+"</span></td>";
|
|
|
+ rowstr += "<td><span>" +bodyItem.deposit+ "</span></td>";
|
|
|
+ rowstr += "</td>";
|
|
|
+
|
|
|
+ rowstr += "</tr>";
|
|
|
+ }
|
|
|
+ return rowstr;
|
|
|
+ }};
|
|
|
+ var url=ctx+'/saleintegral/saleList.do';
|
|
|
+ $(function(){
|
|
|
+ toDynamicQueryList('f',url, 'queryDiggerList', 'getDiggerHead', 'getDiggerList', 'appendId');
|
|
|
+ });
|
|
|
+
|
|
|
+ function showBrands(id,ids){
|
|
|
+ if(id){
|
|
|
+ $("#brand_id").val(id);
|
|
|
+ }
|
|
|
+ $("#brandtc").find('input:checkbox').each(function() {
|
|
|
+ $(this).attr('checked',false);
|
|
|
+ });
|
|
|
+ if(ids){
|
|
|
+ var checkIds = ids.split(",");
|
|
|
+ for(var i=0;i<checkIds.length;i++){
|
|
|
+ $("#brands_"+checkIds[i]).attr("checked","checked");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ tanKuangMsg($("#brandtc"));
|
|
|
+ }
|
|
|
+
|
|
|
+ function confirmBrands(){
|
|
|
+ var i=0;
|
|
|
+ var ids = "";
|
|
|
+ var names = "";
|
|
|
+ $("#brandtc").find('input:checkbox').each(function() {
|
|
|
+ if ($(this).prop('checked') == true) {
|
|
|
+ i++;
|
|
|
+ ids += $(this).val()+",";
|
|
|
+ names += $(this).next().text()+",";
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if(i>5){
|
|
|
+ tsalert("最多只能选择5项哦!");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if(ids.length>0){
|
|
|
+ ids = ids.substring(0,ids.length-1);
|
|
|
+ names = names.substring(0,names.length-1);
|
|
|
+ }
|
|
|
+ var id = $("#brand_id").val();
|
|
|
+ $("#focus_ids_"+id).val(ids);
|
|
|
+ $("#focus_names_"+id).val(names);
|
|
|
+ $("#showBrands_"+id).html(names);
|
|
|
+ qx_tan($('#brandtc'));
|
|
|
+ }
|
|
|
+
|
|
|
+ //显示提示弹框
|
|
|
+ function tsalert(content){
|
|
|
+ $("#tsalert").html(content);
|
|
|
+ setTimeout(function(){
|
|
|
+ $("#tsalert").fadeIn();
|
|
|
+ },300);
|
|
|
+ setTimeout(function(){
|
|
|
+ $("#tsalert").fadeOut();
|
|
|
+ },2300);
|
|
|
+ }
|
|
|
+
|
|
|
+ function queryDiggerList(){
|
|
|
+ toDynamicQueryList('f',url, 'queryDiggerList', 'getDiggerHead', 'getDiggerList', 'appendId');
|
|
|
+ };
|
|
|
+
|
|
|
+ function exportDiggerList(){
|
|
|
+ var ids='';
|
|
|
+ $(".dd_choose.sure").each(function(){
|
|
|
+ if($(this).attr("wade")!="all"){
|
|
|
+ ids += $(this).attr("wade")+",";
|
|
|
+ }
|
|
|
+ });
|
|
|
+ ids=ids.substring(0,ids.length-1);
|
|
|
+ window.location.href=ctx+'/saleintegral/exportSales.do?saleId='+$("#query_saleId").val()
|
|
|
+ +'&agentBrandNames='+$("#query_agentBrandNames").val()+'&saleWxnc='+$("#query_saleWxncc").val()
|
|
|
+ +'&saleChannel='+$("#query_saleChannel").val()+'&saleName='+$("#query_saleName").val()
|
|
|
+ +'&salePhone='+$("#query_salePhone").val()
|
|
|
+ +'&ids='+ids;
|
|
|
+ }
|
|
|
+
|
|
|
+ //重置表单搜索条件
|
|
|
+ function resetForm(){
|
|
|
+ $("#queryDiggerList input").val("");
|
|
|
+ $("#queryDiggerList .wadeShow").html("全部");
|
|
|
+ }
|
|
|
+
|
|
|
+ function saveDigger(id){
|
|
|
+ var agentTpSet = $("input[name='agentTp_"+id+"']:checked").val();
|
|
|
+ var platTpSet = $("input[name='platTp_"+id+"']:checked").val();
|
|
|
+ var focusBrandIds = $("#focus_ids_"+id).val();
|
|
|
+ var focusBrandNames = $("#focus_names_"+id).val();
|
|
|
+ $.ajax({
|
|
|
+ url:ctx+'/saleintegral/edit.do',
|
|
|
+ type:'post',
|
|
|
+ data:{'editFlag':'1','id':id,"daProvince":$("#daProvince_"+id).val(),"focusBrandIds":focusBrandIds,"focusBrandNames":focusBrandNames,"agentTpSet":agentTpSet,"platTpSet":platTpSet},
|
|
|
+ dataType :'json',
|
|
|
+ success:function(data){
|
|
|
+ tsalert(data.message);
|
|
|
+ queryDiggerList();
|
|
|
+ },
|
|
|
+ error:function(){
|
|
|
+ tsalert("系统繁忙,请稍后再试!");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function confirmDigger(obj) {
|
|
|
+ var that = $(obj);
|
|
|
+ var wade = that.attr("wade");
|
|
|
+ if(wade=="all"){
|
|
|
+ if(that.hasClass("sure")){
|
|
|
+ $(".dd_choose").removeClass("sure");
|
|
|
+ }else{
|
|
|
+ //给当前点击事件的目标用户打勾并且把所有其他勾去掉
|
|
|
+ $(".dd_choose").addClass("sure");
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ $(".all").removeClass("sure");
|
|
|
+ if(that.hasClass("sure")){
|
|
|
+ that.removeClass("sure");
|
|
|
+ }else{
|
|
|
+ //给当前点击事件的目标用户打勾并且把所有其他勾去掉
|
|
|
+ that.addClass("sure");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ function showCheck(id) {
|
|
|
+ $.ajax({
|
|
|
+ type: "GET",
|
|
|
+ url: ctx+'/authentic/showCheck.do',
|
|
|
+ // url:'https://www.weigongcheng.net/wjj-api/diggerDisplace/getOne',
|
|
|
+ data:{id:id},
|
|
|
+ async: false,
|
|
|
+ dataType: "json",
|
|
|
+ success: function(data){
|
|
|
+ // alert(data.message);
|
|
|
+ console.log(data)
|
|
|
+ if(data.code == "000000") {
|
|
|
+ var obj = data.result;
|
|
|
+ $("#idCardNo").val(obj.idCardNumber);
|
|
|
+ $("#realName").val(obj.realName);
|
|
|
+ $("#bankCardNo").val(obj.bankCardNumber);
|
|
|
+ $("#phone").val(obj.phone);
|
|
|
+ $("#authenticId").val(obj.id);
|
|
|
+
|
|
|
+ // $("#idCardImaPo").css("background-image","url("+obj.idCardImaPo+")")
|
|
|
+ $("#idCardImaPo").attr("src",obj.idCardImaPo);
|
|
|
+ $("#idCardImaSi").attr("src",obj.idCardImaSi);
|
|
|
+ $("#headPortrait").attr("src",obj.headPortrait);
|
|
|
+
|
|
|
+ // $("#bigimg").attr("href",obj.headPortrait);
|
|
|
+ if(obj.isCheck==2){
|
|
|
+
|
|
|
+ $("#isC").hide()
|
|
|
+ $("#noC").hide()
|
|
|
+ }
|
|
|
+ if(obj.isCheck==3){
|
|
|
+ $("#isC").hide()
|
|
|
+ $("#noC").hide()
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if(obj){
|
|
|
+
|
|
|
+
|
|
|
+ }else{
|
|
|
+
|
|
|
+ tsalert("系统繁忙,请稍后再来!");
|
|
|
+ }
|
|
|
+ tanKuang($('.tcbox3'));
|
|
|
+ }else if(data.code == '999999'){
|
|
|
+ tsalert(data.message);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * icegan--新增显示用户认证信息
|
|
|
+ * @param wxOpenId
|
|
|
+ * @param agentId
|
|
|
+ */
|
|
|
+ function showUserIdnetity(wxOpenId, agentId) {
|
|
|
+ $.ajax({
|
|
|
+ type: "GET",
|
|
|
+ url: ctx+'/userIdentity/getUserIdentityInfo.do',
|
|
|
+ data: {wxOpenId:wxOpenId,agentId:agentId},
|
|
|
+ async: false,
|
|
|
+ dataType: "json",
|
|
|
+ success: function(data){
|
|
|
+ console.log(data)
|
|
|
+ if(data.code == "000000") {
|
|
|
+ var obj = data.result;
|
|
|
+ $("#idCardNo").val(obj.idcard);
|
|
|
+ $("#realName").val(obj.username);
|
|
|
+ $("#bankCardNo").val(obj.accountno);
|
|
|
+ $("#phone").val(obj.mobile);
|
|
|
+ $("#cardvalidity").val(obj.cardvalidity);
|
|
|
+ $('#wxOpenId').val(obj.useropenid);
|
|
|
+ $('#agentId').val(obj.agentId);
|
|
|
+
|
|
|
+ $("#idCardImaPo").attr("src",obj.idcarddfrontpic);
|
|
|
+ $("#idCardImaSi").attr("src",obj.idcarddbackpic);
|
|
|
+ $("#headPortrait").attr("src",obj.bankcardpic);
|
|
|
+
|
|
|
+ if(obj.status==2 || obj.status==3){
|
|
|
+
|
|
|
+ $("#isC").hide()
|
|
|
+ $("#noC").hide()
|
|
|
+ }
|
|
|
+
|
|
|
+ if(obj){
|
|
|
+
|
|
|
+
|
|
|
+ }else{
|
|
|
+
|
|
|
+ tsalert("系统繁忙,请稍后再来!");
|
|
|
+ }
|
|
|
+ tanKuang($('.tcbox3'));
|
|
|
+ }else if(data.code == '999999'){
|
|
|
+ tsalert(data.message);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function editHy(id) {
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: ctx+'/saleintegral/editInte.do',
|
|
|
+ data:{id:id},
|
|
|
+ async: false,
|
|
|
+ dataType: "json",
|
|
|
+ success: function(data){
|
|
|
+ console.log(data)
|
|
|
+ var obj = data.result;
|
|
|
+ $("#daName1").val(obj.saleName);
|
|
|
+ $("#cheshangId1").val(id);
|
|
|
+ $("#daPhone1").val(obj.salePhone);
|
|
|
+
|
|
|
+ tanKuang($('.tcbox4'));
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ function authenticNCheck(check) {
|
|
|
+ var authenticId=$("#authenticId").val()
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: ctx+'/authentic/doCheck.do',
|
|
|
+ data:{id:authenticId,isCheck:check},
|
|
|
+ async: false,
|
|
|
+ dataType: "json",
|
|
|
+ success: function(data){
|
|
|
+ qx_tan($('.tcbox3'));
|
|
|
+ location.reload()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ function authenticYCheck(check) {
|
|
|
+ var authenticId=$("#authenticId").val()
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: ctx+'/authentic/doCheck.do',
|
|
|
+ data:{id:authenticId,isCheck:check},
|
|
|
+ async: false,
|
|
|
+ dataType: "json",
|
|
|
+ success: function(data){
|
|
|
+ qx_tan($('.tcbox3'));
|
|
|
+ location.reload()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ //icegan--新增审核不通过
|
|
|
+ function userIdentityNCheck(check) {
|
|
|
+ var authenticId=$("#authenticId").val();
|
|
|
+ var wxOpenId = $('#wxOpenId').val();
|
|
|
+ var agentId = $('#agentId').val();
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: ctx+'/userIdentity/verify.do',
|
|
|
+ data:{wxOpenId:wxOpenId, agentId:agentId, status:check},
|
|
|
+ async: false,
|
|
|
+ dataType: "json",
|
|
|
+ success: function(data){
|
|
|
+ qx_tan($('.tcbox3'));
|
|
|
+ location.reload()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ //icegan--新增审核通过
|
|
|
+ function userIdentityYCheck(check) {
|
|
|
+ var authenticId=$("#authenticId").val();
|
|
|
+ var wxOpenId = $('#wxOpenId').val();
|
|
|
+ var agentId = $('#agentId').val();
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: ctx+'/userIdentity/verify.do',
|
|
|
+ data:{wxOpenId:wxOpenId, agentId:agentId, status:check},
|
|
|
+ async: false,
|
|
|
+ dataType: "json",
|
|
|
+ success: function(data){
|
|
|
+ qx_tan($('.tcbox3'));
|
|
|
+ location.reload()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ function editInte(id) {
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: ctx+'/saleintegral/editInte.do',
|
|
|
+ data:{id:id},
|
|
|
+ async: false,
|
|
|
+ dataType: "json",
|
|
|
+ success: function(data){
|
|
|
+ console.log(data)
|
|
|
+ var obj = data.result;
|
|
|
+ $("#daName").val(obj.saleName);
|
|
|
+ $("#cheshangId").val(id);
|
|
|
+ $("#daPhone").val(obj.salePhone);
|
|
|
+ $("#integral").val(obj.integral);
|
|
|
+ tanKuang($('.tcbox2'));
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ function savaInte(){
|
|
|
+ var cheshangid=$("#cheshangId").val()
|
|
|
+ var jifen=$("#integral").val()
|
|
|
+ $.ajax({
|
|
|
+ type:"post",
|
|
|
+ url:ctx+'/saleintegral/saveInte.do',
|
|
|
+ data:{id:cheshangid,integral:jifen},
|
|
|
+ async:false,
|
|
|
+ dataType:"json",
|
|
|
+ success:function (data) {
|
|
|
+ console.log(data)
|
|
|
+ qx_tan($('.tcbox2'));
|
|
|
+ location.reload()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ function savaHy(){
|
|
|
+
|
|
|
+ var cheshangid=$("#cheshangId1").val()
|
|
|
+ var dengji=$("#selectedd option:selected").attr("value")
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ type:"post",
|
|
|
+ url:ctx+'/saleintegral/updateHy.do',
|
|
|
+ data:{id:cheshangid,dengji:dengji},
|
|
|
+ async:false,
|
|
|
+ dataType:"json",
|
|
|
+ success:function (data) {
|
|
|
+ console.log(data)
|
|
|
+ qx_tan($('.tcbox4'));
|
|
|
+ location.reload()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ function quxiao() {
|
|
|
+ qx_tan($('.tcbox4'));
|
|
|
+ }
|
|
|
+
|
|
|
+ function updatePlatTpSet(id, platTpSet){
|
|
|
+ $.ajax({
|
|
|
+ type:"post",
|
|
|
+ url: ctx+'/saleintegral/updatePlatTpSet.do',
|
|
|
+ data: {id: id, platTpSet: platTpSet},
|
|
|
+ async: false,
|
|
|
+ success: function (data) {
|
|
|
+ qx_tan($('.tcbox4'));
|
|
|
+ location.reload()
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+</script>
|
|
|
+<style type="text/css">
|
|
|
+ .list_act_main span b {
|
|
|
+ font-weight: 400;
|
|
|
+ color: #038bcb;
|
|
|
+ cursor: pointer;
|
|
|
+ display: inline-block;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ #copy {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ opacity: 0;
|
|
|
+ z-index: -10;}
|
|
|
+ span input{
|
|
|
+ display:inline-block;
|
|
|
+ *zoom:1;
|
|
|
+ *display:inline;
|
|
|
+ vertical-align:middle;
|
|
|
+ height:24px;
|
|
|
+ line-height:24px;
|
|
|
+ padding:0 10px;
|
|
|
+ width:60%;
|
|
|
+ margin-right:10px;
|
|
|
+ border:1px solid #ccc;}
|
|
|
+</style>
|
|
|
+</html>
|