123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- "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);
|