<?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 $JcqUq) { goto Hhg9F; X3rQ6: $gwmIt->useSimple(function (AbstractField $pZ_lR, $jIWZA, $aaYHa) { return AutoRenderedFieldValue::makeView('module::Member.View.pc.memberMoney.item', array('item' => $jIWZA)); }); goto vEql5; vEql5: list($qVdRh, $plloB) = $this->viewPaths('memberMoney.index'); goto pMd7g; pMd7g: return $JcqUq->pageTitle('钱包')->view($qVdRh)->body($gwmIt)->handleGrid($gwmIt); goto mg4vP; GePBC: $gwmIt->repositoryFilter(function (RepositoryFilter $bu01d) { $bu01d->where(array('memberUserId' => MemberUser::id())); }); goto Ja1zG; Ja1zG: $gwmIt->gridFilter(function (GridFilter $bu01d) { $bu01d->range('created_at', '时间')->datetime(); }); goto sW91y; sW91y: $gwmIt->disableCUD()->disableItemOperate(); goto X3rQ6; Hhg9F: $gwmIt = Grid::make('member_money_log'); goto GePBC; mg4vP: } }