Skip to content

Commit

Permalink
feat: 增加社x网
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Oct 25, 2017
1 parent 5ee5f71 commit 55331e8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/providers/广西社保卡.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const Provider = require('../provider');
const utils = require('../utils');

module.exports = class extends Provider {
constructor() {
super();
this.url = `http://wx.gxsbj.cn/bhwx/userAccountAction!register.do`;
}
async resolve(ctx) {
const options = ctx.options;
const page = ctx.page;

await page.type('#tel', options.phone, { delay: 50 });
await page.click('#btn');
await page.waitForSelector('.window-alert-img-ok', { timeout: 3000 });
}
};

0 comments on commit 55331e8

Please sign in to comment.