微调
This commit is contained in:
@@ -16,8 +16,7 @@ class HomeController extends Controller
|
|||||||
public function index(Content $content)
|
public function index(Content $content)
|
||||||
{
|
{
|
||||||
|
|
||||||
return $content
|
return $content->title('数据看版3')
|
||||||
->title('数据看版3')
|
|
||||||
->row(function (Row $row) {
|
->row(function (Row $row) {
|
||||||
$row->column(2, function (Column $column) {
|
$row->column(2, function (Column $column) {
|
||||||
$column->append(new InfoBox(
|
$column->append(new InfoBox(
|
||||||
@@ -153,10 +152,18 @@ class HomeController extends Controller
|
|||||||
->row(function (Row $row) {
|
->row(function (Row $row) {
|
||||||
|
|
||||||
$lists = [
|
$lists = [
|
||||||
'ysd10' => Coupon::where('status', 2)->where('thirdPartyGoodsId', 'YSD-full100-10')->count(),
|
'ysd10' => Coupon::where('status', 2)
|
||||||
'ysd25' => Coupon::where('status', 2)->where('thirdPartyGoodsId', 'YSD-full100-25')->count(),
|
->where('thirdPartyGoodsId', 'YSD-full100-10')
|
||||||
'ysd50' => Coupon::where('status', 2)->where('thirdPartyGoodsId', 'YSD-full100-50')->count(),
|
->count(),
|
||||||
'ysd100' => Coupon::where('status', 2)->where('thirdPartyGoodsId', 'YSD-full200-100')->count(),
|
'ysd25' => Coupon::where('status', 2)
|
||||||
|
->where('thirdPartyGoodsId', 'YSD-full100-25')
|
||||||
|
->count(),
|
||||||
|
'ysd50' => Coupon::where('status', 2)
|
||||||
|
->where('thirdPartyGoodsId', 'YSD-full100-50')
|
||||||
|
->count(),
|
||||||
|
'ysd100' => Coupon::where('status', 2)
|
||||||
|
->where('thirdPartyGoodsId', 'YSD-full200-100')
|
||||||
|
->count(),
|
||||||
];
|
];
|
||||||
|
|
||||||
$row->column(2, function (Column $column) use ($lists) {
|
$row->column(2, function (Column $column) use ($lists) {
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 核销包
|
||||||
|
*/
|
||||||
return [
|
return [
|
||||||
'coupon_model' => \App\Models\Coupon::class,
|
'coupon_model' => \App\Models\Coupon::class,
|
||||||
'rules' => [
|
'rules' => [
|
||||||
@@ -9,7 +12,6 @@ return [
|
|||||||
'model' => \XuanChen\Coupon\Action\YsdAction::class,
|
'model' => \XuanChen\Coupon\Action\YsdAction::class,
|
||||||
],
|
],
|
||||||
'unionpay' => [
|
'unionpay' => [
|
||||||
// 'pattern' => '/^YSD\d{12}/',
|
|
||||||
'pattern' => '/^66406/',
|
'pattern' => '/^66406/',
|
||||||
'model' => \XuanChen\Coupon\Action\YsdAction::class,
|
'model' => \XuanChen\Coupon\Action\YsdAction::class,
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user