Authored by xuqi

tip:bad yoho.zepto

... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('yoho.jquery');
var trim = $.trim;
... ... @@ -96,7 +96,7 @@ function bindClearEvt() {
$clear;
$hasClear.append('<div class="clear-input"></div>');
$clear = $hasClear.children('.clear');
$clear = $hasClear.children('.clear-input');
$clear.on('touchstart', function(e) {
var $input = $clear.siblings('.input');
... ... @@ -108,7 +108,7 @@ function bindClearEvt() {
//反向逻辑
$hasClear.children('.input').bind('input', function() {
var $this = $(this),
$thisClear = $this.siblings('.clear'),
$thisClear = $this.siblings('.clear-input'),
val = trim($this.val());
if (val === '') {
... ...
... ... @@ -4,7 +4,7 @@
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('yoho.jquery');
var $resend = $('#resend');
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('yoho.jquery');
var $email = $('#email'),
$btnSure = $('#btn-sure');
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('yoho.jquery');
var $phoneNum = $('#phone-num'),
$countrySelector = $('#country-selector'),
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('yoho.jquery');
var $pwd = $('#pwd'),
$btnOk = $('#btn-ok');
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('yoho.jquery');
module.exports = function(useInRegister) {
var $captcha = $('#captcha'),
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('yoho.jquery');
var $phoneNum = $('#phone-num'),
$countrySelect = $('#country-select'),
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/9/30
*/
var $ = require('yoho.zepto');
var $ = require('yoho.jquery');
var $account = $('#account'),
$pwd = $('#pwd'),
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('yoho.jquery');
var $pwd = $('#pwd'),
$btnSure = $('#btn-sure');
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('yoho.jquery');
var $phoneNum = $('#phone-num'),
$countrySelect = $('#country-select'),
... ...
... ... @@ -16,6 +16,8 @@
"spm": {
"main": "index.js",
"dependencies": {
"yoho.zepto": "1.1.6",
"yoho.jquery": "1.8.3"
},
"devDependencies": {
"expect.js": "0.3.1"
... ... @@ -30,4 +32,4 @@
"test": "spm test",
"build": "spm build"
}
}
}
\ No newline at end of file
... ...