v-Brocloni 3 anos atrás
pai
commit
b09fb50bbb
2 arquivos alterados com 12 adições e 4 exclusões
  1. +10
    -1
      application/admin/view/unishop/order/refund_show.html
  2. +2
    -3
      public/assets/js/backend/unishop/order.js

+ 10
- 1
application/admin/view/unishop/order/refund_show.html Ver arquivo

@@ -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>

+ 2
- 3
public/assets/js/backend/unishop/order.js Ver arquivo

@@ -132,9 +132,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
extend: 'data-toggle="tooltip"',
icon: 'fa fa-handshake-o',
url:function(row){
return "unishop/order/doRefund?id="+row.id;
},
confirm:"是否确认退款"
return "unishop/order/refundShow?id="+row.id+"&refund_fee="+row.refund_fee;
}
},
// {
// name: 'delivere',


Carregando…
Cancelar
Salvar