diff --git a/admin/controllers/biz/store/Store.php b/admin/controllers/biz/store/Store.php index fb8a2c83..e1858ced 100644 --- a/admin/controllers/biz/store/Store.php +++ b/admin/controllers/biz/store/Store.php @@ -64,7 +64,7 @@ class Store extends HD_Controller $c_time[0] && $where["c_time >="] = strtotime($c_time[0] . ' 00:00:00'); $c_time[1] && $where["c_time <="] = strtotime($c_time[1] . ' 23:59:59'); } - + $typeAry = $this->biz_model->type_ary(); $biz_lists = $this->biz_model->select($where, 'id desc', $page, $pagesize); $count = $this->biz_model->count($where); $bizlists = []; @@ -74,6 +74,7 @@ class Store extends HD_Controller } $this->data['params'] = $params; $this->data['lists'] = $bizlists; + $this->data['typeAry'] = $typeAry; $this->data['_title'] = '门店列表'; $this->data['pager'] = array('count' => ceil($count / $pagesize), 'curr' => $page, 'totle' => $count); $this->show_view('biz/store/lists', true); @@ -82,6 +83,7 @@ class Store extends HD_Controller public function get() { $id = intval($this->input->get('id')); + $this->data['typeAry'] = $this->biz_model->type_ary(); $this->data['provinces'] = $this->province_ary(); if ($id) { $biz = $this->biz_model->get(array('id' => $id, 'status>-1' => null)); diff --git a/admin/views/biz/store/edit.php b/admin/views/biz/store/edit.php index c119879f..93d39650 100644 --- a/admin/views/biz/store/edit.php +++ b/admin/views/biz/store/edit.php @@ -206,7 +206,8 @@