v-Brocloni 3 yıl önce
ebeveyn
işleme
b09fb50bbb
2 değiştirilmiş dosya ile 12 ekleme ve 4 silme
  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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet