__('Push 0'),'1' => __('Push 1')]; } public function getWxTypeList() { return ['1' => __('Wx_type 1'),'2' => __('Wx_type 2')]; } public function getTypeList() { return ['1' => __('Type 1'),'2' => __('Type 2'),'3' => __('Type 3')]; } public function getStateList() { return ['0' => __('State 0'),'1' => __('State 1')]; } public function getGuideSexList() { return ['1' => __('Guide_sex 1'),'2' => __('Guide_sex 2')]; } public function getPushTextAttr($value, $data) { $value = $value ? $value : $data['push']; $list = $this->getPushList(); return isset($list[$value]) ? $list[$value] : ''; } public function getWxTypeTextAttr($value, $data) { $value = $value ? $value : $data['wx_type']; $list = $this->getWxTypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getTypeTextAttr($value, $data) { $value = $value ? $value : $data['type']; $list = $this->getTypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getStateTextAttr($value, $data) { $value = $value ? $value : $data['state']; $list = $this->getStateList(); return isset($list[$value]) ? $list[$value] : ''; } public function getGuideSexTextAttr($value, $data) { $value = $value ? $value : $data['guide_sex']; $list = $this->getGuideSexList(); return isset($list[$value]) ? $list[$value] : ''; } }