(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/article/article" ], { 2407: function(t, e, n) { "use strict"; (function(t, e) { var i = n("4ea4"); n("94a9"); i(n("66fd")); var a = i(n("e894")); t.__webpack_require_UNI_MP_PLUGIN__ = n, e(a.default); }).call(this, n("bc2e")["default"], n("543d")["createPage"]); }, "5ece": function(t, e, n) { "use strict"; n.r(e); var i = n("e7ea"), a = n.n(i); for (var o in i) [ "default" ].indexOf(o) < 0 && function(t) { n.d(e, t, function() { return i[t]; }); }(o); e["default"] = a.a; }, "6d11": function(t, e, n) { "use strict"; n.d(e, "b", function() { return a; }), n.d(e, "c", function() { return o; }), n.d(e, "a", function() { return i; }); var i = { xad: function() { return n.e("components/xad/xad").then(n.bind(null, "9621")); }, xpop: function() { return n.e("components/xpop/xpop").then(n.bind(null, "8c3c")); }, bootNav: function() { return Promise.all([ n.e("common/vendor"), n.e("components/bootNav/bootNav") ]).then(n.bind(null, "dc0f")); } }, a = function() { var t = this, e = t.$createElement, n = (t._self._c, t.isProduct ? t.__map(t.itemList, function(e, n) { var i = t.__get_orig(e), a = e.ad_id ? {} : null; return { $orig: i, a0: a }; }) : null); t.$mp.data = Object.assign({}, { $root: { l0: n } }); }, o = []; }, ae9c: function(t, e, n) {}, dcb3: function(t, e, n) { "use strict"; var i = n("ae9c"), a = n.n(i); a.a; }, e7ea: function(t, e, n) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.default = void 0; e.default = { data: function() { return { itemList: [], focusType: "", categoryList: [], word: "", tag: 0, page: 1 }; }, onLoad: function(t) { this.getList(), this.x_get_ad("common"), this.cpAd(); }, methods: { onShareAppMessage: function() { return { title: this.title }; }, onShareTimeline: function() { return { title: this.title }; }, getList: function() { this.x_request("api/fangji.article/category", {}, function(t, e) { t.categoryList = e.data, t.focus(0); }); }, focus: function(t) { this.changeTab(t); }, changeTab: function(t) { this.tag = t, this.itemList = [], this.page = 1, this.searchResult(); }, onReachBottom: function() { this.searchResult(); }, doSearch: function() { this.word && (this.itemList = [], this.page = 1, this.searchResult()); }, searchResult: function() { this.page > 0 && this.x_request("api/fangji.article/search", { title: this.word, tag: this.tag, page: this.page }, function(t, e) { //去除数据中的广告数据 console.log('处理前的数据:',e.data.data) const filteredArray = e.data.data.filter(item => !item.ad_id ); console.log('处理后的数据:',filteredArray) var n = filteredArray; n.length > 0 ? (t.itemList = t.itemList.concat(n), t.page++) : t.page = 0; }); } } }; }, e894: function(t, e, n) { "use strict"; n.r(e); var i = n("6d11"), a = n("5ece"); for (var o in a) [ "default" ].indexOf(o) < 0 && function(t) { n.d(e, t, function() { return a[t]; }); }(o); n("dcb3"); var c = n("f0c5"), u = Object(c["a"])(a["default"], i["b"], i["c"], !1, null, null, null, !1, i["a"], void 0); e["default"] = u.exports; } }, [ [ "2407", "common/runtime", "common/vendor" ] ] ]);