seller api img
This commit is contained in:
parent
82b512e049
commit
370ca1f91f
|
|
@ -16,5 +16,5 @@ function onStart() {
|
|||
{% if type == 'add' %}
|
||||
{% partial "seller/prod-create" %}
|
||||
{% else %}
|
||||
{% partial "seller/prod-update" %}
|
||||
{% endif %}
|
||||
{% partial "seller/prod-update" id=id %}
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -157,6 +157,7 @@
|
|||
|
||||
var product = data.data;
|
||||
|
||||
// $("input[name='images[files][]']").val(product.images[0].original_image_url);
|
||||
// $("select[name='status']").val(product.status);
|
||||
$("#product_status").html(`
|
||||
<option value="1" `+ (product.status == 1 ? `selected` : ``) + `>{{'product.enable'|_}}</option>
|
||||
|
|
@ -168,7 +169,7 @@
|
|||
`);
|
||||
|
||||
$("div.product_featured select").val(product.featured);
|
||||
$("input[name='images[files][]']").val(product.images[0].original_image_url);
|
||||
|
||||
// $("#product_featured select").val(product.featured).change();
|
||||
// $('#product_featured option[value='+product.featured+']').attr('selected','selected');
|
||||
$("input[name='name']").val(product.name);
|
||||
|
|
|
|||
Loading…
Reference in New Issue