浏览代码

return back

nieyuge 3 年之前
父节点
当前提交
a016f4a12f
共有 1 个文件被更改,包括 13 次插入2 次删除
  1. 13 2
      src/view/popup/tabbar-page/message/index.vue

+ 13 - 2
src/view/popup/tabbar-page/message/index.vue

@@ -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;
 };