luyanan 7 ans auparavant
Parent
commit
67b962206c
2 fichiers modifiés avec 5 ajouts et 8 suppressions
  1. 5 4
      app/js/articleShow.js
  2. 0 4
      app/js/login.js

+ 5 - 4
app/js/articleShow.js

@ -107,7 +107,7 @@ mui.plusReady(function() {
107 107
					aniShow: "slide-in-bottom"
108 108
				},
109 109
				extras: {
110
					flag: 1
110
					ourl: plus.webview.currentWebview().id
111 111
				}
112 112
			});
113 113
		}
@ -131,14 +131,13 @@ mui.plusReady(function() {
131 131
			mui.ajax(url, {
132 132
				data: obj,
133 133
				dataType: 'json', //服务器返回json格式数据
134
				type: oType, //HTTP请求类型
135
				timeout: 10000, //超时时间设置为10秒;
134
				type: oType, //HTTP请求类型//超时时间设置为10秒;
136 135
				traditional: true,
137 136
				success: function(data) {
138 137
					if(data.success) {
139 138
						oFun(data.data);
140 139
					} else {
141

140
						//alert(JSON.stringify(data));
142 141
					}
143 142
				},
144 143
				error: function(xhr, type, errorThrown) {
@ -454,6 +453,7 @@ mui.plusReady(function() {
454 453
		oArticleModule.oAjaxGet(baseUrl + "/ajax/org/" + oArticleModule.oWner, "", "get", oArticleModule.business);
455 454
		//document.getElementById('attBtn').style.display = "none";
456 455
		companylist();
456
		if(oCurren.userid)
457 457
		oArticleModule.oAjaxGet(baseUrl + "/ajax/watch/hasWatch", {
458 458
			"watchObject": oArticleModule.oWner,
459 459
			'professorId': oCurren.userid
@ -470,6 +470,7 @@ mui.plusReady(function() {
470 470
			}); //后台创建webview并打开show.html
471 471
		})
472 472
		/*查询是否关注专家*/
473
		if(oCurren.userid)
473 474
		oArticleModule.oAjaxGet(baseUrl + "/ajax/watch/hasWatch", {
474 475
			"watchObject": oArticleModule.oWner,
475 476
			'professorId': oCurren.userid

+ 0 - 4
app/js/login.js

@ -114,10 +114,6 @@ mui.ready(function() {
114 114
						plus.storage.setItem('name', data.data.name);
115 115
						plus.nativeUI.toast("登录成功", toastStyle);
116 116
						var article = plus.webview.currentWebview();
117
						if(article.flag==1){
118
							var proAiticle =plus.webview.getWebviewById('professorArticle.html')
119
							mui.fire(proAiticle, "newId");
120
						}
121 117
						if(article.ourl) {
122 118
							var proAiticle =plus.webview.getWebviewById(article.ourl)
123 119
							mui.fire(proAiticle, "newId");