<?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 $WLCMC) { goto l3_qJ; nR055: return $WLCMC->pageTitle('钱包')->view($faKDa)->body($ExhHT)->handleGrid($ExhHT); goto p9NXt; K1crL: $ExhHT->useSimple(function (AbstractField $Wvq57, $FSL7c, $xZl3o) { return AutoRenderedFieldValue::makeView('module::Member.View.pc.memberMoney.item', array('item' => $FSL7c)); }); goto H4yKi; l3_qJ: $ExhHT = Grid::make('member_money_log'); goto KhBct; KhBct: $ExhHT->repositoryFilter(function (RepositoryFilter $zBPGV) { $zBPGV->where(array('memberUserId' => MemberUser::id())); }); goto m15B3; dXIOB: $ExhHT->disableCUD()->disableItemOperate(); goto K1crL; m15B3: $ExhHT->gridFilter(function (GridFilter $zBPGV) { $zBPGV->range('created_at', '时间')->datetime(); }); goto dXIOB; H4yKi: list($faKDa, $FtPNG) = $this->viewPaths('memberMoney.index'); goto nR055; p9NXt: } }