|
@@ -16,7 +16,14 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
var _a;
|
|
var _a;
|
|
(_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
|
|
(_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
|
|
const value = common_vendor.ref("");
|
|
const value = common_vendor.ref("");
|
|
- const list = common_vendor.ref([]);
|
|
|
|
|
|
+ const list = common_vendor.ref([{ name: "本田" }]);
|
|
|
|
+ const moreList = common_vendor.ref([{ name: "本田" }]);
|
|
|
|
+ common_vendor.onShow(() => {
|
|
|
|
+ search();
|
|
|
|
+ toCustom();
|
|
|
|
+ });
|
|
|
|
+ const search = async () => {
|
|
|
|
+ };
|
|
const toChange = async () => {
|
|
const toChange = async () => {
|
|
};
|
|
};
|
|
const toCustom = async () => {
|
|
const toCustom = async () => {
|
|
@@ -28,8 +35,14 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
url: `/pagesHome/search/index?type=${item.type || ""}`
|
|
url: `/pagesHome/search/index?type=${item.type || ""}`
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+ const toRest = async () => {
|
|
|
|
+ console.log("重置");
|
|
|
|
+ };
|
|
|
|
+ const toDelete = async () => {
|
|
|
|
+ console.log("删除");
|
|
|
|
+ };
|
|
return (_ctx, _cache) => {
|
|
return (_ctx, _cache) => {
|
|
- return {
|
|
|
|
|
|
+ return common_vendor.e({
|
|
a: common_vendor.o(toChange),
|
|
a: common_vendor.o(toChange),
|
|
b: common_vendor.o(toCustom),
|
|
b: common_vendor.o(toCustom),
|
|
c: common_vendor.o(($event) => value.value = $event),
|
|
c: common_vendor.o(($event) => value.value = $event),
|
|
@@ -40,15 +53,36 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
placeholder: "想买什么车",
|
|
placeholder: "想买什么车",
|
|
modelValue: value.value
|
|
modelValue: value.value
|
|
}),
|
|
}),
|
|
- e: common_vendor.f(list.value, (item, index, i0) => {
|
|
|
|
|
|
+ e: !value.value && moreList.value.length > 0
|
|
|
|
+ }, !value.value && moreList.value.length > 0 ? {
|
|
|
|
+ f: common_vendor.p({
|
|
|
|
+ size: "18px",
|
|
|
|
+ name: "trash"
|
|
|
|
+ }),
|
|
|
|
+ g: common_vendor.o(toRest),
|
|
|
|
+ h: common_vendor.f(moreList.value, (item, index, i0) => {
|
|
|
|
+ return {
|
|
|
|
+ a: common_vendor.t(item.name),
|
|
|
|
+ b: common_vendor.o(($event) => toView(item), index),
|
|
|
|
+ c: common_vendor.o(($event) => toDelete(), index),
|
|
|
|
+ d: "2f32406a-2-" + i0,
|
|
|
|
+ e: index
|
|
|
|
+ };
|
|
|
|
+ }),
|
|
|
|
+ i: common_vendor.p({
|
|
|
|
+ size: "15px",
|
|
|
|
+ name: "close"
|
|
|
|
+ })
|
|
|
|
+ } : {
|
|
|
|
+ j: common_vendor.f(list.value, (item, index, i0) => {
|
|
return common_vendor.e({
|
|
return common_vendor.e({
|
|
a: item.file
|
|
a: item.file
|
|
}, item.file ? {
|
|
}, item.file ? {
|
|
b: item.file && item.file.length > 0 ? item.file[0].url : ""
|
|
b: item.file && item.file.length > 0 ? item.file[0].url : ""
|
|
} : {
|
|
} : {
|
|
- c: "2f32406a-1-" + i0,
|
|
|
|
|
|
+ c: "2f32406a-3-" + i0,
|
|
d: common_vendor.p({
|
|
d: common_vendor.p({
|
|
- size: "14px",
|
|
|
|
|
|
+ size: "16px",
|
|
name: "search"
|
|
name: "search"
|
|
})
|
|
})
|
|
}, {
|
|
}, {
|
|
@@ -57,7 +91,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
g: common_vendor.o(($event) => toView(item), index)
|
|
g: common_vendor.o(($event) => toView(item), index)
|
|
});
|
|
});
|
|
})
|
|
})
|
|
- };
|
|
|
|
|
|
+ });
|
|
};
|
|
};
|
|
}
|
|
}
|
|
});
|
|
});
|