...
|
...
|
@@ -2679,12 +2679,20 @@ $btnSure.on('touchstart', function() { |
|
|
token: $('#token').val()
|
|
|
},
|
|
|
success: function(data) {
|
|
|
var res;
|
|
|
|
|
|
if (data.code === 200) {
|
|
|
res = data.data;
|
|
|
showErrTip('注册成功');
|
|
|
|
|
|
$.ajax({
|
|
|
url: res.session,
|
|
|
dataType: 'jsonp'
|
|
|
});
|
|
|
|
|
|
//1000ms后跳转页面
|
|
|
setTimeout(function() {
|
|
|
location.href = data.data;
|
|
|
location.href = res.href;
|
|
|
}, 1000);
|
|
|
} else {
|
|
|
showErrTip(data.message);
|
...
|
...
|
@@ -2783,12 +2791,21 @@ $loginBtn.on('touchstart', function() { |
|
|
password: pwd
|
|
|
},
|
|
|
success: function(data) {
|
|
|
var res;
|
|
|
|
|
|
if (data.code === 200) {
|
|
|
res = data.data;
|
|
|
|
|
|
showErrTip('登录成功');
|
|
|
|
|
|
$.ajax({
|
|
|
url: res.session,
|
|
|
dataType: 'jsonp'
|
|
|
});
|
|
|
|
|
|
//1s后跳转页面
|
|
|
setTimeout(function() {
|
|
|
location.href = data.data;
|
|
|
location.href = res.href;
|
|
|
}, 1000);
|
|
|
} else {
|
|
|
showErrTip(data.message);
|
...
|
...
|
@@ -2907,12 +2924,20 @@ $loginBtn.on('touchstart', function() { |
|
|
password: pwd
|
|
|
},
|
|
|
success: function(data) {
|
|
|
var res;
|
|
|
|
|
|
if (data.code === 200) {
|
|
|
res = data.data;
|
|
|
showErrTip('登录成功');
|
|
|
|
|
|
$.ajax({
|
|
|
url: res.session,
|
|
|
dataType: 'jsonp'
|
|
|
});
|
|
|
|
|
|
//1000ms后跳转页面
|
|
|
setTimeout(function() {
|
|
|
location.href = data.data;
|
|
|
location.href = res.href;
|
|
|
}, 1000);
|
|
|
} else {
|
|
|
showErrTip(data.message);
|
...
|
...
|
@@ -4716,7 +4741,7 @@ if (0 === $('.goodsDiscount .discount-folder').children().length) { |
|
|
}
|
|
|
|
|
|
//goods-discount下拉按钮点击事件
|
|
|
$('.goodsDiscount .dropdown').on('touchend', function(e) {
|
|
|
$('.goodsDiscount').on('touchend', function(e) {
|
|
|
if ($discountFolder.is(':hidden')) {
|
|
|
$discountArrow.removeClass('icon-down').addClass('icon-up').html('');
|
|
|
$discountFolder.slideDown();
|
...
|
...
|
|