ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
#### 1.视图展示 文件路径:\shop\views\default\Seller\IndexCtl\index.php ~~~ <div class="m white-panel"> <div class="pannel_div"> <div class="mt"> <h3 class="bbc_seller_border"><?=__('店铺及商品提示')?></h3> <h5><?=__('您需要关注的店铺信息以及待处理事项')?></h5> </div> <div class="mc"> <div class="focus"> <span><?=__('店铺商品发布情况')?>: <?= $goods_state_normal_num+$goods_state_offline_num+$goods_state_illegal_num ?> / <?= $shop_grade_goods_limit ? $shop_grade_goods_limit : '不限'?></span> <span><?=__('图片空间使用')?>: <?= $shop_album_num ?> / <?= $shop_grade_album_limit ? $shop_grade_album_limit : '不限'?></span></span> </div> <ul class="fn-clear"> <li><a class="<?=$goods_state_normal_num?'num bbc_border bbc_color':''?>" href="./index.php?ctl=Seller_Goods&met=online&typ=e"><?=__('出售中商品')?><em class="bbc_seller_bg"><?=$goods_state_normal_num?$goods_state_normal_num:''?></em></a></li> <li><a class="<?=$goods_verify_waiting_num?'num num1 bbc_border bbc_color':''?>" href="./index.php?ctl=Seller_Goods&met=offline&met=verify&typ=e&op=3"><?=__('待审核商品')?><em class="bbc_seller_bg"> <?=$goods_verify_waiting_num?$goods_verify_waiting_num:''?></em></a></li> <li><a class="<?=$goods_state_offline_num?'num bbc_border bbc_color':''?>" href="./index.php?ctl=Seller_Goods&met=offline&typ=e&op=1" ><?=__('仓库中商品')?> <em class="bbc_seller_bg"><?=$goods_state_offline_num ? $goods_state_offline_num : ''?></em></a></li> <li><a class="<?=$goods_state_illegal_num?'num num1 bbc_border bbc_color':''?>" href="./index.php?ctl=Seller_Goods&met=lockup&typ=e&op=2" ><?=__('违规下架商品')?> <em class="bbc_seller_bg"><?=$goods_state_illegal_num? $goods_state_illegal_num: ''?></em></a></li> </ul> </div> </div> </div> ~~~ #### 2.数据获取 接口地址:index.php?ctl=Seller_Index&met=index&typ=e 接口文件:\shop\controllers\Seller\IndexCtl.php 控制器:Seller_IndexCtl 方法:index() ~~~ //当前商品数量统计 $Goods_CommonModel = new Goods_CommonModel(); //出售中的商品 $goods_state_normal_num = $Goods_CommonModel->getCommonStateNum($shop['shop_id'], Goods_CommonModel::GOODS_STATE_NORMAL,Goods_CommonModel::GOODS_VERIFY_ALLOW); //仓库中商品 $goods_state_offline_num = $Goods_CommonModel->getCommonStateNum($shop['shop_id'], Goods_CommonModel::GOODS_STATE_OFFLINE); //违规下架商品 $goods_state_illegal_num = $Goods_CommonModel->getCommonStateNum($shop['shop_id'], Goods_CommonModel::GOODS_STATE_ILLEGAL); //待审核商品 $goods_verify_waiting_num = $Goods_CommonModel->getCommonVerifyNum($shop['shop_id']); ~~~