CINXE.COM

账户注册-九商云汇

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <link rel="shortcut icon" href="https://cdn.iyunhui.com/common/image/favicon.ico"> <title>账户注册-九商云汇</title> <meta name="keywords" content="账户注册"> <meta name="description" content="账户注册"> <script src="https://cdn.iyunhui.com/lib/tingyun-rum.js"></script> <link rel="stylesheet" href="https://cdn.iyunhui.com/lib/layui-v2.3.0/css/layui.css"> <link rel="stylesheet" href="https://cdn.iyunhui.com/lib/icomoon/style.css?20221008"> <!-- <script src="https://unpkg.com/jquery@2.2.4/dist/jquery.js"></script> --> <script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/2.2.4/jquery.min.js"></script> <link rel="stylesheet" href="https://cdn.iyunhui.com/common/common.css?20221008"> <link href="https://cdn.iyunhui.com/passport/index.css?20221008" rel="stylesheet"> </head> <body> <div class="yh-containter-header"> <div class="layui-container"> <div class="logo logo-img"> <a href="https://www.iyunhui.com"> <h2 class="layui-hide">九商云汇</h2> </a> </div> <div class="logo-text">账户注册</div> <div class="pull-right margin-top-40"> 已有账号? <a href="https://passport.iyunhui.com/?a=login" class="login">直接登录</a> </div> </div> </div> <div class="layui-fuild-container yh-fuild-container-date"> <div class="layui-container yh-date-mod"> <div class="tit">欢迎注册九商云汇</div> <div class="content"> <div class="user-login-box yh-wenxin-login" id="qrcode"> <div class="login-form username-box"> <div class="yh-wenxin-grid1" id="scan-qrcode"> </div> <div class="yh-wenxin-grid2 layui-hide"> <div class="text1"> <div class="scan layui-hide"> 扫描成功<br /><span class="text2">请在手机端确认登录</span> </div> <div class="login layui-hide"> <i class="layui-icon layui-icon-refresh-1 layui-anim layui-anim-rotate layui-anim-loop"></i><br /><span class="text2">正在登录中</span> </div> </div> </div> <div class="yh-wenxin-grid3">微信免注册快速登录</div> </div> </div> <div id="form" class="layui-hide"> <form class="layui-form" action="" method="POST"> <div class="layui-form-item"> <div class="layui-input-inline"> <input type="text" name="mobile" lay-verify="required|mobile" placeholder="手机号" autocomplete="off" class="layui-input input-h50 input-w400" id="mobile"> </div> </div> <div class="layui-form-item"> <div class="layui-input-inline"> <input type="text" name="code" lay-verify="required|code" placeholder="输入验证码" autocomplete="off" class="layui-input input-h50 input-w400"> <span class="layui-btn repeat-btn">发送验证码</span> </div> </div> <div class="layui-form-item mar-bottom20"> <div class="layui-input-inline"> <input type="checkbox" lay-skin="primary" title="我已阅读并同意" checked ><div style="float: right;margin-top: 9px;margin-left: -18px;"><a href="https://www.iyunhui.com/about/protocol.html" target="_blank">《九商云汇会员服务条款》</a></div> </div> </div> <div class="layui-form-item"> <div class=""> <button class="layui-btn" lay-submit lay-filter="formDemo">下一步</button> </div> </div> </form> </div> <div style="text-align: center;"><a href="#" style="color:#559ee3;" id="cut-form"><span class="layui-btn layui-btn-radius layui-btn-primary qrcode-text">使用手机验证注册</span><span class="form-text layui-hide">微信免注册快速登录</span></a></div> </div> </div> </div> <!-- <script src="https://unpkg.com/axios@0.17.1/dist/axios.min.js"></script> --> <script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/axios/0.17.1/axios.min.js"></script> <script src="https://cdn.iyunhui.com/common/sdk-1.0.0/sdk.js?20221008"></script> <script src="https://cdn.iyunhui.com/lib/jquery-qrcode-1.0/jquery.qrcode.min.js"></script> <script> var sdk = new iyhSDK(); getCode(); function getCode(){ $(".yh-wenxin-grid2").addClass("layui-hide"); $(".yh-wenxin-grid2").find(".scan").addClass("layui-hide"); $(".yh-wenxin-grid2").find(".login").addClass("layui-hide"); $("#scan-qrcode").html(""); sdk.getScanCode().then(function(res){ var code = res.data.code; sdk.getMpLoginQrcode(code).then(function(res){ $("#scan-qrcode").qrcode({width: 220,height: 220,text: res.data.url}) getState(code) }) }); } function getState(code){ sdk.getScanState(code).then(function(res){ if(res.data.state == "timeout"){ getState(code); return false; } if(res.data.state == "scan"){ $(".yh-wenxin-grid2").removeClass("layui-hide"); $(".yh-wenxin-grid2").find(".scan").removeClass("layui-hide"); sleep(2000); getState(code); return } if(res.data.state == "login"){ $(".yh-wenxin-grid2").removeClass("layui-hide"); $(".yh-wenxin-grid2").find(".scan").addClass("layui-hide"); $(".yh-wenxin-grid2").find(".login").removeClass("layui-hide"); login(res.data.token, code); return } }).catch(function(e){ getCode(); }); } function login(token, code){ setCookie('iyunhui_login_auth', token); sdk.delScanCode(code) location.href="/" // location.reload(); } function setCookie(name, value) { var str = name + "=" + escape(value) + ";domain=.iyunhui.com;path=/"; document.cookie = str; } function sleep(delay) { var start = (new Date()).getTime(); while ((new Date()).getTime() - start < delay) { continue; } } $("#cut-form").click(function(){ $("#form, .form-text").toggleClass("layui-hide"); $("#qrcode, .qrcode-text").toggleClass("layui-hide"); return false; }) </script> <script> $(function(){ var layer = layui.layer; var form = layui.form; form.verify({ mobile: [ /^[1][0-9]{10}$/, '请输入正确的手机号码' ], code: [ /^[0-9]{4}$/, '请输入正确的验证码' ] }); var isSend = false; $(".repeat-btn").click(function(){ var self = this; var mobile = $("#mobile").val(); var exist = false; if(!/^[1][0-9]{10}$/.test(mobile)){ layer.msg("请输入正确的手机号码!"); return false; } $.ajax({ url: "/?a=vaildExist", type: "POST", data: {mobile:mobile}, async: false, success: function(result){ result = $.parseJSON(result); if(result == "error"){ exist = true; layer.msg("此手机号已注册过用户,不能重复注册,请更换其他手机号码!"); } } }); if(exist){ return false; } if(isSend){ return false; } if($(this).hasClass("btn-code-disable")){ return false; } isSend = true; if(mobile != ""){ $.post("/?a=sendCode", {mobile:mobile}, function(data){ var util = layui.util; data = $.parseJSON(data) if(data == "error"){ isSend = false; layer.msg("发送失败!请检查手机号码是否正确,或稍后重试"); } $(self).addClass("btn-code-disable").text("60s后重发"); var endTime = new Date().getTime() + 60000; var serverTime = new Date().getTime(); util.countdown(endTime, serverTime, function(date, serverTime, timer){ if(date[2] == 0){ $(self).text(date[3]+"s后重发"); if(date[3] == 0){ isSend = false; $(self).removeClass("btn-code-disable").text("发送验证码"); } } }); layer.msg("发送成功!"); }); return false; } }); }); </script><div class="yh-mod-footer yh-mod-footer-fixed"> <div class="copy"> ©&nbsp;&nbsp;2024&nbsp;&nbsp;九商云汇&nbsp;&nbsp;版权所有&nbsp;&nbsp;<a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow" style="color:unset">豫ICP备18038776-1号</a> </div> </div> <script> function getPlatform(ua) { let platform = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ua) ? 'h5' : 'pc'; // 是否是横屏 // 废弃的,但是目前是支持的。https://developer.mozilla.org/en-US/docs/Web/API/Window/orientation const isLandscape = Math.abs(window.orientation) === 90; const currentWidth = window.innerWidth; if (platform === 'pc' && currentWidth < 800) { platform = 'h5'; } if (platform === 'h5' && !isLandscape && currentWidth >= 800) { platform = 'pc'; } return platform } if(getPlatform(navigator.userAgent) == 'h5'){ var redirect_url = getParameterByName("redirect_url") location.href = 'https://passport.iyunhui.com/?a=mobile'+(redirect_url ? '&redirect_url='+redirect_url : ''); } function getParameterByName(name) { name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results == null ? "": decodeURIComponent(results[1]); } </script> <script src="https://cdn.iyunhui.com/lib/layui-v2.3.0/layui.all.js"></script></body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10