<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                文件路徑:shop/controllers/Seller/Promotion/IncreaseCtl.php 一、活動列表【方法:index();】 1.套餐過期時間及備注 ~~~ if (!$this->self_support_flag) //普通店鋪 { $com_flag = $this->combo_flag; if ($this->combo_flag)//套餐可用 { $combo_row = $this->increaseComboModel->getComboInfo(Perm::$shopId); } } //店鋪下的加價購活動列表 $data = $this->increaseBaseModel->getIncreaseActList($cond_row, array('increase_id' => 'ASC'), $page, $rows); ~~~ 2.活動狀態 模型:shop/models/Increase/BaseModel.php 參數:increase_state(0.全部1.正常 2.已結束 3.管理員關閉) ~~~ const NORMAL = 1;//正常 const END = 2;//結束 const CANCEL = 3;//管理員關閉 ~~~ 3.操作 3.1編輯 參數:id、edit 根據URL獲取id、edit判斷活動列表和活動內容編輯 視圖:views/default/Seller/Promotion/IncreaseCtl/edit.php 編輯活動內容后提交表單驗證:$('#form').validator({}) 方法:editIncrease(); ~~~ if (request_string('op') == 'edit' && request_int('id')) { //編輯活動內容 $increase_id = request_int('id'); $check_row = $this->increaseBaseModel->getIncreaseActItem($increase_id); if ($check_row['shop_id'] == Perm::$shopId) { $data = $this->increaseBaseModel->getIncreaseActDetail($increase_id); } else { location_to('index.php?ctl=Seller_Promotion_Increase&met=index&typ=e'); } //視圖:views/default/Seller/Promotion/IncreaseCtl/edit.php //編輯活動內容后提交表單驗證:$('#form').validator({}) //方法:editIncrease(); $this->view->setMet('edit'); } ~~~ 3.1.1添加活動商品 通過AJAX獲得店鋪所有商品 ~~~ $('.btn-ctl-select-goods').click(function(){ var increase_id = $(this).attr('data-increase-id'); var url = SITE_URL + '?ctl=Seller_Promotion_Increase&met=getShopGoods&typ=e&op=edit'; $('#cou-sku-options').load(url,{id:increase_id}); }); ~~~ 3.1.2添加活動規則 選擇換購商品: ~~~ $('body').on('click','[btn-choose-rule-ex-goods]', function() { var id = $(this).attr('btn-choose-rule-ex-goods'); $("[btn-choose-rule-ex-goods='"+id+"']").hide(); $("[data-cou-level-sku-close-button='"+id+"']").show(); getShopGoodsSku(id); }); ~~~ URL異步請求獲取店鋪可以參加換購的商品:方法:getShopGoodsSku(); 視圖:shop/views/default/Seller/Promotion/IncreaseCtl/getShopGoodsSku.php 4.刪除加價購 * 控制器:shop/controllers/Seller/Promotion/IncreaseCtl.php ->removeIncreaseAct() * 模型:shop/models/Increase/BaseModel.php * 視圖:shop/views/default/Seller/Promotion/IncreaseCtl/index.php 二、添加活動 1.活動開始時間:不得小于當前時間,且小于套餐結束時間 2.活動結束時間:不得小于當前時間,且小于套餐結束時間 3.提交 新增活動提交時進行表單驗證:`$('#form').validator({})` * 控制器:shop/controllers/Seller/Promotion/IncreaseCtl.php ->addIncrease() * 模型:shop/models/Increase/BaseModel.php * 視圖:shop/views/default/Seller/Promotion/IncreaseCtl/add.php 三、套餐管理【方法:combo();】 1、套餐活動列表 * 控制器:shop/controllers/Seller/Promotion/IncreaseCtl.php ->combo() * 模型:shop/models/Shop/CostModel.php * 視圖:shop/views/default/Seller/Promotion/IncreaseCtl/combo.php 套餐活動列表 `$data = $this->shopCostModel->listByWhere($cond_row,$order_row,$page, $rows);` 2.、購買套餐 * 視圖:shop/views/default/Seller/Promotion/IncreaseCtl/combo.php * 控制器:shop/controllers/Seller/Promotion/IncreaseCtl.php ->addCombo() * 模型:shop/models/Increase/ComboModel.php (1)購買套餐時提交時進行表單驗證:`$('#form').validator({})` (2)在店鋪的賬期結算中扣除相關費用并且在paycenter中添加交易記錄 參數:店鋪id,根據店鋪id號獲取店鋪套餐詳情 1、原套餐已經過期,更新套餐開始時間和結束時間 2、原套餐尚未過期,只需更新結束時間 3、如果沒有套餐詳情,則套餐購買
                  <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>

                              哎呀哎呀视频在线观看