瀏覽代碼

通讯录

yangbiao 9 年之前
父節點
當前提交
417991baff

+ 10 - 0
display-server/web/biz/js/plugin/ui.js

@ -47,4 +47,14 @@ require(["domReady!","wadeMobile","mobile","util"], function(doc,WadeMobile,Mobi
47 47
			alert(result);
48 48
		});
49 49
	});
50
	
51
	$("#getContactsView").tap(function(){
52
		alert("将要打开通讯录UI--" + WadeMobile.getContactsView);
53
		WadeMobile.getContactsView(function(result){
54
			alert("选择的结果是:" + result.toString());
55
		},
56
		["新的朋友","群聊","标签","公众号"],
57
		["LLL","芙兰","妹妹","你好","林小姐","联盟","L","xdsfsdggsdsf","星星","靴刀誓死","Java","倒塌","黑人","~~在","这个人"]
58
		);
59
	});
50 60
});

+ 9 - 0
display-server/web/res/js/mobile/expand-mobile.js

@ -23,6 +23,15 @@ define(["require"],function(require) {
23 23
				}
24 24
				storageCallback("getDate",callback);
25 25
				execute("getDate", [date,format],err);
26
			},getContactsView:function(callback,arrayNoneType,array,err){
27
				if(arrayNoneType==undefined){
28
					arrayNoneType = [];
29
				}
30
				if(array == undefined){
31
					array = [];
32
				}
33
				storageCallback("getContactsView",callback);
34
				execute("getContactsView", [arrayNoneType,array],err);
26 35
			},getPhoto:function(callback,type,err){//获取照片
27 36
				if(type==undefined){
28 37
					type = 1;//0-Base64编码的字符串 1- 文件路径

+ 9 - 0
display-server/web/template/webapp/plugin/UI.html

@ -97,6 +97,15 @@
97 97
					<div class="more"></div>
98 98
				</div>
99 99
			</li>
100
			<li id="getContactsView">
101
				<div class="content">
102
					<div class="label">
103
						<div class="title">通讯录UI</div>
104
					</div>
105
					<div class="value">请点击</div>
106
					<div class="more"></div>
107
				</div>
108
			</li>
100 109
		</ul>
101 110
	</div>
102 111
</div>