Authored by xuqi

tip:bad yoho.zepto

@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: xuqi<qi.xu@yoho.cn> 3 * @author: xuqi<qi.xu@yoho.cn>
4 * @date: 2015/10/8 4 * @date: 2015/10/8
5 */ 5 */
6 -var $ = require('yoho.zepto'); 6 +var $ = require('yoho.jquery');
7 7
8 var trim = $.trim; 8 var trim = $.trim;
9 9
@@ -96,7 +96,7 @@ function bindClearEvt() { @@ -96,7 +96,7 @@ function bindClearEvt() {
96 $clear; 96 $clear;
97 97
98 $hasClear.append('<div class="clear-input"></div>'); 98 $hasClear.append('<div class="clear-input"></div>');
99 - $clear = $hasClear.children('.clear'); 99 + $clear = $hasClear.children('.clear-input');
100 100
101 $clear.on('touchstart', function(e) { 101 $clear.on('touchstart', function(e) {
102 var $input = $clear.siblings('.input'); 102 var $input = $clear.siblings('.input');
@@ -108,7 +108,7 @@ function bindClearEvt() { @@ -108,7 +108,7 @@ function bindClearEvt() {
108 //反向逻辑 108 //反向逻辑
109 $hasClear.children('.input').bind('input', function() { 109 $hasClear.children('.input').bind('input', function() {
110 var $this = $(this), 110 var $this = $(this),
111 - $thisClear = $this.siblings('.clear'), 111 + $thisClear = $this.siblings('.clear-input'),
112 val = trim($this.val()); 112 val = trim($this.val());
113 113
114 if (val === '') { 114 if (val === '') {
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 * @date: 2015/10/8 4 * @date: 2015/10/8
5 */ 5 */
6 6
7 -var $ = require('yoho.zepto'); 7 +var $ = require('yoho.jquery');
8 8
9 var $resend = $('#resend'); 9 var $resend = $('#resend');
10 10
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: xuqi<qi.xu@yoho.cn> 3 * @author: xuqi<qi.xu@yoho.cn>
4 * @date: 2015/10/8 4 * @date: 2015/10/8
5 */ 5 */
6 -var $ = require('yoho.zepto'); 6 +var $ = require('yoho.jquery');
7 7
8 var $email = $('#email'), 8 var $email = $('#email'),
9 $btnSure = $('#btn-sure'); 9 $btnSure = $('#btn-sure');
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: xuqi<qi.xu@yoho.cn> 3 * @author: xuqi<qi.xu@yoho.cn>
4 * @date: 2015/10/8 4 * @date: 2015/10/8
5 */ 5 */
6 -var $ = require('yoho.zepto'); 6 +var $ = require('yoho.jquery');
7 7
8 var $phoneNum = $('#phone-num'), 8 var $phoneNum = $('#phone-num'),
9 $countrySelector = $('#country-selector'), 9 $countrySelector = $('#country-selector'),
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: xuqi<qi.xu@yoho.cn> 3 * @author: xuqi<qi.xu@yoho.cn>
4 * @date: 2015/10/8 4 * @date: 2015/10/8
5 */ 5 */
6 -var $ = require('yoho.zepto'); 6 +var $ = require('yoho.jquery');
7 7
8 var $pwd = $('#pwd'), 8 var $pwd = $('#pwd'),
9 $btnOk = $('#btn-ok'); 9 $btnOk = $('#btn-ok');
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: xuqi<qi.xu@yoho.cn> 3 * @author: xuqi<qi.xu@yoho.cn>
4 * @date: 2015/10/8 4 * @date: 2015/10/8
5 */ 5 */
6 -var $ = require('yoho.zepto'); 6 +var $ = require('yoho.jquery');
7 7
8 module.exports = function(useInRegister) { 8 module.exports = function(useInRegister) {
9 var $captcha = $('#captcha'), 9 var $captcha = $('#captcha'),
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: xuqi<qi.xu@yoho.cn> 3 * @author: xuqi<qi.xu@yoho.cn>
4 * @date: 2015/10/8 4 * @date: 2015/10/8
5 */ 5 */
6 -var $ = require('yoho.zepto'); 6 +var $ = require('yoho.jquery');
7 7
8 var $phoneNum = $('#phone-num'), 8 var $phoneNum = $('#phone-num'),
9 $countrySelect = $('#country-select'), 9 $countrySelect = $('#country-select'),
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: xuqi<qi.xu@yoho.cn> 3 * @author: xuqi<qi.xu@yoho.cn>
4 * @date: 2015/9/30 4 * @date: 2015/9/30
5 */ 5 */
6 -var $ = require('yoho.zepto'); 6 +var $ = require('yoho.jquery');
7 7
8 var $account = $('#account'), 8 var $account = $('#account'),
9 $pwd = $('#pwd'), 9 $pwd = $('#pwd'),
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: xuqi<qi.xu@yoho.cn> 3 * @author: xuqi<qi.xu@yoho.cn>
4 * @date: 2015/10/8 4 * @date: 2015/10/8
5 */ 5 */
6 -var $ = require('yoho.zepto'); 6 +var $ = require('yoho.jquery');
7 7
8 var $pwd = $('#pwd'), 8 var $pwd = $('#pwd'),
9 $btnSure = $('#btn-sure'); 9 $btnSure = $('#btn-sure');
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: xuqi<qi.xu@yoho.cn> 3 * @author: xuqi<qi.xu@yoho.cn>
4 * @date: 2015/10/8 4 * @date: 2015/10/8
5 */ 5 */
6 -var $ = require('yoho.zepto'); 6 +var $ = require('yoho.jquery');
7 7
8 var $phoneNum = $('#phone-num'), 8 var $phoneNum = $('#phone-num'),
9 $countrySelect = $('#country-select'), 9 $countrySelect = $('#country-select'),
@@ -16,6 +16,8 @@ @@ -16,6 +16,8 @@
16 "spm": { 16 "spm": {
17 "main": "index.js", 17 "main": "index.js",
18 "dependencies": { 18 "dependencies": {
  19 + "yoho.zepto": "1.1.6",
  20 + "yoho.jquery": "1.8.3"
19 }, 21 },
20 "devDependencies": { 22 "devDependencies": {
21 "expect.js": "0.3.1" 23 "expect.js": "0.3.1"
@@ -30,4 +32,4 @@ @@ -30,4 +32,4 @@
30 "test": "spm test", 32 "test": "spm test",
31 "build": "spm build" 33 "build": "spm build"
32 } 34 }
33 -} 35 +}