im/public/h5/assets/scan.9bf28f6f.js

2 lines
607 B
JavaScript
Executable File

import{q as a,az as s,p as e,T as n,G as t,aA as c}from"./index-22d2df30.js";const i={scanQr:()=>{a({url:"/pages/index/scan"})},checkQr:i=>{i.includes(s)?(e=>{let n=e.replace(s,""),t=n.split("/"),i=t[t.length-1];c(n,{realToken:i}).then((s=>{if(0==s.code)switch(s.data.action){case"groupInfo":a({url:"/pages/message/group/info?group_id="+s.data.id});case"userInfo":a({url:"/pages/contacts/detail?id="+s.data.id})}}))})(i):e({title:"已识别内容",content:i,confirmText:"复制内容",success:function(a){a.confirm&&n({data:i,success:function(){t({title:"复制成功",icon:"none"})}})}})}};export{i as s};