流水时间新增可选当天逻辑
This commit is contained in:
@@ -28,7 +28,8 @@ const toastMsg = (content = langReplace(localLang.demoModule.layerIndex2), time
|
||||
skin: 'msg'
|
||||
})
|
||||
}
|
||||
var times = new Date().getTime() - 86400000;
|
||||
// var times = new Date().getTime() - 86400000;
|
||||
var times = new Date().getTime();
|
||||
var startDates;
|
||||
var endDates;
|
||||
var timestamp;
|
||||
@@ -146,11 +147,13 @@ function memberIncome(startDate, endDate) {
|
||||
}
|
||||
// 查询按钮
|
||||
$('.back .text').click(function () {
|
||||
if ((Date.parse(endDates)) >= timestamp) {
|
||||
toastMsg(langReplace(localLang.memberFlow.text13))
|
||||
} else if (endDates == dateFormat(timestamp, 'yyyy-MM-dd')) {
|
||||
toastMsg(langReplace(localLang.memberFlow.text14))
|
||||
} else if (Date.parse(startDates) > Date.parse(endDates)) {
|
||||
// if ((Date.parse(endDates)) >= timestamp) {
|
||||
// toastMsg(langReplace(localLang.memberFlow.text13))
|
||||
// } else if (endDates == dateFormat(timestamp, 'yyyy-MM-dd')) {
|
||||
// toastMsg(langReplace(localLang.memberFlow.text14))
|
||||
// } else
|
||||
|
||||
if (Date.parse(startDates) > Date.parse(endDates)) {
|
||||
toastMsg(langReplace(localLang.memberFlow.text15))
|
||||
} else if ((Date.parse(endDates) - Date.parse(startDates)) > (30 * 24 * 60 * 60 * 1000)) {
|
||||
toastMsg(langReplace(localLang.memberFlow.text16))
|
||||
|
@@ -28,7 +28,8 @@ const toastMsg = (content = langReplace(localLang.demoModule.layerIndex2), time
|
||||
skin: 'msg'
|
||||
})
|
||||
}
|
||||
var times = new Date().getTime() - 86400000;
|
||||
// var times = new Date().getTime() - 86400000;
|
||||
var times = new Date().getTime();
|
||||
var startDates;
|
||||
var endDates;
|
||||
var timestamp;
|
||||
@@ -151,11 +152,13 @@ $('.timeBox .right .goToExchangeGold').click(function () {
|
||||
})
|
||||
// 查询按钮
|
||||
$('.back .text').click(function () {
|
||||
if ((Date.parse(endDates)) >= timestamp) {
|
||||
toastMsg(langReplace(localLang.memberFlow.text13))
|
||||
} else if (endDates == dateFormat(timestamp, 'yyyy-MM-dd')) {
|
||||
toastMsg(langReplace(localLang.memberFlow.text14))
|
||||
} else if (Date.parse(startDates) > Date.parse(endDates)) {
|
||||
// if ((Date.parse(endDates)) >= timestamp) {
|
||||
// toastMsg(langReplace(localLang.memberFlow.text13))
|
||||
// } else if (endDates == dateFormat(timestamp, 'yyyy-MM-dd')) {
|
||||
// toastMsg(langReplace(localLang.memberFlow.text14))
|
||||
// } else
|
||||
|
||||
if (Date.parse(startDates) > Date.parse(endDates)) {
|
||||
toastMsg(langReplace(localLang.memberFlow.text15))
|
||||
} else if ((Date.parse(endDates) - Date.parse(startDates)) > (30 * 24 * 60 * 60 * 1000)) {
|
||||
toastMsg(langReplace(localLang.memberFlow.text16))
|
||||
|
@@ -76,7 +76,7 @@
|
||||
<script src="./local/ar.js"></script>
|
||||
<script src="./js/mobileSelect.js"></script>
|
||||
<script src="./js/selectDate.js"></script>
|
||||
<script src="./js/memberFlow.js"></script>
|
||||
<script src="./js/memberFlow?v=1.0.js"></script>
|
||||
<script src="../../common/local/langHandler.js"></script>
|
||||
|
||||
</html>
|
@@ -73,7 +73,7 @@
|
||||
<script src="./local/ar.js"></script>
|
||||
<script src="./js/mobileSelect.js"></script>
|
||||
<script src="./js/selectDate.js"></script>
|
||||
<script src="./js/memberFlow2.js"></script>
|
||||
<script src="./js/memberFlow2?v=1.0.js"></script>
|
||||
<script src="../../common/local/langHandler.js"></script>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user