Authored by 周少峰

Merge branch 'gray'

{
"name": "yohobuy-node",
"version": "5.4.16",
"version": "5.4.17",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...
... ... @@ -103,7 +103,7 @@ ColorPanelAction = {
},
selectColor: function() {
var $this = $(this);
var index = $this.index($this.parent().find('.dt'));
var index = $this.parent().find('.dt').index($this);
var $srows = $this.closest('.goods-info').find('.choose-size .size-row');
var $bigImgs = $this.closest('.goods-choose-box').find('.goods-info-bigImg .bigImg');
... ...
... ... @@ -576,6 +576,8 @@ exports.init = function(page) {
};
}
var isRegRequesting = false; // eslint-disable-line
// ajax表单提交
$registerBtn.click(function() {
var url;
... ... @@ -590,6 +592,12 @@ exports.init = function(page) {
return;
} else {
if (isRegRequesting) {
return;
}
isRegRequesting = true;
// ajax提交
$.ajax({
type: 'POST',
... ... @@ -636,6 +644,8 @@ exports.init = function(page) {
alert(data.message); //eslint-disable-line
}
}).always(function() {
isRegRequesting = false;
});
}
});
... ...