Ver Código Fonte

add normal alertdialog

linh 9 anos atrás
pai
commit
bc9ab4110b

+ 2 - 1
display-client/assets/mobile-action.xml

@ -46,7 +46,8 @@
46 46
	<action name="openSlidingMenu" class="com.wade.mobile.func.MobileUI" method="openSlidingMenu"/>
47 47
	<action name="closeSlidingMenu" class="com.wade.mobile.func.MobileUI" method="closeSlidingMenu"/>
48 48
	<action name="showNotification" class="com.wade.mobile.func.MobileUI" method="showNotification"/>
49
	
49
	<action name="openAlertDialogLocal" class="com.ai.ipu.alertdialog.func.IpuAlertDialog" method="openAlertDialogLocal"/>
50
	<action name="openAlertDialogUrl" class="com.ai.ipu.alertdialog.func.IpuAlertDialog" method="openAlertDialogUrl"/>
50 51
	<!-- SoftKeyBoard -->
51 52
	<action name="showKeyBoard" class="com.wade.mobile.func.SoftKeyBoard" method="showKeyBoard"/>
52 53
	<action name="hideKeyBoard" class="com.wade.mobile.func.SoftKeyBoard" method="hideKeyBoard"/>

+ 1 - 1
display-client/assets/mobile-config.xml

@ -1,7 +1,7 @@
1 1
<?xml version="1.0" encoding="utf-8"?>
2 2
<configs>
3 3
    <!-- 请求主机名或请求地址。包括服务器的ip地址和端口 -->
4
	<config name="request_host" value="http://10.13.13.25:8080"/>
4
	<config name="request_host" value="http://192.168.1.125:8080"/>
5 5
	<!-- 必须。10.0.2.2为Android模拟器的保留ip地址。访问到本机电脑时使用 -->
6 6
	<!-- <config name="request_host" value="http://10.0.2.2:8080"/> -->
7 7
	<!-- 必须。容器应用名或请求根路径 -->

BIN
display-server/display2.war


+ 2 - 2
display-server/src/com/ai/server/bean/LoginBean.java

@ -1,13 +1,13 @@
1 1
package com.ai.server.bean;
2 2

3
import com.ai.server.core.bean.IpuAppBean;
3
import com.ai.server.core.bean.IpuBean;
4 4
import com.ai.server.core.context.IpuContextData;
5 5
import com.ai.server.core.session.IpuSessionManager;
6 6
import com.ai.server.util.Constant;
7 7
import com.ailk.common.data.IData;
8 8
import com.ailk.mobile.util.MobileUtility;
9 9

