120 lines
4.0 KiB
JavaScript
120 lines
4.0 KiB
JavaScript
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/search/search" ], {
|
||
|
"0ab4": function(e, t, n) {
|
||
|
"use strict";
|
||
|
n.r(t);
|
||
|
var a = n("5105"), c = n.n(a);
|
||
|
for (var r in a) [ "default" ].indexOf(r) < 0 && function(e) {
|
||
|
n.d(t, e, function() {
|
||
|
return a[e];
|
||
|
});
|
||
|
}(r);
|
||
|
t["default"] = c.a;
|
||
|
},
|
||
|
"0e0f": function(e, t, n) {
|
||
|
"use strict";
|
||
|
var a = n("5c75"), c = n.n(a);
|
||
|
c.a;
|
||
|
},
|
||
|
"116a": function(e, t, n) {
|
||
|
"use strict";
|
||
|
(function(e, t) {
|
||
|
var a = n("4ea4");
|
||
|
n("94a9");
|
||
|
a(n("66fd"));
|
||
|
var c = a(n("fa89"));
|
||
|
e.__webpack_require_UNI_MP_PLUGIN__ = n, t(c.default);
|
||
|
}).call(this, n("bc2e")["default"], n("543d")["createPage"]);
|
||
|
},
|
||
|
5105: function(e, t, n) {
|
||
|
"use strict";
|
||
|
var a = n("4ea4");
|
||
|
Object.defineProperty(t, "__esModule", {
|
||
|
value: !0
|
||
|
}), t.default = void 0;
|
||
|
a(n("5c77"));
|
||
|
t.default = {
|
||
|
data: function() {
|
||
|
return {
|
||
|
placeholder: "请输入方剂搜索",
|
||
|
inputValue: "",
|
||
|
searchData: [],
|
||
|
searchType: 1
|
||
|
};
|
||
|
},
|
||
|
watch: {
|
||
|
inputValue: {
|
||
|
handler: function(e, t) {
|
||
|
e != t && "" != e && this.searchResult();
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
switchSelectTab: function(e) {
|
||
|
this.searchType = e, this.searchData = [], this.searchResult();
|
||
|
},
|
||
|
searchClose: function() {
|
||
|
this.inputValue = "";
|
||
|
},
|
||
|
searchResult: function() {
|
||
|
this.x_request("api/fangji.index/preview", {
|
||
|
tab: this.searchType,
|
||
|
keyword: this.inputValue
|
||
|
}, function(e, t) {
|
||
|
//去除数据中的广告数据
|
||
|
console.log('处理前的数据:',t.data)
|
||
|
const filteredArray = t.data.filter(item =>
|
||
|
!item.ad_id
|
||
|
);
|
||
|
console.log('处理后的数据:',filteredArray)
|
||
|
e.searchData = filteredArray, e.x_get_ad("common"), e.cpAd();
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
},
|
||
|
"5c75": function(e, t, n) {},
|
||
|
8204: function(e, t, n) {
|
||
|
"use strict";
|
||
|
n.d(t, "b", function() {
|
||
|
return c;
|
||
|
}), n.d(t, "c", function() {
|
||
|
return r;
|
||
|
}), n.d(t, "a", function() {
|
||
|
return a;
|
||
|
});
|
||
|
var a = {
|
||
|
xad: function() {
|
||
|
return n.e("components/xad/xad").then(n.bind(null, "9621"));
|
||
|
},
|
||
|
bootNav: function() {
|
||
|
return Promise.all([ n.e("common/vendor"), n.e("components/bootNav/bootNav") ]).then(n.bind(null, "dc0f"));
|
||
|
}
|
||
|
}, c = function() {
|
||
|
var e = this, t = e.$createElement, n = (e._self._c, e.__map(e.searchData, function(t, n) {
|
||
|
var a = e.__get_orig(t), c = t.ad_id ? {} : null;
|
||
|
return {
|
||
|
$orig: a,
|
||
|
a0: c
|
||
|
};
|
||
|
}));
|
||
|
e.$mp.data = Object.assign({}, {
|
||
|
$root: {
|
||
|
l0: n
|
||
|
}
|
||
|
});
|
||
|
}, r = [];
|
||
|
},
|
||
|
fa89: function(e, t, n) {
|
||
|
"use strict";
|
||
|
n.r(t);
|
||
|
var a = n("8204"), c = n("0ab4");
|
||
|
for (var r in c) [ "default" ].indexOf(r) < 0 && function(e) {
|
||
|
n.d(t, e, function() {
|
||
|
return c[e];
|
||
|
});
|
||
|
}(r);
|
||
|
n("0e0f");
|
||
|
var u = n("f0c5"), i = Object(u["a"])(c["default"], a["b"], a["c"], !1, null, null, null, !1, a["a"], void 0);
|
||
|
t["default"] = i.exports;
|
||
|
}
|
||
|
}, [ [ "116a", "common/runtime", "common/vendor" ] ] ]);
|