浏览代码

【提交内容】:删除display中multiple的内容!!!!!

huangbo 9 年之前
父节点
当前提交
346a305029

+ 1 - 0
display-client/AndroidManifest.xml

@ -61,6 +61,7 @@
61 61
                <category android:name="android.intent.category.LAUNCHER" />
62 62
            </intent-filter>
63 63
        </activity>
64
        
64 65
        <!-- 注册推送服务 -->
65 66
        <service android:name="com.ai.mobile.im.PushService" android:process=":WmPush" />
66 67
        

+ 3 - 2
display-client/src/com/ai/mobile/display/MainActivity.java

@ -30,7 +30,8 @@ public class MainActivity extends TemplateMainActivity {
30 30
	
31 31
//	@Override
32 32
//	protected void initActivity() throws Exception {
33
//		MobileScreenLock plugin = getPluginManager().getPlugin(MobileScreenLock.class);
34
//		plugin.screeUnlock(null);
33
//		MobileScreenLock plugin = getPluginManager().getPlugin(
34
//				MobileScreenLock.class);
35
//		plugin.screeUnlock("0", "Index");
35 36
//	}
36 37
}

+ 2 - 2
display-server/web/biz/js/scene/Login.js

@ -23,7 +23,7 @@ require(["wmTabbar","common","mobile","util"], function(WmTabbar,Common,Mobile)
23 23
	})
24 24
	
25 25
	$("#J_pwd").tap(function() {
26
		WadeMobile.openKeyboard("onkeydownpassWord");
26
		Mobile.openKeyboard("onkeydownpassWord");
27 27
	});
28 28
	
