"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const pages_mixins_pullRefreshMixin = require("../mixins/pullRefreshMixin.js");
|
|
const _sfc_main = {
|
|
mixins: [pages_mixins_pullRefreshMixin.pullRefreshMixin],
|
|
data() {
|
|
return {
|
|
isQualified: false,
|
|
// 是否合格
|
|
orderNo: "RE82738127861525",
|
|
// 回收编号
|
|
pickupTime: "2025-04-20 11:00",
|
|
// 回收时间
|
|
resultDescription: "感谢您参与旧衣回收活动,支持环保事业。",
|
|
// 结果说明
|
|
reasons: [
|
|
{
|
|
title: "大面积破损",
|
|
detail: "破损无法修复"
|
|
},
|
|
{
|
|
title: "污渍无法清除",
|
|
detail: "严重污渍"
|
|
},
|
|
{
|
|
title: "附件缺失",
|
|
detail: "重要配件缺失"
|
|
},
|
|
{
|
|
title: "带有危险物品",
|
|
detail: "不符合安全标准"
|
|
},
|
|
{
|
|
title: "尺寸过小",
|
|
detail: "不符合回收标准"
|
|
},
|
|
{
|
|
title: "尺寸过大",
|
|
detail: "超出处理范围"
|
|
}
|
|
]
|
|
};
|
|
},
|
|
onLoad(options) {
|
|
if (options.status) {
|
|
this.isQualified = options.status === "qualified";
|
|
this.resultDescription = this.isQualified ? "我们已收到您的旧衣,并完成质检。很高兴地通知您,此次回收的旧衣全部符合回收标准。" : "感谢您参与旧衣回收活动,支持环保事业。我们已收到您的旧衣,并完成质检。遗憾地通知您,此次回收的部分旧衣不符合回收标准。";
|
|
}
|
|
},
|
|
methods: {
|
|
async onRefresh() {
|
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
common_vendor.index.stopPullRefresh();
|
|
},
|
|
goBack() {
|
|
common_vendor.index.navigateBack();
|
|
},
|
|
viewDetail(reason) {
|
|
common_vendor.index.showModal({
|
|
title: reason.title,
|
|
content: reason.detail,
|
|
showCancel: false
|
|
});
|
|
},
|
|
reorder() {
|
|
common_vendor.index.navigateTo({
|
|
url: "/pages/pickup/index"
|
|
});
|
|
}
|
|
}
|
|
};
|
|
const __injectCSSVars__ = () => {
|
|
common_vendor.useCssVars((_ctx) => ({
|
|
"f5ca2768": _ctx.isQualified ? "0" : "calc(120rpx + env(safe-area-inset-bottom))"
|
|
}));
|
|
};
|
|
const __setup__ = _sfc_main.setup;
|
|
_sfc_main.setup = __setup__ ? (props, ctx) => {
|
|
__injectCSSVars__();
|
|
return __setup__(props, ctx);
|
|
} : __injectCSSVars__;
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return common_vendor.e({
|
|
a: common_vendor.o((...args) => $options.goBack && $options.goBack(...args)),
|
|
b: common_vendor.t($data.isQualified ? "合格" : "不合格"),
|
|
c: common_vendor.n($data.isQualified ? "qualified" : "unqualified"),
|
|
d: common_vendor.t($data.resultDescription),
|
|
e: common_vendor.t($data.orderNo),
|
|
f: common_vendor.t($data.pickupTime),
|
|
g: !$data.isQualified
|
|
}, !$data.isQualified ? {
|
|
h: common_vendor.f($data.reasons, (reason, index, i0) => {
|
|
return {
|
|
a: common_vendor.t(reason.title),
|
|
b: common_vendor.o(($event) => $options.viewDetail(reason), index),
|
|
c: index
|
|
};
|
|
})
|
|
} : {}, {
|
|
i: !$data.isQualified
|
|
}, !$data.isQualified ? {
|
|
j: common_vendor.o((...args) => $options.reorder && $options.reorder(...args))
|
|
} : {}, {
|
|
k: common_vendor.s(_ctx.__cssVars())
|
|
});
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-11a7f7fa"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/subcomponent/inspection.js.map
|