"use strict";
const common_vendor = require("../../common/vendor.js");
const api_kqjl = require("../../api/kqjl.js");
if (!Math) {
  (SsSearchButton + Icon + SsCard)();
}
const SsSearchButton = () => "../../components/SsSearchButton/index.js";
const SsCard = () => "../../components/SsCard/index.js";
const Icon = () => "../../components/icon/index.js";
const _sfc_main = {
  __name: "kqjl_bzrDm_list",
  setup(__props) {
    const handleAddDm = () => {
      common_vendor.index.__f__("log", "at pages/kqjl/kqjl_bzrDm_list.vue:70", "点击了新增点名");
      common_vendor.index.navigateTo({
        url: "/pages/kqjl/kqjl_bzrDm"
      });
    };
    const handleCardClick = (item) => {
      common_vendor.index.__f__("log", "at pages/kqjl/kqjl_bzrDm_list.vue:78", "点击了卡片", item);
      common_vendor.index.showToast({
        title: `点击了${item.time} ${item.period}的点名`,
        icon: "none"
      });
    };
    const list = common_vendor.ref([
      {
        time: "2025/06/30",
        period: "上午",
        class: "一年级一班",
        chidao: 10,
        zaotui: 0,
        kongke: 1,
        qingjia: 2
      },
      {
        time: "2025/06/29",
        period: "晚上",
        class: "一年级一班",
        chidao: 10,
        zaotui: 1,
        kongke: 0,
        qingjia: 2
      }
    ]);
    common_vendor.onMounted(async () => {
      try {
        const res = await api_kqjl.kqjlApi.bjdm_cx({});
        common_vendor.index.__f__("log", "at pages/kqjl/kqjl_bzrDm_list.vue:109", "点名列表数据", res);
        list.value = res.data;
      } catch (error) {
        common_vendor.index.__f__("error", "at pages/kqjl/kqjl_bzrDm_list.vue:112", "获取点名列表数据失败", error);
      }
    });
    return (_ctx, _cache) => {
      return {
        a: common_vendor.o(handleAddDm),
        b: common_vendor.p({
          text: "新增点名"
        }),
        c: common_vendor.f(list.value, (item, k0, i0) => {
          return {
            a: common_vendor.t(item.time),
            b: common_vendor.t(item.period),
            c: common_vendor.t(item.class),
            d: common_vendor.t(item.chidao),
            e: common_vendor.t(item.kongke),
            f: common_vendor.t(item.zaotui),
            g: "d70c11ed-2-" + i0 + "," + ("d70c11ed-1-" + i0),
            h: common_vendor.t(item.qingjia),
            i: item.time,
            j: common_vendor.o(($event) => handleCardClick(item), item.time),
            k: "d70c11ed-1-" + i0
          };
        }),
        d: common_vendor.p({
          name: "icon-qingjia",
          size: "32",
          color: "#FFA500"
        }),
        e: common_vendor.gei(_ctx, "")
      };
    };
  }
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d70c11ed"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/kqjl/kqjl_bzrDm_list.js.map
