<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 功能強大 支持多語言、二開方便! 廣告
                [TOC] ## 1.在pages/search.json中添加 ``` { "usingComponents": { "v-search":"/components/search/search" }, "enablePullDownRefresh":true, //不能在子組件中使用 "backgroundColor":"#333" } ``` ## 2.在pages/search.wxml中添加 ``` <v-search topMore="{{topMore}}"></v-search> ``` ## 3.在components/search/search.js中添加 ``` properties: { topMore:{ type:Number, observer:"onPull" }, bottomMore:{ type:Number, observer:"onBottom" } } ``` ``` methods: { onPull(){ this.setData({ books:[] }) bookModel.getBookSearch(0,this.data.value).then(res=>{ this.setData({ books:res.books }) }) }, onBottom(){ const start = this.data.books.length; let value = this.data.value; bookModel.getBookSearch(start,value).then(res=>{ this.data.books.push(...res.books); this.setData({ books:this.data.books }) }) } } ``` ``` onConfirm(event) { let value = event.detail.value; bookModel.getBookSearch(0, value).then(res => { if (res.total) { keyword.addHistory(value); let words = keyword.getHistory(); this.setData({ words, books:res.books, isSearch:true, value }) } }) }, ```
                  <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>

                              哎呀哎呀视频在线观看