"use strict"; const common_vendor = require("../../common/vendor.js"); const _sfc_main = { data() { return { status: "problem", // 'problem' or 'qualified' testingStatus: "", testingInstructions: "", testingTime: "", testingImages: [], statusBarHeight: 0, navBarHeight: 44, navBarTotalHeight: 44, // 质量问题示例数据 problemList: [ { title: "大面积破损", images: [ "https://oss.budingxiaoshuo.com/upload/组46584_1747804049771.png", "https://oss.budingxiaoshuo.com/upload/组46584_1747804049771.png" ] }, { title: "大面积破损", images: [ "https://oss.budingxiaoshuo.com/upload/组46584_1747804049771.png", "https://oss.budingxiaoshuo.com/upload/组46584_1747804049771.png", "https://oss.budingxiaoshuo.com/upload/组46584_1747804049771.png" ] }, { title: "大面积破损", images: [ "https://oss.budingxiaoshuo.com/upload/组46584_1747804049771.png", "https://oss.budingxiaoshuo.com/upload/组46584_1747804049771.png", "https://oss.budingxiaoshuo.com/upload/组46584_1747804049771.png", "https://oss.budingxiaoshuo.com/upload/组46584_1747804049771.png" ] } ], // 合格图片示例 qualifiedImages: [ "https://oss.budingxiaoshuo.com/upload/组46584_1747804049771.png" ] }; }, onLoad(options) { const sysInfo = common_vendor.index.getSystemInfoSync(); this.statusBarHeight = sysInfo.statusBarHeight; this.navBarHeight = 44; this.navBarTotalHeight = this.statusBarHeight + this.navBarHeight; if (options && options.status) { this.status = options.status; } if (options.testingStatus) { this.testingStatus = options.testingStatus; } if (options.testingInstructions) { this.testingInstructions = decodeURIComponent(options.testingInstructions); } if (options.testingTime) { this.testingTime = decodeURIComponent(options.testingTime); } if (options.testingImages) { this.testingImages = decodeURIComponent(options.testingImages).split(","); } if (this.status === "problem") { this.problemList = [ { title: this.testingInstructions || "质量问题", images: this.testingImages } ]; } else if (this.status === "qualified") { this.qualifiedImages = this.testingImages; } }, methods: { navigateBack() { common_vendor.index.navigateBack(); } } }; if (!Array) { const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); _easycom_uni_icons2(); } const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; if (!Math) { _easycom_uni_icons(); } function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return common_vendor.e({ a: common_vendor.p({ type: "left", size: "22", color: "#222" }), b: common_vendor.o((...args) => $options.navigateBack && $options.navigateBack(...args)), c: common_vendor.p({ type: "more-filled", size: "22", color: "#222" }), d: common_vendor.p({ type: "camera", size: "22", color: "#222" }), e: $data.navBarTotalHeight + "px", f: $data.statusBarHeight + "px", g: $data.status === "problem" }, $data.status === "problem" ? { h: common_vendor.t($data.testingTime), i: common_vendor.f($data.problemList, (item, idx, i0) => { return { a: common_vendor.t((idx + 1).toString().padStart(2, "0")), b: common_vendor.f(item.images, (img, i, i1) => { return { a: i, b: img }; }), c: idx }; }), j: common_vendor.t($data.problemList.length.toString().padStart(2, "0")), k: common_vendor.t($data.testingInstructions || "质量问题"), l: common_vendor.t($data.testingTime) } : $data.status === "qualified" ? { n: common_vendor.t($data.testingTime), o: common_vendor.t($data.qualifiedImages.length < 10 ? "0" + $data.qualifiedImages.length : $data.qualifiedImages.length), p: common_vendor.f($data.qualifiedImages, (img, i, i0) => { return { a: i, b: img }; }), q: common_vendor.t($data.testingTime) } : {}, { m: $data.status === "qualified", r: $data.navBarTotalHeight + "px" }); } const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-381f9063"]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/subcomponent/inspection-detail.js.map