7 changed files with 142 additions and 3 deletions
-
10app/Admin/Controllers/ImsCjdcOrderMainController.php
-
7app/Admin/Controllers/Test.php
-
40app/Admin/Extensions/MyDetailPage.php
-
26app/Admin/Extensions/OrderDetail.php
-
12app/Admin/Renderable/PostChart.php
-
1app/Admin/routes.php
-
49public/css/deatail.css
@ -0,0 +1,40 @@ |
|||
<?php |
|||
|
|||
|
|||
namespace App\Admin\Extensions; |
|||
|
|||
use App\Models\ImsCjdcOrderMain; |
|||
use Dcat\Admin\Admin; |
|||
use Dcat\Admin\Support\LazyRenderable; |
|||
|
|||
class MyDetailPage extends LazyRenderable |
|||
{ |
|||
|
|||
protected static $js = ['https://cdn.jsdelivr.net/npm/vue']; |
|||
protected static $css = ['css/deatail.css']; |
|||
|
|||
|
|||
|
|||
public function render() |
|||
{ |
|||
$order = ImsCjdcOrderMain::where('id',$this->order_id)->first()->toArray(); |
|||
|
|||
// Admin::script(
|
|||
// <<<JS
|
|||
//
|
|||
// var app = new Vue({
|
|||
// el:"#detail",
|
|||
// data:{
|
|||
// order_num: "{$order['order_num']}"
|
|||
// }
|
|||
// });
|
|||
//
|
|||
//JS
|
|||
//
|
|||
// );
|
|||
|
|||
return view('orderdetail',['order_num'=>'000000000000000000000009999']); |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,12 @@ |
|||
<?php |
|||
namespace App\Admin\Renderable; |
|||
|
|||
use Dcat\Admin\Support\LazyRenderable; |
|||
|
|||
class PostChart extends LazyRenderable |
|||
{ |
|||
public function render() |
|||
{ |
|||
return view('orderdetail'); |
|||
} |
|||
} |
|||
@ -0,0 +1,49 @@ |
|||
#detail .table-bordered td { |
|||
width: 50%; |
|||
white-space: initial !important; |
|||
font-size: 1.4rem; |
|||
} |
|||
|
|||
.shop-box { |
|||
margin-top: 1rem; |
|||
font-size: 1.4rem; |
|||
} |
|||
|
|||
.logo-img { |
|||
width: 8vw; |
|||
height: 10vh; |
|||
margin-right: 1rem; |
|||
} |
|||
|
|||
.media { |
|||
padding: 1rem 2rem; |
|||
background-color: #f8f8f8; |
|||
} |
|||
|
|||
.shop-logo { |
|||
width: 2rem; |
|||
height: 2rem; |
|||
margin-right: 0.6rem; |
|||
} |
|||
|
|||
.alert { |
|||
margin-bottom: 0; |
|||
border-radius: 0; |
|||
} |
|||
|
|||
.mt-0 { |
|||
max-width: 50rem; |
|||
font-size: 1.4rem; |
|||
} |
|||
|
|||
.price { |
|||
max-width: 48rem; |
|||
display: inline-block; |
|||
overflow: hidden; |
|||
font-size: 1rem; |
|||
color: #27272788; |
|||
} |
|||
.money{ |
|||
float: right; |
|||
font-size: 1.4rem; |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue