...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
namespace app\admin\controller\activity_goods;
|
|
|
|
|
|
use app\admin\model\Activity;
|
|
|
use app\admin\model\litestore\Litestoregoodsspec;
|
|
|
use app\common\controller\Backend;
|
|
|
use app\admin\model\litestore\Litestorespec as SpecModel;
|
...
|
...
|
@@ -30,14 +31,14 @@ class SeckillGoods extends Backend |
|
|
protected $model = null;
|
|
|
protected $spec_model = null;
|
|
|
|
|
|
// protected $searchFields = 'category.name';
|
|
|
protected $activity = null;
|
|
|
|
|
|
public function _initialize()
|
|
|
{
|
|
|
parent::_initialize();
|
|
|
$this->SpecModel = new SpecModel;
|
|
|
$this->SpecValueModel = new SpecValueModel;
|
|
|
|
|
|
$this->activity = new Activity();
|
|
|
$this->model = new \app\admin\model\litestore\Litestoregoods;
|
|
|
$this->spec_model = new \app\admin\model\litestore\Litestoregoodsspec();
|
|
|
$this->view->assign("specTypeList", $this->model->getSpecTypeList());
|
...
|
...
|
@@ -100,8 +101,16 @@ class SeckillGoods extends Backend |
|
|
|
|
|
return json($result);
|
|
|
}
|
|
|
$category_name1 = $this->activity
|
|
|
->where('id', 1)->value('name');
|
|
|
$category_name2 = $this->activity
|
|
|
->where('id', 2)->value('name');
|
|
|
$category_name3 = $this->activity
|
|
|
->where('id', 3)->value('name');
|
|
|
$this->assign('template', $this->request->domain() . '/static/template/商品导入模板.xlsx');
|
|
|
|
|
|
$this->assign('name1', $category_name1);
|
|
|
$this->assign('name2', $category_name2);
|
|
|
$this->assign('name3', $category_name3);
|
|
|
return $this->view->fetch();
|
|
|
}
|
|
|
|
...
|
...
|
|