Parcourir la Source

rn入口屏蔽iOS

leijie 6 ans auparavant
Parent
commit
c6d6891998
1 fichiers modifiés avec 12 ajouts et 5 suppressions
  1. 12 5
      show-server/src/main/webapp/biz/js/index.js

+ 12 - 5
show-server/src/main/webapp/biz/js/index.js

@ -13,8 +13,11 @@ require(["ipuUI", "jquery", "iScroll","mobile","wadeMobile"], function (ipuUI, $
13 13
	    	var action = $(this).data("action");
14 14
	    	var noIos = $(this).data("noIos");  // ios是否不支持此插件
15 15
	    	
16
	    	if(action == "ruUI" || action == "rnDisplay"){
17
				return;
16
	    	if(action == "reactNative"){
17
                if(WadeMobile.isIOS()){
18
                    ipuUI.toast("该功能ios版本暂未实现");
19
                    return;
20
                }
18 21
			}
19 22
	    	
20 23
	    	if(WadeMobile.isIOS() && noIos){
@ -33,11 +36,15 @@ require(["ipuUI", "jquery", "iScroll","mobile","wadeMobile"], function (ipuUI, $
33 36
			alert(e);
34 37
		});
35 38
	    
36
	    $("#rnUI").click(function(){
37
	    	WadeMobile.openRN("UI_GRIDVIEW", "main");
38
	    });
39
	    // $("#rnUI").click(function(){
40
	    // 	WadeMobile.openRN("UI_GRIDVIEW", "main");
41
	    // });
39 42
	    
40 43
	    $("#rnDisplay").click(function(){
44
	    	if(WadeMobile.isIOS()){
45
				ipuUI.toast("该功能ios版本暂未实现");
46
				return;
47
			}
41 48
	    	WadeMobile.openRN("RNDisplay", "index");
42 49
	    });
43 50