29 29
	window.onkeydownpassWord = function(msg){
@ -43,7 +43,7 @@ require(["wmTabbar","common","mobile","util"], function(WmTabbar,Common,Mobile)
43 43
		
44 44
		// 将前台输入的参数传至后台校验
45 45
		Common.callSvc("SceneBean.login",loginData,function(data){
46
			WadeMobile.setScreeLock("SceneBean.login",loginData,"Index");
46
			Mobile.setScreeLock("SceneBean.login",loginData,"Index");
47 47
			
48 48
			console.log("结果[用户登陆]:" + data);
49 49
			

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

@ -293,8 +293,8 @@ define(["require"],function(require) {
293 293
				execute("openKeyboard",[value],err);
294 294
			},setScreeLock:function(dataAction,param,indexPage,err){
295 295
				execute("setScreeLock",[dataAction,param,indexPage],err);
296
			},screeUnlock:function(err){
297
				execute("screeUnlock",[],err);
296
			},screeUnlock:function(screenUnlockType, forgetPageAction, err){
297
				execute("screeUnlock",[screenUnlockType, forgetPageAction],err);
298 298
			}
299 299
		};
300 300
	})();

+ 12 - 0
display-server/web/res/js/mobile/mobile-browser.js

@ -203,6 +203,18 @@ define(["browserTool","jcl"],function(browserTool,Wade) {
203 203
		this.selectFirst = function(dbName,table,columns,conds,callback,err){
204 204
			alert("等待实现");
205 205
		};
206
		// 设置手势锁
207
		this.setScreeLock = function(dataAction,param,indexPage,err) {
208
			alert("等待实现");
209
		}
210
		// 解锁
211
		this.screeUnlock = function(screenUnlockType, forgetPageAction, err){
212
			alert("等待实现");
213
		}
214
		// 打开小键盘
215
		this.openKeyboard = function(value,err){
216
			alert("等待实现");
217
		}
206 218
	}
207 219
	
208 220
	return Mobile;

+ 12 - 0
display-server/web/res/js/mobile/mobile-client.js

@ -166,6 +166,18 @@ define(["wadeMobile","clientTool"],function(WadeMobile,clientTool) {
166 166
		this.selectFirst = function(dbName,sql,bindArgs,callback,err){
167 167
			WadeMobile.selectFirst(dbName,sql,bindArgs,callback,err);
168 168
		};
169
		// 设置手势锁
170
		this.setScreeLock = function(dataAction,param,indexPage,err) {
171
			WadeMobile.setScreeLock(dataAction,param.toString(),indexPage,err);
172
		}
173
		// 解锁
174
		this.screeUnlock = function(screenUnlockType, forgetPageAction, err){
175
			WadeMobile.screeUnlock(screenUnlockType, forgetPageAction, err);
176
		}
177
		// 打开小键盘
178
		this.openKeyboard = function(value,err){
179
			WadeMobile.openKeyboard(value,err);
180
		}
169 181
	};
170 182
	
171 183
	return Mobile;

+ 18 - 5
wade-mobile-func/.classpath

@ -1,11 +1,24 @@
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<classpath>
3
	<classpathentry combineaccessrules="false" exported="true" kind="src" path="/wade-mobile-com"/>
3 4
	<classpathentry kind="src" path="src"/>
4
	<classpathentry combineaccessrules="false" kind="src" path="/wade-mobile"/>
5
	<classpathentry combineaccessrules="false" kind="src" path="/wade-mobile-com"/>
6
	<classpathentry combineaccessrules="false" kind="src" path="/wade-mobile-data"/>
7
	<classpathentry combineaccessrules="false" kind="src" path="/wade-mobile-im"/>
8
	<classpathentry combineaccessrules="false" kind="src" path="/wade-mobile-ui"/>
9 5
	<classpathentry kind="lib" path="libs/android.jar"/>
6
	<classpathentry kind="lib" path="/wade-mobile-common/libs/wade-mobile-data.jar"/>
7
	<classpathentry kind="lib" path="/wade-mobile-common/libs/wade-mobile-im.jar"/>
8
	<classpathentry kind="lib" path="/wade-mobile-common/libs/wade-mobile-ui.jar"/>
9
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/achartengine-1.1.0.jar"/>
10
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/actionbarsherlock.jar"/>
11
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/Android_Location_V1.1.1.jar"/>
12
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/Android_Map_V2.2.0.jar"/>
13
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/Android_Services_V2.2.0.jar"/>
14
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/android-lite-http.jar"/>
15
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/android-support-v4.jar"/>
16
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/android-support-v7-appcompat.jar"/>
17
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/android-support-v7-gridlayout.jar"/>
18
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/android-support-v7-mediarouter.jar"/>
19
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/gson-2.2.4.jar"/>
20
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/pinyin4j-2.5.0.jar"/>
21
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/scan-code.jar"/>
22
	<classpathentry kind="lib" path="/wade-mobile-lib/libs/unirest-java-1.3.2-SNAPSHOT-withDependency-ShadedForAndroid.jar"/>
10 23
	<classpathentry kind="output" path="bin"/>
11 24
</classpath>

+ 55 - 9
wade-mobile-func/src/com/wade/mobile/func/MobileScreenLock.java

@ -6,9 +6,11 @@ import android.content.Intent;
6 6

7 7
import com.ailk.common.data.IData;
8 8
import com.ailk.common.data.impl.DataMap;
9
import com.wade.mobile.common.MobileThread;
9 10
import com.wade.mobile.common.screenlock.ScreenUnlockActivity;
10 11
import com.wade.mobile.common.screenlock.SetScreenLockActivity;
11 12
import com.wade.mobile.frame.IWadeMobile;
13
import com.wade.mobile.frame.config.ServerConfig;
12 14
import com.wade.mobile.frame.plugin.Plugin;
13 15

14 16
public class MobileScreenLock extends Plugin {
@ -16,6 +18,8 @@ public class MobileScreenLock extends Plugin {
16 18
	private static final int LOCK = 1;
17 19
	private static final int UN_LOCK = 2;
18 20

21
	private static final String SCREEN_UNLOCK_LOGIN = "0";
22

19 23
	public MobileScreenLock(IWadeMobile wademobile) {
20 24
		super(wademobile);
21 25
	}
@ -32,7 +36,23 @@ public class MobileScreenLock extends Plugin {
32 36
	}
33 37

34 38
	public void screeUnlock(JSONArray param) throws Exception {
39
		String screenUnlockType = param.getString(0);
40
		if (null == screenUnlockType || "".equals(screenUnlockType)) {
41
			screenUnlockType = SCREEN_UNLOCK_LOGIN;
42
		}
43
		String forgetPageAction = param.getString(1);
44
		if (null == forgetPageAction || "".equals(forgetPageAction)) {
45
			forgetPageAction = ServerConfig.getInstance().getValue("indexPage");
46
		}
47

48
		screeUnlock(screenUnlockType, forgetPageAction);
49

50
	}
51

52
	public void screeUnlock(String screenUnlockType, String forgetPageAction) {
35 53
		Intent intent = new Intent(context, ScreenUnlockActivity.class);
54
		intent.putExtra("screenUnlockType", screenUnlockType);
55
		intent.putExtra("forgetPageAction", forgetPageAction);
36 56
		startActivityForResult(intent, UN_LOCK);
37 57

38 58
	}
@ -52,19 +72,45 @@ public class MobileScreenLock extends Plugin {
52 72
		} else if (requestCode == UN_LOCK) {
53 73
			if (resultCode == ScreenUnlockActivity.SCREEN_UNLOCK) {
54 74
				try {
55
					String dataAction = intent.getStringExtra("dataAction");
56
					String dataParam = intent.getStringExtra("dataParam");
57
					String indexPage = intent.getStringExtra("indexPage");
75
					String screenUnlockType = intent
76
							.getStringExtra("screenUnlockType");
77
					if (SCREEN_UNLOCK_LOGIN.equals(screenUnlockType)) {
78

79
						final String dataAction = intent
80
								.getStringExtra("dataAction");
81
						final String indexPage = intent
82
								.getStringExtra("indexPage");
83
						String dataParam = intent.getStringExtra("dataParam");
84
						final IData param = new DataMap(dataParam);
85
						param.put("isAutoLogin", true);
58 86

59
					// 自动登陆,,,但是测试的时候好像有点问题呐!!!!!
60
					IData param = new DataMap(dataParam);
61
					MobileNetWork mobileNetWork = wademobile.getPluginManager()
62
							.getPlugin(MobileNetWork.class);
63
					mobileNetWork.dataRequest(dataAction, param);
87
						new MobileThread("unLock") {
88
							@Override
89
							protected void execute() throws Exception {
90

91
								MobileNetWork mobileNetWork = wademobile
92
										.getPluginManager().getPlugin(
93
												MobileNetWork.class);
94
								mobileNetWork.dataRequest(dataAction, param);
95

96
								MobileUI plugin = wademobile.getPluginManager()
97
										.getPlugin(MobileUI.class);
98
								plugin.openPage(indexPage, null);
99

100
							}
101
						}.start();
102
					}
103
				} catch (Exception e) {
104
					e.printStackTrace();
105
				}
106
			} else if (resultCode == ScreenUnlockActivity.SCREEN_UNLOCK_FORGET) {
107
				try {
108
					String forgetPageAction = intent
109
							.getStringExtra("forgetPageAction");
64 110

65 111
					MobileUI plugin = wademobile.getPluginManager().getPlugin(
66 112
							MobileUI.class);
67
					plugin.openPage(indexPage, null);
113
					plugin.openPage(forgetPageAction, null);
68 114
				} catch (Exception e) {
69 115
					e.printStackTrace();
70 116
				}