Browse Source

修改发现页面

xuchunyang 8 years ago
parent
commit
723d8af77e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/js/discover.js

+ 2 - 2
app/js/discover.js

4
var discoverBox = document.body.querySelector('#discoverBox');
4
var discoverBox = document.body.querySelector('#discoverBox');
5

5

6
/*点击列表*/
6
/*点击列表*/
7
$('#discoverBox').on('click', '.newsurl', function() {
7
$('#discoverBox').on('tap', '.newsurl', function() {
8
	var id = $(this).attr("data-id");
8
	var id = $(this).attr("data-id");
9
	var datatype = $(this).attr("data-type");
9
	var datatype = $(this).attr("data-type");
10
	var ownerid = $(this).attr("owner-id");
10
	var ownerid = $(this).attr("owner-id");
51
});
51
});
52

52

53
/*点击头像*/
53
/*点击头像*/
54
$('#discoverBox').on('click', '.gouserurl', function() {
54
$('#discoverBox').on('tap', '.gouserurl', function() {
55
	var id = $(this).parents(".mui-table-view-cell").find(".userurl").attr("data-id");
55
	var id = $(this).parents(".mui-table-view-cell").find(".userurl").attr("data-id");
56
	var datatype = $(this).parents(".mui-table-view-cell").find(".newsurl").attr("data-type");
56
	var datatype = $(this).parents(".mui-table-view-cell").find(".newsurl").attr("data-type");
57
	var iftauth = $(this).parents(".mui-table-view-cell").find(".userurl").attr("data-iftauth");
57
	var iftauth = $(this).parents(".mui-table-view-cell").find(".userurl").attr("data-iftauth");