|
@@ -34,46 +34,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
const moneyInfo = common_vendor.ref({});
|
|
const moneyInfo = common_vendor.ref({});
|
|
const yearInfo = common_vendor.ref({});
|
|
const yearInfo = common_vendor.ref({});
|
|
const moreList = common_vendor.ref([]);
|
|
const moreList = common_vendor.ref([]);
|
|
- common_vendor.ref([
|
|
|
|
- {
|
|
|
|
- title: "5万以下",
|
|
|
|
- type: "0"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: "5-10万",
|
|
|
|
- type: "1"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: "10-15万",
|
|
|
|
- type: "2"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: "更多条件",
|
|
|
|
- type: "3"
|
|
|
|
- }
|
|
|
|
- ]);
|
|
|
|
- common_vendor.ref([
|
|
|
|
- {
|
|
|
|
- title: "大众",
|
|
|
|
- type: "0"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: "宝马",
|
|
|
|
- type: "1"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: "本田",
|
|
|
|
- type: "2"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: "丰田",
|
|
|
|
- type: "3"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: "更多品牌",
|
|
|
|
- type: "4"
|
|
|
|
- }
|
|
|
|
- ]);
|
|
|
|
const list = common_vendor.ref([]);
|
|
const list = common_vendor.ref([]);
|
|
const total = common_vendor.ref(0);
|
|
const total = common_vendor.ref(0);
|
|
const skip = common_vendor.ref(0);
|
|
const skip = common_vendor.ref(0);
|
|
@@ -265,6 +225,23 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
url: `/pagesHome/car/index?id=${item.id || item._id}`
|
|
url: `/pagesHome/car/index?id=${item.id || item._id}`
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+ const toImage = () => {
|
|
|
|
+ var _a2;
|
|
|
|
+ if (((_a2 = shop.value) == null ? void 0 : _a2.file.length) > 0) {
|
|
|
|
+ common_vendor.index.previewImage({
|
|
|
|
+ urls: [shop.value.file[0].url],
|
|
|
|
+ longPressActions: {
|
|
|
|
+ itemList: ["发送给朋友", "保存图片", "收藏"],
|
|
|
|
+ success: function(data) {
|
|
|
|
+ console.log("选中了第" + (data.tapIndex + 1) + "个按钮,第" + (data.index + 1) + "张图片");
|
|
|
|
+ },
|
|
|
|
+ fail: function(err) {
|
|
|
|
+ console.log(err.errMsg);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ };
|
|
const toPage = () => {
|
|
const toPage = () => {
|
|
if (total.value > list.value.length) {
|
|
if (total.value > list.value.length) {
|
|
common_vendor.index.showLoading({
|
|
common_vendor.index.showLoading({
|
|
@@ -279,22 +256,25 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
is_bottom.value = true;
|
|
is_bottom.value = true;
|
|
};
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return (_ctx, _cache) => {
|
|
|
|
+ var _a2;
|
|
return common_vendor.e({
|
|
return common_vendor.e({
|
|
- a: common_vendor.t(shop.value.name || "暂无"),
|
|
|
|
- b: common_vendor.t(shop.value.sale || "0"),
|
|
|
|
- c: common_vendor.t(shop.value.sold || "0"),
|
|
|
|
- d: common_vendor.t(shop.value.status == "0" ? "营业中" : "休息中"),
|
|
|
|
- e: common_vendor.t(shop.value.start_time || "8:00"),
|
|
|
|
- f: common_vendor.t(shop.value.end_time || "17:00"),
|
|
|
|
- g: common_vendor.p({
|
|
|
|
|
|
+ a: shop.value.logo && ((_a2 = shop.value.logo) == null ? void 0 : _a2.length) > 0 ? shop.value.logo[0].url : "https://cdn.uviewui.com/uview/album/1.jpg",
|
|
|
|
+ b: common_vendor.t(shop.value.name || "暂无"),
|
|
|
|
+ c: common_vendor.t(shop.value.sale || "0"),
|
|
|
|
+ d: common_vendor.t(shop.value.sold || "0"),
|
|
|
|
+ e: common_vendor.t(shop.value.status == "0" ? "营业中" : "休息中"),
|
|
|
|
+ f: common_vendor.t(shop.value.start_time || "8:00"),
|
|
|
|
+ g: common_vendor.t(shop.value.end_time || "17:00"),
|
|
|
|
+ h: common_vendor.p({
|
|
name: "file-text",
|
|
name: "file-text",
|
|
size: "16"
|
|
size: "16"
|
|
}),
|
|
}),
|
|
- h: common_vendor.p({
|
|
|
|
|
|
+ i: common_vendor.o(toImage),
|
|
|
|
+ j: common_vendor.p({
|
|
direction: "col"
|
|
direction: "col"
|
|
}),
|
|
}),
|
|
- i: common_vendor.t(shop.value.address || "暂无"),
|
|
|
|
- j: common_vendor.f(searchList.value, (item, index, i0) => {
|
|
|
|
|
|
+ k: common_vendor.t(shop.value.address || "暂无"),
|
|
|
|
+ l: common_vendor.f(searchList.value, (item, index, i0) => {
|
|
return common_vendor.e({
|
|
return common_vendor.e({
|
|
a: common_vendor.t(item.title),
|
|
a: common_vendor.t(item.title),
|
|
b: common_vendor.n(item.is_open == false ? "title_1" : "title_2"),
|
|
b: common_vendor.n(item.is_open == false ? "title_1" : "title_2"),
|
|
@@ -318,9 +298,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
i: common_vendor.o(($event) => toSearch(item), index)
|
|
i: common_vendor.o(($event) => toSearch(item), index)
|
|
});
|
|
});
|
|
}),
|
|
}),
|
|
- k: type.value == "0"
|
|
|
|
|
|
+ m: type.value == "0"
|
|
}, type.value == "0" ? {
|
|
}, type.value == "0" ? {
|
|
- l: common_vendor.f(sortList.value, (item, index, i0) => {
|
|
|
|
|
|
+ n: common_vendor.f(sortList.value, (item, index, i0) => {
|
|
return {
|
|
return {
|
|
a: common_vendor.t(item.title),
|
|
a: common_vendor.t(item.title),
|
|
b: common_vendor.n(item.is_open == false ? "title_1" : "title_2"),
|
|
b: common_vendor.n(item.is_open == false ? "title_1" : "title_2"),
|
|
@@ -329,7 +309,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
};
|
|
};
|
|
})
|
|
})
|
|
} : type.value == "2" ? {
|
|
} : type.value == "2" ? {
|
|
- n: common_vendor.f(moneyList.value, (item, index, i0) => {
|
|
|
|
|
|
+ p: common_vendor.f(moneyList.value, (item, index, i0) => {
|
|
return {
|
|
return {
|
|
a: common_vendor.t(item.title),
|
|
a: common_vendor.t(item.title),
|
|
b: common_vendor.n(item.is_open == false ? "title_1" : "title_2"),
|
|
b: common_vendor.n(item.is_open == false ? "title_1" : "title_2"),
|
|
@@ -338,7 +318,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
};
|
|
};
|
|
})
|
|
})
|
|
} : type.value == "3" ? {
|
|
} : type.value == "3" ? {
|
|
- p: common_vendor.f(yearList.value, (item, index, i0) => {
|
|
|
|
|
|
+ r: common_vendor.f(yearList.value, (item, index, i0) => {
|
|
return {
|
|
return {
|
|
a: common_vendor.t(item.title),
|
|
a: common_vendor.t(item.title),
|
|
b: common_vendor.n(item.is_open == false ? "title_1" : "title_2"),
|
|
b: common_vendor.n(item.is_open == false ? "title_1" : "title_2"),
|
|
@@ -347,7 +327,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
};
|
|
};
|
|
})
|
|
})
|
|
} : {
|
|
} : {
|
|
- q: common_vendor.f(yearList.value, (item, index, i0) => {
|
|
|
|
|
|
+ s: common_vendor.f(yearList.value, (item, index, i0) => {
|
|
return {
|
|
return {
|
|
a: common_vendor.t(item.title),
|
|
a: common_vendor.t(item.title),
|
|
b: common_vendor.n(item.is_open == false ? "title_1" : "title_2"),
|
|
b: common_vendor.n(item.is_open == false ? "title_1" : "title_2"),
|
|
@@ -356,45 +336,45 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
};
|
|
};
|
|
})
|
|
})
|
|
}, {
|
|
}, {
|
|
- m: type.value == "2",
|
|
|
|
- o: type.value == "3",
|
|
|
|
- r: is_show.value,
|
|
|
|
- s: common_vendor.o(toClose),
|
|
|
|
- t: Object.keys(brandInfo.value).length > 0 || Object.keys(moneyInfo.value).length > 0 || Object.keys(yearInfo.value).length > 0 || moreList.value.length > 0
|
|
|
|
|
|
+ o: type.value == "2",
|
|
|
|
+ q: type.value == "3",
|
|
|
|
+ t: is_show.value,
|
|
|
|
+ v: common_vendor.o(toClose),
|
|
|
|
+ w: Object.keys(brandInfo.value).length > 0 || Object.keys(moneyInfo.value).length > 0 || Object.keys(yearInfo.value).length > 0 || moreList.value.length > 0
|
|
}, Object.keys(brandInfo.value).length > 0 || Object.keys(moneyInfo.value).length > 0 || Object.keys(yearInfo.value).length > 0 || moreList.value.length > 0 ? common_vendor.e({
|
|
}, Object.keys(brandInfo.value).length > 0 || Object.keys(moneyInfo.value).length > 0 || Object.keys(yearInfo.value).length > 0 || moreList.value.length > 0 ? common_vendor.e({
|
|
- v: brandInfo.value && brandInfo.value.type
|
|
|
|
|
|
+ x: brandInfo.value && brandInfo.value.type
|
|
}, brandInfo.value && brandInfo.value.type ? {
|
|
}, brandInfo.value && brandInfo.value.type ? {
|
|
- w: common_vendor.t(brandInfo.value.title),
|
|
|
|
- x: common_vendor.p({
|
|
|
|
|
|
+ y: common_vendor.t(brandInfo.value.title),
|
|
|
|
+ z: common_vendor.p({
|
|
color: "#000",
|
|
color: "#000",
|
|
size: "14px",
|
|
size: "14px",
|
|
name: "close"
|
|
name: "close"
|
|
}),
|
|
}),
|
|
- y: common_vendor.o(($event) => toDelete({}, "0"))
|
|
|
|
|
|
+ A: common_vendor.o(($event) => toDelete({}, "0"))
|
|
} : {}, {
|
|
} : {}, {
|
|
- z: moneyInfo.value && moneyInfo.value.type
|
|
|
|
|
|
+ B: moneyInfo.value && moneyInfo.value.type
|
|
}, moneyInfo.value && moneyInfo.value.type ? {
|
|
}, moneyInfo.value && moneyInfo.value.type ? {
|
|
- A: common_vendor.t(moneyInfo.value.title),
|
|
|
|
- B: common_vendor.p({
|
|
|
|
|
|
+ C: common_vendor.t(moneyInfo.value.title),
|
|
|
|
+ D: common_vendor.p({
|
|
color: "#000",
|
|
color: "#000",
|
|
size: "14px",
|
|
size: "14px",
|
|
name: "close"
|
|
name: "close"
|
|
}),
|
|
}),
|
|
- C: common_vendor.o(($event) => toDelete({}, "1"))
|
|
|
|
|
|
+ E: common_vendor.o(($event) => toDelete({}, "1"))
|
|
} : {}, {
|
|
} : {}, {
|
|
- D: yearInfo.value && yearInfo.value.type
|
|
|
|
|
|
+ F: yearInfo.value && yearInfo.value.type
|
|
}, yearInfo.value && yearInfo.value.type ? {
|
|
}, yearInfo.value && yearInfo.value.type ? {
|
|
- E: common_vendor.t(yearInfo.value.title),
|
|
|
|
- F: common_vendor.p({
|
|
|
|
|
|
+ G: common_vendor.t(yearInfo.value.title),
|
|
|
|
+ H: common_vendor.p({
|
|
color: "#000",
|
|
color: "#000",
|
|
size: "14px",
|
|
size: "14px",
|
|
name: "close"
|
|
name: "close"
|
|
}),
|
|
}),
|
|
- G: common_vendor.o(($event) => toDelete({}, "2"))
|
|
|
|
|
|
+ I: common_vendor.o(($event) => toDelete({}, "2"))
|
|
} : {}, {
|
|
} : {}, {
|
|
- H: moreList.value.length > 0
|
|
|
|
|
|
+ J: moreList.value.length > 0
|
|
}, moreList.value.length > 0 ? {
|
|
}, moreList.value.length > 0 ? {
|
|
- I: common_vendor.f(moreList.value, (item, index, i0) => {
|
|
|
|
|
|
+ K: common_vendor.f(moreList.value, (item, index, i0) => {
|
|
return {
|
|
return {
|
|
a: common_vendor.t(item.title),
|
|
a: common_vendor.t(item.title),
|
|
b: "88a3d2e5-7-" + i0,
|
|
b: "88a3d2e5-7-" + i0,
|
|
@@ -402,15 +382,15 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
d: common_vendor.o(($event) => toDelete(item, "3"), index)
|
|
d: common_vendor.o(($event) => toDelete(item, "3"), index)
|
|
};
|
|
};
|
|
}),
|
|
}),
|
|
- J: common_vendor.p({
|
|
|
|
|
|
+ L: common_vendor.p({
|
|
color: "#000",
|
|
color: "#000",
|
|
size: "14px",
|
|
size: "14px",
|
|
name: "close"
|
|
name: "close"
|
|
})
|
|
})
|
|
} : {}, {
|
|
} : {}, {
|
|
- K: common_vendor.o(toReset)
|
|
|
|
|
|
+ M: common_vendor.o(toReset)
|
|
}) : {}, {
|
|
}) : {}, {
|
|
- L: common_vendor.f(list.value, (item, index, i0) => {
|
|
|
|
|
|
+ N: common_vendor.f(list.value, (item, index, i0) => {
|
|
return common_vendor.e({
|
|
return common_vendor.e({
|
|
a: item.file && item.file.length > 0 ? item.file[0].url : "",
|
|
a: item.file && item.file.length > 0 ? item.file[0].url : "",
|
|
b: common_vendor.t(item.series || "暂无"),
|
|
b: common_vendor.t(item.series || "暂无"),
|
|
@@ -433,13 +413,13 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
m: common_vendor.o(($event) => toView(item), index)
|
|
m: common_vendor.o(($event) => toView(item), index)
|
|
});
|
|
});
|
|
}),
|
|
}),
|
|
- M: is_bottom.value
|
|
|
|
|
|
+ O: is_bottom.value
|
|
}, is_bottom.value ? {
|
|
}, is_bottom.value ? {
|
|
- N: common_vendor.t(config.value.bottom_title || "没有更多了!")
|
|
|
|
|
|
+ P: common_vendor.t(config.value.bottom_title || "没有更多了!")
|
|
} : {}, {
|
|
} : {}, {
|
|
- O: common_vendor.o(toPage),
|
|
|
|
- P: common_vendor.o(toChat),
|
|
|
|
- Q: common_vendor.p({
|
|
|
|
|
|
+ Q: common_vendor.o(toPage),
|
|
|
|
+ R: common_vendor.o(toChat),
|
|
|
|
+ S: common_vendor.p({
|
|
icon: "phone",
|
|
icon: "phone",
|
|
text: "电话联系",
|
|
text: "电话联系",
|
|
size: "normal",
|
|
size: "normal",
|