|
@@ -124,6 +124,7 @@ $(function(){
|
|
text: '去登录',
|
|
text: '去登录',
|
|
btnClass: 'btn-confirm-login',
|
|
btnClass: 'btn-confirm-login',
|
|
action: function(){
|
|
action: function(){
|
|
|
|
+ localStorage.setItem("loginBeforePath", window.location.href);
|
|
window.location.href = '/login.html';
|
|
window.location.href = '/login.html';
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -364,7 +365,14 @@ function setProductPrice(productList, userId, callback){
|
|
return callback();
|
|
return callback();
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+// 登录后返回登录前页面
|
|
|
|
+function toBeforePath(){
|
|
|
|
+ var beforePath = localStorage.getItem("loginBeforePath");
|
|
|
|
+ if (!beforePath) {
|
|
|
|
+ beforePath = '/index.html';
|
|
|
|
+ }
|
|
|
|
+ window.location.href = beforePath;
|
|
|
|
+}
|
|
/**
|
|
/**
|
|
* 至少保留两位小数
|
|
* 至少保留两位小数
|
|
* 10 => "10.00"
|
|
* 10 => "10.00"
|