✨ 完成订单
parent
04fe9043cd
commit
42c7bcb43b
@ -1 +1 @@
|
||||
import{a as y}from"./axios.081d9eba.js";import{_ as B,d as C,r as v,a as h,b as w,c as t,e as n,f as m,w as i,o as a,g as A,h as D,t as r,i as c,p as N,j as P}from"./index.055e2693.js";const S=C({name:"Axios",setup(){const e=v(null),o=v(!1);return{userInfo:e,loading:o,getUserInfo:()=>{o.value=!0,y.get("/users/XPoet").then(s=>{console.log("response: ",s.data),e.value=s.data,o.value=!1}).catch(s=>{o.value=!1,console.error(s)})}}}}),g=e=>(N("data-v-3dbd4432"),e=e(),P(),e),V={class:"axios-container page-container"},$=g(()=>n("div",{class:"page-title"},"Axios Test Page",-1)),F={class:"user-info-container"},U={class:"card-header"},X=g(()=>n("span",null,"XPoet",-1)),E={class:"info-list-box"},T={key:0,class:"text item"},j={key:1,class:"text item"},q={key:2,class:"text item"};function z(e,o,b,s,G,H){const I=h("el-button"),x=h("el-card"),k=w("loading");return a(),t("div",V,[$,n("div",F,[m(x,{class:"box-card"},{header:i(()=>[n("div",U,[X,m(I,{class:"button",type:"text",onClick:e.getUserInfo},{default:i(()=>[A("\u70B9\u51FB\u83B7\u53D6XPoet\u4FE1\u606F ")]),_:1},8,["onClick"])])]),default:i(()=>{var d,l,_,u,p,f;return[D((a(),t("div",E,[(d=e.userInfo)!=null&&d.name?(a(),t("div",T,"name: "+r((l=e.userInfo)==null?void 0:l.name),1)):c("",!0),(_=e.userInfo)!=null&&_.bio?(a(),t("div",j,"bio: "+r((u=e.userInfo)==null?void 0:u.bio),1)):c("",!0),(p=e.userInfo)!=null&&p.blog?(a(),t("div",q,"blog: "+r((f=e.userInfo)==null?void 0:f.blog),1)):c("",!0)])),[[k,e.loading]])]}),_:1})])])}var L=B(S,[["render",z],["__scopeId","data-v-3dbd4432"]]);export{L as default};
|
||||
import{a as y}from"./axios.34839c0b.js";import{_ as B,d as C,r as v,a as h,b as w,c as t,e as n,f as m,w as i,o as a,g as A,h as D,t as r,i as c,p as N,j as P}from"./index.8eecb127.js";const S=C({name:"Axios",setup(){const e=v(null),o=v(!1);return{userInfo:e,loading:o,getUserInfo:()=>{o.value=!0,y.get("/users/XPoet").then(s=>{console.log("response: ",s.data),e.value=s.data,o.value=!1}).catch(s=>{o.value=!1,console.error(s)})}}}}),g=e=>(N("data-v-3dbd4432"),e=e(),P(),e),V={class:"axios-container page-container"},$=g(()=>n("div",{class:"page-title"},"Axios Test Page",-1)),F={class:"user-info-container"},U={class:"card-header"},X=g(()=>n("span",null,"XPoet",-1)),E={class:"info-list-box"},T={key:0,class:"text item"},j={key:1,class:"text item"},q={key:2,class:"text item"};function z(e,o,b,s,G,H){const I=h("el-button"),x=h("el-card"),k=w("loading");return a(),t("div",V,[$,n("div",F,[m(x,{class:"box-card"},{header:i(()=>[n("div",U,[X,m(I,{class:"button",type:"text",onClick:e.getUserInfo},{default:i(()=>[A("\u70B9\u51FB\u83B7\u53D6XPoet\u4FE1\u606F ")]),_:1},8,["onClick"])])]),default:i(()=>{var d,l,_,u,p,f;return[D((a(),t("div",E,[(d=e.userInfo)!=null&&d.name?(a(),t("div",T,"name: "+r((l=e.userInfo)==null?void 0:l.name),1)):c("",!0),(_=e.userInfo)!=null&&_.bio?(a(),t("div",j,"bio: "+r((u=e.userInfo)==null?void 0:u.bio),1)):c("",!0),(p=e.userInfo)!=null&&p.blog?(a(),t("div",q,"blog: "+r((f=e.userInfo)==null?void 0:f.blog),1)):c("",!0)])),[[k,e.loading]])]}),_:1})])])}var L=B(S,[["render",z],["__scopeId","data-v-3dbd4432"]]);export{L as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as e,c as r,o as c}from"./index.055e2693.js";const o={};function t(a,n){return c(),r("div")}var s=e(o,[["render",t]]);export{s as default};
|
||||
import{_ as e,c as r,o as c}from"./index.8eecb127.js";const o={};function t(a,n){return c(),r("div")}var s=e(o,[["render",t]]);export{s as default};
|
@ -1,2 +1,2 @@
|
||||
import{a as v}from"./axios.081d9eba.js";import{r as d,k as B,l as $,a as n,c as g,f as e,w as a,E as b,o as _,F as T,m as w,g as m,t as S,e as y,n as D}from"./index.055e2693.js";const j={class:"container"},q=y("span",null," \u4EA4\u6613\u6240:",-1),A=y("h1",null,null,-1),G=y("span",null,"\u5DF2\u6210\u529F\u7684\u8BA2\u5355\uFF1A",-1),P={__name:"transfer",setup(H){const h=d(0),E=d("USDT"),u=d("OKX"),z=B([{key:"OKX",value:"\u6B27\u6613"},{key:"MEXC",value:"\u62B9\u8336"}]),V=d([{key:"BTC-USDT",value:"BTC-USDT"}]),p=d(""),s=B({sale:!0,transfer:"BTC-USDT",amount:0}),k=()=>{v.get("/api/chain/balance",{params:{exchange:u.value}}).then(o=>{h.value=o.data.data}).catch(o=>{b.error("\u83B7\u53D6\u4F59\u989D\u5931\u8D25"),console.error(o)})},L=()=>{v.post("/api/chain/order",{symbol:s.transfer,exchange:u.value,...s.value}).then(o=>{b({message:`\u4E0B\u5355\u6210\u529F,\u8BA2\u5355id\uFF1A${o.data.data}`,type:"success"}),p.value+=o.data.data+`
|
||||
`})},x=()=>{v.get("/api/chain/symbol",{params:{exchange:u.value}}).then(o=>{let t=[];o.data.data.forEach(r=>{t.push({key:r.inst,value:r.inst})}),V.value=t}).catch(o=>{b.error("\u4EA4\u6613\u5BF9\u5931\u8D25"),console.error(o)})},M=o=>{k(),x()};return $(()=>{k(),x()}),(o,t)=>{const r=n("el-option"),C=n("el-select"),i=n("el-col"),f=n("el-row"),c=n("el-form-item"),U=n("el-radio"),N=n("el-radio-group"),X=n("el-slider"),F=n("el-button"),K=n("el-form"),O=n("el-input");return _(),g("div",j,[e(f,{gutter:20},{default:a(()=>[e(i,{span:10},{default:a(()=>[q,e(C,{modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=l=>u.value=l),class:"m-2",placeholder:"\u9009\u62E9\u4EA4\u6613\u6240",size:"large",onChange:M},{default:a(()=>[(_(!0),g(T,null,w(z,l=>(_(),D(r,{key:l.key,label:l.value,value:l.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{span:6},{default:a(()=>[m(" \u5F53\u524D\u8D26\u53F7\u4F59\u989D: "+S(h.value)+" ("+S(E.value)+")",1)]),_:1})]),_:1}),e(f,null,{default:a(()=>[A]),_:1}),e(K,{model:s,"label-position":"left","label-width":"100px"},{default:a(()=>[e(c,{label:"\u5E01\u79CD:"},{default:a(()=>[e(C,{modelValue:s.transfer,"onUpdate:modelValue":t[1]||(t[1]=l=>s.transfer=l),placeholder:"\u4EA4\u6613\u5BF9",filterable:"",clearable:""},{default:a(()=>[(_(!0),g(T,null,w(V.value,l=>(_(),D(r,{key:l.key,label:l.key,value:l.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(c,{label:"\u4E70\u5165\\\u5356\u51FA:"},{default:a(()=>[e(N,{modelValue:s.sale,"onUpdate:modelValue":t[2]||(t[2]=l=>s.sale=l),flex:""},{default:a(()=>[e(U,{label:!0,size:"large"},{default:a(()=>[m("\u4E70\u5165")]),_:1}),e(U,{label:!1,size:"large"},{default:a(()=>[m("\u5356\u51FA")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,{label:"\u91D1\u989D:"},{default:a(()=>[e(i,{span:10},{default:a(()=>[e(X,{modelValue:s.amount,"onUpdate:modelValue":t[3]||(t[3]=l=>s.amount=l),min:0,step:.01,max:100,"show-input":""},null,8,["modelValue"])]),_:1})]),_:1}),e(c,null,{default:a(()=>[e(F,{type:"primary",onClick:L},{default:a(()=>[m("\u4E0B\u5355")]),_:1})]),_:1})]),_:1},8,["model"]),e(f,null,{default:a(()=>[G,e(O,{modelValue:p.value,"onUpdate:modelValue":t[4]||(t[4]=l=>p.value=l),rows:2,type:"textarea",autosize:"",disable:""},null,8,["modelValue"])]),_:1})])}}};export{P as default};
|
||||
import{a as v}from"./axios.34839c0b.js";import{r as d,k as B,l as $,a as n,c as b,f as e,w as a,E as g,o as c,F as T,m as w,g as m,t as S,e as y,n as D}from"./index.8eecb127.js";const j={class:"container"},q=y("span",null," \u4EA4\u6613\u6240:",-1),A=y("h1",null,null,-1),G=y("span",null,"\u5DF2\u6210\u529F\u7684\u8BA2\u5355\uFF1A",-1),P={__name:"transfer",setup(H){const h=d(0),E=d("USDT"),u=d("OKX"),z=B([{key:"OKX",value:"\u6B27\u6613"},{key:"MEXC",value:"\u62B9\u8336"}]),V=d([{key:"BTC-USDT",value:"BTC-USDT"}]),p=d(""),s=B({sale:!0,transfer:"BTC-USDT",amount:0}),k=()=>{v.get("/api/chain/balance",{params:{exchange:u.value}}).then(o=>{h.value=o.data.data}).catch(o=>{g.error("\u83B7\u53D6\u4F59\u989D\u5931\u8D25"),console.error(o)})},L=()=>{const o={symbol:s.transfer,exchange:u.value,...s};v.post("/api/chain/order",o).then(t=>{g({message:`\u4E0B\u5355\u6210\u529F,\u8BA2\u5355id\uFF1A${t.data.data}`,type:"success"}),p.value+=t.data.data+`
|
||||
`})},x=()=>{v.get("/api/chain/symbol",{params:{exchange:u.value}}).then(o=>{let t=[];o.data.data.forEach(r=>{t.push({key:r.inst,value:r.inst})}),V.value=t}).catch(o=>{g.error("\u4EA4\u6613\u5BF9\u5931\u8D25"),console.error(o)})},M=o=>{k(),x()};return $(()=>{k(),x()}),(o,t)=>{const r=n("el-option"),C=n("el-select"),i=n("el-col"),f=n("el-row"),_=n("el-form-item"),U=n("el-radio"),N=n("el-radio-group"),X=n("el-slider"),F=n("el-button"),K=n("el-form"),O=n("el-input");return c(),b("div",j,[e(f,{gutter:20},{default:a(()=>[e(i,{span:10},{default:a(()=>[q,e(C,{modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=l=>u.value=l),class:"m-2",placeholder:"\u9009\u62E9\u4EA4\u6613\u6240",size:"large",onChange:M},{default:a(()=>[(c(!0),b(T,null,w(z,l=>(c(),D(r,{key:l.key,label:l.value,value:l.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{span:6},{default:a(()=>[m(" \u5F53\u524D\u8D26\u53F7\u4F59\u989D: "+S(h.value)+" ("+S(E.value)+")",1)]),_:1})]),_:1}),e(f,null,{default:a(()=>[A]),_:1}),e(K,{model:s,"label-position":"left","label-width":"100px"},{default:a(()=>[e(_,{label:"\u5E01\u79CD:"},{default:a(()=>[e(C,{modelValue:s.transfer,"onUpdate:modelValue":t[1]||(t[1]=l=>s.transfer=l),placeholder:"\u4EA4\u6613\u5BF9",filterable:"",clearable:""},{default:a(()=>[(c(!0),b(T,null,w(V.value,l=>(c(),D(r,{key:l.key,label:l.key,value:l.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(_,{label:"\u4E70\u5165\\\u5356\u51FA:"},{default:a(()=>[e(N,{modelValue:s.sale,"onUpdate:modelValue":t[2]||(t[2]=l=>s.sale=l),flex:""},{default:a(()=>[e(U,{label:!0,size:"large"},{default:a(()=>[m("\u4E70\u5165")]),_:1}),e(U,{label:!1,size:"large"},{default:a(()=>[m("\u5356\u51FA")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(_,{label:"\u91D1\u989D:"},{default:a(()=>[e(i,{span:10},{default:a(()=>[e(X,{modelValue:s.amount,"onUpdate:modelValue":t[3]||(t[3]=l=>s.amount=l),min:0,step:.01,max:100,"show-input":""},null,8,["modelValue"])]),_:1})]),_:1}),e(_,null,{default:a(()=>[e(F,{type:"primary",onClick:L},{default:a(()=>[m("\u4E0B\u5355")]),_:1})]),_:1})]),_:1},8,["model"]),e(f,null,{default:a(()=>[G,e(O,{modelValue:p.value,"onUpdate:modelValue":t[4]||(t[4]=l=>p.value=l),rows:2,type:"textarea",autosize:"",disable:""},null,8,["modelValue"])]),_:1})])}}};export{P as default};
|
Loading…
Reference in New Issue