149 lines
5.9 KiB
JavaScript
149 lines
5.9 KiB
JavaScript
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/result/result" ], {
|
|
"11c2": function(t, e, a) {},
|
|
"38de": function(t, e, a) {
|
|
"use strict";
|
|
a.d(e, "b", function() {
|
|
return i;
|
|
}), a.d(e, "c", function() {
|
|
return o;
|
|
}), a.d(e, "a", function() {
|
|
return n;
|
|
});
|
|
var n = {
|
|
xad: function() {
|
|
return a.e("components/xad/xad").then(a.bind(null, "9621"));
|
|
},
|
|
xpop: function() {
|
|
return a.e("components/xpop/xpop").then(a.bind(null, "8c3c"));
|
|
},
|
|
bootNav: function() {
|
|
return Promise.all([ a.e("common/vendor"), a.e("components/bootNav/bootNav") ]).then(a.bind(null, "dc0f"));
|
|
}
|
|
}, i = function() {
|
|
var t = this, e = t.$createElement, a = (t._self._c, t.resultData.length), n = a > 50 ? null : t.resultData.length, i = t.__map(t.resultData, function(e, a) {
|
|
var n = t.__get_orig(e), i = e.ad_id ? {} : null;
|
|
return {
|
|
$orig: n,
|
|
a0: i
|
|
};
|
|
});
|
|
t.$mp.data = Object.assign({}, {
|
|
$root: {
|
|
g0: a,
|
|
g1: n,
|
|
l0: i
|
|
}
|
|
});
|
|
}, o = [];
|
|
},
|
|
"39c4": function(t, e, a) {
|
|
"use strict";
|
|
var n = a("11c2"), i = a.n(n);
|
|
i.a;
|
|
},
|
|
"47e9": function(t, e, a) {
|
|
"use strict";
|
|
(function(t, e) {
|
|
var n = a("4ea4");
|
|
a("94a9");
|
|
n(a("66fd"));
|
|
var i = n(a("583d"));
|
|
t.__webpack_require_UNI_MP_PLUGIN__ = a, e(i.default);
|
|
}).call(this, a("bc2e")["default"], a("543d")["createPage"]);
|
|
},
|
|
"57be": function(t, e, a) {
|
|
"use strict";
|
|
a.r(e);
|
|
var n = a("ba10"), i = a.n(n);
|
|
for (var o in n) [ "default" ].indexOf(o) < 0 && function(t) {
|
|
a.d(e, t, function() {
|
|
return n[t];
|
|
});
|
|
}(o);
|
|
e["default"] = i.a;
|
|
},
|
|
"583d": function(t, e, a) {
|
|
"use strict";
|
|
a.r(e);
|
|
var n = a("38de"), i = a("57be");
|
|
for (var o in i) [ "default" ].indexOf(o) < 0 && function(t) {
|
|
a.d(e, t, function() {
|
|
return i[t];
|
|
});
|
|
}(o);
|
|
a("39c4");
|
|
var r = a("f0c5"), u = Object(r["a"])(i["default"], n["b"], n["c"], !1, null, null, null, !1, n["a"], void 0);
|
|
e["default"] = u.exports;
|
|
},
|
|
ba10: function(t, e, a) {
|
|
"use strict";
|
|
(function(t) {
|
|
var n = a("4ea4");
|
|
Object.defineProperty(e, "__esModule", {
|
|
value: !0
|
|
}), e.default = void 0;
|
|
n(a("5c77"));
|
|
var i = {
|
|
data: function() {
|
|
return {
|
|
keyword: "",
|
|
category_id: "",
|
|
cat_title: "",
|
|
total: "",
|
|
current_page: 0,
|
|
last_page: 1,
|
|
resultData: [],
|
|
noMore: 0,
|
|
openDetail: 0,
|
|
isMy: 0,
|
|
tab: 1
|
|
};
|
|
},
|
|
onLoad: function(e) {
|
|
var a, n, i, o;
|
|
this.keyword = null !== (a = e.keyword) && void 0 !== a ? a : "", this.category_id = null !== (n = e.category_id) && void 0 !== n ? n : 0,
|
|
this.cat_title = null !== (i = e.cat_title) && void 0 !== i ? i : "", this.tab = null !== (o = e.tab) && void 0 !== o ? o : 1,
|
|
"1" === e.isMy ? (this.isMy = 1, t.setNavigationBarTitle({
|
|
title: "我收藏的内容"
|
|
})) : t.setNavigationBarTitle({
|
|
title: this.cat_title + "-筛选结果"
|
|
}), this.searchResult(), this.cpAd(), this.x_get_ad("common");
|
|
},
|
|
onReachBottom: function() {
|
|
this.searchResult();
|
|
},
|
|
methods: {
|
|
searchResult: function() {
|
|
var t = this;
|
|
t.current_page >= t.last_page ? t.noMore = 1 : this.x_request("api/fangji.index/search", {
|
|
keyword: this.keyword,
|
|
category_id: this.category_id,
|
|
isMy: t.isMy,
|
|
page: t.current_page + 1,
|
|
tab: t.tab
|
|
}, function(t, e) {
|
|
//去除数据中的广告数据
|
|
console.log('处理前的数据:',e.data.data)
|
|
const filteredArray = e.data.data.filter(item =>
|
|
!item.ad_id
|
|
);
|
|
|
|
filteredArray.forEach(element => {
|
|
if(!element.pic.includes('http://cdn.yqdhz.com/')){
|
|
element.pic = 'http://cdn.yqdhz.com/'+element.pic
|
|
}
|
|
});
|
|
console.log('处理后的数据:',filteredArray)
|
|
e.data.data.length && (t.resultData = t.resultData.concat(filteredArray), t.total = e.data.total,
|
|
t.current_page = e.data.current_page, t.last_page = e.data.last_page, t.openDetail = e.status);
|
|
});
|
|
},
|
|
toDetail: function(t) {
|
|
this.isProduct && this.x_redirect("/pages/detail/detail?id=" + t.currentTarget.dataset.id + "&tab=" + this.tab);
|
|
}
|
|
}
|
|
};
|
|
e.default = i;
|
|
}).call(this, a("543d")["default"]);
|
|
}
|
|
}, [ [ "47e9", "common/runtime", "common/vendor" ] ] ]); |