xiaokuaisong-xiaochengxu/uniapp04/unpackage/dist/dev/mp-weixin/pages/foodCode/foodCode.js

36 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-10-18 07:53:00 +00:00
"use strict";
const common_vendor = require("../../common/vendor.js");
2025-04-11 06:42:29 +00:00
const common_assets = require("../../common/assets.js");
2024-10-18 07:53:00 +00:00
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "foodCode",
setup(__props) {
const orderNo = common_vendor.ref("");
common_vendor.onMounted(() => {
onLoad();
});
function onLoad() {
const pages = getCurrentPages();
const currentPage = pages[pages.length - 1];
if (currentPage && currentPage.options && currentPage.options.orderNo) {
orderNo.value = decodeURIComponent(currentPage.options.orderNo);
console.log(`Received Order No.: ${orderNo.value}`);
} else {
console.error("Order No. was not provided or could not be decoded.");
}
}
return (_ctx, _cache) => {
return {
a: common_vendor.t(orderNo.value),
2025-04-11 06:42:29 +00:00
b: common_assets._imports_0$6,
c: common_vendor.f(1, (item, k0, i0) => {
2024-10-18 07:53:00 +00:00
return {
a: item
};
}),
2025-04-11 06:42:29 +00:00
d: `/pages/goods/goods?id=1`
2024-10-18 07:53:00 +00:00
};
};
}
});
2025-04-11 06:42:29 +00:00
wx.createPage(_sfc_main);