<style type="text/css"> .wrapper-box{ width: 100%; background: #fff; padding-bottom: 0; } .wrapper-box .info>li{ box-sizing: border-box; padding: 24px 30px; border-bottom: 1px solid #D8D8D8; } .wrapper-box .info li h2{ font-weight: normal; font-size: 24px; color: #333333; } .wrapper-box .info li em{ font-size: 18px; display: inline-block; width: 75px; color: #333333; margin-right: 80px; } .wrapper-box .info li a{ font-size: 14px; float: right; color: #4AA5E4; } .wrapper-box .info li a:hover{color: #0074C4;} .wrapper-box .info li p{ float: right; color: #999999; font-size: 14px; } .wrapper-box .info li span{color: #999999;} .clearfix::after{ content: ""; display: block; clear:both; } .wrapper-box .info li div.tip-h p{ float: none; } </style> <div class="wrapper-box"> <ul class="info"> <li style="padding: 19px 30px"><h2>安全信息</h2></li> <li> <em>身份验证</em> <span></span> <p>未设置</p> </li> <li> <em>手机认证</em> <span>未绑定</span> <a href="/taoshop/space/index.html" id="J_setting_mobile">修改</a> <div id="setting-mobile-box" style="display:none;"></div> </li> <li> <em>邮箱认证</em> <span>未设置</span> <a href="javascript:void(0);" id="J_setting_email">修改</a> <div id="setting-email-box" style="display:none;"></div> </li> <li> <em>登录密码</em> <span>未设置</span> <a href="javascript:void(0);" id="J_setting_pwd">修改</a> <div id="setting-pwd-box" style="display:none;"> <div class="inc_main"> <div class="lh22 f14" style="margin-bottom:20px;padding-left:52px;padding-top:50px;"> <div class="field password"> <label for="settings-old-password"><span class="red">*</span>旧密码</label> <input type="password" value="" class="f-input ui-textbox" name="old_password" id="settings-old-password"> </div> <div class="blank10"></div> <div class="field password"> <label for="settings-password"><span class="red">*</span>新密码</label> <input type="password" value="" class="f-input ui-textbox" name="password" id="settings-password"> <span class="hint"></span> </div> <div class="blank10"></div> <div class="field passwrod"> <label for="settings-password-comfirm"><span class="red">*</span>确认密码</label> <input type="password" value="" class="f-input ui-textbox" name="password-confirm" id="settings-password-confirm"> </div> <div class="blank20"></div> <div style="padding-left:190px;_padding-left:180px;"> <input type="button" class="sub_btn" id="settings-password-submit" name="commit" value="保存更改"> </div> </div> </div> </div> </li> </ul> </div> <link rel="stylesheet" href="/admin/public/kindeditor/themes/default/default.css" /> <script type='text/javascript' src='/admin/public/kindeditor/kindeditor.js'></script> <script type="text/javascript" src="/admin/public/kindeditor/lang/zh_CN.js"></script> <script type="text/javascript"> var VAR_MODULE = "m"; var VAR_ACTION = "a"; var ROOT = '/file.php'; var ROOT_PATH = ''; var MAX_FILE_SIZE = "{(:config('MAX_IMAGE_SIZE')/1000000).'MB'}"; jQuery(function(){ $("#J_setting_idno").click(function(){ if($(this).hasClass("v")){ $(this).removeClass("v"); $(this).html($(this).attr("rel")); $("#setting-idno-box").slideUp(); }else{ $(this).addClass("v"); $(this).html("取消"+$(this).attr("rel")); if($.trim($("#setting-idno-box").html())==""){ var ajaxurl = '/taoshop/space/index.html'; $.ajax({ url:ajaxurl, data:"&type=credit_identificationscanning&is_ajax=1", type:"post", dataType:"json", success:function(ajaxobj){ if(ajaxobj.status == 1){ $("#setting-idno-box").html(ajaxobj.info); bindKindeditor(); $("#setting-idno-box").slideDown(); init_ui_checkbox(); init_ui_radiobox(); init_ui_textbox(); init_ui_select(); }else{ $.showErr(ajaxobj.info); } } }); }else{ $("#setting-idno-box").slideDown(); } } }); $("#J_setting_email").click(function(){ if($(this).hasClass("v")){ $(this).removeClass("v"); $(this).html("修改"); $("#setting-email-box").slideUp(); }else{ $(this).addClass("v"); $(this).html("取消修改"); if($.trim($("#setting-email-box").html())==""){ var ajaxurl = '/taoshop/space/index.html'; $.ajax({ url:ajaxurl, data:"&step=1", type:"post", dataType:"text", success:function(ajaxobj){ $("#setting-email-box").html(ajaxobj); $("#setting-email-box").slideDown(); init_ui_textbox(); } }); }else{ $("#setting-email-box").slideDown(); } } }); $("#J_setting_pwd").click(function(){ if($(this).hasClass("v")){ $(this).removeClass("v"); $(this).html("修改"); $("#setting-pwd-box").slideUp(); }else{ $(this).addClass("v"); $(this).html("取消修改"); $("#setting-pwd-box").slideDown(); } }); $("#J_setting_mobile").click(function(){ if($(this).hasClass("v")){ $(this).removeClass("v"); $(this).html("修改"); $("#setting-mobile-box").slideUp(); }else{ $(this).addClass("v"); $(this).html("取消修改"); if($.trim($("#setting-mobile-box").html())==""){ var ajaxurl = $(this).attr("href"); console.log(ajaxurl) $.ajax({ url:ajaxurl, data:"&is_ajax=1", type:"post", dataType:"text", success:function(ajaxobj){ // console.log(ajaxobj) $("#setting-mobile-box").html(ajaxobj); $("#setting-mobile-box").slideDown(); init_ui_textbox(); } }); }else{ $("#setting-mobile-box").slideDown(); } } return false; }); $("#J_setting_paypwd").click(function(){ if($(this).hasClass("v")){ $(this).removeClass("v"); $(this).html("设置"); $("#setting-paypwd-box").slideUp(); }else{ $(this).addClass("v"); $(this).html("取消设置"); if($.trim($("#setting-paypwd-box").html())==""){ var ajaxurl = $(this).attr("href"); $.ajax({ url:ajaxurl, data:"&is_ajax=1", type:"post", dataType:"json", success:function(ajaxobj){ if(ajaxobj.status==1){ $("#setting-paypwd-box").html(ajaxobj.info); $("#setting-paypwd-box").slideDown(); init_ui_textbox(); } else $.showErr(ajaxobj.info); } }); } else $("#setting-paypwd-box").slideDown(); } return false; }); /*重置密码*/ $("#settings-password-submit").click(function(){ if($("#settings-old-password").val() == ''){ $.showErr("旧密码不为空"); return false; } var obj = $("#settings-password"); if(!$.minLength(obj.val(),4,false)){ $.showErr("{function name="sprintf" format=$LANG.FORMAT_ERROR_TIP value=$LANG.USER_TITLE_USER_PWD}"); return false; } if($("#settings-password-confirm").val() != $("#settings-password").val()){ $("#settings-password-confirm").focus(); $.showErr(""); return false; } var query = new Object(); query.is_ajax = 1; query.user_pwd = $("#settings-password").val(); query.old_password = $("#settings-old-password").val(); query.sta = 1; $.ajax({ url:'/taoshop/space/index.html', data:query, type:"post", dataType:"json", success:function(ajaxobj){ if(ajaxobj.status==1){ $.showSuccess(ajaxobj.info,function(){ window.location.reload(); }); }else{ $.showErr(ajaxobj.info); } }, error:function(){ $.showErr("请求数据失败!"); } }); }); }); </script>
0.260735s