"use strict"; const common_vendor = require("../../common/vendor.js"); const utils_assets = require("../../utils/assets.js"); const ErpTabBar = () => "../../components/erp-tab-bar/erp-tab-bar.js"; const _sfc_main = { components: { ErpTabBar }, data() { return { assets: utils_assets.assets, statusBarHeight: 0, currentBanner: 0, banners: [ { url: "/static/index/banner2.jpg", tag: "建筑美学", title: "高端系统门窗", subTitle: "智造美好生活空间" }, { url: "/static/index/banner1.jpg", tag: "领航品质", title: "工业铝型材定制", subTitle: "提供一站式工业型材解决方案" } ], cubeProducts: [ { name: "建筑铝材", desc: "门窗/幕墙/家装", image: "/static/index/cube1.jpg" }, { name: "工业型材", desc: "光伏/轨道/汽配", image: "/static/index/cube2.jpg" }, { name: "特种定制", desc: "精密开模/特种合金", image: "/static/index/cube3.jpg" }, { name: "深加工", desc: "切割/冲压/CNC", image: "/static/index/cube4.jpg" } ] }; }, onLoad() { }, methods: { handleBannerChange(e) { this.currentBanner = e.detail.current; }, callService() { common_vendor.index.showModal({ title: "管家式服务", content: "即将为您拨打华晟型材专家电话 13888888888", confirmText: "立即咨询", confirmColor: "#C1001C", cancelText: "稍后再说", cancelColor: "#999", success: (res) => { if (res.confirm) { common_vendor.index.makePhoneCall({ phoneNumber: "13888888888" }); } } }); }, goToOrder() { common_vendor.index.reLaunch({ url: "/pages/order/order" }); } } }; if (!Array) { const _easycom_erp_tab_bar2 = common_vendor.resolveComponent("erp-tab-bar"); _easycom_erp_tab_bar2(); } const _easycom_erp_tab_bar = () => "../../components/erp-tab-bar/erp-tab-bar.js"; if (!Math) { _easycom_erp_tab_bar(); } function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return { a: common_vendor.f($data.banners, (item, index, i0) => { return { a: item.url, b: common_vendor.t(item.tag), c: common_vendor.t(item.title), d: common_vendor.t(item.subTitle), e: index }; }), b: common_vendor.o((...args) => $options.handleBannerChange && $options.handleBannerChange(...args)), c: common_vendor.f($data.banners, (item, index, i0) => { return { a: index, b: $data.currentBanner === index ? 1 : "" }; }), d: common_vendor.o((...args) => $options.callService && $options.callService(...args)), e: common_vendor.f($data.cubeProducts, (item, index, i0) => { return { a: item.image, b: common_vendor.t(item.name), c: common_vendor.t(item.desc), d: index, e: common_vendor.o((...args) => $options.goToOrder && $options.goToOrder(...args), index) }; }), f: common_vendor.p({ active: "home" }) }; } const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1cf27b2a"]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map