['shopImg','isInvoice','serviceStartTime','serviceEndTime','freight'], 'editBank' =>['bankId','bankAreaId','bankNo','bankUserName'], 'applyStep1'=>['applyLinkMan','applyLinkTel','applyLinkEmail','isInvestment','investmentStaff'], 'applyStep2'=>['businessLicenceType','businessLicence','legalPersonName','businessAreaPath0','licenseAddress','establishmentDate','businessStartDate','businessEndDate','isLongbusinessDate','registeredCapital','empiricalRange','areaIdPath0','shopCompany','shopAddress','shopTel','shopkeeper','telephone','shopEmergencyLinkMan','legalCertificateType','legalCertificate','legalCertificateStartDate','legalCertificateEndDate','isLonglegalCertificateDate','legalCertificateImg','businessLicenceImg','bankAccountPermitImg','organizationCode','organizationCodeStartDate','organizationCodeEndDate','organizationCodeImg'], 'applyStep3'=>['taxpayerType','taxpayerNo','taxRegistrationCertificateImg','taxpayerQualificationImg','bankUserName','bankNo','bankId','bankAreaId'], 'applyStep4'=>['shopName','shopImg','goodsCatIds','isInvoice','invoiceRemarks','freight','serviceStartTime','serviceEndTime'] ]; */ //添加旺旺和qq非空验证 mark by cheng 20170318 public $scene = [ 'editInfo' =>['shopImg','isInvoice','serviceStartTime','serviceEndTime','freight'], 'editBank' =>['bankId','bankAreaId','bankNo','bankUserName'], 'applyStep1'=>['applyLinkMan','applyLinkTel','applyLinkEmail','isInvestment','investmentStaff'], 'applyStep2'=>['businessLicenceType','businessLicence','legalPersonName','businessAreaPath0','licenseAddress','establishmentDate','businessStartDate','businessEndDate','isLongbusinessDate','registeredCapital','empiricalRange','areaIdPath0','shopCompany','shopAddress','shopTel','shopkeeper','telephone','shopEmergencyLinkMan','legalCertificateType','legalCertificate','legalCertificateStartDate','legalCertificateEndDate','isLonglegalCertificateDate','legalCertificateImg','businessLicenceImg','bankAccountPermitImg','organizationCode','organizationCodeStartDate','organizationCodeEndDate','organizationCodeImg'], 'applyStep3'=>['taxpayerType','taxpayerNo','taxRegistrationCertificateImg','taxpayerQualificationImg','bankUserName','bankNo','bankId','bankAreaId'], 'applyStep4'=>['shopName','shopImg','goodsCatIds','isInvoice','invoiceRemarks','freight','serviceStartTime','serviceEndTime'] ]; protected function checkInvoiceRemark($value){ $isInvoice = input('post.isInvoice/d',0); $key = Input('post.invoiceRemarks'); return ($isInvoice==1 && $key=='')?'请输入发票说明':true; } protected function checkInvestment($value){ $isInvestment = input('post.isInvestment/d',0); $key = Input('post.investmentStaff'); return ($isInvestment==1 && $key=='')?'请输入商城招商人员姓名':true; } protected function checkBusinessEndDate($value){ $isLongbusinessDate = input('post.isLongbusinessDate/d',0); $key = Input('post.businessEndDate'); return ($isLongbusinessDate==0 && $key=='')?'请输入营业期限结束日期':true; } protected function checkLegalCertificateEndDate($value){ $isLonglegalCertificateDate = input('post.isLonglegalCertificateDate/d',0); $key = Input('post.legalCertificateEndDate'); return ($isLonglegalCertificateDate==0 && $key=='')?'请选择法定代表人证件有效期结束日期':true; } protected function checkOrganizationCodeEndDate($value){ // $isLonglegalCertificateDate = input('post.isLongOrganizationCodeDate/d',0); // $key = Input('post.organizationCodeEndDate'); // return ($isLonglegalCertificateDate==0 && $key=='')?'请输入商标注册证有效期结束日期':true; } }