|
@@ -210,8 +210,8 @@
|
|
|
</div>
|
|
|
<modal
|
|
|
:visible="modalVisible"
|
|
|
- title="Early termination of Giveaway?"
|
|
|
- content="The remaining amount will be returned to your wallet within 1 day."
|
|
|
+ :title="modalTitle"
|
|
|
+ :content="modalContent"
|
|
|
cancelText="Termination"
|
|
|
confirmText="Cancel"
|
|
|
@cancel="modalCancel"
|
|
@@ -254,6 +254,8 @@ let pageWrapperDom = ref(null);
|
|
|
let pageGiveListDom = ref(null);
|
|
|
|
|
|
let modalVisible = ref(false);
|
|
|
+let modalTitle = ref('');
|
|
|
+let modalContent = ref('');
|
|
|
let terminaTask = {};
|
|
|
|
|
|
let giveList = ref([]);
|
|
@@ -367,6 +369,15 @@ const callEventPageMethod = (actionType, data, callback) => {
|
|
|
const terminaHandler = (params, index) => {
|
|
|
terminaTask = params;
|
|
|
terminaTask.index = index;
|
|
|
+
|
|
|
+ // set font
|
|
|
+ if (params && params.postTaskLuckdrop && params.postTaskLuckdrop.luckdropType == 2) {
|
|
|
+ modalTitle.value = `Early Termination of Lottery?`
|
|
|
+ modalContent.value = `This operation will terminate the lottery process and refund the lottery prizes.`
|
|
|
+ } else {
|
|
|
+ modalTitle.value = `Early termination of Giveaway?`
|
|
|
+ modalContent.value = `The remaining amount will be returned to your wallet within 1 day.`
|
|
|
+ }
|
|
|
modalVisible.value = true;
|
|
|
};
|
|
|
|