|
@@ -143,7 +143,7 @@
|
|
:src="require('@/assets/svg/icon-winner-v2.svg')"/>
|
|
:src="require('@/assets/svg/icon-winner-v2.svg')"/>
|
|
Winner Count
|
|
Winner Count
|
|
</div>
|
|
</div>
|
|
- <div class="msg">Recommend Winners 100~10000</div>
|
|
|
|
|
|
+ <div class="msg" v-show="selectModeInfo.type == 1">Recommend Winners 100~10000</div>
|
|
</div>
|
|
</div>
|
|
<input v-model="baseFormData.totalCount"
|
|
<input v-model="baseFormData.totalCount"
|
|
placeholder="0"
|
|
placeholder="0"
|
|
@@ -590,6 +590,8 @@ let publishModeList = reactive([
|
|
let discordInviteInfo = ref({});
|
|
let discordInviteInfo = ref({});
|
|
let showDiscordInvitePop = ref(false);
|
|
let showDiscordInvitePop = ref(false);
|
|
|
|
|
|
|
|
+let lotteryMaxHourDuration = 168;
|
|
|
|
+
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
dialogVisible: {
|
|
dialogVisible: {
|
|
type: Boolean,
|
|
type: Boolean,
|
|
@@ -1132,12 +1134,11 @@ const onCountInput = () => {
|
|
|
|
|
|
const onValidityDurationInput = () => {
|
|
const onValidityDurationInput = () => {
|
|
let val = baseFormData.validityDuration;
|
|
let val = baseFormData.validityDuration;
|
|
- const maxDuration = 168; // 24 * 7;
|
|
|
|
|
|
|
|
if (val == 0) {
|
|
if (val == 0) {
|
|
val = "";
|
|
val = "";
|
|
} else if(val > maxDuration) {
|
|
} else if(val > maxDuration) {
|
|
- val = maxDuration+'';
|
|
|
|
|
|
+ val = lotteryMaxHourDuration+'';
|
|
}
|
|
}
|
|
val = val.replace(/[^\d]/g, "");
|
|
val = val.replace(/[^\d]/g, "");
|
|
baseFormData.validityDuration = val;
|
|
baseFormData.validityDuration = val;
|
|
@@ -1148,11 +1149,10 @@ const onValidityDurationInput = () => {
|
|
|
|
|
|
const onValidityDurationBlur = () => {
|
|
const onValidityDurationBlur = () => {
|
|
let val = baseFormData.validityDuration;
|
|
let val = baseFormData.validityDuration;
|
|
- const maxDuration = 168; // 24 * 7;
|
|
|
|
if (val == 0) {
|
|
if (val == 0) {
|
|
val = "";
|
|
val = "";
|
|
} else if(val > maxDuration) {
|
|
} else if(val > maxDuration) {
|
|
- val = maxDuration+'';
|
|
|
|
|
|
+ val = lotteryMaxHourDuration+'';
|
|
}
|
|
}
|
|
val = val.replace(/[^\d]/g, "");
|
|
val = val.replace(/[^\d]/g, "");
|
|
baseFormData.validityDuration = val;
|
|
baseFormData.validityDuration = val;
|
|
@@ -1531,6 +1531,7 @@ const setFrontConfig = () => {
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
paypalHtml.value = res.data.paypalHtml;
|
|
paypalHtml.value = res.data.paypalHtml;
|
|
|
|
+ lotteryMaxHourDuration = res.data.lotteryMaxHourDuration;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
};
|
|
};
|