|
|
@@ -9,9 +9,12 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<label class="control-label col-xs-12 col-sm-2">退款金额</label> |
|
|
|
<div class="col-xs-12 col-sm-8"> |
|
|
|
<input id="refund_fee" class="form-control" name="id" type="number" value="{$id}"> |
|
|
|
<input id="refund_fee" class="form-control" name="id" type="number" value="{$refund_fee}"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<input onclick="doRefund" class="form-control" name="id" type="button" value="确认退款"> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
<script> |
|
|
|
function checknum(obj) |
|
|
@@ -33,4 +36,10 @@ |
|
|
|
$('refund_fee').on('input',function () { |
|
|
|
checknum(this); |
|
|
|
}) |
|
|
|
|
|
|
|
function doRefund() { |
|
|
|
let id = $("order_id").val(); |
|
|
|
let refund_fee = $("refund_fee").val(); |
|
|
|
window.location.href="/admin.php/unishop/order/doRefund?id="+id+"&refund_fee="+refund_fee; |
|
|
|
} |
|
|
|
</script> |