优化 新触屏版补充退出登录
This commit is contained in:
parent
d4a5caf79e
commit
5c576402b8
|
@ -9,7 +9,7 @@
|
|||
|
||||
define('APPTYPEID', 127);
|
||||
define('CURSCRIPT', 'plugin');
|
||||
|
||||
define('NOT_IN_MOBILE_API', 1);
|
||||
|
||||
require './source/class/class_core.php';
|
||||
|
||||
|
|
|
@ -459,6 +459,7 @@ $lang = array (
|
|||
'm_my_r' => '我的回复',
|
||||
'm_stickt' => '置顶帖',
|
||||
'm_share' => '如果喜欢这个话题,请点击右上角图标分享',
|
||||
'm_logout' => '退出登录',
|
||||
);
|
||||
|
||||
?>
|
|
@ -77,26 +77,19 @@ var dataLoaded = function (data) {
|
|||
}
|
||||
$('#infonav').html(infoHtml);
|
||||
if (window.location.hash == '#logout') {
|
||||
TOOLS.dget(DOMAIN + 'plugin.php?id=wechat&ac=logout&hash=' + data.Variables.formhash, null, null, null, 'text/plain', false, false);
|
||||
TOOLS.dget(DOMAIN + 'plugin.php?id=wechat&ac=logout&hash=' + data.Variables.formhash, null, function() {
|
||||
TOOLS.openNewPage('?a=index');
|
||||
}, null, 'text/plain', false, false);
|
||||
}
|
||||
};
|
||||
|
||||
var bindEvent = function (data) {
|
||||
$("#forumlist").append('版块');
|
||||
if (data.Variables.member_uid == data.Variables.space.uid) {
|
||||
if (F == 'wx') {
|
||||
if (!TOOLS.isWX()) {
|
||||
$('#switchMember').on('click', function () {
|
||||
TOOLS.openNewPage(window.location.search + '&login=yes');
|
||||
});
|
||||
$('#switchText').html('帐号切换');
|
||||
} else {
|
||||
$('#switchMember').on('click', function () {
|
||||
TOOLS.openNewPage('?a=account&referer=none');
|
||||
});
|
||||
}
|
||||
$('#switchNav').show();
|
||||
}
|
||||
$('#switchMember').on('click', function () {
|
||||
TOOLS.openNewPage('?a=profile&logout#logout');
|
||||
});
|
||||
$('#switchNav').show();
|
||||
} else {
|
||||
$('#profileNav').show();
|
||||
}
|
||||
|
@ -116,17 +109,6 @@ var bindEvent = function (data) {
|
|||
$('#mypost').on('click', function () {
|
||||
TOOLS.openNewPage('?a=mythread&ac=reply');
|
||||
});
|
||||
if (TOOLS.isWX()) {
|
||||
$('#myfavorite').on('click', function () {
|
||||
TOOLS.openNewPage('?a=myfavorite&ac=list');
|
||||
});
|
||||
$('#myviewedsite').on('click', function () {
|
||||
TOOLS.openNewPage('?a=myviewedsite');
|
||||
});
|
||||
} else {
|
||||
$('#myfavorite').parent().hide();
|
||||
$('#myviewedsite').parent().hide();
|
||||
}
|
||||
$(".backBtn").click(function () {
|
||||
TOOLS.pageBack('?a=index');
|
||||
});
|
||||
|
|
|
@ -3,6 +3,16 @@
|
|||
<div class="warp">
|
||||
<div id="header"></div>
|
||||
<div class="container conM">
|
||||
<div class="topicBox profilenav" id="switchNav" style="display:none">
|
||||
<ul>
|
||||
<li class="topicRank pShow">
|
||||
<a id="switchMember">
|
||||
<span id="switchText">{lang m_logout}</span>
|
||||
<span class="incoAnswer db rkArrow"></span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="topicBox profilenav" id="profileNav" style="display:none">
|
||||
<ul>
|
||||
<li class="topicRank pShow">
|
||||
|
|
Loading…
Reference in New Issue