多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 品牌申请 文件路径:shop/controllers/Seller/Shop/BrandCtl.php 一、品牌申请 控制器:shop/controllers/Seller/Shop/BrandCtl.php 模型:shop/models/shop/BrandModel.php 视图:shop/views/default/Seller/Shop/BrandCtl/Brand.php 1.品牌列表: `$data = $this->goodsBrandModel->getBrandCatlist($cond_row, array(), $page, $rows);` 2.添加品牌 方法:addBrandInfo()、addBrandrow() 视图:shop/views/default/Seller/Shop/BrandCtl/addBrandInfo.php 模型:shop/models/shop/BrandModel.php `$flag = $this->goodsBrandModel->addBrand($data);` 3.编辑品牌 方法:editBrandInfo()、editBrandrow() 视图:shop/views/default/Seller/Shop/BrandCtl/editBrandInfo.php 对应品牌信息:`$catlist = $Goods_CatModel->getOne($brand_info['cat_id']);` 编辑: ``` <pre class="calibre15">``` <span class="token2">if</span> <span class="token1">(</span>$brand_list<span class="token1">[</span><span class="token4">'shop_id'</span><span class="token1">]</span> <span class="token">==</span> $shop_id<span class="token1">)</span> <span class="token1">{</span> $flag <span class="token">=</span> $this<span class="token">-</span><span class="token">></span>goodsBrandModel<span class="token">-</span><span class="token">></span><span class="token3">editBrand</span><span class="token1">(</span>$brand_id<span class="token1">,</span> $brand<span class="token1">,</span> <span class="token6">false</span><span class="token1">)</span><span class="token1">;</span> <span class="token1">}</span> ``` ```