yangbiao vor 9 Jahren
Ursprung
Commit
9378fc6fa8
1 geänderte Dateien mit 64 neuen und 64 gelöschten Zeilen
  1. 64 64
      display-server/web/biz/js/plugin/ui.js

+ 64 - 64
display-server/web/biz/js/plugin/ui.js

@ -1,65 +1,65 @@
1
require(["domReady!","wadeMobile","mobile","util"], function(doc,WadeMobile,Mobile) {
2
	new iScroll("content");
3
	$("#progressBar").tap(function() {
4
		WadeMobile.loadingStart('加载中……', '进度条');
5
		// 关闭进度条
6
		setTimeout(function(){
7
			WadeMobile.loadingStop();
8
		}, 2000);
9
	});
10
	
11
	$("#progressBar2").tap(function() {
12
		WadeMobile.loadingStart('加载中……', '进度条','true');
13
		
14
	});
15
	
16
	$("#toastLong").tap(function() {
17
		WadeMobile.tip('我是一条提示信息!', 1);
18
	});
19
	
20
	$("#toastShort").tap(function() {
21
		WadeMobile.tip('我是一条提示信息!', 0);
22
	});
23
	
24
	$("#date1").tap(function() {
25
		WadeMobile.getDate(function(time) {
26
			$("#dateContent1").html(time);
27
		});
28
	});
29
	
30
	$("#date2").tap(function() {
31
		WadeMobile.getDate(function(time) {
32
			$("#dateContent2").html(time);
33
		}, '2012年12月', 'yyyy年MM月');
34
	});
35
	
36
	$("#customDialog").tap(function() {
37
		Mobile.openDialog("UI-CustomDialog", null, function(result) {
38
			alert(result);
39
		},0.6,0.6);
40
	});
41
	
42
	$("#customWindow").tap(function() {
43
		var param = Wade.DataMap();
44
		param.put("LEVEL", 1);
45
		Mobile.openWindow("UI-CustomWindow", param, function(result) {
46
			alert(result);
47
		});
48
	});
49
	
50
	$("#slidingMenu").tap(function() {
51
		Mobile.openSlidingMenu("UI-SlidingMenu",null,function(result){
52
			alert(result);
53
		});
54
	});
55
	
56
	$("#getContactsView").tap(function(){
57
		alert("将要打开通讯录UI--" + WadeMobile.getContactsView);
58
		WadeMobile.getContactsView(function(result){
59
			alert("选择的结果是:" + result.toString());
60
		},
61
		["新的朋友","群聊","标签","公众号"],
62
		["LLL","芙兰","妹妹","你好","林小姐","联盟","L","xdsfsdggsdsf","星星","靴刀誓死","Java","倒塌","黑人","~~在","这个人"]
63
		);
64
	});
1
require(["domReady!","wadeMobile","mobile","util"], function(doc,WadeMobile,Mobile) {
2
	new iScroll("content");
3
	$("#progressBar").tap(function() {
4
		WadeMobile.loadingStart('加载中……', '进度条');
5
		// 关闭进度条
6
		setTimeout(function(){
7
			WadeMobile.loadingStop();
8
		}, 2000);
9
	});
10
	
11
	$("#progressBar2").tap(function() {
12
		WadeMobile.loadingStart('加载中……', '进度条','true');
13
		
14
	});
15
	
16
	$("#toastLong").tap(function() {
17
		WadeMobile.tip('我是一条提示信息!', 1);
18
	});
19
	
20
	$("#toastShort").tap(function() {
21
		WadeMobile.tip('我是一条提示信息!', 0);
22
	});
23
	
24
	$("#date1").tap(function() {
25
		WadeMobile.getDate(function(time) {
26
			$("#dateContent1").html(time);
27
		});
28
	});
29
	
30
	$("#date2").tap(function() {
31
		WadeMobile.getDate(function(time) {
32
			$("#dateContent2").html(time);
33
		}, '2012年12月', 'yyyy年MM月');
34
	});
35
	
36
	$("#customDialog").tap(function() {
37
		Mobile.openDialog("UI-CustomDialog", null, function(result) {
38
			alert(result);
39
		},0.6,0.6);
40
	});
41
	
42
	$("#customWindow").tap(function() {
43
		var param = Wade.DataMap();
44
		param.put("LEVEL", 1);
45
		Mobile.openWindow("UI-CustomWindow", param, function(result) {
46
			alert(result);
47
		});
48
	});
49
	
50
	$("#slidingMenu").tap(function() {
51
		Mobile.openSlidingMenu("UI-SlidingMenu",null,function(result){
52
			alert(result);
53
		});
54
	});
55
	
56
	$("#getContactsView").tap(function(){
57
		alert("将要打开通讯录UI--" + WadeMobile.getContactsView);
58
		WadeMobile.getContactsView(function(result){
59
			alert("选择的结果是:" + result.toString());
60
		},
61
		["新的朋友","群聊","标签","公众号"],
62
		["LLL","芙兰","妹妹","你好","林小姐","联盟","L","xdsfsdggsdsf","星星","靴刀誓死","Java","倒塌","黑人","~~在","这个人"]
63
		);
64
	});
65 65
});