|
|
@@ -27,6 +27,7 @@ const GandartConstKey = {
|
|
|
TransactionRecordId: 'lkGandartTransactionRecordId',
|
|
|
CollectionCateLst: 'lkGandartCollectionCateLst',
|
|
|
FloatPriceIntaval: 'lkGandartFloatPriceIntaval',
|
|
|
+ IsCollectionWatchLocked: 'lkIsGandartCollectionWatchLocked',
|
|
|
};
|
|
|
|
|
|
let gandartToken = lk.getVal(GandartConstKey.Token, '');
|
|
|
@@ -195,7 +196,21 @@ function checkFixLimitPrice(castingId, info, lastCastingId) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+function isExistCollectionLocked() {
|
|
|
+ let curCastingId = lk.getVal(GandartConstKey.CastingId);
|
|
|
+ if (!lk.isEmpty(curCastingId)) {
|
|
|
+ let isLocked = lk.getVal(GandartConstKey.IsCollectionWatchLocked);
|
|
|
+ isLocked = lk.isEmpty(isLocked) ? true : JSON.parse(isLocked);
|
|
|
+ return isLocked;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+}
|
|
|
+
|
|
|
function handleCollectionDetailsByCastingId() {
|
|
|
+ if (isExistCollectionLocked()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
try {
|
|
|
let data = lk.getResponseBody();
|
|
|
if (!data) {
|