jack 7 years ago
parent
commit
43ebed0a56
2 changed files with 1 additions and 26 deletions
  1. 0 25
      app/js/cmpInforShow-article.js
  2. 1 1
      app/js/cmpInforShow-resources.js

+ 0 - 25
app/js/cmpInforShow-article.js

4
        var userid = plus.storage.getItem('userid');
4
        var userid = plus.storage.getItem('userid');
5
		var self = plus.webview.currentWebview();
5
		var self = plus.webview.currentWebview();
6
		var orgId = self.cmpId;
6
		var orgId = self.cmpId;
7
		companyMessage(orgId);
8

9
		getArticel()
7
		getArticel()
10
		
8
		
11
		mui('#articelShow').on('tap', 'li', function() {
9
		mui('#articelShow').on('tap', 'li', function() {
18
				oFlag:1
16
				oFlag:1
19
			});
17
			});
20
		})
18
		})
21
		
22
		
23
		
24
		function companyMessage(id) {
25
			mui.ajax(baseUrl + "/ajax/org/" + id, {
26
				dataType: 'json', //数据格式类型
27
				type: 'GET', //http请求类型
28
				timeout: 10000, //超时设置
29
				success: function(data) {
30
					if(data.success) {
31
						console.log(JSON.stringify(data));
32
						var web = plus.webview.currentWebview()
33
						plus.nativeUI.closeWaiting();
34
						web.show("slide-in-right", 150);
35
					}
36
				},
37
				error: function() {
38
					plus.nativeUI.toast("服务器链接超时", toastStyle);
39
					return;
40
				}
41
			});
42
		}
43
		
44
		/*企业文章html*/
19
		/*企业文章html*/
45
		function getArticel() {
20
		function getArticel() {
46
			mui.ajax(baseUrl + "/ajax/article/qaOrgPublish", {
21
			mui.ajax(baseUrl + "/ajax/article/qaOrgPublish", {

+ 1 - 1
app/js/cmpInforShow-resources.js

46
				dataType: "json",
46
				dataType: "json",
47
				data: {
47
				data: {
48
					"orgId": orgId,
48
					"orgId": orgId,
49
					"pageNo": pageIndex,
49
					"pageNo": 1,
50
					"pageSize": 10,
50
					"pageSize": 10,
51
				},
51
				},
52
				success: function(data) {
52
				success: function(data) {