<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Web\Controller; use ModStart\App\Web\Layout\WebPage; use ModStart\Core\Input\Request; 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; use Module\Member\Util\MemberMoneyUtil; class MemberMoneyCashController extends MemberFrameController implements MemberLoginCheck { private $api; public function __construct(\Module\Member\Api\Controller\MemberMoneyCashController $dXFTb) { parent::__construct(); $this->api = $dXFTb; } public function index() { $t5RO9 = MemberMoneyUtil::getTotal(MemberUser::id()); return $this->view('memberMoneyCash.index', array('pageTitle' => '钱包提现', 'total' => $t5RO9)); } public function log(WebPage $WLCMC) { goto LIBBg; RPxUK: list($faKDa, $FtPNG) = $this->viewPaths('memberMoneyCash.log'); goto vZS3B; uedor: if (Request::isPost()) { return $ExhHT->request(); } goto RPxUK; vZS3B: return $WLCMC->pageTitle('钱包提现')->view($faKDa)->body($ExhHT); goto p2iDh; CY12_: $ExhHT->repositoryFilter(function (RepositoryFilter $zBPGV) { $zBPGV->where(array('memberUserId' => MemberUser::id())); }); goto X7qVo; lF0OY: $ExhHT->disableCUD()->disableItemOperate(); goto VKq_n; X7qVo: $ExhHT->gridFilter(function (GridFilter $zBPGV) { $zBPGV->range('created_at', '时间')->datetime(); }); goto lF0OY; LIBBg: $ExhHT = Grid::make('member_money_cash'); goto CY12_; VKq_n: $ExhHT->useSimple(function (AbstractField $Wvq57, $FSL7c, $xZl3o) { return AutoRenderedFieldValue::makeView('module::Member.View.pc.memberMoneyCash.logItem', array('item' => $FSL7c)); }); goto uedor; p2iDh: } }