|
@@ -958,6 +958,7 @@ $("#nft_add_form").submit(function(e) {
|
|
var uid = $('#uid').val();
|
|
var uid = $('#uid').val();
|
|
var amount = $('#amount').val();
|
|
var amount = $('#amount').val();
|
|
var toaddress = $('#toaddress').val();
|
|
var toaddress = $('#toaddress').val();
|
|
|
|
+ var image = $('#image').val();
|
|
console.log(title, desc, uid, amount, toaddress, imageFile);
|
|
console.log(title, desc, uid, amount, toaddress, imageFile);
|
|
|
|
|
|
bodyFormData.append('title', title);
|
|
bodyFormData.append('title', title);
|
|
@@ -967,9 +968,10 @@ $("#nft_add_form").submit(function(e) {
|
|
bodyFormData.append('uid', uid);
|
|
bodyFormData.append('uid', uid);
|
|
bodyFormData.append('amount', amount);
|
|
bodyFormData.append('amount', amount);
|
|
bodyFormData.append('address', toaddress);
|
|
bodyFormData.append('address', toaddress);
|
|
- bodyFormData.append('image', imageFile);
|
|
|
|
|
|
+ bodyFormData.append('image', image);
|
|
bodyFormData.append('is_active', $("#is_active_checkbox").is(':checked'));
|
|
bodyFormData.append('is_active', $("#is_active_checkbox").is(':checked'));
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
if (!title) {
|
|
if (!title) {
|
|
Swal.fire({
|
|
Swal.fire({
|
|
title: '注意',
|
|
title: '注意',
|