2 lines
1.2 KiB
JavaScript
2 lines
1.2 KiB
JavaScript
|
"use strict";const e=require("../../../../common/vendor.js"),o=require("../../../../sheep/index.js"),r=require("../../../../sheep/api/trade/brokerage.js"),s=require("../../../../sheep/hooks/useGoods.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const n={__name:"account-info",setup(n){e.computed((()=>o.sheep.$store("user").userInfo));const t=e.reactive({showMoney:!1,summary:{}});return e.onMounted((()=>{return e=this,o=null,s=function*(){const{code:e,data:o}=yield r.BrokerageApi.getBrokerageUserSummary();0===e&&(t.summary=o||{})},new Promise(((r,n)=>{var t=e=>{try{u(s.next(e))}catch(o){n(o)}},a=e=>{try{u(s.throw(e))}catch(o){n(o)}},u=e=>e.done?r(e.value):Promise.resolve(e.value).then(t,a);u((s=s.apply(e,o)).next())}));var e,o,s})),(r,n)=>({a:e.p({type:t.showMoney?"eye-filled":"eye-slash-filled",color:"#A57A55",size:"20"}),b:e.o((e=>t.showMoney=!t.showMoney)),c:e.o((r=>e.unref(o.sheep).$router.go("/modules/mall/commission/wallet"))),d:e.t(t.showMoney?e.unref(s.fen2yuan)(t.summary.brokeragePrice||0):"***"),e:e.t(t.showMoney?e.unref(s.fen2yuan)(t.summary.yesterdayPrice||0):"***"),f:e.t(t.showMoney?e.unref(s.fen2yuan)(t.summary.withdrawPrice||0):"***")})}},t=e._export_sfc(n,[["__scopeId","data-v-c335eb46"]]);wx.createComponent(t);
|