浏览代码

修改未登陆,关注专家和资源

xuchunyang 8 年之前
父节点
当前提交
b4da4844f1
共有 2 个文件被更改,包括 16 次插入6 次删除
  1. 8 3
      app/js/proinfobrow.js
  2. 8 3
      app/js/resinforbrow.js

+ 8 - 3
app/js/proinfobrow.js

@ -25,7 +25,7 @@ mui.plusReady(function() {
25 25
		});
26 26
	}else if(userid == '' || userid == undefined){
27 27
		ozixun.addEventListener('tap', function() {
28
			mui.alert('请登录', '' ,function(){
28
			/*mui.alert('请登录', '' ,function(){
29 29
				mui.openWindow({
30 30
					url: '../html/login.html',
31 31
					id: 'html/login.html',
@ -33,7 +33,8 @@ mui.plusReady(function() {
33 33
						aniShow: "slide-in-left"
34 34
					}
35 35
				});
36
			});
36
			});*/
37
			plus.nativeUI.toast("请先登录");
37 38
		});
38 39
	}
39 40
	
@ -326,7 +327,11 @@ mui.plusReady(function() {
326 327
327 328
	yesExpert.addEventListener('tap', function() {
328 329
		var $this = this;
329
		collectionExpert($this);
330
		if(userid && userid != null && userid != "null") {
331
			collectionExpert($this);
332
		}else{
333
			plus.nativeUI.toast("请先登录");
334
		}
330 335
	});
331 336
332 337
	noExpert.addEventListener('tap', function() {

+ 8 - 3
app/js/resinforbrow.js

@ -168,7 +168,7 @@ mui.plusReady(function() {
168 168
		});
169 169
	}else if(userid == '' || userid == undefined){
170 170
		oconsult.addEventListener('tap', function() {
171
			mui.alert('请登录', '' ,function(){
171
			/*mui.alert('请登录', '' ,function(){
172 172
				mui.openWindow({
173 173
					url: '../html/login.html',
174 174
					id: 'html/login.html',
@ -176,7 +176,8 @@ mui.plusReady(function() {
176 176
						aniShow: "slide-in-left"
177 177
					}
178 178
				});
179
			});
179
			});*/
180
			plus.nativeUI.toast("请先登录");
180 181
		});
181 182
	}
182 183
	
@ -190,7 +191,11 @@ mui.plusReady(function() {
190 191
191 192
	yesExpert.addEventListener('tap', function() {
192 193
		var $this = this;
193
		collectionExpert($this);
194
		if(userid && userid != null && userid != "null") {
195
			collectionExpert($this);
196
		}else{
197
			plus.nativeUI.toast("请先登录");
198
		}
194 199
	});
195 200
196 201
	noExpert.addEventListener('tap', function() {