Authored by 陈峰

rebot check refer bug

... ... @@ -115,6 +115,7 @@
"yoho-jquery-pjax": "0.0.1",
"yoho-jquery-placeholder": "^2.3.1",
"yoho-jquery-qrcode": "^0.14.0",
"yoho-qs": "^1.0.1",
"yoho-slider": "0.0.2",
"yoho-swiper": "^3.3.1"
}
... ...
var $ = require('yoho-jquery'),
Captcha = require('../plugins/captcha');
Captcha = require('../plugins/captcha'),
qs = require('yoho-qs');
// 一直是极验证码
var captcha = new Captcha('.captcha-wrap', {
... ... @@ -13,7 +14,7 @@ require('../common/promise');
$('.confirm').on('click', function() {
captcha.check().then(function() {
window.jumpUrl(window.queryString().refer || '//www.yohobuy.com');
window.jumpUrl(qs.refer ? decodeURIComponent(qs.refer) : '//www.yohobuy.com');
});
});
... ...