<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Web\Controller; use ModStart\App\Web\Layout\WebPage; use ModStart\Field\AbstractField; use ModStart\Field\AutoRenderedFieldValue; use ModStart\Grid\Grid; use ModStart\Grid\GridFilter; use ModStart\Repository\Filter\RepositoryFilter; use Module\Member\Auth\MemberUser; use Module\Member\Support\MemberLoginCheck; class MemberMoneyController extends MemberFrameController implements MemberLoginCheck { private $api; public function __construct() { parent::__construct(); $this->api = app(\Module\Member\Api\Controller\MemberMoneyController::class); } public function index(WebPage $iXUoW) { goto L5VO4; D1vhS: return $iXUoW->pageTitle('钱包')->view($kF488)->body($W3CVY)->handleGrid($W3CVY); goto jBNe0; bTNmx: list($kF488, $NMB1l) = $this->viewPaths('memberMoney.index'); goto D1vhS; NTdmV: $W3CVY->useSimple(function (AbstractField $jJyrp, $YaV4m, $DbHm9) { return AutoRenderedFieldValue::makeView('module::Member.View.pc.memberMoney.item', array('item' => $YaV4m)); }); goto bTNmx; R0k4F: $W3CVY->gridFilter(function (GridFilter $mHisM) { $mHisM->range('created_at', '时间')->datetime(); }); goto vyxgM; vyxgM: $W3CVY->disableCUD()->disableItemOperate(); goto NTdmV; L5VO4: $W3CVY = Grid::make('member_money_log'); goto ZhAnc; ZhAnc: $W3CVY->repositoryFilter(function (RepositoryFilter $mHisM) { $mHisM->where(array('memberUserId' => MemberUser::id())); }); goto R0k4F; jBNe0: } }