|
@@ -59,6 +59,60 @@ function controlF(){
|
|
//菜单侧拉按钮
|
|
//菜单侧拉按钮
|
|
$("#control header .menu")[0].onclick=function(){
|
|
$("#control header .menu")[0].onclick=function(){
|
|
$("#control_menu").css('display', 'block');
|
|
$("#control_menu").css('display', 'block');
|
|
- console.log("菜单侧拉按钮")
|
|
|
|
|
|
+
|
|
|
|
+ // 语言---------------------------------------------
|
|
|
|
+ var lanM = GetQueryString(languageMark);
|
|
|
|
+ var en = $("#control_menu .one td.lan_en");
|
|
|
|
+ var cn = $("#control_menu .one td.lan_cn");
|
|
|
|
+ if (lanM==null) {
|
|
|
|
+ en.addClass('in');
|
|
|
|
+ Lanclick()
|
|
|
|
+ }else if (lanM==1) {
|
|
|
|
+ cn.addClass('in');
|
|
|
|
+ Lanclick(1)
|
|
|
|
+ }
|
|
|
|
+ function Lanclick(inde){
|
|
|
|
+ en[0].onclick = function(){
|
|
|
|
+ if (inde==1)return;
|
|
|
|
+ var url = window.location.href;
|
|
|
|
+
|
|
|
|
+ if (url.indexOf("?")>0) {
|
|
|
|
+ var url = url+"&languageMark=0"
|
|
|
|
+ }else{
|
|
|
|
+ var url = url+"?languageMark=0"
|
|
|
|
+ }
|
|
|
|
+ window.location.href=url;
|
|
|
|
+ }
|
|
|
|
+ cn[0].onclick = function(){
|
|
|
|
+ if (inde==1)return;
|
|
|
|
+ var url = window.location.href;
|
|
|
|
+ if (url.indexOf("?")>0) {
|
|
|
|
+ var url = url+"&languageMark=1"
|
|
|
|
+ }else{
|
|
|
|
+ var url = url+"?languageMark=1"
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ window.location.href=url;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 语言---------------------------------------------end
|
|
|
|
+
|
|
|
|
+ // 货币---------------------------------------------
|
|
|
|
+ var tdArr = $("#control_menu .one td.money");
|
|
|
|
+ for (var i = 0; i < tdArr.length; i++) {
|
|
|
|
+ // 闭包特性循环绑定
|
|
|
|
+ (function(){
|
|
|
|
+ var p = i;
|
|
|
|
+ tdArr[i].onclick=function(){
|
|
|
|
+ tdArr.not( $(tdArr[p]) ).removeClass('in');
|
|
|
|
+ $(tdArr[p]).toggleClass('in');
|
|
|
|
+ }
|
|
|
|
+ })();
|
|
|
|
+ }
|
|
|
|
+ // 货币---------------------------------------------end
|
|
|
|
+ $("#control_menu .shut")[0].onclick=function() {
|
|
|
|
+ $("#control_menu").css('display', 'none');
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|