Browse Source

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

xuchunyang 8 years ago
parent
commit
b4da4844f1
2 changed files with 16 additions and 6 deletions
  1. 8 3
      app/js/proinfobrow.js
  2. 8 3
      app/js/resinforbrow.js

+ 8 - 3
app/js/proinfobrow.js

25
		});
25
		});
26
	}else if(userid == '' || userid == undefined){
26
	}else if(userid == '' || userid == undefined){
27
		ozixun.addEventListener('tap', function() {
27
		ozixun.addEventListener('tap', function() {
28
			mui.alert('请登录', '' ,function(){
28
			/*mui.alert('请登录', '' ,function(){
29
				mui.openWindow({
29
				mui.openWindow({
30
					url: '../html/login.html',
30
					url: '../html/login.html',
31
					id: 'html/login.html',
31
					id: 'html/login.html',
33
						aniShow: "slide-in-left"
33
						aniShow: "slide-in-left"
34
					}
34
					}
35
				});
35
				});
36
			});
36
			});*/
37
			plus.nativeUI.toast("请先登录");
37
		});
38
		});
38
	}
39
	}
39
	
40
	
326
327
327
	yesExpert.addEventListener('tap', function() {
328
	yesExpert.addEventListener('tap', function() {
328
		var $this = this;
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
	noExpert.addEventListener('tap', function() {
337
	noExpert.addEventListener('tap', function() {

+ 8 - 3
app/js/resinforbrow.js

168
		});
168
		});
169
	}else if(userid == '' || userid == undefined){
169
	}else if(userid == '' || userid == undefined){
170
		oconsult.addEventListener('tap', function() {
170
		oconsult.addEventListener('tap', function() {
171
			mui.alert('请登录', '' ,function(){
171
			/*mui.alert('请登录', '' ,function(){
172
				mui.openWindow({
172
				mui.openWindow({
173
					url: '../html/login.html',
173
					url: '../html/login.html',
174
					id: 'html/login.html',
174
					id: 'html/login.html',
176
						aniShow: "slide-in-left"
176
						aniShow: "slide-in-left"
177
					}
177
					}
178
				});
178
				});
179
			});
179
			});*/
180
			plus.nativeUI.toast("请先登录");
180
		});
181
		});
181
	}
182
	}
182
	
183
	
190
191
191
	yesExpert.addEventListener('tap', function() {
192
	yesExpert.addEventListener('tap', function() {
192
		var $this = this;
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
	noExpert.addEventListener('tap', function() {
201
	noExpert.addEventListener('tap', function() {