You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
4.4 KiB
2 lines
4.4 KiB
"use strict";const e=require("../../../common/vendor.js"),r=require("../../index.js");require("../../url/index.js");require("../../store/index.js");require("../../store/app.js");require("../../platform/index.js");require("../../platform/provider/wechat/index.js");require("../../platform/provider/wechat/miniProgram.js");require("../../api/member/auth.js");require("../../request/index.js");require("../../config/index.js");require("../../helper/index.js");require("../../helper/test.js");require("../../helper/digit.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/throttle.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("../../store/sys.js");require("../../store/modal.js");require("../../config/zIndex.js");if(!Array){const a=e.resolveComponent("su-navbar"),u=e.resolveComponent("s-custom-navbar"),t=e.resolveComponent("su-inner-navbar"),l=e.resolveComponent("s-tabbar"),i=e.resolveComponent("s-auth-modal"),s=e.resolveComponent("s-share-modal"),n=e.resolveComponent("s-menu-tools");(a+u+t+l+i+s+n)()}const d=()=>"../../ui/su-navbar/su-navbar.js",h=()=>"../s-custom-navbar/s-custom-navbar.js",v=()=>"../../ui/su-inner-navbar/su-inner-navbar.js",y=()=>"../s-tabbar/s-tabbar.js",p=()=>"../s-auth-modal/s-auth-modal.js",f=()=>"../s-share-modal/s-share-modal.js",g=()=>"../s-menu-tools/s-menu-tools.js";Math||(d+h+v+y+p+f+g)();const S={__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:!0},leftWidth:{type:[Number,String],default:100},rightWidth:{type:[Number,String],default:100},defaultSearch:{type:String,default:""},showLeftButton:{type:Boolean,default:!1}},emits:["search"],setup(a,{emit:u}){const t=a,l=u,i=r.sheep.$store("sys");r.sheep.$store("user"),r.sheep.$store("app"),r.sheep.$store("modal");const s=e.computed(()=>i),n=e.computed(()=>t.navbar==="normal"||t.navbarStyle.mode==="normal"?"normal":"inner"),c=e.computed(()=>n.value==="inner"?{background:`${t.bgStyle.backgroundColor} url(${r.sheep.$url.cdn(t.bgStyle.backgroundImage)}) no-repeat top center / 100% auto`}:{}),m=e.computed(()=>n.value==="normal"?{background:`${t.bgStyle.backgroundColor} url(${r.sheep.$url.cdn(t.bgStyle.backgroundImage)}) no-repeat top center / 100% auto`}:{}),o=e.computed(()=>t.onShareAppMessage===!0?r.sheep.$platform.share.getShareInfo():e.lodashExports.isEmpty(t.onShareAppMessage)?{}:(r.sheep.$platform.share.updateShareInfo(t.onShareAppMessage),t.onShareAppMessage));return e.onShareAppMessage(()=>({title:o.value.title,path:o.value.path,imageUrl:o.value.image})),e.onShow(()=>{e.lodashExports.isEmpty(o.value)||r.sheep.$platform.share.updateShareInfo(o.value)}),(_,B)=>e.e({a:a.navbar==="normal"},a.navbar==="normal"?{b:e.o(b=>l("search",b)),c:e.p({title:a.title,statusBar:!0,color:a.color,tools:a.tools,opacityBgUi:a.opacityBgUi,defaultSearch:a.defaultSearch})}:a.navbar==="custom"&&n.value==="normal"?{e:e.p({data:a.navbarStyle,showLeftButton:a.showLeftButton})}:{},{d:a.navbar==="custom"&&n.value==="normal",f:a.navbar==="inner"},a.navbar==="inner"?{g:e.p({title:a.title})}:{},{h:a.navbar==="inner"},a.navbar==="inner"?{i:e.s({paddingTop:e.unref(r.sheep).$platform.navbar+"px"})}:{},{j:a.navbar==="custom"&&n.value==="inner"},a.navbar==="custom"&&n.value==="inner"?{k:e.p({data:a.navbarStyle,showLeftButton:a.showLeftButton})}:{},{l:a.tabbar!==""},a.tabbar!==""?{m:e.p({path:a.tabbar})}:{},{n:e.s(m.value),o:e.s(c.value),p:e.p({shareInfo:o.value}),q:e.n("theme-"+s.value.mode),r:e.n("main-"+s.value.theme),s:e.n("font-"+s.value.fontSize)})}},q=e._export_sfc(S,[["__scopeId","data-v-32d0115a"],["__file","D:/xiangmu/佰安出行/app/s-applet/sheep/components/s-layout/s-layout.vue"]]);wx.createComponent(q);
|