Skip to content

Commit

Permalink
feat: 添加尚品宅配provider
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Nov 26, 2017
1 parent 25e97bc commit b778ec0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/providers/尚品宅配.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const Provider = require('../provider');
const utils = require('../utils');

module.exports = class extends Provider {
constructor() {
super();
this.url = `http://www.homekoo.com/zhixiao/cuxiao/index.php`;
}
async resolve(ctx) {
const options = ctx.options;
const page = ctx.page;

await page.type('#username5', options.name, { delay: 100 });
await page.type('#tel5', options.phone, { delay: 100 });

await page.click('#submit_img5');

// 检验是否发送成功
}
};

0 comments on commit b778ec0

Please sign in to comment.