乐虎国际 發表於 2019-7-9 16:39:21

求助大神 强制设定登录需要设定昵称才可操作

<img title="Snipaste_2019-07-09_16-33-49.jpg" id="aimg_1132" aid="1132" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/201907/09/163402gkev2dez0ydgdfdn.jpg" src="https://www.dismall.com/data/attachment/forum/201907/09/163402gkev2dez0ydgdfdn.jpg" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="544" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /><br />求助,如何在用户登录后论坛直接设定昵称&nbsp;&nbsp;若不设定昵称&nbsp;&nbsp;自动退出&nbsp;&nbsp;<br /><br />请问这些代码应该要加入到哪里呢?<br /><ol><li>&lt;script src=&quot;template/XXX/image/js/nv.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<br /><li>&lt;div class=&quot;p_pop h_pop&quot; id=&quot;mn_userapp_menu&quot; style=&quot;display: none&quot;&gt;&lt;/div&gt;&lt;div id=&quot;mu&quot; class=&quot;cl&quot;&gt;<br /><li>&lt;/div&gt;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <br /><li>&lt;/div&gt;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<br /><li>&lt;/div&gt;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;div class=&quot;index_tkbg hide&quot;&gt;<br /><li>&nbsp; &nbsp; &lt;div class=&quot;index_tk&quot;&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;p class=&quot;tk_top&quot;&gt;亲爱的客户&lt;/p&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;span class=&quot;tk_close&quot;&gt;×&lt;/span&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;p class=&quot;tk_ts&quot;&gt;创建论坛账号,请先填写昵称(填写后不能更改)&lt;/p&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;div class=&quot;tk_inp tk_mar&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;username&quot; id=&quot;username&quot; maxlength=&quot;15&quot; /&gt;&lt;span class=&quot;warn_tk&quot;&gt;&lt;/span&gt;&lt;/div&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;div class=&quot;tk_inp&quot;&gt;&lt;button id=&quot;subname&quot; class=&quot;disable&quot;&gt;提交&lt;/button&gt;&lt;/div&gt;<br /><li>&nbsp; &nbsp; &lt;/div&gt;<br /><li>&nbsp; &nbsp;<br /><li>&lt;/div&gt;<br /><li>&lt;div class=&quot;login_tkbg hide&quot;&gt;<br /><li>&nbsp; &nbsp; &lt;div class=&quot;index_tk&quot;&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;p class=&quot;tk_top&quot;&gt;亲爱的客户&lt;/p&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;span class=&quot;tk_close&quot;&gt;×&lt;/span&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;p class=&quot;tk_ts&quot;&gt;请先登录您的账号&lt;/p&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&lt;div class=&quot;tk_inp login_marg&quot;&gt;&lt;button id=&quot;login_bth&quot;&gt;立即登录&lt;/button&gt; &lt;button id=&quot;login_know&quot;&gt;我知道了&lt;/button&gt;&lt;/div&gt;<br /><li>&nbsp; &nbsp; &lt;/div&gt;<br /><li>&lt;/div&gt;<br /><li>&lt;div id=&quot;login_bbslink&quot; class=&quot;hide&quot;&gt;online&lt;/div&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;div id=&quot;login_bbsactive&quot; class=&quot;hide&quot;&gt;0&lt;/div&gt;<br /><li>&lt;script type=&quot;text/javascript&quot;&gt;</ol>加载的js:<br /><ol><li>&lt;script type=&quot;text/javascript&quot;&gt;</ol>除此之外还需要加入哪些修改呢?<br />设定<em>, </em>昵称<em>, </em>求助<em>, </em>登录<em>, </em>加入

乐虎国际 發表於 2019-7-9 16:40:40

