73 lines
2.1 KiB
JavaScript
73 lines
2.1 KiB
JavaScript
"use strict";
|
|
var __async = (__this, __arguments, generator) => {
|
|
return new Promise((resolve, reject) => {
|
|
var fulfilled = (value) => {
|
|
try {
|
|
step(generator.next(value));
|
|
} catch (e) {
|
|
reject(e);
|
|
}
|
|
};
|
|
var rejected = (value) => {
|
|
try {
|
|
step(generator.throw(value));
|
|
} catch (e) {
|
|
reject(e);
|
|
}
|
|
};
|
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
});
|
|
};
|
|
const common_vendor = require("../../../../common/vendor.js");
|
|
const sheep_api_trade_afterSale = require("../../../../sheep/api/trade/afterSale.js");
|
|
if (!Array) {
|
|
const _easycom_s_layout2 = common_vendor.resolveComponent("s-layout");
|
|
const _component_layout_default_uni = common_vendor.resolveComponent("layout-default-uni");
|
|
(_easycom_s_layout2 + _component_layout_default_uni)();
|
|
}
|
|
const _easycom_s_layout = () => "../../../../sheep/components/s-layout/s-layout.js";
|
|
if (!Math) {
|
|
(logItem + _easycom_s_layout)();
|
|
}
|
|
const logItem = () => "./log-item.js";
|
|
const _sfc_main = {
|
|
__name: "log",
|
|
setup(__props) {
|
|
const state = common_vendor.reactive({
|
|
list: []
|
|
});
|
|
function getDetail(id) {
|
|
return __async(this, null, function* () {
|
|
const { data } = yield sheep_api_trade_afterSale.AfterSaleApi.getAfterSaleLogList(id);
|
|
state.list = data;
|
|
});
|
|
}
|
|
common_vendor.onLoad((options) => {
|
|
state.aftersaleId = options.id;
|
|
getDetail(options.id);
|
|
});
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.f(state.list, (item, index, i0) => {
|
|
return {
|
|
a: "835344e9-2-" + i0 + ",835344e9-1",
|
|
b: common_vendor.p({
|
|
item,
|
|
index,
|
|
data: state.list
|
|
}),
|
|
c: item.id
|
|
};
|
|
}),
|
|
b: common_vendor.p({
|
|
title: "售后进度"
|
|
})
|
|
};
|
|
};
|
|
}
|
|
};
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-835344e9"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=log.js.map
|