浏览代码

確定發送按鈕處理

Mike 3 年之前
父节点
当前提交
b1cabf4cc3
共有 1 个文件被更改,包括 3 次插入11 次删除
  1. 3 11
      ArkCard-web/goto.js

+ 3 - 11
ArkCard-web/goto.js

@@ -272,11 +272,9 @@ $(".collect-send").submit(function (e) {
             icon: 'success',
             confirmButtonColor: '#3085d6',
             html: '發送成功'
-          }).then((result) => {
-            if (result.isConfirmed) { 
-              location.reload();
-            }
           });
+    
+          location.reload();
         },
         beforeSend: function () {
           console.log('beforeSend');
@@ -309,13 +307,7 @@ $(".nft-buy").submit(function (e) {
       dataType: 'json',
       success: function (data) {
         console.log('購買成功: ' + data);
-        
-        Swal.fire({
-          icon: 'success',
-          confirmButtonColor: '#3085d6',
-          html: '購買成功'
-        });
-
+        alert("購買成功");
         location.reload();
       },
       beforeSend: function () {