|
@@ -248,6 +248,25 @@ $(".collect-send").submit(function (e) {
|
|
|
var jsonString = JSON.stringify(jsonInfo);
|
|
|
console.log(jsonString);
|
|
|
|
|
|
+ Swal.fire({
|
|
|
+ title: '您是否確認要發送?',
|
|
|
+ text: "發送後,NFT將從您的錢包轉移至接收者的錢包!",
|
|
|
+ icon: 'warning',
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonColor: '#3085d6',
|
|
|
+ cancelButtonColor: '#d33',
|
|
|
+ confirmButtonText: '立即發送',
|
|
|
+ cancelButtonText: '取消'
|
|
|
+ }).then((result) => {
|
|
|
+ if (result.isConfirmed) {
|
|
|
+ Swal.fire({
|
|
|
+ icon: 'success',
|
|
|
+ confirmButtonColor: '#3085d6',
|
|
|
+ html: '發送成功'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: 'https://ark.cards:8228/send',
|
|
@@ -256,7 +275,13 @@ $(".collect-send").submit(function (e) {
|
|
|
async: false,
|
|
|
success: function (data) {
|
|
|
console.log('發送成功: ' + JSON.stringify(data));
|
|
|
- alert("發送成功");
|
|
|
+
|
|
|
+ Swal.fire({
|
|
|
+ icon: 'success',
|
|
|
+ confirmButtonColor: '#3085d6',
|
|
|
+ html: '發送成功'
|
|
|
+ });
|
|
|
+
|
|
|
location.reload();
|
|
|
},
|
|
|
beforeSend: function () {
|