Liuyi
2024-09-27 9ac5049e08ba842663761a432b41d36d3d1b2089
unpackage/dist/dev/mp-weixin/pages/address/index.js
@@ -1,6 +1,6 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {};
const common_assets = require("../../common/assets.js");
if (!Array) {
  const _easycom_navbar2 = common_vendor.resolveComponent("navbar");
  _easycom_navbar2();
@@ -9,12 +9,44 @@
if (!Math) {
  _easycom_navbar();
}
function _sfc_render(_ctx, _cache) {
  return {
    a: common_vendor.p({
      title: "地址管理"
    })
  };
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
const _sfc_main = {
  __name: "index",
  setup(__props) {
    const addressList = common_vendor.ref([
      { name: "张大左", phone: "13512334002", address: "重庆 重庆市 北碚区 互联网产业生态园 2-5-1", checked: true, id: "12" },
      { name: "张大左", phone: "13512334002", address: "重庆 重庆市 北碚区 互联网产业生态园 2-5-1", checked: true, id: "12" },
      { name: "张大左", phone: "13512334002", address: "重庆 重庆市 北碚区 互联网产业生态园 2-5-1", checked: true, id: "12" },
      { name: "张大左", phone: "13512334002", address: "重庆 重庆市 北碚区 互联网产业生态园 2-5-1", checked: true, id: "12" },
      { name: "张大左", phone: "13512334002", address: "重庆 重庆市 北碚区 互联网产业生态园 2-5-1", checked: true, id: "12" },
      { name: "张大左", phone: "13512334002", address: "重庆 重庆市 北碚区 互联网产业生态园 2-5-1", checked: true, id: "12" },
      { name: "", phone: "", address: "", checked: false, id: "" },
      { name: "", phone: "", address: "", checked: false, id: "" },
      { name: "", phone: "", address: "", checked: false, id: "" }
    ]);
    function navTo() {
      common_vendor.index.navigateTo({
        url: "/pages/addressAdd/index"
      });
    }
    return (_ctx, _cache) => {
      return {
        a: common_vendor.p({
          title: "地址管理"
        }),
        b: common_vendor.f(addressList.value, (item, index, i0) => {
          return {
            a: common_vendor.t(item.name),
            b: common_vendor.t(item.phone),
            c: common_vendor.t(item.address),
            d: item.id,
            e: item.checked
          };
        }),
        c: common_assets._imports_0$4,
        d: common_assets._imports_1$1,
        e: common_vendor.o(($event) => navTo())
      };
    };
  }
};
wx.createPage(_sfc_main);