From 8be561f108cdac24ab3e3913717e6aadfb52568f Mon Sep 17 00:00:00 2001
From: cyc
Date: Mon, 22 Jun 2020 23:58:02 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96TA=E6=95=B0=E6=8D=AE=E9=87=87?=
=?UTF-8?q?=E9=9B=86=E7=95=8C=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/third_party_input.php | 27 ++++++++++++++++---
1 file changed, 24 insertions(+), 3 deletions(-)
diff --git a/application/third_party/tripadvisor_spider/views/third_party_input.php b/application/third_party/tripadvisor_spider/views/third_party_input.php
index 8b697d59..23daf969 100644
--- a/application/third_party/tripadvisor_spider/views/third_party_input.php
+++ b/application/third_party/tripadvisor_spider/views/third_party_input.php
@@ -79,6 +79,10 @@
+
+
+
+
@@ -98,6 +102,9 @@
+
+
+
@@ -109,6 +116,10 @@
+
+
+
+
@@ -195,6 +206,8 @@ $(function(){
var pagenums = $('#pagenums').val();
var product_links = $('#production').val();
var product_code = $('#production option:selected').text();
+ $(this).addClass('disabled');
+ $('#console').html('');
if(destination != ''){
$.ajax({
@@ -207,7 +220,9 @@ $(function(){
type:'POST',
success:function(json,status){
var data = $.parseJSON(json);
- var html = '';
+ $('#batchcontents').removeClass('disabled');
+ $('#console').html('5条评论链接获取成功,下面开始抓取具体评论!
');
+
for(var x=0;x标题:'+data.title+' 评论抓取成功!
';
+ $('#console').html(console_html);
}
});
}
},
error:function (){
alert('获取失败,请重试!');
+ $('#batchcontents').removeClass('disabled');
},
timeout:function(){
alert('请求超时,请重试!');
+ $('#batchcontents').removeClass('disabled');
}
});
@@ -363,7 +384,7 @@ $(function(){
}
}
- html += 'Date of experience: '+jsondata.list[y].tr_visited_date+'
';
+ html += 'Date of experience: '+jsondata.list[y].tr_visited_date+'
product code: '+jsondata.list[y].tr_product_code+'
';
}
html += 'total nums : '+jsondata.list.length+'
'
$('#list_view_content').html(html);