<br />加载的js:<br /><ol><li>&lt;script type=&quot;text/javascript&quot;&gt;<br /><li>var prj = {};<br /><li>//按钮上几个点的loading效果<br /><li>prj.loadingAnimation = function(container){<br /><li>var loading = '&lt;ul class=&quot;clearfix loadingpoint&quot;&gt;&lt;li class=&quot;active&quot;&gt;&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;/ul&gt;';<br /><li>var loadingpoint = jQuery(container).find('.loadingpoint');<br /><li>if(loadingpoint.length == 0){<br /><li>//需要先加入,再选择&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<br /><li>jQuery(container).append(loading);<br /><li>}<br /><li>var num = 0;<br /><li>var el = $('.loadingpoint li');<br /><li>setInterval(function () {<br /><li>num++;<br /><li>num %= jQuery(el).length;<br /><li>$(el).addClass('active').siblings('li').removeClass();<br /><li>}, 500);<br /><li>}<br /><li>prj.btnloading = function (btn, loadingword) {<br /><li>var loadingword = typeof !loadingword ? '提交中' : loadingword;<br /><li>//复制一个副本<br /><li>var cloneBtn = btn.clone(true);<br /><li><br /><li>/*<br /><li> 按钮克隆,需要单例<br /><li> */<br /><li>btn.hide();<br /><li>btn.siblings('.btnloading').remove();<br /><li>cloneBtn.insertAfter(btn);<br /><li>cloneBtn.addClass('disable btnloading').html(loadingword);<br /><li>//loading效果<br /><li>prj.loadingAnimation(cloneBtn);<br /><li><br /><li>//透明度为0的遮罩<br /><li>// this.newloading();<br /><li>}<br /><li>prj.singleWay = (function () {<br /><li><br /><li>var fgs = {},<br /><li>kit = {<br /><li>resolve: function (key) {<br /><li>fgs = false;<br /><li>}<br /><li>};<br /><li><br /><li>return function (key, func) {<br /><li>if (fgs === true) {<br /><li>return;<br /><li>} else {<br /><li>fgs = true;<br /><li>func.call(kit, key);<br /><li>}<br /><li>}<br /><li>})();<br /><li>if(!String.prototype.trim){<br /><li>String.prototype.trim = function(){<br /><li>return this.replace(/^\s*|\s*&amp;/g,&quot;&quot;);<br /><li>}<br /><li>}<br /><li><br /><li>jQuery(function(jQuery){<br /><li>&nbsp; &nbsp; var active=jQuery('#login_bbsactive').text();&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;//0:无论坛账号&nbsp;&nbsp;非0:有账号<br /><li>&nbsp; &nbsp; var urls=window.location.search;<br /><li>&nbsp; &nbsp; var urlone=urls.split(&quot;?&quot;);<br /><li>&nbsp; &nbsp; if(urlone !=&quot;&quot;){<br /><li>&nbsp; &nbsp; var urlstyle=urlone.split(&quot;=&quot;)<br /><li>&nbsp; &nbsp; var scookie=jQuery.cookie('cookieispop');<br /><li>&nbsp; &nbsp;&nbsp;&nbsp;if(scookie!=undefined &amp;&amp; urlstyle=='ispop'){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;if (active!=0) {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('.index_tkbg').addClass('hide');<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}else{<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('.index_tkbg').removeClass('hide');<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}<br /><li>&nbsp; &nbsp;&nbsp;&nbsp;};<br /><li>&nbsp; &nbsp; }<br /><li>&nbsp; &nbsp; jQuery(document).on('blur','#username',function(){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;var floag=0; <br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;var&nbsp;&nbsp;inp=document.getElementById('username');<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;var username=inp.value;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;if (username.length&lt;3) {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('.warn_tk').text('账号的长度为3-15位');<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; return;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}else{<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; for(var i=0;i&lt;username.length;i++){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; var reg=/^*$/;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; if(reg.test(username)==false){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;floag=1;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;jQuery('.warn_tk').text('昵称不能包含特殊字符');<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;return;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; }<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}<br /><li>&nbsp; &nbsp; if (floag==0) {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;var cookies = document.cookie.split(';');<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;var iscookie=';'<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;for(var i = 0;i&lt;cookies.length;i++){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;var name='cookieispop'+'=';<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;var ca=cookies.trim();<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;if (ca.indexOf(name)==0) {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; iscookie=ca.substring(name.length,ca.length)<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;};<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;};<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;var urls=window.location.search;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; if(urls !=&quot;&quot;){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;var urlstyle=urls.split(&quot;=&quot;)<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;uels=urlstyle;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;jQuery.ajax({<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;type: &quot;POST&quot;,<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;url: &quot;bbslink.php?mod=linkregister&quot;,<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;data: {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 'nickname':username,<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 'ispop':uels,<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 'cookieispop':iscookie,<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 'step':1<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;},<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;success: function (res) {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;var res=JSON.parse(res);<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if(res.status==0){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('.warn_tk').text(&quot;昵称已存在&quot;);<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('#subname').attr('disabled',true)<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}else if(res.status==-1){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('.warn_tk').text(&quot;已存在对应论坛账号&quot;);<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('#subname').attr('disabled',true)<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}else if(res.status==-2){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('.warn_tk').text(&quot;昵称不符合规则&quot;);<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('#subname').attr('disabled',true)<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}else if(res.status==-3){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('.warn_tk').text(&quot;请求路径非法&quot;);<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('#subname').attr('disabled',true)<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}else if(res.status==-4){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;jQuery('.warn_tk').text(&quot;昵称长度不符合&quot;);<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;jQuery('#subname').attr('disabled',true)<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}else{<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('.warn_tk').text(&quot;&quot;);<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('#subname').attr('disabled',false);<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('#subname').removeClass('disable');<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; prj.singleWay('subname-key',function(key){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;var kit = this;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;jQuery(document).on('click','#subname',function(){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;var that = jQuery('#subname');<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;if(that.hasClass('disable')){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; return;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;jQuery.ajax({<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;type: &quot;POST&quot;,<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;url: &quot;bbslink.php?mod=linkregister&quot;,<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;data: {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;'nickname':username,<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;'ispop':uels,<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;'cookieispop':iscookie,<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;'step':2<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;},<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;success: function (res) {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;kit.resolve(key);<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;location.href=&quot;forum.php&quot;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;jQuery('#subname').attr('disabled',true);<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;},<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;error:function(){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; kit.resolve(key);&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; alert('网络异常,请稍后重试')<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;},<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;beforeSend: function () {<br /><li>prj.btnloading(that, '');<br /><li>}<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; })<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;});<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; });<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;},<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;error:function(){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;alert('网络异常,请稍后重试')<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;}<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;})<br /><li>&nbsp; &nbsp; };<br /><li>&nbsp; &nbsp; });<br /><li>&nbsp; &nbsp; jQuery('.tk_close').on('click',function(){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('.index_tkbg').addClass('hide');<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('.login_tkbg').addClass('hide');<br /><li>&nbsp; &nbsp; })<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; jQuery('#login_bth').on('click',function(){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;if($('ls_username').value == '' || $('ls_password').value == '') {<br /><li>var urltwo=location.href<br /><li>var acurl=jQuery('#login_bbslink').text();<br /><li>if (acurl=='develop') {<br /><li>window.open('http://t.e03.com/index.htm?returncode='+urltwo+'');<br /><li>jQuery('.login_tkbg').addClass('hide');<br /><li>}else if(acurl=='online'){<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;window.location.+urltwo+'';<br /><li>}else{<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;window.location.+urltwo+'';<br /><li>}<br /><li>} else {<br /><li>}<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; });<br /><li>&nbsp; &nbsp; jQuery('#login_know').on('click',function(){&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;jQuery('.login_tkbg').addClass('hide');<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; })<br /><li>});<br /><li>&lt;/script&gt;<br /><li>&lt;div id=&quot;wp&quot; class=&quot;wp&quot;&gt;<br /><li></ol>

yeah 發表於 2019-7-10 13:09:03

我不会,但楼下会

琴对谁弹 發表於 2019-7-10 14:34:22

小白路过帮你顶。。。

乐虎国际 發表於 2019-7-11 09:59:22

我不会,但楼下会<br />
頁: [1]
查看完整版本: 求助大神 强制设定登录需要设定昵称才可操作