Skip to content

Commit

Permalink
mei.tmall
Browse files Browse the repository at this point in the history
  • Loading branch information
fayland committed Jun 8, 2014
1 parent 235859b commit 14f6b17
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Chrome 插件 自动签到

[https://chrome.google.com/webstore/detail/%E8%87%AA%E5%8A%A8%E7%AD%BE%E5%88%B0/gphhmijanbcbckphcjkfkoccofhmjhdn](https://chrome.google.com/webstore/detail/%E8%87%AA%E5%8A%A8%E7%AD%BE%E5%88%B0/gphhmijanbcbckphcjkfkoccofhmjhdn)

访问一些可以签到的网站如淘宝,一号店,点评,苏宁,虾米等,如果已登录该插件可以自动签到挣取积分。
访问一些可以签到的网站如淘宝,百度贴吧,点评,一号店,苏宁,爱奇艺,虾米,天猫美妆,微盘,数米基金网等,如果已登录该插件可以自动签到挣取积分。
8 changes: 5 additions & 3 deletions js/qiandao/tmall.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
chrome.runtime.sendMessage({
method: "setLocalStorage", key: "tmall_mei_status", val: today
}, function(res) {});
chrome.runtime.sendMessage({
method: "setLocalStorage", key: "tmall_mei_points", val: t.availableDays
}, function(res) {});
if (t.availableDays > 0) {
chrome.runtime.sendMessage({
method: "setLocalStorage", key: "tmall_mei_points", val: t.availableDays
}, function(res) {});
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"short_name": "签到",
"version": "0.0.9",
"manifest_version": 2,
"description": "访问时如果已登陆则在淘宝,百度贴吧,点评,一号店,苏宁,爱奇艺,虾米,微盘,数米基金网等网站自动签到。",
"description": "访问时如果已登陆则在淘宝,百度贴吧,点评,一号店,苏宁,爱奇艺,虾米,天猫美妆,微盘,数米基金网等网站自动签到。",
"homepage_url": "http://fayland.me/",
"icons": {
"16": "icons/icon16.png",
Expand Down
4 changes: 4 additions & 0 deletions src/browser_action/browser_action.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
<td>数米基金网</td><td id='fund123_status'></td><td id='fund123_points'>-</td>
<td><a href='http://i.fund123.cn/' target='_blank'>访问</a></td>
</tr>
<tr>
<td>天猫美妆</td><td id='tmall_mei_status'></td><td id='tmall_mei_points'>-</td>
<td><a href='http://mei.tmall.com/' target='_blank'>访问</a></td>
</tr>

</table>
</div>
3 changes: 2 additions & 1 deletion src/browser_action/browser_action.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
'tieba_status',
'weipan_status', 'weipan_points',
'fund123_status',
'iqiyi_status', 'iqiyi_points'
'iqiyi_status', 'iqiyi_points',
'tmall_mei_status', 'tmall_mei_points'
];
$.each(ele, function(i, v) {
$('#' + v).text(localStorage.getItem(v));
Expand Down

0 comments on commit 14f6b17

Please sign in to comment.