This commit is contained in:
2021-02-01 21:16:19 +08:00
parent 2cad439db6
commit ea4aab991d
2 changed files with 183 additions and 174 deletions

View File

@@ -16,8 +16,7 @@ class HomeController extends Controller
public function index(Content $content)
{
return $content
->title('数据看版3')
return $content->title('数据看版3')
->row(function (Row $row) {
$row->column(2, function (Column $column) {
$column->append(new InfoBox(
@@ -153,10 +152,18 @@ class HomeController extends Controller
->row(function (Row $row) {
$lists = [
'ysd10' => Coupon::where('status', 2)->where('thirdPartyGoodsId', 'YSD-full100-10')->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(),
'ysd10' => Coupon::where('status', 2)
->where('thirdPartyGoodsId', 'YSD-full100-10')
->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) {

View File

@@ -1,5 +1,8 @@
<?php
/**
* 核销包
*/
return [
'coupon_model' => \App\Models\Coupon::class,
'rules' => [
@@ -9,7 +12,6 @@ return [
'model' => \XuanChen\Coupon\Action\YsdAction::class,
],
'unionpay' => [
// 'pattern' => '/^YSD\d{12}/',
'pattern' => '/^66406/',
'model' => \XuanChen\Coupon\Action\YsdAction::class,
],