10
public class LoginBean extends IpuAppBean{
10
public class LoginBean extends IpuBean{
11 11
	
12 12
	public IData login(IData param) throws Exception{
13 13
		/*

+ 2 - 2
display-server/src/com/ai/server/bean/SceneBean.java

@ -3,7 +3,7 @@ package com.ai.server.bean;
3 3
import java.awt.image.BufferedImage;
4 4
import java.util.Random;
5 5

6
import com.ai.server.core.bean.IpuAppBean;
6
import com.ai.server.core.bean.IpuBean;
7 7
import com.ai.server.core.context.IpuContextData;
8 8
import com.ai.server.core.session.IpuSessionManager;
9 9
import com.ai.server.util.ImageVerify;
@ -11,7 +11,7 @@ import com.ailk.common.data.IData;
11 11
import com.ailk.common.data.impl.DataMap;
12 12
import com.ailk.mobile.util.MobileUtility;
13 13

14
public class SceneBean extends IpuAppBean {
14
public class SceneBean extends IpuBean {
15 15

16 16
	/**
17 17
	 * 数据请求场景

+ 2 - 2
display-server/src/com/ai/server/bean/UploadDownloadBean.java

@ -13,7 +13,7 @@ import org.apache.commons.fileupload.FileItem;
13 13
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
14 14
import org.apache.commons.fileupload.servlet.ServletFileUpload;
15 15

16
import com.ai.server.core.bean.IpuAppBean;
16
import com.ai.server.core.bean.IpuBean;
17 17
import com.ai.server.util.ApplicationPath;
18 18
import com.ailk.common.data.IData;
19 19
import com.ailk.common.data.impl.DataMap;
@ -25,7 +25,7 @@ import com.ailk.mobile.util.MobileUtility;
25 25
 * @date 2016-1-9 下午2:32:20 
26 26
 * @desc 上传下载使用范例
27 27
 */
28
public class UploadDownloadBean extends IpuAppBean {
28
public class UploadDownloadBean extends IpuBean {
29 29
    
30 30
	/**
31 31
	 * 文件上传

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

@ -59,6 +59,17 @@ require(["domReady!","wadeMobile","mobile","util"], function(doc,WadeMobile,Mobi
59 59
		},0.6,0.6);
60 60
	});
61 61
	
62

63
	//提示对话框
64
	$("#customAlertDialog").tap(function()
65
		{
66
			var param=Wade.DataMap();
67
			param.put("message","loading……");
68
			param.put("text","OK");
69
			WadeMobile.openAlertDialogLocal(param);
70
		}
71
	);
72
	
62 73
	$("#customWindow").tap(function() {
63 74
		var param = Wade.DataMap();
64 75
		param.put("LEVEL", 1);

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

@ -319,6 +319,8 @@ define(["require"],function(require) {
319 319
				execute("shareFileQQFriend",[content]);
320 320
			},shareFileWeChatFriend:function(content){
321 321
				execute("shareFileWeChatFriend",[content]);
322
			},openAlertDialogLocal:function(param){
323
				execute("openAlertDialogLocal",[param]);//提示对话框
322 324
			}
323 325
		};
324 326
	})();

+ 33 - 0
display-server/web/template/server-config.xml

@ -0,0 +1,33 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<configs>
3
	<config name="name" value="DisplayServer"/>
4
	<!-- 配置为true之后。服务端修改后,需要将资源版本号也修改。再重新build,最后发布 -->
5
	<config name="productMode" value="false"/>
6
	<!-- 服务端资源版本号 -->
7
	<config name="resourceVersion" value="2.0"/>
8
	<!-- 客户端版本号 -->
9
	<config name="clientVersion" value="2.2"/>
10
	<!-- 客户端是否强制更新 -->
11
	<config name="isForceUpdate" value="true"/>
12
	<!-- 服务端应用编码 -->
13
	<config name="encode" value="UTF-8"/>
14
	<!-- 缓存类型,目前支持mem和jvm -->
15
	<config name="cache" value="jvm"/>
16
	<!-- 初始页 -->
17
	<config name="indexPage" value="Index"/>
18
	<!-- 文件是否加密 -->
19
	<config name="fileEncrypt" value="true"/>
20
	<!-- 自定义异常管理器 -->	
21
	<config name="exceptionHandler" value="com.ai.server.core.handle.IpuExceptionHandler"/>
22
	<!-- 自定义Session管理器 -->
23
	<config name="sessionManager" value="com.ai.server.core.session.IpuSessionManager"/>
24
	<!-- 自定义安全管理器 -->
25
	<config name="securityHandler" value="com.ai.server.core.security.IpuSecurityHandler"/>
26
	<!-- 是否运行标签引擎 -->
27
	<config name="isUseTag" value="true"/>
28
</configs>
29

30

31

32

33


+ 27 - 0
display-server/web/template/server-data.xml

@ -0,0 +1,27 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<datas>
3
    <!-- 上传下载 -->
4
	<action name="UploadDownloadBean.download" class="com.ai.server.bean.UploadDownloadBean" method="download" verify="false"></action>
5
	<action name="UploadDownloadBean.upload" class="com.ai.server.bean.UploadDownloadBean" method="upload" verify="false"></action>
6
	
7
	<!-- 登录场景*******************初始化验证码 -->
8
	<action name="SceneBean.initVerifyCode" class="com.ai.server.bean.SceneBean" method="initVerifyCode" verify="false"></action>
9
	<!-- 登陆 -->
10
	<action name="SceneBean.login" class="com.ai.server.bean.SceneBean" method="login" verify="false"  encrypt="true"></action>
11
	<!-- 刷新验证码 -->
12
	<action name="SceneBean.refreshVerifyCode" class="com.ai.server.bean.SceneBean" method="refreshVerifyCode" verify="false"></action>
13
	
14
	<!-- 数据请求场景***************测试您的人品 -->
15
	<action name="SceneBean.dataRequestScene" class="com.ai.server.bean.SceneBean" method="dataRequestScene" verify="false"></action>
16
	<!-- 页面跳转(调用数据接口)场景***************脑筋急转弯 -->
17
	<action name="SceneBean.openPageScene" class="com.ai.server.bean.SceneBean" method="openPageScene" verify="false"></action>
18
	<!-- 局部刷新(调用数据接口) -->
19
	<action name="SceneBean.getPersonDetailMore" class="com.ai.server.bean.SceneBean" method="getPersonDetailMore" verify="false"></action>
20
	
21
	<!-- Demo added by wyj -->   
22
	<action name="Demo.getInfoList" class="com.ailk.mobile.frame.bean.SimulatedBean" method="invoke" verify="false"></action> 
23
	<action name="Demo.delete" class="com.ailk.mobile.frame.bean.SimulatedBean" method="invoke" verify="false"></action> 
24
	<action name="Demo.update" class="com.ailk.mobile.frame.bean.SimulatedBean" method="invoke" verify="false"></action> 
25
	<action name="Demo.save" class="com.ailk.mobile.frame.bean.SimulatedBean" method="invoke" verify="false"></action> 
26
 
27
</datas>

+ 144 - 0
display-server/web/template/server-page.xml

@ -0,0 +1,144 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<pages>
3
    <!-- 主页 -->
4
    <action name="Index" template="template/webapp/Index.html"></action>
5
    
6
	<!-- Plugin Demo -->
7
	<action name="Basic" template="template/webapp/plugin/Basic.html"></action>
8
	<action name="Network" template="template/webapp/plugin/Network.html"></action>
9
	<!-- 地图 -->
10
	<action name="Map" template="template/webapp/plugin/Map.html"></action>
11
	<!-- 相机 -->
12
	<action name="Photo" template="template/webapp/plugin/Photo.html"></action>
13
	<!-- 文件 -->
14
	<action name="File" template="template/webapp/plugin/File/File.html"></action>
15
	<action name="FileDetail" template="template/webapp/plugin/File/FileDetail.html"></action>
16
	<!-- 存储 -->
17
	<action name="Storage" template="template/webapp/plugin/Storage.html"></action>
18
	<!-- 二维码 -->
19
	<action name="QR" template="template/webapp/plugin/QR.html"></action>
20
	<!-- 提供给UI使用 -->
21
	<action name="UI" template="template/webapp/plugin/UI/UI.html"></action>
22
	<action name="UI-CustomDialog" template="template/webapp/plugin/UI/UI-CustomDialog.html"></action>
23
	<action name="UI-CustomWindow" template="template/webapp/plugin/UI/UI-CustomWindow.html"></action>
24
	<action name="UI-SlidingMenu" template="template/webapp/plugin/UI/UI-SlidingMenu.html"></action>
25
	<!-- 音频 -->
26
	<action name="Audio" template="template/webapp/plugin/Audio.html"></action>
27
	<!-- 视频 -->
28
	<action name="Video" template="template/webapp/plugin/Video.html"></action>
29
	<!-- 上传下载 -->
30
	<action name="UploadDownload" template="template/webapp/plugin/UploadDownload.html"></action>
31
	<!-- 云巴推送 -->
32
	<action name="YunbaPush" template="template/webapp/plugin/YunbaPush.html"></action>
33
	<!-- 数据库 -->
34
	<action name="Database" template="template/webapp/plugin/Database.html"></action>
35
	<!-- 通讯录 -->
36
	<action name="Contacts" template="template/webapp/plugin/Contacts.html"></action>
37
	<!-- NFC -->
38
	<action name="NFC" template="template/webapp/plugin/NFC.html"></action>
39
	<!-- 语音识别&语音合成 -->
40
	<action name="Voice" template="template/webapp/plugin/Voice.html"></action>
41
	<!-- 分享 -->
42
	<action name="Share" template="template/webapp/plugin/Share.html"></action>
43
	
44
	<!-- Web Component Demo-->
45
	<action name="WmTab" template="template/webapp/tag/WmTab.html"></action>
46
	<action name="WmTabbar" template="template/webapp/tag/WmTabbar.html"></action>
47
	<action name="WmNavBar" template="template/webapp/tag/WmNavBar.html"></action>
48
	<action name="WmDialog" template="template/webapp/tag/WmDialog.html"></action>
49
	<action name="WmDialog2" template="template/webapp/tag/WmDialog2.html"></action>
50
	<action name="WmToolTip" template="template/webapp/tag/WmToolTip.html"></action>
51
	<action name="WmSlider" template="template/webapp/tag/WmSlider.html"></action>
52
	<action name="WmDropmenu" template="template/webapp/tag/WmDropmenu.html"></action>
53
	<action name="WmSlidingmenu" template="template/webapp/tag/WmSlidingmenu.html"></action>
54
	<action name="WmProgress" template="template/webapp/tag/WmProgress.html"></action>
55
	<action name="WmSwitch" template="template/webapp/tag/WmSwitch.html"></action>
56
	<action name="WmSegment" template="template/webapp/tag/WmSegment.html"></action>
57
	<action name="WmFlip" template="template/webapp/tag/WmFlip.html"></action>
58
	<action name="WmRange" template="template/webapp/tag/WmRange.html"></action>
59
	<action name="WmRefresh" template="template/webapp/tag/WmRefresh.html"></action>
60
	
61
	<action name="WmTabSrc" template="template/webapp/tag/WmTabSrc.html"></action>
62
	<action name="WmTabbarSrc" template="template/webapp/tag/WmTabbarSrc.html"></action>
63
	<action name="WmNavBarSrc" template="template/webapp/tag/WmNavBarSrc.html"></action>
64
	<action name="WmDialogSrc" template="template/webapp/tag/WmDialogSrc.html"></action>
65
	<action name="WmDialog2Src" template="template/webapp/tag/WmDialog2Src.html"></action>
66
	<action name="WmToolTipSrc" template="template/webapp/tag/WmToolTipSrc.html"></action>
67
	<action name="WmSliderSrc" template="template/webapp/tag/WmSliderSrc.html"></action>
68
	<action name="WmDropmenuSrc" template="template/webapp/tag/WmDropmenuSrc.html"></action>
69
	<action name="WmSlidingmenuSrc" template="template/webapp/tag/WmSlidingmenuSrc.html"></action>
70
	<action name="WmProgressSrc" template="template/webapp/tag/WmProgressSrc.html"></action>
71
	<action name="WmSwitchSrc" template="template/webapp/tag/WmSwitchSrc.html"></action>
72
	<action name="WmSegmentSrc" template="template/webapp/tag/WmSegmentSrc.html"></action>
73
	<action name="WmFlipSrc" template="template/webapp/tag/WmFlipSrc.html"></action>
74
	<action name="WmRangeSrc" template="template/webapp/tag/WmRangeSrc.html"></action>
75
	<action name="WmRefreshSrc" template="template/webapp/tag/WmRefreshSrc.html"></action>
76
	
77
	<!-- UI Demo -->
78
	<action name="Button" template="template/webapp/ui/Button.html"></action>
79
	<action name="Form" template="template/webapp/ui/Form.html"></action>
80
	<action name="Icon" template="template/webapp/ui/Icon.html"></action>
81
	<action name="List" template="template/webapp/ui/List.html"></action>
82
	<action name="PicList" template="template/webapp/ui/PicList.html"></action>
83
	<action name="Popup" template="template/webapp/ui/Popup.html"></action>
84
	<action name="Progress" template="template/webapp/ui/Progress.html"></action>
85
	<action name="Slider" template="template/webapp/ui/Slider.html"></action>
86
	<action name="Tab" template="template/webapp/ui/Tab.html"></action>
87
	<action name="Tip" template="template/webapp/ui/Tip.html"></action>
88
	<!-- Hammer手势 -->
89
	<action name="Hammer" template="template/webapp/ui/Hammer.html"></action>
90
	<action name="Gesture" template="template/webapp/ui/Gesture.html"></action>
91
	
92
 	<!-- More Demo-->
93
 	<!-- 图表展示 -->
94
 	<action name="Chart" template="template/webapp/more/chart/ChartIndex.html"></action>
95
 	<!-- Echarts -->
96
 	<action name="EchartsLine" template="template/webapp/more/chart/echarts/EchartsLine.html"></action>
97
 	<action name="EchartsHistogram" template="template/webapp/more/chart/echarts/EchartsHistogram.html"></action>
98
 	<action name="EchartsPie" template="template/webapp/more/chart/echarts/EchartsPie.html"></action>
99
 	<!-- Highcharts -->
100
 	<action name="HighchartsLine" template="template/webapp/more/chart/highcharts/HighchartsLine.html"></action>
101
 	<action name="HighchartsHistogram" template="template/webapp/more/chart/highcharts/HighchartsHistogram.html"></action>
102
 	<action name="HighchartsPie" template="template/webapp/more/chart/highcharts/HighchartsPie.html"></action>
103
 	<action name="HighchartsPie-3d" template="template/webapp/more/chart/highcharts/HighchartsPie-3d.html"></action>
104
 	<action name="HighchartsDashboard" template="template/webapp/more/chart/highcharts/HighchartsDashboard.html"></action>
105
 	<!-- icharts -->
106
 	<action name="ichartsLine" template="template/webapp/more/chart/icharts/ichartsLine.html"></action>
107
 	<action name="ichartsHistogram" template="template/webapp/more/chart/icharts/ichartsHistogram.html"></action>
108
 	<action name="ichartsPie" template="template/webapp/more/chart/icharts/ichartsPie.html"></action>
109
 	<action name="ichartsPie-3d" template="template/webapp/more/chart/icharts/ichartsPie-3d.html"></action>
110
 	
111
 	<!-- 模板语法 -->
112
 	<action name="Syntax" template="template/webapp/more/syntax/Syntax.html"></action>
113
 	<!-- 推送展示 -->
114
 	<action name="PushChat" template="template/webapp/more/push/PushChat.html"></action>
115
 	<action name="OnlineList" template="template/webapp/more/push/OnlineList.html"></action>
116
 	<action name="Chat" template="template/webapp/more/push/Chat.html"></action>
117
 	<action name="PushReceive" template="template/webapp/more/push/PushReceive.html"></action>
118
    <!-- ##################################场景演示########################################################### -->
119
	<action name="Scene" template="template/webapp/more/scene/Scene.html"></action>
120
	<!-- 报表场景 -->
121
	<action name="SceneBean_Demo" template="template/webapp/more/scene/demo/Demo.html"></action> 
122
	<action name="SceneBean_DemoAdd" template="template/webapp/more/scene/demo/DemoAdd.html"></action>
123
	<action name="SceneBean_DemoDetail" template="template/webapp/more/scene/demo/DemoDetail.html"></action>
124
	<!-- 登录场景 -->
125
	<action name="SceneBean_login_init" template="template/webapp/more/scene/Login.html"></action>
126
	<!-- 数据请求场景 -->
127
	<action name="SceneBean_dataRequest" template="template/webapp/more/scene/DataRequest.html"></action>
128
	<!-- 解锁屏场景 -->
129
	<action name="SceneBean_setScreenLock" template="template/webapp/more/scene/SetScreenLock.html"></action>
130
	<!-- 键盘 场景-->
131
	<action name="SceneBean_openKeyboard" template="template/webapp/more/scene/OpenKeyboard.html"></action>
132
	<!-- 页面跳转(直接数据渲染)场景 -->
133
	<action name="SceneBean_templateRedirect" template="template/webapp/more/scene/TemplateRedirect.html"></action>
134
	<!-- 页面跳转(调用数据接口)场景-->
135
	<action name="SceneBean_PageRedirect" template="template/webapp/more/scene/PageRedirect.html"></action>
136
	<!-- 页面跳转(调用数据接口)场景-->
137
	<action name="SceneBean_PageRedirectResult" template="template/webapp/more/scene/PageRedirectResult.html" data="SceneBean.openPageScene"></action>
138
	<!-- 局部页面刷新(直接数据渲染)场景 -->
139
	<action name="TemplateRefresh" template="template/webapp/more/scene/TemplateRefresh.html"></action>
140
	<action name="TemplateRefresh.PersonDetailTemplate" template="template/webapp/more/scene/PersonDetailTemplate.html"></action>
141
	<!-- 局部页面刷新调用数据接口)场景 -->
142
	<action name="PageRefresh" template="template/webapp/more/scene/PageRefresh.html"></action>
143
	<action name="PageRefresh.PersonDetailTemplateMore" template="template/webapp/more/scene/PersonDetailTemplateMore.html" data="SceneBean.getPersonDetailMore"></action>
144
</pages>

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

@ -102,6 +102,18 @@
102 102
					<div class="more"></div>
103 103
				</div>
104 104
			</li>
105
			
106
			
107
			<li id="customAlertDialog">
108
				<div class="content">
109
					<div class="label">
110
						<div class="title">提示对话框</div>
111
					</div>
112
					<div class="value">请点击</div>
113
					<div class="more"></div>
114
				</div>
115
			</li>
116
			
105 117
			<li id="customWindow">
106 118
				<div class="content">
107 119
					<div class="label">