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
2.8 KiB
2 lines
2.8 KiB
"use strict";const e=require("../../../common/vendor.js"),r=require("../../index.js"),o=require("../../hooks/useModal.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("../../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");Array||e.resolveComponent("su-popup")();const f=()=>"../../ui/su-popup/su-popup.js";Math||(f+q)();const q=()=>"./canvas-poster/index.js",m={__name:"s-share-modal",props:{shareInfo:{type:Object,default(){}}},setup(u){const i=e.computed(()=>r.sheep.$store("modal").share),a=e.computed(()=>r.sheep.$store("app").platform.share),t=e.ref(""),n=u,s=e.reactive({showShareGuide:!1,showPosterModal:!1}),p=()=>{if(o.closeShareModal(),!r.sheep.$store("user").isLogin){o.showAuthModal();return}e.unref(t).getPoster(),s.showPosterModal=!0},l=()=>{o.closeShareModal()},c=()=>{r.sheep.$helper.copyText(n.shareInfo.link),o.closeShareModal()};function d(){s.showShareGuide=!1}return(w,S)=>e.e({a:e.o(d),b:e.p({show:s.showShareGuide,showClose:!1}),c:s.showShareGuide},s.showShareGuide?{d:e.unref(r.sheep).$url.static("/static/img/shop/share/share_guide.png")}:{},{e:a.value.methods.includes("forward")},a.value.methods.includes("forward")?{f:e.unref(r.sheep).$url.static("/static/img/shop/share/share_wx.png"),g:e.o(l)}:{},{h:a.value.methods.includes("poster")},a.value.methods.includes("poster")?{i:e.unref(r.sheep).$url.static("/static/img/shop/share/share_poster.png"),j:e.o(p)}:{},{k:a.value.methods.includes("link")},a.value.methods.includes("link")?{l:e.unref(r.sheep).$url.static("/static/img/shop/share/share_link.png"),m:e.o(c)}:{},{n:e.o((...h)=>e.unref(o.closeShareModal)&&e.unref(o.closeShareModal)(...h)),o:e.o(e.unref(o.closeShareModal)),p:e.p({show:i.value,round:"10",showClose:!1}),q:e.sr(t,"a2a58660-2",{k:"SharePosterRef"}),r:e.o(h=>s.showPosterModal=!1),s:e.p({show:s.showPosterModal,shareInfo:u.shareInfo})})}},_=e._export_sfc(m,[["__scopeId","data-v-a2a58660"],["__file","D:/xiangmu/佰安出行/app/s-applet/sheep/components/s-share-modal/s-share-modal.vue"]]);wx.createComponent(_);
|