<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                批發市場 : 建立分銷商、供應商關系 建立關系流程:批發市場申請成為分銷商 -> 供應商同意 -> 成為分銷商 一、申請成為分銷商(供應商不能是分銷商) 文件路徑:shop/controllers/Supplier/GoodsCtl.php 視圖:shop/views/default/Supplier/GoodsCtl/goodslist.php ~~~ <a class="apply_dist" data-id = <?=$val['shop_id']?> style="padding: 3.5px 50px;background-color: #e45050;color: white;"><?=__('申請分銷商')?></a> $(".apply_dist").click(function (){ var self_shop_type = <?=$shop_info['shop_type']?>; var shop_id = $(this).attr("data-id"); if(self_shop_type == 2){ Public.tips.error("<?=__('供貨商不能參與分銷')?>!"); }else{ location.href = SITE_URL+"?ctl=Seller_Supplier_Supplier&met=apply&typ=e&shop_id="+shop_id; } }) ~~~ 申請路徑:shop/controllers/Seller/Supplier/SupplierCtl.php 申請視圖:shop/views/default/Seller/Supplier/SupplierCtl/apply.php 參數:shop_id 方法:apply() ~~~ if($shop_id) { $shop_info = $shopBaseModel->getOneByWhere(array('shop_id'=>$shop_id)); $cat_row['shop_id'] = $shop_id; $shop_cat = $shopGoodCatModel->getGoodCatList($cat_row, array()); } ~~~ 二、供應商審核分銷商 文件路徑:shop/controllers/Seller/Supplier/DistributorCtl.php 視圖:shop/views/default/Seller/Supplier/DistributorCtl/index.php * 審核通過:方法:edit_statu() ~~~ if(request_string('act') && request_string('act') == 'agree') { $field_row['distributor_enable'] = 1; $field_row['distributor_cat_ids'] = $shop_dist_base['distributor_new_cat_ids']; $field_row['distributor_new_cat_ids'] = ''; $flag=$this->shopDistributorModel->editShopDistributor($shop_distributor_id,$field_row); //發送消息 $MessageModel->sendMessage('dist apply statu',$dist_shop_base['user_id'], $dist_shop_base['user_name'], $order_id = NULL, $shop_name=null, 1, 1, $end_time = Null,$common_id=null); } elseif(request_string('act') && request_string('act') == 'del') { $flag=$this->shopDistributorModel->removeShopDistributor($shop_distributor_id); //刪除分銷商品 $goodsCommonModel = new Goods_CommonModel(); $commons =$goodsCommonModel -> getByWhere(array('shop_id'=>$dist_shop_base['shop_id'],'supply_shop_id'=>Perm::$shopId)); if(!empty($commons)) { foreach ($commons as $key => $value) { $goodsCommonModel->removeCommon($value['common_id']); //發送消息 $des = '供貨商刪除你的分銷權限'; $MessageModel->sendMessage('del goods',$dist_shop_base['user_id'], $dist_shop_base['user_name'], $order_id = NULL, $shop_name=null, 1, 1, $end_time = Null,$value['common_id'],$goods_id=null,$des); } } } ~~~ * 分銷商審核不通過: 視圖:shop/views/default/Seller/Supplier/DistributorCtl/index.php ~~~ <div id="apply-disagree" class="eject_con" > <input type="hidden" name="shop_grade_id" id="shop_grade_id" value="" /> <textarea id="reason"></textarea> <div class="eject_con mb10"> <div class="bottom"><a id="btn_apply_submit" class="button bbc_seller_submit_btns" href="javascript:void(0);"><?=__('提交')?></a></div> </div> </div> $("#btn_apply_submit").click(function (){ var shop_distributor_id = $("#shop_distributor_id").val(); var reason = $("#reason").val(); if(reason.length == 0){ Public.tips.error('<?=__('請填寫原因!')?>'); return false; } var ajax_url = './index.php?ctl=Seller_Supplier_Distributor&met=apply_disagree&typ=json'; $.ajax({ url:ajax_url, data:{shop_distributor_id:shop_distributor_id,reason:reason}, success:function(a){ . . . } }) }) ~~~ 方法:apply_disagree() ~~~ //不通過分銷商申請,添加原因 $flag = $this->shopDistributorModel->editShopDistributor($shop_distributor_id,$field_row); ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看