| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const utils_utils = require("../../utils/utils.js");
- const _sfc_main = {
- __name: "index",
- setup(__props) {
- const diners = common_vendor.ref(12);
- const currentDiners = common_vendor.ref(2);
- const addDiners = () => {
- diners.value = 16;
- };
- const selectDiners = (item) => {
- currentDiners.value = item;
- };
- const toOrderFood = () => {
- common_vendor.index.setStorageSync("currentDiners", currentDiners.value);
- utils_utils.go("/pages/orderFood/index");
- };
- common_vendor.onLoad((e) => {
- let currentDiners2 = common_vendor.index.getStorageSync("currentDiners");
- if (currentDiners2)
- currentDiners2.value = currentDiners2;
- });
- return (_ctx, _cache) => {
- return common_vendor.e({
- a: common_vendor.f(diners.value, (item, k0, i0) => {
- return {
- a: common_vendor.t(item),
- b: currentDiners.value === item ? 1 : "",
- c: item,
- d: common_vendor.o(($event) => selectDiners(item), item)
- };
- }),
- b: diners.value < 16
- }, diners.value < 16 ? {
- c: common_vendor.o(addDiners)
- } : {}, {
- d: common_vendor.o(toOrderFood)
- });
- };
- }
- };
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-aa63678d"]]);
- wx.createPage(MiniProgramPage);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/numberOfDiners/index.js.map
|