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.
1 lines
4.6 KiB
1 lines
4.6 KiB
import{l as e,o as t,b as n,a as o,w as a,m as i,U as s,F as l,A as r,j as u,V as c,W as f,D as d,X as p,g,i as m}from"./index.22b081e2.js";import{z as v}from"./user.b3821dab.js";import{_ as b}from"./plugin-vue_export-helper.21dcd24c.js";var w,y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};w={exports:{}},function(){function e(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function t(e,t,n){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){s(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof y&&y.global===y?y:void 0,i=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(e,i,s){var l=a.URL||a.webkitURL,r=document.createElement("a");i=i||e.name||"download",r.download=i,r.rel="noopener","string"==typeof e?(r.href=e,r.origin===location.origin?o(r):n(r.href)?t(e,i,s):o(r,r.target="_blank")):(r.href=l.createObjectURL(e),setTimeout((function(){l.revokeObjectURL(r.href)}),4e4),setTimeout((function(){o(r)}),0))}:"msSaveOrOpenBlob"in navigator?function(a,i,s){if(i=i||a.name||"download","string"!=typeof a)navigator.msSaveOrOpenBlob(e(a,s),i);else if(n(a))t(a,i,s);else{var l=document.createElement("a");l.href=a,l.target="_blank",setTimeout((function(){o(l)}))}}:function(e,n,o,s){if((s=s||open("","_blank"))&&(s.document.title=s.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,o);var l="application/octet-stream"===e.type,r=/constructor/i.test(a.HTMLElement)||a.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||l&&r||i)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),s?s.location.href=e:location=e,s=null},c.readAsDataURL(e)}else{var f=a.URL||a.webkitURL,d=f.createObjectURL(e);s?s.location=d:location.href=d,s=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});a.saveAs=s.saveAs=s,w.exports=s}();var h=b({setup(){let t=e("");function n(){p({urls:[t.value],longPressActions:{itemList:["发送给朋友","保存图片","收藏"],success:function(e){console.log("选中了第"+(e.tapIndex+1)+"个按钮,第"+(e.index+1)+"张图片")},fail:function(e){console.log(e.errMsg)}}})}return v({path:"http://"+document.domain+"/#/pages/login/login"}).then((e=>{console.log(e),t.value=e.msg})),{quxiao:function(){r({url:"../user/user"})},imgurl:t,fenx:function(e){d({title:e,icon:"none",duration:2e3}),setTimeout((()=>{n()}),2e3)},lianjie:function(){let e=u("users").id;c({data:"https://"+document.domain+"/#/pages/login/login?inviterId="+e,success:function(e){f({success:function(e){d({title:"已复制到剪贴板",icon:"none"})}})}})},yulan:n}}},[["render",function(e,r,u,c,f,d){const p=g,v=m;return t(),n(l,null,[o(p,{class:"baoctp"},{default:a((()=>[i("(点击图片长按保存)")])),_:1}),s("img",{onClick:r[0]||(r[0]=(...e)=>c.yulan&&c.yulan(...e)),class:"fxnrtp",src:c.imgurl},null,8,["src"]),o(p,{class:"fenxbot"},{default:a((()=>[o(p,null,{default:a((()=>[o(p,{onClick:r[1]||(r[1]=e=>c.fenx("长按图片,进行保存并分享"))},{default:a((()=>[o(v,{src:"/assets/fxwxhy.bd60d04a.png"}),o(p,null,{default:a((()=>[i("分享给好友")])),_:1})])),_:1}),o(p,{onClick:r[2]||(r[2]=e=>c.fenx("长按图片,进行保存并分享"))},{default:a((()=>[o(v,{src:"/assets/baocuntupian.6bdad3f7.png"}),o(p,null,{default:a((()=>[i("保存图片")])),_:1})])),_:1}),o(p,{onClick:c.lianjie},{default:a((()=>[o(v,{src:"/assets/fuzhilianjie.dda15f5b.png"}),o(p,null,{default:a((()=>[i("复制链接")])),_:1})])),_:1},8,["onClick"])])),_:1}),o(p,{onClick:c.quxiao},{default:a((()=>[i("取消")])),_:1},8,["onClick"])])),_:1})],64)}],["__scopeId","data-v-0215794c"]]);export{h as default};
|
|
|