| | |
| | | public function index() |
| | | { |
| | | $model = new PageModel; |
| | | $list = $model->getList($this->postData()); |
| | | $data = $this->postData(); |
| | | $data['shop_supplier_id'] = $this->getSupplierId(); |
| | | $list = $model->getList($data); |
| | | return $this->renderSuccess('', compact('list')); |
| | | } |
| | | |
| | |
| | | */ |
| | | public function bottomnav() |
| | | { |
| | | $vars = SettingModel::getItem(SettingEnum::NAV); |
| | | $vars = SettingModel::getItem(SettingEnum::NAV.'_'.$this->getSupplierId()); |
| | | return $this->renderSuccess('', compact('vars')); |
| | | } |
| | | |
| | |
| | | { |
| | | $model = new SettingModel; |
| | | $data = $this->postData(); |
| | | if ($model->edit('nav', $data)) { |
| | | if ($model->edit(SettingEnum::NAV.'_'.$this->getSupplierId(), $data)) { |
| | | return $this->renderSuccess('操作成功'); |
| | | } |
| | | return $this->renderError($model->getError() ?: '操作失败'); |