Skip to content

Commit

Permalink
Merge pull request #310 from wuhanfeiyou/patch-4
Browse files Browse the repository at this point in the history
增加了些域名判断
  • Loading branch information
Pearl Wang authored Jan 3, 2017
2 parents b5f410e + 85f2b60 commit 7deeeba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mip-cr173-tags/mip-cr173-tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,14 @@ define(function (require) {
}
});
$('.m-down-msg h1').text(firstName);
$('.m-down-ul li a').attr('href', 'http://m.cr173.com/down.asp?id=' + firstId).attr('data-add', 'add');
var urlArray = ['cr173.com', 'qqtn.com', 'fxxz.com', '5577.com', 'uzzf.com', 'skycn.com', '962.net'];
var windowUrl = window.location.href;
var i = 0;
for (i = 0; i < urlArray.length; i++) {
if (windowUrl.indexOf(urlArray[i]) !== -1) {
$('.m-down-ul li a').attr('href', 'http://m.' + urlArray[i] + '/down.asp?id=' + firstId).attr('data-add', 'add');
}
}
}
if ($('.g-tags-box ul li').length <= 0) {
$('.g-tags-box').hide();
Expand Down

0 comments on commit 7deeeba

Please sign in to comment.