🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
文件路径:shop/controllers/Seller/Shop/EntityshopCtl.php 一、地图显示 1.添加实体店铺 控制器:shop/controllers/Seller/Shop/EntityshopCtl.php 模型:shop/models/shop/EntityModel.php 视图:根据URL获得参数act的值,判断视图 ~~~ $act = request_string('act'); if ($act == 'list') { $this->view->setMet('entitylist'); } ~~~ * shop/views/default/Seller/Shop/EntityshopCtl/entitylist.php 实体店铺列表:`$data = $this->shopEntityModel->listByWhere(array("shop_id" => $shop_id), array(), $page, $rows);` 模型:shop/models/shop/EntityModel.php 方法:entityShop() * shop/views/default/Seller/Shop/EntityshopCtl/entityShop.php 控制器:shop/controllers/Seller/Shop/EntityshopCtl.php 模型:shop/models/shop/EntityModel.php * 删除店铺:delEntity() 删除:`$this->shopEntityModel->removeEntity($entity_id);` * 编辑店铺:editEntityInfo()、editEntity() 编辑窗口视图:shop/views/default/Seller/Shop/EntityshopCtl/editEntityInfo.php 编辑:`$flag = $this->shopEntityModel->editEntity($entity_id, $entity_row);` * 添加店铺:addEntityInfo()、addEntityrow() 添加窗口视图:shop/views/default/Seller/Shop/EntityshopCtl/addEntityInfo.php 添加:`$flag = $this->shopEntityModel->addEntity($entity);` 2.店铺列表显示 控制器:shop/controllers/Seller/Shop/EntityshopCtl.php 模型:shop/models/shop/EntityModel.php 视图:根据URL获得参数act的值,判断视图 ~~~ $act = request_string('act'); if ($act == 'list') { $this->view->setMet('entitylist'); } ~~~ 具体操作参考1.添加实体店铺