sifangpay/resources/views/web/order/create.blade.php

43 lines
1.1 KiB
PHP

@extends('web.layouts.pay')
@section('content')
<div class=tastesdk>
<div class=tastesdk-box>
<div class=main>
等待接入支付
</div>
</div>
</div>
@endsection
@section('foot_js')
<script>
function clearNumber(obj) {
layui.use('jquery', function() {
var $ = layui.jquery;
obj.value = obj.value.replace(/[^\d.]/g, "");
obj.value = obj.value.replace(/^\./g, "");
obj.value = obj.value.replace(/\.{2,}/g, ".");
obj.value = obj.value.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
var total = parseFloat(obj.value);
if (total > 0) {
$("#amount_singel,#amount_total,#amount_order").html("" + total);
$("#pay_order").html(total + "<span>元</span>");
$("#faceValue").val(total);
$(".res_amount").html(total);
}
});
}
</script>
@endsection