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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## ajax下拉列表 基礎用例: ``` ['type' => 'selectajax', 'name' => 'user_id', 'title' =>'會員ID'], ``` 默認可以搜索會員并返回會員ID 高級用例: ``` ['type' => 'selectajax', 'name' => 'goods_id', 'title' =>'商品ID','url' => url('searchGoods')], ``` 可以指定url獲取數據,需要自己寫一個控制器方法: ``` /** * selectAJAX插件搜索商品 */ public function searchGoods() { // 查詢 $key = input('key/s', ''); if ($key == '') { return ''; } $where[] = ["goods.status", "=", 1]; $where[] = ["goods.is_sale", "=", 1]; $where[] = ['goods.is_delete', '=', 0]; $where[] = ['goods.name', 'like', "%".$key."%"]; // 數據列表 $data_list = Goods::view("goods","id,name,shop_price,thumb") ->view("goods_category","name as cate_name","goods.cid = goods_category.id","left") ->where($where) ->paginate(20); $results = []; foreach ($data_list as $v) { $str = '<img src="'.get_thumb($v["thumb"]).'" height="28px" style="float:left;margin-right:10px"/>【'.$v['cate_name'] . '】/' .$v['id'] . '/' . $v['name'] . '/¥' . $v['shop_price'] ; $results[] = ['id' => $v['id'], 'text' => $str]; } $data['results'] = $results; $data['pagination'] = $data_list->currentPage() == $data_list->lastPage() ? ['more' => true] : ['more' => false]; return json($data, JSON_UNESCAPED_UNICODE); } ``` PS:如需使用此插件,需升級到2.0版本,需要注意2.0版本與之前版本不兼容
                  <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>

                              哎呀哎呀视频在线观看