链街Dcat后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
768 B

5 years ago
  1. <?php
  2. namespace App\Admin\Extensions;
  3. use App\Models\ImsCjdcOrderMain;
  4. use Dcat\Admin\Admin;
  5. use Dcat\Admin\Support\LazyRenderable;
  6. class MyDetailPage extends LazyRenderable
  7. {
  8. protected static $js = ['https://cdn.jsdelivr.net/npm/vue'];
  9. protected static $css = ['css/deatail.css'];
  10. public function render()
  11. {
  12. $order = ImsCjdcOrderMain::where('id',$this->order_id)->first()->toArray();
  13. // Admin::script(
  14. // <<<JS
  15. //
  16. // var app = new Vue({
  17. // el:"#detail",
  18. // data:{
  19. // order_num: "{$order['order_num']}"
  20. // }
  21. // });
  22. //
  23. //JS
  24. //
  25. // );
  26. return view('orderdetail',['order_num'=>'000000000000000000000009999']);
  27. }
  28. }