"use strict"; const common_vendor = require("../../../common/vendor.js"); const sheep_index = require("../../index.js"); require("../../api/index.js"); require("../../api/distri/score.js"); require("../../request/index.js"); require("../../config/index.js"); require("../../store/index.js"); require("../../store/app.js"); require("../../api/promotion/diy.js"); require("../../platform/index.js"); require("../../platform/provider/wechat/index.js"); require("../../platform/provider/wechat/miniProgram.js"); require("../../api/member/auth.js"); require("../../api/member/social.js"); require("../../api/member/user.js"); require("../../platform/provider/apple/index.js"); require("../../platform/share.js"); require("../../router/index.js"); require("../../hooks/useModal.js"); require("../../helper/index.js"); require("../../helper/test.js"); require("../../helper/digit.js"); require("../../api/member/signin.js"); require("../../helper/throttle.js"); require("../../url/index.js"); require("../../platform/pay.js"); require("../../api/pay/order.js"); require("../../store/user.js"); require("../../store/cart.js"); require("../../api/trade/cart.js"); require("../../api/pay/wallet.js"); require("../../api/trade/order.js"); require("../../api/promotion/coupon.js"); require("../../store/sys.js"); require("../../store/modal.js"); require("../../api/distri/share.js"); require("../../api/distri/team.js"); require("../../api/infra/file.js"); require("../../api/member/address.js"); require("../../api/member/point.js"); require("../../api/migration/app.js"); require("../../api/migration/chat.js"); require("../../api/migration/index.js"); require("../../api/migration/third.js"); require("../../api/pay/channel.js"); require("../../api/product/category.js"); require("../../api/product/comment.js"); require("../../api/product/favorite.js"); require("../../api/product/history.js"); require("../../api/product/spu.js"); require("../../api/promotion/activity.js"); require("../../api/promotion/article.js"); require("../../api/promotion/bargain.js"); require("../../api/promotion/combination.js"); require("../../api/promotion/rewardActivity.js"); require("../../api/promotion/seckill.js"); require("../../api/system/area.js"); require("../../api/system/voice.js"); require("../../api/trade/afterSale.js"); require("../../api/trade/brokerage.js"); require("../../api/trade/config.js"); require("../../api/trade/delivery.js"); require("../../config/zIndex.js"); if (!Array) { const _easycom_su_navbar2 = common_vendor.resolveComponent("su-navbar"); const _easycom_s_custom_navbar2 = common_vendor.resolveComponent("s-custom-navbar"); const _easycom_su_inner_navbar2 = common_vendor.resolveComponent("su-inner-navbar"); const _easycom_s_tabbar2 = common_vendor.resolveComponent("s-tabbar"); const _easycom_s_wallet_modal2 = common_vendor.resolveComponent("s-wallet-modal"); const _easycom_s_signup_modal2 = common_vendor.resolveComponent("s-signup-modal"); const _easycom_s_auth_modal2 = common_vendor.resolveComponent("s-auth-modal"); const _easycom_s_share_modal2 = common_vendor.resolveComponent("s-share-modal"); const _easycom_s_menu_tools2 = common_vendor.resolveComponent("s-menu-tools"); (_easycom_su_navbar2 + _easycom_s_custom_navbar2 + _easycom_su_inner_navbar2 + _easycom_s_tabbar2 + _easycom_s_wallet_modal2 + _easycom_s_signup_modal2 + _easycom_s_auth_modal2 + _easycom_s_share_modal2 + _easycom_s_menu_tools2)(); } const _easycom_su_navbar = () => "../../ui/su-navbar/su-navbar.js"; const _easycom_s_custom_navbar = () => "../s-custom-navbar/s-custom-navbar.js"; const _easycom_su_inner_navbar = () => "../../ui/su-inner-navbar/su-inner-navbar.js"; const _easycom_s_tabbar = () => "../s-tabbar/s-tabbar.js"; const _easycom_s_wallet_modal = () => "../s-wallet-modal/s-wallet-modal.js"; const _easycom_s_signup_modal = () => "../s-signup-modal/s-signup-modal.js"; const _easycom_s_auth_modal = () => "../s-auth-modal/s-auth-modal.js"; const _easycom_s_share_modal = () => "../s-share-modal/s-share-modal.js"; const _easycom_s_menu_tools = () => "../s-menu-tools/s-menu-tools.js"; if (!Math) { (_easycom_su_navbar + _easycom_s_custom_navbar + _easycom_su_inner_navbar + _easycom_s_tabbar + _easycom_s_wallet_modal + _easycom_s_signup_modal + _easycom_s_auth_modal + _easycom_s_share_modal + _easycom_s_menu_tools)(); } const _sfc_main = { __name: "s-layout", props: { title: { type: String, default: "" }, navbar: { type: String, default: "normal" }, opacityBgUi: { type: String, default: "bg-white" }, color: { type: String, default: "" }, tools: { type: String, default: "title" }, keyword: { type: String, default: "" }, navbarStyle: { type: Object, default: () => ({ mode: "", type: "", color: "", src: "", list: [], alwaysShow: 0 }) }, bgStyle: { type: Object, default: () => ({ src: "", color: "var(--ui-BG-1)" }) }, tabbar: { type: [String, Boolean], default: "" }, onShareAppMessage: { type: [Boolean, Object], default: true }, leftWidth: { type: [Number, String], default: 100 }, rightWidth: { type: [Number, String], default: 100 }, defaultSearch: { type: String, default: "" }, //展示返回按钮 showLeftButton: { type: Boolean, default: false } }, emits: ["search"], setup(__props, { emit: __emit }) { const props = __props; const emits = __emit; const sysStore = sheep_index.sheep.$store("sys"); sheep_index.sheep.$store("user"); sheep_index.sheep.$store("app"); sheep_index.sheep.$store("modal"); const sys = common_vendor.computed(() => sysStore); const navbarMode = common_vendor.computed(() => { if (props.navbar === "normal" || props.navbarStyle.mode === "normal") { return "normal"; } return "inner"; }); const bgMain = common_vendor.computed(() => { if (navbarMode.value === "inner") { return { background: `${props.bgStyle.backgroundColor} url(${sheep_index.sheep.$url.cdn( props.bgStyle.backgroundImage )}) no-repeat top center / 100% auto` }; } return {}; }); const bgBody = common_vendor.computed(() => { if (navbarMode.value === "normal") { return { background: `${props.bgStyle.backgroundColor} url(${sheep_index.sheep.$url.cdn( props.bgStyle.backgroundImage )}) no-repeat top center / 100% auto` }; } return {}; }); const shareInfo = common_vendor.computed(() => { if (props.onShareAppMessage === true) { return sheep_index.sheep.$platform.share.getShareInfo(); } else { if (!common_vendor.lodashExports.isEmpty(props.onShareAppMessage)) { sheep_index.sheep.$platform.share.updateShareInfo(props.onShareAppMessage); return props.onShareAppMessage; } } return {}; }); common_vendor.onShareAppMessage(() => { return { title: shareInfo.value.title, path: shareInfo.value.path, imageUrl: shareInfo.value.image }; }); common_vendor.onShow(() => { if (!common_vendor.lodashExports.isEmpty(shareInfo.value)) { sheep_index.sheep.$platform.share.updateShareInfo(shareInfo.value); } }); return (_ctx, _cache) => { return common_vendor.e({ a: __props.navbar === "normal" }, __props.navbar === "normal" ? { b: common_vendor.o((e) => emits("search", e)), c: common_vendor.p({ title: __props.title, statusBar: true, color: __props.color, tools: __props.tools, opacityBgUi: __props.opacityBgUi, defaultSearch: __props.defaultSearch }) } : __props.navbar === "custom" && navbarMode.value === "normal" ? { e: common_vendor.p({ data: __props.navbarStyle, showLeftButton: __props.showLeftButton }) } : {}, { d: __props.navbar === "custom" && navbarMode.value === "normal", f: __props.navbar === "inner" }, __props.navbar === "inner" ? { g: common_vendor.p({ title: __props.title }) } : {}, { h: __props.navbar === "inner" }, __props.navbar === "inner" ? { i: common_vendor.s({ paddingTop: common_vendor.unref(sheep_index.sheep).$platform.navbar + "px" }) } : {}, { j: __props.tabbar !== "" }, __props.tabbar !== "" ? { k: common_vendor.p({ path: __props.tabbar }) } : {}, { l: common_vendor.s(bgBody.value), m: common_vendor.s(bgMain.value), n: common_vendor.p({ shareInfo: shareInfo.value }), o: common_vendor.n("theme-" + sys.value.mode), p: common_vendor.n("main-" + sys.value.theme), q: common_vendor.n("font-" + sys.value.fontSize) }); }; } }; const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-32d0115a"], ["__file", "D:/zx/mall-front-app/sheep/components/s-layout/s-layout.vue"]]); wx.createComponent(Component);