Commit c04f3c61 by mawei

spider code refactor

parent 77212e42
......@@ -7,7 +7,7 @@ const path = require('path');
const program = require('commander');
const config = require('config');
const captcha = require('./lib/captcha');
const DealerSpider = require('./lib/dealerspider/index');
const Spider = require('./lib/spider');
program
.version('0.1.0')
......@@ -16,11 +16,11 @@ program
.parse(process.argv);
// console.log(process.pid);
const dealerWebInfo = config.get('Dealer')[program.webname];
const spider = new DealerSpider({
username : dealerWebInfo.username,
password : dealerWebInfo.password,
const dealerWebInfo = config.get(program.webname);
const spider = new Spider({
username : dealerWebInfo.USERNAME,
password : dealerWebInfo.PASSWORD,
webname : program.webname,
task : program.task
});
spider.execute();
spider.execute();
\ No newline at end of file
[dmt]
id = 48793
key = "c6c1bb5ea2c8f3706ed531c6cb5169cb"
host = "http://api.dama2.com:7766/app/"
user = "test"
pwd = "test"
[DMT]
ID = 48793
KEY = "c6c1bb5ea2c8f3706ed531c6cb5169cb"
HOST = "http://api.dama2.com:7766/app/"
USER = "test"
PWD = "test"
[Dealer.autoifeng]
username = "上海车城汽车"
password = "Checheng235#"
captchaType = "FOUR_CHARACTERS"
[DEALER.AUTOIFENG]
USERNAME = "上海车城汽车"
PASSWORD = "Checheng235#"
CAPTCHA_TYPE = "FOUR_CHARACTERS"
[Dealer.easypass]
username = "100074110"
password = "hnmz147852."
captchaType = "ARITHMETIC"
[DEALER.EASYPASS]
USERNAME = "100074110"
PASSWORD = "hnmz147852."
CAPTCHA_TYPE = "ARITHMETIC"
[Dealer.autohome]
username = "河南明志汽车大迈8054"
password = "hnmz147852."
captchaType = "FOUR_LETTERS"
[DEALER.AUTOHOME]
USERNAME = "河南明志汽车大迈8054"
PASSWORD = "hnmz147852."
CAPTCHA_TYPE = "FOUR_LETTERS"
[Captcha.ruokuai]
username = "chedev"
password = "Checheng235#"
softid = 86134
softkey = "b167ed636a224990a2f04ae2d28d1542"
[CAPTCHA.RUOKUAI]
USERNAME = "chedev"
PASSWORD = "Checheng235#"
SOFTID = 86134
SOFTKEY = "b167ed636a224990a2f04ae2d28d1542"
[Captcha.ruokuai.typeids]
[CAPTCHA.RUOKUAI.TYPEIDS]
FOUR_LETTERS = 2040 # 四个英文字母
FOUR_CHARACTERS = 3040 # 四个字母数字混合
ARITHMETIC = 7100 # 算术题
......@@ -5,7 +5,7 @@ const captcha = exports;
captcha.decode = function (captchaType, imageFile, callback) {
console.info('captchaType:', captchaType);
console.info('imageFile:', imageFile);
const typeids = config.get('Captcha.ruokuai.typeids');
const typeids = config.get('CAPTCHA.RUOKUAI.TYPEIDS');
typeid = typeids[captchaType];
return new Promise(function (resolve, reject) {
ruokuai.decode(typeid, imageFile).then(function (captchaText) {
......@@ -14,4 +14,4 @@ captcha.decode = function (captchaType, imageFile, callback) {
reject(error);
});
});
}
\ No newline at end of file
}
......@@ -10,13 +10,13 @@ const errors = require('../errors');
const ruokuai = exports;
ruokuai.decode = async function (typeid, imageFile) {
const ruokuaiInfo = config.get('Captcha.ruokuai');
const ruokuaiInfo = config.get('CAPTCHA.RUOKUAI');
const formData = new FormData();
formData.append('username', ruokuaiInfo.username);
formData.append('password', ruokuaiInfo.password);
formData.append('softid', ruokuaiInfo.softid);
formData.append('softkey', ruokuaiInfo.softkey);
formData.append('username', ruokuaiInfo.USERNAME);
formData.append('password', ruokuaiInfo.PASSWORD);
formData.append('softid', ruokuaiInfo.SOFTID);
formData.append('softkey', ruokuaiInfo.SOFTKEY);
formData.append('typeid', typeid);
formData.append("image", fs.createReadStream(imageFile), imageFile);
......
......@@ -9,11 +9,13 @@
* The Base Error all Carspider Errors inherit from.
*/
class AppError extends Error {
constructor(message) {
constructor(message, trace = true) {
super(message);
this.name = this.constructor.name;
this.message = message;
Error.captureStackTrace(this, this.constructor);
if (trace) {
Error.captureStackTrace(this, this.constructor);
}
}
}
exports.AppError = AppError;
......@@ -23,7 +25,7 @@ exports.AppError = AppError;
*/
class TryLoginError extends AppError {
constructor(message) {
super(message);
super(message, false);
this.name = this.constructor.name;
this.message = message;
Error.captureStackTrace(this, this.constructor);
......@@ -33,10 +35,14 @@ exports.TryLoginError = TryLoginError;
class LoginError extends AppError {
constructor(options) {
if (typeof options === 'string') {
options = {message: options}
console.log('LoginError options:', options);
}
options = options || {};
options.code = options.code || {};
options.message = options.message || '登录失败: ' + options.code;
super(options.message);
super(options.message, false);
this.name = this.constructor.name;
this.message = options.message;
this.code = options.code;
......@@ -66,4 +72,4 @@ class LoginValidationError extends AppError {
Error.captureStackTrace(this, this.constructor);
}
}
exports.LoginValidationError = LoginValidationError;
\ No newline at end of file
exports.LoginValidationError = LoginValidationError;
'use strict';
process.env.NODE_CONFIG_DIR = '../config';
const Promise = require('bluebird');
const fs = require('fs');
const redis = require('redis');
const config = require('config');
const cheerio = require('cheerio');
const Horseman = require('node-horseman');
const moment = require('moment');
var randomInt = require('random-int');
const axios = require('axios');
// 自定义模块
const captcha = require('../../captcha');
const errors = require('../../errors');
Promise.promisifyAll(redis);
Promise.promisifyAll(fs);
axios.defaults.withCredentials = true;
class AutoHome {
constructor(params) {
this.params = params;
}
async getCookies() {
try {
const client = await redis.createClient();
const cookies_key = this.params.webname + '_cookies';
let cookies = JSON.parse(await client.getAsync(cookies_key));
await cookies.forEach((cookie) => {
cookie.expires = (new Date()).getTime() + (1000 * 60 * 60);
});
await client.quit();
return cookies;
} catch (e) {
return null;
}
}
async execute() {
return new Promise((resolve, reject) => {
switch (this.params.task) {
case 'login': {
this.login();
break;
}
case 'tryLogin': {
return this.tryLogin();
}
case 'fetchClues': {
this.fetchClues();
break;
}
}
});
}
async tryLogin() {
try {
let cookies = await this.getCookies();
let loginSuccess = false;
if (cookies) {
console.log(JSON.stringify(cookies));
const horseman = new Horseman({
ignoreSSLErrors: true
});
loginSuccess =
await
horseman
.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0')
.viewport(1920, 1080)
.cookies(cookies)
.open('http://ics.autohome.com.cn/passport/Home/Index')
.screenshot('try.png')
.exists('#loginout');
await horseman.close();
}
if (loginSuccess) {
return true;
} else {
throw new errors.TryLoginError('尝试登录失败');
}
} catch (e) {
throw new errors.TryLoginError(`尝试登录异常: ${e}`);
}
}
async login() {
try {
let loginSuccess;
try {
loginSuccess = await this.tryLogin();
} catch (e) {
console.log(e.message);
}
if (loginSuccess) {
console.log('尝试登录成功');
return;
} else {
console.log('尝试登录失败');
}
console.log('开始表单登录');
const username = this.params.username;
const password = this.params.password;
const horseman = new Horseman({
ignoreSSLErrors: true
});
await
horseman
.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0')
.viewport(1920, 1080)
.open('http://ics.autohome.com.cn/passport/');
horseman.on('onResourceRequested', (requestData, networkRequest) => {
console.info('Requesting', requestData.url);
console.log('networkRequest', networkRequest);
});
// 验证码存储到磁盘
const imageFile =
await
horseman
.screenshot('m1.png')
.crop('#imgValidCodeDealer', 'captcha1.png')
.cropBase64('#imgValidCodeDealer', 'PNG')
.then((base64Text) => {
// const imageFile = 'tmp/' + (new Date) . getTime() + '.gif';
const imageFile = 'captcha2.png';
const writeStream = fs.createWriteStream(imageFile);
// data:image/png;base64, + base64Text
writeStream.write(base64Text, 'base64');
return imageFile;
});
// 验证码解码
let captchaText;
try {
const captchaType = config.get(this.params.webname)['CAPTCHA_TYPE'];
captchaText = await captcha.decode(captchaType, imageFile);
console.info('captchaText:', captchaText);
} catch (e) {
console.log(e.toString());
return;
}
// 填写登录表单
await
horseman
.type('input[id="UserNameDealer"]', username)
.type('input[id="PasswordDealer"]', password)
.type('input[id="checkCodeDealer"]', captchaText)
.screenshot('m2.png');
// 提交登录表单
loginSuccess =
await
horseman
.click('[id="btnDealer"]')
.waitForNextPage({ timeout: 5000 })
.screenshot('m3.png')
.exists('#loginout');
if (loginSuccess) {
console.log('登录成功!');
const cookies = await horseman .cookies().close();
console.log(JSON.stringify(cookies));
const cookie_key = this.params.webname + '_cookies';
const client = await redis.createClient();
await client.set(cookie_key, JSON.stringify(cookies), redis.print);
await client.quit();
console.info('cookie保存成功');
}
await horseman.close();
if (loginSuccess) {
return true;
} else {
throw new errors.LoginError('登录失败');
}
} catch (e) {
throw new errors.LoginError(`登录异常: ${e}`);
}
}
// 抓取线索
async fetchClues() {
try {
try {
await this.login();
console.log('登录成功');
} catch (e) {
console.log(e.message);
// 登录失败更新数据库cookie状态
return;
}
const cookies = await this.getCookies();
// console.log(JSON.stringify(cookies));return;
const cookieArray = [];
cookies.forEach((cookie) => {
cookieArray.push(`${cookie.name}=${cookie.value}`);
});
const cookieStr = cookieArray.join(';');
let rowcount;
let customerIndex = 0;
const params = {};
params.appid = 'dms';
params.orderType = 1;
params.priPub = -1;
params.factoryId = 0;
params.seriesId = 0;
params.specId = 0;
params.areaType = 0;
params.provinceId = -2;
params.cityId = -2;
params.status = -1;
params.startTime = moment().subtract(3, 'days').format('YYYY.MM.DD');
params.endtime = moment().format('YYYY.MM.DD');
params.pageIndex = 1
params.pageSize = 20;
params.salesid = 0;
params.dealerId = 0;
params.productId = 0;
params.assignDealerId = 0;
const fetchByPage = async () => {
if (!rowcount) {
console.log(`线索日期: ${params.startTime} - ${params.endtime}`);
}
console.log(`线索页面: ${params.pageIndex}`);
axios.get('http://ics.autohome.com.cn/Dms/Order/SearchOrderList', {
params: params,
headers:{
Cookie: cookieStr
}
}).then(async res => {
const clues = res.data;
const writeStream = fs.createWriteStream('res.html');
writeStream.write(JSON.stringify(res.data));
if (!rowcount) {
rowcount = clues.result.rowcount;
console.log('只进入一次总数:', rowcount);
}
for (let clue of clues.result.list) {
customerIndex++;
let $ = cheerio.load(clue.CustomerNameStr);
let idMatch = $.html().match(/showCusDetailWithId\("(\d*)"\)/);
clue.CustomerId = idMatch[1] || 0;
console.log('客户序号:', customerIndex);
console.log('客户ID:', clue.CustomerId);
console.log('客户姓名:', $.text());
console.log('客户号码:', clue.CustomerPhoneStr);
console.log('负责销售:', clue.SalesNameStr);
console.log('线索类型:', clue.OrderTypeStr);
console.log('线索状态:', clue.OrderStateStr);
console.log('线索获得时间:', clue.LeadTimeStr);
console.log('上牌地区:', clue.LicenseCityStr);
console.log('线索意向车型:', clue.SpecNameStr);
console.log('===========================================================================');
}
if (customerIndex < rowcount) {
let randomSecs = randomInt(1, 8);
console.log(`随机等待${randomSecs}秒`);
await Promise.delay(randomSecs*1000).then(async function() {
params.pageIndex++;
await fetchByPage();
});
}
});
}
fetchByPage(params.pageindex);
} catch (e) {
console.dir(e.stack);
// throw e;
}
}
}
module.exports = AutoHome;
'use strict';
const phantom = require('phantom');
const cheerio = require('cheerio');
class AutoIfeng {
constructor(params) {
this.params = params;
console.log(params);
}
execute() {
return new Promise((resolve, reject) => {
switch (this.params.task) {
case 'login': {
console.log('do login');
this.login();
break;
}
case 'tryLogin': {
break;
}
}
});
}
async login() {
const passport = this.params.username;
const password = this.params.password;
const instance = await phantom.create(['--ignore-ssl-errors=yes']);
const page = await instance.createPage();
page.property('viewportSize', {width: 1920, height: 1080});
await page.on("onResourceRequested", function(requestData) {
console.info('Requesting', requestData.url)
});
const status = await page.open('http://dealer.auto.ifeng.com/dealerback/dealerIndexPage');
console.log(status);
console.log(passport);
page.evaluate(function(passport, password) {
document.querySelector('input[id=passport]').value = passport;
document.querySelector('input[id=password]').value = password;
}).then(function(html) {
console.log(html);
});
const content = await page.property('content');
const $ = cheerio.load(content)
console.log('倒霉');
await page.render('m2.png');
await instance.exit();
}
}
module.exports = AutoIfeng;
\ No newline at end of file
'use strict';
process.env.NODE_CONFIG_DIR = '../config';
const Promise = require('bluebird');
const fs = require('fs');
const redis = require('redis');
const config = require('config');
const cheerio = require('cheerio');
const Horseman = require('node-horseman');
const moment = require('moment');
var randomInt = require('random-int');
const axios = require('axios');
// 自定义模块
const captcha = require('../../captcha');
const errors = require('../../errors');
Promise.promisifyAll(redis);
Promise.promisifyAll(fs);
axios.defaults.withCredentials = true;
class EasyPass {
constructor(params) {
this.params = params;
}
async getCookies() {
try {
const client = await redis.createClient();
const cookies_key = this.params.webname + '_cookies';
let cookies = JSON.parse(await client.getAsync(cookies_key));
await cookies.forEach((cookie) => {
cookie.expires = (new Date()).getTime() + (1000 * 60 * 60);
});
await client.quit();
return cookies;
} catch (e) {
return null;
}
}
async execute() {
return new Promise((resolve, reject) => {
switch (this.params.task) {
case 'login': {
this.login();
break;
}
case 'tryLogin': {
return this.tryLogin();
}
case 'fetchClues': {
this.fetchClues();
break;
}
}
});
}
async tryLogin() {
try {
let cookies = await this.getCookies();
let loginSuccess = false;
if (cookies) {
console.log(JSON.stringify(cookies));
const horseman = new Horseman({
ignoreSSLErrors: true
});
loginSuccess =
await
horseman
.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0')
.viewport(1920, 1080)
.cookies(cookies)
.open('http://dealer.easypass.cn/HomeIndex.aspx')
.screenshot('try.png')
.exists('#myAccountLi');
await horseman.close();
}
if (loginSuccess) {
return true;
} else {
throw new errors.TryLoginError(`尝试登录异常: ${e}`);
}
} catch (e) {
throw e;
}
}
async login() {
try {
let loginSuccess;
try {
loginSuccess = await this.tryLogin();
} catch (e) {
console.log(e.message);
}
if (loginSuccess) {
console.log('尝试登录成功');
return;
} else {
console.log('尝试登录失败');
}
console.log('开始表单登录');
const username = this.params.username;
const password = this.params.password;
const horseman = new Horseman({
ignoreSSLErrors: true
});
await
horseman
.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0')
.viewport(1920, 1080)
.open('http://dealer.easypass.cn/LoginPage/DefaultLogin.aspx')
.screenshot('m1.png');
console.log('打开了登录页');
// 验证码存储到磁盘
const imageFile =
await
horseman
.crop('#imgVerificationCode', 'captcha1.png')
.cropBase64('#imgVerificationCode', 'PNG')
.then((base64Text) => {
// const imageFile = 'tmp/' + (new Date) . getTime() + '.gif';
const imageFile = 'captcha2.png';
const writeStream = fs.createWriteStream(imageFile);
// data:image/png;base64, + base64Text
writeStream.write(base64Text, 'base64');
return imageFile;
});
console.log('验证码准备完毕');
// 验证码解码
let captchaText;
try {
const captchaType = config.get(this.params.webname)['CAPTCHA_TYPE'];
captchaText = await captcha.decode(captchaType, imageFile);
console.info('captchaText:', captchaText);
} catch (e) {
console.log(e.toString());
return;
}
// 填写登录表单
await
horseman
.type('input[id="txtUserName"]', username)
.type('input[id="txtPwd"]', password)
.type('input[id="txtVerificationCode"]', captchaText)
.screenshot('m2.png');
// 提交登录表单
loginSuccess =
await
horseman
.click('[id="btnLogin"]')
.screenshot('m2.5.png')
.waitForNextPage({ timeout: 5000 })
.screenshot('m3.png')
.exists('#myAccountLi');
if (loginSuccess) {
console.log('登录成功!');
const cookies = await horseman .cookies().close();
console.log(JSON.stringify(cookies));
const cookie_key = this.params.webname + '_cookies';
const client = await redis.createClient();
await client.set(cookie_key, JSON.stringify(cookies), redis.print);
await client.quit();
console.info('cookie保存成功');
}
await horseman.close();
if (loginSuccess) {
return true;
} else {
throw new errors.LoginError('登录失败');
}
} catch (e) {
throw new errors.LoginError(`登录异常: ${e}`);
}
}
// 抓取线索
async fetchClues() {
try {
try {
await this.login();
console.log('登录成功');
} catch (e) {
console.log(e.message);
// 登录失败更新数据库cookie状态
return;
}
const cookies = await this.getCookies();
if (cookies) {
const horseman = new Horseman({
ignoreSSLErrors: true
});
horseman.on('onResourceRequested', (requestData, networkRequest) => {
console.info('Requesting', requestData.url);
console.log('networkRequest', networkRequest);
});
const txtBeginTime = moment().subtract(9, 'days').format('YYYY-MM-DD');
await
horseman
.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0')
.viewport(1920, 1080)
.cookies(cookies)
.open('http://app.easypass.cn/lmsnew/OutmodedDefault.aspx')
.waitForSelector('#UpdatePanel1')
.waitForSelector('#pager1')
.type('input[id="txtBeginTime"]', txtBeginTime)
.click('input[id="btnSearch"]')
.wait(1000)
// .waitForNextPage()
.screenshot('list.png');
// TODO: if waitfor failed need some error check
let clues = [];
const fetchByPage = async () => {
const html = await horseman.html('#UpdatePanel1');
const $ = cheerio.load(html);
$('#dataTable #grvNewCarOpportunity tr').not('.th').each(function(i, elem) {
const clue = {};
// const area, created;
// 主体信息样本:赵永亮[河南新乡],电话15249705814,订购大迈X5升级版 1.5T 手动 精英型2017款
const ptitleStr = $(this).find('.msg p').attr('title').trim() || '';
const ptitleStrArr = ptitleStr.split(',') || [];
const customerNameAreaStr = ptitleStrArr[0].trim() || '';
const customerPhoneStr = ptitleStrArr[1].trim() || '';
const customerExpectCarStr = ptitleStrArr[2].trim() || '';
const customerNameAreaMatch = customerNameAreaStr.match(/(.*?)\[(.*?)\]/);
clue.customerName = customerNameAreaMatch[1].trim() || '';
clue.customerArea = customerNameAreaMatch[2].trim() || '';
clue.customerPhone = customerPhoneStr.replace('电话', '').trim();
clue.customerExpectCar = customerExpectCarStr.replace('订购', '').trim();
// 提交时间样本:提交时间:2017-08-10 08:31
const customerCreatedTimeStr = $(this).find('.msg p a span:contains(提交时间)').text();
clue.customerCreatedTime = customerCreatedTimeStr.replace('提交时间:', '').trim();
clue.SalesName = $(this).find('td span[title]').text().trim();
clues.push(clue);
console.log('客户序号:', clues.length);
console.log('客户姓名:', clue.customerName);
console.log('上牌地区:', clue.customerArea);
console.log('客户号码:', clue.customerPhone);
console.log('负责销售:', clue.SalesName);
console.log('线索获得时间:', clue.customerCreatedTime);
console.log('线索意向车型:', clue.customerExpectCar);
console.log('===========================================================================');
});
// 判断是否最后一页有两种情况:1.只有一页时分页按钮不存在 2.末页按钮置灰
const isLastPage = !$('#pager1').length || $('#pager1 a:contains(末页)').prop('disabled');
if (!isLastPage) {
await horseman
.click('a.paginator:contains(下一页)')
.screenshot('list2.png')
// .waitForNextPage()
.wait(1000)
.waitForSelector('#UpdatePanel1')
.screenshot('list3.png');
let randomSecs = randomInt(1, 5);
console.log(`随机等待${randomSecs}秒`);
await Promise.delay(randomSecs*1000).then(async function() {
await fetchByPage();
});
}
}
await fetchByPage();
await horseman.close();
return;
} else {
throw new Error('no cookie');
}
} catch (e) {
throw e;
}
}
}
module.exports = EasyPass;
'use strict';
const AutoHome = require('./AutoHome');
const EasyPass = require('./EasyPass');
// TODO: someday will finish this module
// const AutoIfeng = require('./AutoIfeng');
exports.AutoHome = AutoHome;
exports.EasyPass = EasyPass;
// exports.AutoIfeng = AutoIfeng;
\ No newline at end of file
'use strict';
const dealer = require('./dealer');
class Spider {
constructor(params) {
let self = this;
let _params = {};
this.params = Object.assign(_params, params);
this.spider = this.getSpider();
}
getSpider() {
let spider;
switch (this.params.webname) {
case 'DEALER.AUTOIFENG': {
spider = new dealer.AutoIfeng(this.params);
break;
}
case 'DEALER.AUTOHOME': {
spider = new dealer.AutoHome(this.params);
break;
}
case 'DEALER.EASYPASS': {
spider = new dealer.EasyPass(this.params);
break;
}
}
if (spider) {
return spider;
} else {
throw new Error('Spider not found');
}
}
execute() {
this.spider.execute();
}
}
module.exports = Spider;
{"returncode":0,"message":"","result":{"rowcount":10,"pagesize":20,"pageindex":1,"list":[{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302962\")'>宋永建</a><br/><span></span>","CustomerPhoneStr":"15516111837<br/>河南 濮阳","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-10 17:14:00","LicenseCityStr":"河南 濮阳 ","SpecNameStr":"芝麻 2017款 标准型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302962')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('15516111837')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302891\")'>汪用</a><br/><span></span>","CustomerPhoneStr":"17320137636<br/> ","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-10 12:17:11","LicenseCityStr":"河南 郑州 ","SpecNameStr":"大迈X7 2017款 1.8T 手动精英型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302891')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('17320137636')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302876\")'>张利江</a><br/><span></span>","CustomerPhoneStr":"18695815175<br/>河南 郑州","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-10 11:11:14","LicenseCityStr":"河南 郑州 ","SpecNameStr":"芝麻 2017款 标准型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302876')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('18695815175')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302861\")'>冉先生</a><br/><span></span>","CustomerPhoneStr":"13838315468<br/>河南 郑州","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-10 10:14:15","LicenseCityStr":"河南 郑州 ","SpecNameStr":"大迈X7 2017款 1.5T 手动精英型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302861')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('13838315468')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302770\")'>樊军召</a><br/><span></span>","CustomerPhoneStr":"15803872185<br/>河南 郑州","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-09 18:39:44","LicenseCityStr":"河南 郑州 ","SpecNameStr":"大迈X5 2017款 升级版 1.5T 手动精英型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302770')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('15803872185')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302761\")'>嘎嘣心碎声</a><br/><span></span>","CustomerPhoneStr":"15936517707<br/>河南 新乡","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-09 18:04:57","LicenseCityStr":"河南 郑州 ","SpecNameStr":"大迈X7 2017款 1.8T 自动尊贵型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302761')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('15936517707')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302599\")'>员梦阁</a><br/><span></span>","CustomerPhoneStr":"18510753344<br/>北京 北京","OrderTypeStr":"订单<br/>公共","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-09 09:01:41","LicenseCityStr":"河南 三门峡 ","SpecNameStr":"大迈X7 2017款 2.0T 自动至尊型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302599')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('18510753344')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302574\")'>陈华</a><br/><span></span>","CustomerPhoneStr":"15637799230<br/>河南 南阳","OrderTypeStr":"订单<br/>公共","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-09 00:20:52","LicenseCityStr":"河南 南阳 ","SpecNameStr":"芝麻 2017款 标准型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302574')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('15637799230')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302559\")'>朱康</a><br/><span></span>","CustomerPhoneStr":"18237127611<br/>河南 郑州","OrderTypeStr":"订单<br/>公共","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-08 22:11:23","LicenseCityStr":"河南 周口 ","SpecNameStr":"大迈X5 2017款 升级版 1.5T CVT掌柜型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302559')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('18237127611')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302546\")'>王美超</a><br/><span></span>","CustomerPhoneStr":"15038902566<br/>河南 许昌","OrderTypeStr":"订单<br/>公共","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-08 20:21:02","LicenseCityStr":"河南 许昌 ","SpecNameStr":"大迈X5 2017款 超值版 1.6L 手动舒适型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302546')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('15038902566')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0}]},"countInfo":"0条订单待分配、10条已获得线索。已获得线索中10条订单,0条400电话(其中0条未接起)。","ishavassign":1}
\ No newline at end of file
{"returncode":0,"message":"","result":{"rowcount":11,"pagesize":20,"pageindex":1,"list":[{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"303590\")'>田华</a><br/><span></span>","CustomerPhoneStr":"13253979998<br/>河南 三门峡","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-13 14:42:34","LicenseCityStr":"河南 三门峡 ","SpecNameStr":"芝麻 2016款 E30标准型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('303590')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('13253979998')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"303590\")'>田华</a><br/><span></span>","CustomerPhoneStr":"13253979998<br/>河南 三门峡","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-13 14:42:02","LicenseCityStr":"河南 三门峡 ","SpecNameStr":"芝麻 2017款 标准型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('303590')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('13253979998')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"303576\")'>王</a><br/><span></span>","CustomerPhoneStr":"13838083013<br/>河南 郑州","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-13 13:07:17","LicenseCityStr":"河南 郑州 ","SpecNameStr":"大迈X5 2017款 升级版 1.5T CVT总督型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('303576')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('13838083013')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"303573\")'>樊先生</a><br/><span></span>","CustomerPhoneStr":"17630857705<br/> ","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-13 13:03:09","LicenseCityStr":"河南 郑州 ","SpecNameStr":"大迈X7 2017款 1.5T 手动精英型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('303573')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('17630857705')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"286370\")'>赵涛文</a><br/><span></span>","CustomerPhoneStr":"18768899137<br/>河南 郑州","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-12 16:19:05","LicenseCityStr":"河南 郑州 ","SpecNameStr":"大迈X7 2017款 1.5T 手动精英型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('286370')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('18768899137')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"303353\")'>李</a><br/><span></span>","CustomerPhoneStr":"18637204846<br/>河南 安阳","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-12 11:26:01","LicenseCityStr":"河南 郑州 ","SpecNameStr":"大迈X7 2017款 1.5T 手动精英型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('303353')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('18637204846')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"303313\")'>199164</a><br/><span></span>","CustomerPhoneStr":"15670006126<br/>河南 安阳","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-12 08:47:47","LicenseCityStr":"河南 郑州 ","SpecNameStr":"大迈X7 2017款 1.5T 手动精英型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('303313')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('15670006126')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302962\")'>宋永建</a><br/><span></span>","CustomerPhoneStr":"15516111837<br/>河南 濮阳","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-10 17:14:00","LicenseCityStr":"河南 濮阳 ","SpecNameStr":"芝麻 2017款 标准型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302962')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('15516111837')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302891\")'>汪用</a><br/><span></span>","CustomerPhoneStr":"17320137636<br/> ","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-10 12:17:11","LicenseCityStr":"河南 郑州 ","SpecNameStr":"大迈X7 2017款 1.8T 手动精英型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302891')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('17320137636')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302876\")'>张利江</a><br/><span></span>","CustomerPhoneStr":"18695815175<br/>河南 郑州","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-10 11:11:14","LicenseCityStr":"河南 郑州 ","SpecNameStr":"芝麻 2017款 标准型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302876')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('18695815175')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0},{"CustomerNameStr":"<a href='#' onclick='showCusDetailWithId(\"302861\")'>冉先生</a><br/><span></span>","CustomerPhoneStr":"13838315468<br/>河南 郑州","OrderTypeStr":"订单<br/>私有","OrderStateStr":"订单已跟进","LeadTimeStr":"2017-08-10 10:14:15","LicenseCityStr":"河南 郑州 ","SpecNameStr":"大迈X7 2017款 1.5T 手动精英型","OperateStr":"<a class='mr5' href='javascript:void(0)' onclick=\"showCusDetailWithId('302861')\">详情</a><a class='mr5' href='javascript:void(0)' onclick=\"showLog('13838315468')\">日志</a>","SalesNameStr":"田淮蒲 18300683353","ProductNameStr":"车商汇","TaskName":null,"GetLeadDealerNameStr":"[4s]河南明志汽车大迈-众泰汽车金坛事业部店","UnitPriceStr":"","DealerId":0,"ReDealerId":0}]},"countInfo":"0条订单待分配、11条已获得线索。已获得线索中11条订单,0条400电话(其中0条未接起)。","ishavassign":1}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment