文件路径:
1. shop/controllers/Seller/Shop/SetshopCtl.php
2. shop/controllers/Seller/Shop/DecorationCtl.php
3. shop/controllers/Seller/Shop/NavCtl.php
4. shop/controllers/Seller/Shop/CatCtl.php
一、店铺设置
控制器:shop/controllers/Seller/Shop/SetshopCtl.php
模型:shop/models/shop/BaseModel.php
视图:shop/views/default/Seller/Shop/SetshopCtl/index.php
确认提交表单验证:`$('#form').validator({})`
修改店铺信息方法:editShop();
`$flag = $this->shopBaseModel->editBase($shop_id, $edit_shop_row);`
二、店铺幻灯片
控制器:shop/controllers/Seller/Shop/SetshopCtl.php
模型:shop/models/shop/BaseModel.php
视图:shop/views/default/Seller/Shop/SetshopCtl/slide.php
确认提交表单验证:`$('#form').validator({})`
修改店铺幻灯片方法:editSlide();
`$flag = $this->shopBaseModel->editBase($shop_id, $data);`
三、店铺模板
控制器:shop/controllers/Seller/Shop/SetshopCtl.php
模型:shop/models/shop/BaseModel.php
视图:shop/views/default/Seller/Shop/SetshopCtl/theme.php
确认提交表单验证:`$('#form').validator({})`
修改店铺模板方法:setShopTemp();
`$flag = $this->shopBaseModel->editBase($shop_id, $data);`
四、店铺装修
控制器:shop/controllers/Seller/Shop/DecorationCtl.php
模型:shop/models/shop/BaseModel.php、shop/models/shop/DecorationModel.php
视图:根据URL获得参数act的值,判断视图
~~~
$act = request_string("act");
if (empty($act))
{
//进入这个页面创建店铺装潢
$shop_decoration_info = $this->shopDecorationModel->getOneByWhere(array('shop_id' => $shop_id));
if (empty($shop_decoration_info))
{
//创建默认装修
$param = array();
$param['decoration_name'] = '默认装修';
$param['shop_id'] = $shop_id;
$decoration_id = $this->shopDecorationModel->addDecoration($param);
}
else
{
$decoration_id = $shop_decoration_info['decoration_id'];
}
$renovation_list = $this->shopBaseModel->getOne($shop_id);
}
elseif ($act == "set")
{
$decoration_detail = $this->decorationList();
$this->view->setMet('setdecoration');//视图
}
include $this->view->getView();
~~~
* shop/views/default/Seller/Shop/DecorationCtl/decoration.php
确认提交表单验证:`$('#form').validator({})`
修改店铺模板方法:editRenovation();
`$renovation_list = $this->shopBaseModel->editBase($shop_id, $renovation);`
* shop/views/default/Seller/Shop/DecorationCtl/setdecoration.php(URL获得参数act = set)
店铺装修选项
五、店铺导航
控制器:shop/controllers/Seller/Shop/NavCtl.php
模型:shop/models/shop/NavModel.php
视图:根据URL获得参数act的值,判断视图
~~~
$act = request_string('act');
if ($act == 'edit')
{
$nav_id = request_int('nav_id');
$data = $this->shopNavModel->getNavinfo($nav_id);
$this->view->setMet('setNav');
}
elseif ($act == 'add')
{
$this->view->setMet('setNav');
$data = array();
}
include $this->view->getView();
~~~
* shop/views/default/Seller/Shop/NavCtl/nav.php
店铺表单列表:`$data = $this->shopNavModel->getNavlist($shop_id, array(), $page, $rows);`
模型:shop/models/shop/NavModel.php
方法:nav()
* shop/views/default/Seller/Shop/NavCtl/setNav.php
确认提交表单验证:`$('#form').validator({})`
编辑、添加、删除导航:editNav()、addNav()、delNav()
编辑:`$flag = $this->shopNavModel->editNav($nav_id, $nav);`
添加:`$flag = $this->shopNavModel->addNav($nav);`
删除:`$flag = $this->shopNavModel->removeNav($nav_id);`
六、店铺分类
控制器:shop/controllers/Seller/Shop/CatCtl.php
模型:shop/models/shop/GoodCatModel.php
视图:根据URL获得参数act的值,判断视图
~~~
$act = request_string('act');
if ($act == 'edit')
{
$pid = request_int('pid');
$cond_row['id'] = $pid;
$data = $this->shopGoodCatModel->getOne($pid);
$this->view->setMet('setCat');
}
elseif ($act == 'add')
{
$pid = request_int('pid');
$shop_id['shop_id'] = Perm::$shopId;
$data = $this->shopGoodCatModel->getGoodCatparent($shop_id);
$this->view->setMet('setCat');
}
include $this->view->getView();
~~~
* shop/views/default/Seller/Shop/CatCtl/cat.php
店铺分类列表:`$data = $this->shopGoodCatModel->getGoodCatList($shop_id, array('shop_goods_cat_displayorder'=> 'DESC'));;`
模型:shop/models/shop/GoodCatModel.php
方法:nav()
* shop/views/default/Seller/Shop/CatCtl/setCat.php
确认提交表单验证:`$('#form').validator({})`
编辑、添加、删除分类:editCa()、addCa()、delCa()
编辑:`$flag = $this->shopGoodCatModel->editGoodCat($shop_goods_cat_id, $cat);`
添加:`$flag = $this->shopGoodCatModel->addGoodCat($cat);`
删除:参数parent_id,根据参数判断删除导航
~~~
$cat_id = request_int("id");
$cat = $this->shopGoodCatModel->getOne($cat_id);
if ($cat['parent_id'] == "0")
{
$flag = $this->shopGoodCatModel->removeGoodAllCat($cat_id);
}
else
{
$flag = $this->shopGoodCatModel->removeGoodCat($cat_id);
}
~~~
七、售后服务
控制器:shop/controllers/Seller/Shop/SetshopCtl.php
模型:shop/models/shop/BaseModel.php
视图:shop/views/default/Seller/Shop/SetshopCtl/service.php
确认提交表单验证:`$('#form').validator({})`
方法:editShopCommonService()
判断违禁词:
~~~
$common_service = request_string('common_service');
if (Text_Filter::checkBanned($common_service, $matche_row))
{
$data = array();
$msg = __('含有违禁词');
$status = 250;
$this->data->addBody(-140, array(), $msg, $status);
return false;
}
$flag = $this->shopBaseModel->editBase($shop_id, $shop_edit_row);
~~~
- 序言
- 系统要求
- 版本更新日志
- 远丰商城技术对接说明
- 开发指导
- 系统架构
- 负载集群
- 云存储
- 框架内容
- 基础
- 开发规范
- 目录结构
- 架构
- 架构总览
- 数据库
- 数据库连接
- 基本使用
- 缓存
- 配置
- 路由
- 数据字典
- ucenter
- shop
- paycenter
- ucenter_admin
- shop_admin
- paycenter_admin
- shop1
- shop2
- shop3
- 通讯内容
- 商家中心
- 顶部导航栏
- 店铺信息栏
- 店铺及商品提示栏
- 交易提示栏
- 销售情况统计栏
- 集群架构图
- 单品销量排行栏
- 店铺运营推广栏
- 平台联系方式栏
- 订单物流
- 商品
- 商品列表
- 商品详情
- 商品发布与编辑
- 分销商品
- 关联版式
- 商品规格
- 图片空间
- 淘宝导入
- 订单流程
- 交易订单
- 订单退款/退货
- 促销
- 团购管理
- 加价购
- 限时折扣
- 满即送
- 代金券管理
- 分销
- 店铺
- 店铺设置
- 自销产品供应商
- 实体店铺
- 品牌申请
- 店铺信息
- 消费者保障服务
- 门店账号
- 分销商--产品供应商
- 分销明细
- 批发市场
- 商家微信公众号
- 售后服务
- 咨询管理
- 投诉管理
- 退款管理
- 退货管理
- 杂项
- 远程上传图片
- 接口(废弃,参考最外层接口项)
- 接口说明
- 品牌
- 商品规格
- 商品类型
- 商品分类
- 商品
- 订单
- 商品/店铺收藏
- 足迹
- 退款及退货
- 商家店铺
- 会员
- 入驻协议
- 订单接口
- 商品接口
- 订单物流接口
- 商家中心接口
- 促销接口
- 快递鸟物流接口
- 代金券接口
- 首页版块
- 团购
- 平台红包
- 限时折扣接口
- 拼团接口
- wap首页模板
- JS
- 银联支付
- 多语言
- 商品评分
- 图片加载
- 买家申请退款退货
- 商家退款退货
- 平台退款退货
- 添加发票
- 提交订单
- 确认订单
- 运费销售区域
- 获取会员地址
- 充值
- 导出XLS
- 商城系统集成
- 多语言实现
- 三级分销推广链接发展推广员
- app.ini.php
- 去分销
- 版本更新
- 物流支持
- 运营人员建议
- 业务逻辑
- 统计结算
- 客服消息
- 账号
- 三级分销
- IM
- 配置
- 平台帐号
- 活动数据表说明
- 接口
- 数据库中间键
- MyCat的优势
- 概念说明
- Mycat的下载及安装
- 参数配置案列
- Mycat读写分离
- 基本命令
- 常见错误