search.js 3.8 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/search/search"],{192:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(193));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},193:function(e,n,t){"use strict";t.r(n);var o=t(194),r=t(198);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t(200);var u,a=t(37),c=Object(a["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],u);c.options.__file="pages/search/search.vue",n["default"]=c.exports},194:function(e,n,t){"use strict";t.r(n);var o=t(195);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},195:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return o}));try{o={uSearch:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-search/u-search")]).then(t.bind(null,285))},uEmpty:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-empty/u-empty")]).then(t.bind(null,306))},uList:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-list/u-list")]).then(t.bind(null,314))},uListItem:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-list-item/u-list-item")]).then(t.bind(null,322))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement,o=(e._self._c,t(196)),r=t(197);e.$mp.data=Object.assign({},{$root:{m0:o,m1:r}})},i=!1,u=[];r._withStripped=!0},198:function(e,n,t){"use strict";t.r(n);var o=t(199),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},199:function(e,n,t){"use strict";(function(e){var o=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(18)),i=t(171),u={data:function(){return{keyword:"",checked:!1,emptyShow:!1,dataList:[],pageNum:1,pageSize:5,total:0}},onLoad:function(e){this.keyword=e.keyword},onShow:function(){this.pageNum=1,this.search(this.pageNum,this.keyword)},methods:{scrolltolower:function(){console.log(222222333),Math.ceil(this.total/this.pageSize)<this.pageNum||Math.ceil(this.total/this.pageSize)>=this.pageNum&&this.search(this.pageNum,this.keyword)},search:function(n,t){var o=this;e.showLoading({title:"正在加载中",mask:!0});try{1===n&&(this.dataList=[]),(0,i.keywordSearch)(n,this.pageSize,{numberOrName:t}).then((function(t){e.hideLoading(),console.log(t.records,111),t.records&&(0===t.records.length&&1==n?o.emptyShow=!0:(o.emptyShow=!1,o.dataList=[].concat((0,r.default)(o.dataList),(0,r.default)(t.records)),o.pageNum=n+1,o.total=t.total))}))}catch(u){e.hideLoading()}},toBorrow:function(n){e.navigateTo({url:"/pages/borrow/borrow?number="+n})}}};n.default=u}).call(this,t(2)["default"])},200:function(e,n,t){"use strict";t.r(n);var o=t(201),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},201:function(e,n,t){}},[[192,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/search/search.js.map