Browse Source

专利留言

luyanan 7 years ago
parent
commit
fed357f386
1 changed files with 12 additions and 7 deletions
  1. 12 7
      app/js/patentShow.js

+ 12 - 7
app/js/patentShow.js

715
	});
715
	});
716
}
716
}
717
mui(".artfoot").on("tap", ".inputShow", function() {
717
mui(".artfoot").on("tap", ".inputShow", function() {
718
		if(!isLogin) {
718
	
719
		if(!isLogin()) {
719
			document.getElementById("textInput").style.display = "block";
720
			document.getElementById("textInput").style.display = "block";
720
			document.getElementById("operCol").style.display = "none";
721
			document.getElementById("operCol").style.display = "none";
721
			document.getElementById("textInputThis").focus();
722
			document.getElementById("textInputThis").focus();
727
function leword() {
728
function leword() {
728
		var data = {"patentId": patentId,"rows": 500}	
729
		var data = {"patentId": patentId,"rows": 500}	
729
		mui.ajax(baseUrl + "/ajax/leaveWord/ql/patent", {
730
		mui.ajax(baseUrl + "/ajax/leaveWord/ql/patent", {
730
			data: obj,
731
			data: data,
731
			dataType: 'json', //服务器返回json格式数据
732
			dataType: 'json', //服务器返回json格式数据
732
			type: 'get', //HTTP请求类型
733
			type: 'get', //HTTP请求类型
733
			timeout: 10000, //超时时间设置为10秒;
734
			timeout: 10000, //超时时间设置为10秒;
781
function lewordNum() {
782
function lewordNum() {
782
		var data = {"patentId": patentId}	
783
		var data = {"patentId": patentId}	
783
		mui.ajax(baseUrl + "/ajax/leaveWord/lwCount/patent", {
784
		mui.ajax(baseUrl + "/ajax/leaveWord/lwCount/patent", {
784
			data: obj,
785
			data: data,
785
			dataType: 'json', //服务器返回json格式数据
786
			dataType: 'json', //服务器返回json格式数据
786
			type: 'get', //HTTP请求类型
787
			type: 'get', //HTTP请求类型
787
			timeout: 10000, //超时时间设置为10秒;
788
			timeout: 10000, //超时时间设置为10秒;
830
					lewordNum();
831
					lewordNum();
831
				}
832
				}
832
			},
833
			},
833
			error: function(xhr, type, errorThrown) {
834
			error: function() {
834
				//异常处理;
835
				//异常处理;
835
				plus.nativeUI.toast("服务器链接超时", toastStyle);
836
				plus.nativeUI.toast("服务器链接超时", toastStyle);
836
			},
837
			beforeSend: function(data) {
838
				console.log(JSON.stringify(data));
839
			}
837
			}
840
		});
838
		});
841
	})
839
	})
861
			}
859
			}
862
		});
860
		});
863
	})
861
	})
862
mui('.commentBlock').on('tap', '.useHead,.h1Font', function() {
863
		var id = this.getAttribute("data-id");
864
		plus.nativeUI.showWaiting(); //显示原生等待框
865
		plus.webview.create("../html/userInforShow.html", 'userInforShow.html', {}, {
866
			proid: id
867
		});
868
	})
864
});
869
});