luyanan 7 年之前
父节点
当前提交
67b962206c
共有 2 个文件被更改,包括 5 次插入8 次删除
  1. 5 4
      app/js/articleShow.js
  2. 0 4
      app/js/login.js

+ 5 - 4
app/js/articleShow.js

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

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

+ 0 - 4
app/js/login.js

114
						plus.storage.setItem('name', data.data.name);
114
						plus.storage.setItem('name', data.data.name);
115
						plus.nativeUI.toast("登录成功", toastStyle);
115
						plus.nativeUI.toast("登录成功", toastStyle);
116
						var article = plus.webview.currentWebview();
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
						if(article.ourl) {
117
						if(article.ourl) {
122
							var proAiticle =plus.webview.getWebviewById(article.ourl)
118
							var proAiticle =plus.webview.getWebviewById(article.ourl)
123
							mui.fire(proAiticle, "newId");
119
							mui.fire(proAiticle, "newId");