From 0baf972b07dd81f8189b1a0f69a9b628c92490df Mon Sep 17 00:00:00 2001 From: pob986 Date: Thu, 29 Aug 2013 16:24:57 +0800 Subject: [PATCH] =?UTF-8?q?#1=20=E4=BC=98=E5=8C=96=E5=BE=AE=E5=8D=9A?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/screen.js | 12 +++++++++++- assets/style.css | 8 +++++++- manage.html | 5 +++-- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/assets/screen.js b/assets/screen.js index db1d00c..eb41aa4 100755 --- a/assets/screen.js +++ b/assets/screen.js @@ -54,6 +54,13 @@ state = 1; i = 0; str.text = str.user + ' : ' + str.text; + if (str.origin != '') { + if (str.origin.type == 1) { + str.text += ' (转)@' + str.origin.user + ':' + str.origin.text; + }else{ + str.text += ' (评)//@' + str.origin.user + ':' + str.origin.text; + } + }; } break; case 1: @@ -61,9 +68,12 @@ el.html('' + settings.prefix + '' + str.text.substring(0, i)).append(sp); document.body.scrollTop = document.body.scrollHeight; if (i >= str.text.length) { + if (str.thumb != '') { + el.append('
'); + } state = 2; j = 0; - } + }; i ++; break; case 2: diff --git a/assets/style.css b/assets/style.css index c0319e0..a48bf74 100755 --- a/assets/style.css +++ b/assets/style.css @@ -9,7 +9,7 @@ body { .str { color: #000; width: 100%; - padding: 0 5px; + padding: 5px 5px; line-height: 35px; font-size: 25px; box-sizing: border-box; @@ -26,6 +26,12 @@ body { .head { color: #000; } +.str img{ + max-width: 60%; + max-height: 216px; + margin-left: 20%; + padding-bottom: 10px; +} .hide { background: transparent; diff --git a/manage.html b/manage.html index 3172c75..5f461e3 100644 --- a/manage.html +++ b/manage.html @@ -20,7 +20,7 @@ if (len > 0) { $.each(data.lists, function (i, list) { if (list.if_use == 1) { - html += ''+ list.weibo_nick +'取消'; + html += ''+ list.weibo_nick +'取消删除缓存'; }else{ html += ''+ list.weibo_nick +'选择'; }; @@ -57,11 +57,12 @@ }); // 选择微博用户 - $('a.cancel, a.select').live('click', function(){ + $('a.cancel, a.select, a.update').live('click', function(){ var obj = $(this); var type = 'select'; var item_id = obj.attr('id'); if (obj.hasClass('cancel')) { type = 'cancel'; } + if (obj.hasClass('update')) { type = 'update'; } $.ajax({ type : 'GET', url : base_url + 'list.php?method=' + type + '&item_id=' + item_id,