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) 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) {

View File

@@ -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,
], ],