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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                :-: 商品規格 文件路徑:shop/controllers/Seller/Goods/SpecCtl.php; 商品類別: //獲取路徑: url: SITE_URL + '?ctl=Goods_Cat&met=cat&typ=json&type_number=goods_cat&is_delete=2&filter=true', //如果存在父類 $data_rows = $Goods_CatModel->getCatTreeData($cat_parent_id, false, 1); if (is_array($cat_parent_id)) { $cond_row = array('cat_parent_id:in' => $cat_parent_id); $cache_key = $this->_cacheKeyPrefix . 'cat_parent_id|' . implode(':', $cat_parent_id); } else { $cond_row = array('cat_parent_id' => $cat_parent_id); $cache_key = $this->_cacheKeyPrefix . 'cat_parent_id|' . $cat_parent_id; } //設置cache $Cache = Yf_Cache::create('base'); //如果有緩存 if ($cat_rows = $Cache->get($cache_key)) { } else { $cat_rows = $this->getByWhere($cond_row, array('cat_displayorder' => 'ASC')); $Cache->save($cat_rows, $cache_key); } //不存在父類 $data = $Goods_CatModel->getCatTree(); $Cache = Yf_Cache::create('base'); if ($data_rows = $Cache->get($this->treeAllKey)) { } else { $data_rows = $this->getCatTreeData($cat_parent_id, $recursive, $level); $Cache->save($data_rows, $this->treeAllKey); } 添加/修改規格值(spec()) 表單提交: $('#form').prop('action', SITE_URL + "?ctl=Seller_Goods_Spec&met=saveSpecValue&typ=json&spec_id=" + param_data.spec_id); //如果存在舊數據 foreach ($old_data as $key => $val) { $update_data['spec_value_displayorder'] = $val['displayorder']; $update_data['spec_value_name'] = $val['spec_value_name']; $flag = $this->goodsSpecValueModel->editSpecValue($key, $update_data); } //如果存在新數據 $update_data['spec_id'] = $spec_id; foreach ($new_data as $key => $val) { $update_data['spec_value_displayorder'] = $val['displayorder']; $update_data['spec_value_name'] = $val['spec_value_name']; $this->goodsSpecValueModel->addSpecValue($update_data); } //商城添加規格值 $spec_value_id = $this->goodsSpecValueModel->addSpecValue($update_data, true); 刪除規格值: $('.delete').click(function(){ var _this = $(this); $.dialog.confirm('<?=__("刪除的數據將不能恢復,請確認是否刪除")?>?',function(){ spec_value_id = _this.children('a').data('id'); if (typeof spec_value_id != 'undefined') { $.post( SITE_URL + "?ctl=Seller_Goods_Spec&met=removeSpecValue&typ=json", { spec_value_id: spec_value_id}, function(data) { }) } else { _this.parent().parent().remove(); } }); }); $spec_value_id = request_int('spec_value_id'); $flag = $this->goodsSpecValueModel->removeSpecValue($spec_value_id);
                  <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>

                              哎呀哎呀视频在线观看