index.002f5b0e.js 2.0 KB

1
  1. import{d as F,i as u,A as n,s as E,B as l,m as p,T as c}from"./index.6b776f4b.js";const m="_container_4ky14_1",_="_topWrap_4ky14_7",d="_title_4ky14_13",A="_img_4ky14_19",y="_centerWrap_4ky14_23",B="_item_4ky14_30",f="_name_4ky14_37",k="_btn_4ky14_42",v="_tips_4ky14_45";var s={container:m,topWrap:_,title:d,img:A,centerWrap:y,item:B,name:f,btn:k,tips:v},C="./assets/iconUs.edfc0047.png",D="./assets/kefu1.4c7447fe.png",g="./assets/kefu2.190464dd.png",h=F({name:"contactus",setup(W,b){const r=[{name:"\u5BA2\u670D\u4EBA\u5458 1",src:D},{name:"\u5BA2\u670D\u4EBA\u5458 2",src:g}],o=t=>{fetch(t).then(e=>e.blob()).then(e=>{try{const a=new FileReader;a.readAsDataURL(e),a.onload=async()=>{await i(a.result)}}catch{}})},i=async t=>{var a;const e=await p({api:"savePicture",content:{base64:t}});((a=e==null?void 0:e.content)==null?void 0:a.status)==="success"?c.success("\u4FDD\u5B58\u6210\u529F"):c.fail("\u4FDD\u5B58\u5931\u8D25")};return()=>u("div",{class:s.container},[u("div",{class:s.topWrap},[u("div",{class:s.title},[n("\u5982\u60A8\u5728\u4F7F\u7528"),E.platformType==="TEACHER"?"\u9177\u4E50\u79C0\u5B66\u9662":"\u9177\u4E50\u79C0",n("\u65F6\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u610F\u89C1\uFF0C\u53EF\u6DFB\u52A0\u4EE5\u4E0B\u4F01\u4E1A\u5FAE\u4FE1\u8D26\u53F7\u4E0E\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\uFF0C\u6211\u4EEC\u5C06\u7AED\u8BDA\u4E3A\u60A8\u670D\u52A1\u3002")]),u("img",{class:s.img,src:C},null)]),u("div",{class:s.centerWrap},[r.map(t=>u("div",{class:s.item},[u("div",{class:s.name},[t.name]),u("img",{src:t.src},null),u("div",{class:s.btn},[u(l,{block:!0,round:!0,type:"primary",size:"small",onClick:()=>o(t.src)},{default:()=>[n("\u4FDD\u5B58\u4E8C\u7EF4\u7801")]})])]))]),u("div",{class:s.tips},[n("\u63D0\u793A\uFF1A\u70B9\u51FB\u4FDD\u5B58\u4E8C\u7EF4\u7801\u540E\u4F1A\u81EA\u52A8\u4E0B\u8F7D\u5230\u76F8\u518C\uFF0C\u6253\u5F00\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B\u5373\u53EF\u6DFB\u52A0\u4F01\u4E1A\u5FAE\u4FE1\u8054\u7CFB\u5BA2\u670D\u5594\uFF5E")])])}});export{h as default};