76 lines
2.3 KiB
PHP
76 lines
2.3 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<section class="padding_btm">
|
|
<div class="enroll_pay_title" style="margin-top: 0;border-top: 0">订单信息</div>
|
|
<ul class="enroll_pay_lesson">
|
|
@foreach($order->details as $detail)
|
|
<li style="display: flex;">
|
|
<div class="shop_lesson_img img-bg">
|
|
<span style="background-image:url({{ $detail->item->getStorage()->path }})"></span>
|
|
</div>
|
|
<div class="shop_lesson_list">
|
|
<div class="shop_lesson_name text-nowrap">{{ $detail->item->getTitle() }}</div>
|
|
<div class="shop_lesson_price"><span class="price_span">¥</span>{{ $detail->item->getPrice() }}<span class="off_num"> x{{ $detail->number }}</span></div>
|
|
</div>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
<ul class="user_container" style="margin-top: .75rem;border-top: 1px solid #eee;">
|
|
<li>
|
|
<div class="user_name"> 类型:</div>
|
|
<div class="user_detail">{{ $order->type_text }}</div>
|
|
</li>
|
|
<li>
|
|
<div class="user_name">订单编号:</div>
|
|
<div class="user_detail">{{ $order->orderid }}</div>
|
|
</li>
|
|
|
|
<li>
|
|
<div class="user_name">创建时间:</div>
|
|
<div class="user_detail">{{ $order->created_at }}</div>
|
|
</li>
|
|
</ul>
|
|
<ul class="user_container" style="margin-top: .75rem;border-top: 1px solid #eee;">
|
|
<li>
|
|
<div class="user_name">昵称:</div>
|
|
<div class="user_detail">{{ $order->user->info->nickname }}</div>
|
|
</li>
|
|
<li>
|
|
<div class="user_name">联系电话:</div>
|
|
<div class="user_detail">{{ $order->user->mobile }}</div>
|
|
</li>
|
|
</ul>
|
|
<div class="enroll_pay_price">总计<div class="enroll_pay_num"><span class="price_span">¥</span>{{ number_format($order->total,2) }}</div></div>
|
|
|
|
@if($order->canActivityAudit())
|
|
<div class="off_btn">
|
|
<button type="button" class="btn off_use" data-url = "{{ route('sellers.verification',['orderid'=>$order->id,'_token'=>csrf_token()]) }}">核销</button>
|
|
</div>
|
|
@endif
|
|
|
|
</section>
|
|
@endsection
|
|
|
|
|
|
@section('script')
|
|
<script type="text/javascript">
|
|
$('.off_use').click(function(){
|
|
var url = $(this).data('url');
|
|
$.post(url,function(res){
|
|
if (res.status == 'SUCCESS') {
|
|
updateAlert('审核成功','success');
|
|
} else {
|
|
updateAlert(res.message);
|
|
}
|
|
|
|
if (res.redirect) {
|
|
setTimeout(function(){
|
|
window.location.href = res.redirect;
|
|
},1500);
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
@endsection
|