|
@@ -28,7 +28,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
const list = common_vendor.ref([]);
|
|
const list = common_vendor.ref([]);
|
|
const emissionList = common_vendor.ref([]);
|
|
const emissionList = common_vendor.ref([]);
|
|
const boxTypeList = common_vendor.ref([]);
|
|
const boxTypeList = common_vendor.ref([]);
|
|
- const displacementList = common_vendor.ref([]);
|
|
|
|
common_vendor.onLoad(async (options) => {
|
|
common_vendor.onLoad(async (options) => {
|
|
id.value = options && options.id;
|
|
id.value = options && options.id;
|
|
await searchConfig();
|
|
await searchConfig();
|
|
@@ -92,9 +91,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
res = await $api(`dictData`, "GET", { code: "emission", is_use: "0" });
|
|
res = await $api(`dictData`, "GET", { code: "emission", is_use: "0" });
|
|
if (res.errcode === 0)
|
|
if (res.errcode === 0)
|
|
emissionList.value = res.data;
|
|
emissionList.value = res.data;
|
|
- res = await $api(`dictData`, "GET", { code: "displacement", is_use: "0" });
|
|
|
|
- if (res.errcode === 0)
|
|
|
|
- displacementList.value = res.data;
|
|
|
|
};
|
|
};
|
|
const getDict = (data, model) => {
|
|
const getDict = (data, model) => {
|
|
let list2;
|
|
let list2;
|
|
@@ -105,9 +101,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
case "emission":
|
|
case "emission":
|
|
list2 = emissionList.value;
|
|
list2 = emissionList.value;
|
|
break;
|
|
break;
|
|
- case "displacement":
|
|
|
|
- list2 = displacementList.value;
|
|
|
|
- break;
|
|
|
|
}
|
|
}
|
|
if (!list2)
|
|
if (!list2)
|
|
return;
|
|
return;
|
|
@@ -135,7 +128,10 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
console.log("拨打电话成功");
|
|
console.log("拨打电话成功");
|
|
},
|
|
},
|
|
fail: function() {
|
|
fail: function() {
|
|
- console.log("拨打电话失败");
|
|
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "拨打电话失败",
|
|
|
|
+ icon: "error"
|
|
|
|
+ });
|
|
}
|
|
}
|
|
});
|
|
});
|
|
};
|
|
};
|
|
@@ -146,7 +142,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
};
|
|
};
|
|
const toMore = () => {
|
|
const toMore = () => {
|
|
common_vendor.index.navigateTo({
|
|
common_vendor.index.navigateTo({
|
|
- url: `/pagesHome/picture/index?id=${info.value.id || info.value._id}`
|
|
|
|
|
|
+ url: `/pagesHome/picture/index?id=${info.value.id || info.value._id}&shop=${shop.value._id}`
|
|
});
|
|
});
|
|
};
|
|
};
|
|
const toCollect = () => {
|
|
const toCollect = () => {
|
|
@@ -177,59 +173,57 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
name: "arrow-right",
|
|
name: "arrow-right",
|
|
size: "12"
|
|
size: "12"
|
|
}),
|
|
}),
|
|
- m: common_vendor.t(info.value.rank),
|
|
|
|
- n: common_vendor.t(info.value.rankNum),
|
|
|
|
- o: common_vendor.p({
|
|
|
|
- name: "arrow-right",
|
|
|
|
- size: "12"
|
|
|
|
- }),
|
|
|
|
- p: common_vendor.t(info.value.first_pay),
|
|
|
|
- q: common_vendor.p({
|
|
|
|
|
|
+ m: common_vendor.t(info.value.first_pay),
|
|
|
|
+ n: common_vendor.p({
|
|
name: "arrow-right",
|
|
name: "arrow-right",
|
|
size: "16"
|
|
size: "16"
|
|
}),
|
|
}),
|
|
- r: common_vendor.t(common_vendor.unref(common_vendor.hooks)(info.value.f_time).format("YYYY-MM") || "暂无日期"),
|
|
|
|
- s: common_vendor.t(info.value.mileage || "暂无"),
|
|
|
|
- t: common_vendor.t(getDict(info.value.emission, "emission")),
|
|
|
|
- v: common_vendor.t(info.value.place || "暂无"),
|
|
|
|
- w: common_vendor.o(toRecord),
|
|
|
|
- x: common_vendor.p({
|
|
|
|
|
|
+ o: common_vendor.o(toChat),
|
|
|
|
+ p: common_vendor.t(common_vendor.unref(common_vendor.hooks)(info.value.f_time).format("YYYY-MM") || "暂无日期"),
|
|
|
|
+ q: common_vendor.t(info.value.mileage || "暂无"),
|
|
|
|
+ r: common_vendor.t(getDict(info.value.emission, "emission")),
|
|
|
|
+ s: common_vendor.t(info.value.place || "暂无"),
|
|
|
|
+ t: common_vendor.o(toRecord),
|
|
|
|
+ v: common_vendor.p({
|
|
name: "arrow-right",
|
|
name: "arrow-right",
|
|
size: "16"
|
|
size: "16"
|
|
}),
|
|
}),
|
|
- y: common_vendor.t(getDict(info.value.displacement, "displacement")),
|
|
|
|
- z: common_vendor.t(info.value.wheelbase),
|
|
|
|
- A: common_vendor.t(getDict(info.value.type, "type")),
|
|
|
|
- B: common_vendor.t(info.value.oil),
|
|
|
|
- C: shop.value.logo && ((_b = shop.value.logo) == null ? void 0 : _b.length) > 0 ? shop.value.logo[0].url : "https://cdn.uviewui.com/uview/album/1.jpg",
|
|
|
|
- D: common_vendor.t(shop.value.name || "暂无"),
|
|
|
|
- E: common_vendor.p({
|
|
|
|
|
|
+ w: common_vendor.t(info.value.hundred_time || "0"),
|
|
|
|
+ x: common_vendor.t(info.value.displacement || "暂无"),
|
|
|
|
+ y: common_vendor.t(info.value.wheelbase || "暂无"),
|
|
|
|
+ z: common_vendor.t(getDict(info.value.type, "type")),
|
|
|
|
+ A: common_vendor.t(info.value.oil || "0"),
|
|
|
|
+ B: common_vendor.t(info.value.premium || "0"),
|
|
|
|
+ C: common_vendor.t(info.value.maintenance || "0"),
|
|
|
|
+ D: shop.value.logo && ((_b = shop.value.logo) == null ? void 0 : _b.length) > 0 ? shop.value.logo[0].url : "https://cdn.uviewui.com/uview/album/1.jpg",
|
|
|
|
+ E: common_vendor.t(shop.value.name || "暂无"),
|
|
|
|
+ F: common_vendor.p({
|
|
bold: true,
|
|
bold: true,
|
|
color: "#000",
|
|
color: "#000",
|
|
name: "arrow-right",
|
|
name: "arrow-right",
|
|
size: "16"
|
|
size: "16"
|
|
}),
|
|
}),
|
|
- F: common_vendor.o(toShop),
|
|
|
|
- G: common_vendor.t(shop.value.num || 0),
|
|
|
|
- H: common_vendor.o(toChat),
|
|
|
|
- I: common_vendor.p({
|
|
|
|
|
|
+ G: common_vendor.o(toShop),
|
|
|
|
+ H: common_vendor.t(shop.value.num || 0),
|
|
|
|
+ I: common_vendor.o(toChat),
|
|
|
|
+ J: common_vendor.p({
|
|
icon: "phone",
|
|
icon: "phone",
|
|
text: "咨询卖家车况",
|
|
text: "咨询卖家车况",
|
|
size: "normal",
|
|
size: "normal",
|
|
type: "info"
|
|
type: "info"
|
|
}),
|
|
}),
|
|
- J: info.value.file && ((_c = info.value.file) == null ? void 0 : _c.length) > 0 ? info.value.file[0].url : "https://cdn.uviewui.com/uview/album/1.jpg",
|
|
|
|
- K: info.value.file && ((_d = info.value.file) == null ? void 0 : _d.length) > 1 ? info.value.file[1].url : "https://cdn.uviewui.com/uview/album/5.jpg",
|
|
|
|
- L: info.value.file && ((_e = info.value.file) == null ? void 0 : _e.length) > 2 ? info.value.file[2].url : "https://cdn.uviewui.com/uview/album/2.jpg",
|
|
|
|
- M: info.value.file && ((_f = info.value.file) == null ? void 0 : _f.length) > 3 ? info.value.file[3].url : "https://cdn.uviewui.com/uview/album/3.jpg",
|
|
|
|
- N: info.value.file && ((_g = info.value.file) == null ? void 0 : _g.length) > 4 ? info.value.file[4].url : "https://cdn.uviewui.com/uview/album/4.jpg",
|
|
|
|
- O: common_vendor.o(toMore),
|
|
|
|
- P: common_vendor.p({
|
|
|
|
|
|
+ K: info.value.file && ((_c = info.value.file) == null ? void 0 : _c.length) > 0 ? info.value.file[0].url : "https://cdn.uviewui.com/uview/album/1.jpg",
|
|
|
|
+ L: info.value.file && ((_d = info.value.file) == null ? void 0 : _d.length) > 1 ? info.value.file[1].url : "https://cdn.uviewui.com/uview/album/5.jpg",
|
|
|
|
+ M: info.value.file && ((_e = info.value.file) == null ? void 0 : _e.length) > 2 ? info.value.file[2].url : "https://cdn.uviewui.com/uview/album/2.jpg",
|
|
|
|
+ N: info.value.file && ((_f = info.value.file) == null ? void 0 : _f.length) > 3 ? info.value.file[3].url : "https://cdn.uviewui.com/uview/album/3.jpg",
|
|
|
|
+ O: info.value.file && ((_g = info.value.file) == null ? void 0 : _g.length) > 4 ? info.value.file[4].url : "https://cdn.uviewui.com/uview/album/4.jpg",
|
|
|
|
+ P: common_vendor.o(toMore),
|
|
|
|
+ Q: common_vendor.p({
|
|
text: "查看更多图片",
|
|
text: "查看更多图片",
|
|
size: "normal",
|
|
size: "normal",
|
|
type: "info"
|
|
type: "info"
|
|
}),
|
|
}),
|
|
- Q: common_vendor.f(list.value, (item, index, i0) => {
|
|
|
|
|
|
+ R: 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 || "暂无"),
|
|
@@ -252,20 +246,20 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
m: common_vendor.o(($event) => toView(item), index)
|
|
m: common_vendor.o(($event) => toView(item), index)
|
|
});
|
|
});
|
|
}),
|
|
}),
|
|
- R: common_vendor.p({
|
|
|
|
|
|
+ S: common_vendor.p({
|
|
color: "#000",
|
|
color: "#000",
|
|
name: "red-packet",
|
|
name: "red-packet",
|
|
size: "20"
|
|
size: "20"
|
|
}),
|
|
}),
|
|
- S: common_vendor.o(toChat),
|
|
|
|
- T: common_vendor.p({
|
|
|
|
|
|
+ T: common_vendor.o(toChat),
|
|
|
|
+ U: common_vendor.p({
|
|
color: "#000",
|
|
color: "#000",
|
|
name: "heart",
|
|
name: "heart",
|
|
size: "20"
|
|
size: "20"
|
|
}),
|
|
}),
|
|
- U: common_vendor.o(toCollect),
|
|
|
|
- V: common_vendor.o(toChat),
|
|
|
|
- W: common_vendor.o(toChat)
|
|
|
|
|
|
+ V: common_vendor.o(toCollect),
|
|
|
|
+ W: common_vendor.o(toChat),
|
|
|
|
+ X: common_vendor.o(toChat)
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
}
|