(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/book/book" ], { "0910": function(t, n, e) { "use strict"; e.r(n); var o = e("ce5a"), a = e.n(o); for (var i in o) [ "default" ].indexOf(i) < 0 && function(t) { e.d(n, t, function() { return o[t]; }); }(i); n["default"] = a.a; }, "4aba": function(t, n, e) { "use strict"; e.d(n, "b", function() { return a; }), e.d(n, "c", function() { return i; }), e.d(n, "a", function() { return o; }); var o = { xad: function() { return e.e("components/xad/xad").then(e.bind(null, "9621")); }, xpop: function() { return e.e("components/xpop/xpop").then(e.bind(null, "8c3c")); }, bootNav: function() { return Promise.all([ e.e("common/vendor"), e.e("components/bootNav/bootNav") ]).then(e.bind(null, "dc0f")); } }, a = function() { var t = this, n = t.$createElement, e = (t._self._c, t.isProduct ? t.__map(t.bookList, function(n, e) { var o = t.__get_orig(n), a = n.ad_id ? {} : null; return { $orig: o, a0: a }; }) : null); t._isMounted || (t.e0 = function(n) { t.inputValue = ""; }), t.$mp.data = Object.assign({}, { $root: { l0: e } }); }, i = []; }, "6f99": function(t, n, e) { "use strict"; e.r(n); var o = e("4aba"), a = e("0910"); for (var i in a) [ "default" ].indexOf(i) < 0 && function(t) { e.d(n, t, function() { return a[t]; }); }(i); e("9a39"); var u = e("f0c5"), c = Object(u["a"])(a["default"], o["b"], o["c"], !1, null, null, null, !1, o["a"], void 0); n["default"] = c.exports; }, "8d67": function(t, n, e) { "use strict"; (function(t, n) { var o = e("4ea4"); e("94a9"); o(e("66fd")); var a = o(e("6f99")); t.__webpack_require_UNI_MP_PLUGIN__ = e, n(a.default); }).call(this, e("bc2e")["default"], e("543d")["createPage"]); }, "9a39": function(t, n, e) { "use strict"; var o = e("b0c5"), a = e.n(o); a.a; }, b0c5: function(t, n, e) {}, ce5a: function(t, n, e) { "use strict"; Object.defineProperty(n, "__esModule", { value: !0 }), n.default = void 0; n.default = { data: function() { return { inputValue: "", itemList: [], bookList: [], focusType: "", categoryList: [] }; }, onLoad: function(t) { this.getList(), this.x_get_ad("common"), this.cpAd(); }, watch: { inputValue: { handler: function(t, n) { t != n && this.searchResult(t); } } }, methods: { onShareAppMessage: function() { return { title: this.title }; }, onShareTimeline: function() { return { title: this.title }; }, getList: function() { this.x_request("api_v2/fangji/zy_book/category/", {}, function(t, n) { t.categoryList = n.data, t.focus(n.data[0]["key"]); }); }, focus: function(t) { this.changeTab(t); }, changeTab: function(t) { this.focusType = t, this.x_request("api/fangji.book/book", { key: t }, function(t, n) { //去除数据中的广告数据 console.log('处理前的数据:',n.data) const filteredArray = n.data.filter(item => !item.ad_id ); t.bookList = filteredArray; }); }, searchResult: function(t) { this.x_request("api/fangji.book/search", { name: t }, function(t, n) { //去除数据中的广告数据 console.log('处理前的数据:',n.data) const filteredArray = n.data.filter(item => !item.ad_id ); t.bookList = filteredArray; // t.bookList = n.data; }); } } }; } }, [ [ "8d67", "common/runtime", "common/vendor" ] ] ]);