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.
yanzong/public/assets/pages-dealer-index.8ade114b.js

2 lines
9.1 KiB

11 months ago
import{o as e,c as a,w as l,e as t,i as s,a as i,f as d,t as o,g as r,r as n,l as f}from"./index-4ddb689d.js";import{A as c}from"./index.1169d7d7.js";import{c as u}from"./index.dc782c71.js";import{_ as p}from"./_plugin-vue_export-helper.1b428a4d.js";const y=p({components:{AvatarImage:c},data:()=>({isLoading:!0,user:void 0,isDealer:!1,dealer:void 0,refereeName:void 0,setting:{background:void 0,words:void 0}}),onLoad(e){this.getCenter()},methods:{getCenter(){const e=this;e.isLoading=!0,u().then((a=>{const l=a.data;e.isDealer=l.isDealer,e.user=l.user,e.dealer=l.dealer,e.refereeName=l.refereeName,e.setting=l.setting,e.setPageTitle(),e.isLoading=!1}))},setPageTitle(){uni.setNavigationBarTitle({title:this.setting.words.index.title.value})}}},[["render",function(c,u,p,y,g,S){const k=r,I=s,w=n("avatar-image"),m=f;return g.isLoading?t("",!0):(e(),a(I,{key:0,class:"container b-f"},{default:l((()=>[g.isDealer?(e(),a(I,{key:0,class:"center"},{default:l((()=>[i(I,{class:"dealer-bg"},{default:l((()=>[i(k,{class:"image",mode:"widthFix",src:g.setting.background},null,8,["src"])])),_:1}),i(I,{class:"widget-body b-f dis-flex flex-dir-column flex-y-center"},{default:l((()=>[i(I,{class:"widget widget__base m-top20 b-f dis-flex flex-dir-column"},{default:l((()=>[i(I,{class:"base__user f-30"},{default:l((()=>[i(I,{class:"user-avatar"},{default:l((()=>[i(w,{url:g.user.avatar_url,width:150,borderWidth:4,borderColor:"#fff"},null,8,["url"])])),_:1}),i(I,{class:"user-nickName f-32"},{default:l((()=>[d(o(g.user.nick_name),1)])),_:1}),i(I,{class:"user-referee f-24 col-9"},{default:l((()=>[d(o(g.setting.words.index.words.referee.value)+":"+o(g.refereeName),1)])),_:1})])),_:1}),i(I,{class:"base__capital dis-flex flex-dir-column"},{default:l((()=>[i(I,{class:"capital-card dis-flex"},{default:l((()=>[i(I,{class:"card-left"},{default:l((()=>[i(I,{class:"f-28 col-f"},{default:l((()=>[i(m,{space:"ensp"},{default:l((()=>[d(o(g.setting.words.index.words.money.value)+" "+o(g.dealer.money),1)])),_:1}),i(m,{class:"m-l-10"},{default:l((()=>[d("元")])),_:1})])),_:1}),i(I,{class:"f-28 col-f"},{default:l((()=>[i(m,{space:"ensp"},{default:l((()=>[d(o(g.setting.words.index.words.freeze_money.value)+" "+o(g.dealer.freeze_money),1)])),_:1}),i(m,{class:"m-l-10"},{default:l((()=>[d("元")])),_:1})])),_:1})])),_:1}),i(I,{class:"card-right flex-box dis-flex flex-x-end flex-y-center"},{default:l((()=>[i(I,{class:"withdraw-btn f-26",onClick:u[0]||(u[0]=e=>c.$navTo("pages/dealer/withdraw/apply"))},{default:l((()=>[d(o(g.setting.words.index.words.withdraw.value),1)])),_:1})])),_:1})])),_:1}),i(I,{class:"capital-already clear"},{default:l((()=>[i(I,{class:"already-left f-26 fl"},{default:l((()=>[d(o(g.setting.words.index.words.total_money.value),1)])),_:1}),i(I,{class:"already-right f-26 fr"},{default:l((()=>[d(o(g.dealer.total_money)+"元",1)])),_:1})])),_:1})])),_:1})])),_:1}),i(I,{class:"widget widget__operat clear b-f"},{default:l((()=>[i(I,{class:"operat__item",onClick:u[1]||(u[1]=e=>c.$navTo("pages/dealer/withdraw/list"))},{default:l((()=>[i(I,{class:"item__icon"},{default:l((()=>[i(m,{class:"iconfont icon-zhangben",style:{color:"#F9BA21"}})])),_:1}),i(I,{class:"item__text f-26"},{default:l((()=>[d(o(g.setting.words.withdraw_list.title.value),1)])),_:1})])),_:1}),i(I,{class:"operat__item",onClick:u[2]||(u[2]=e=>c.$navTo("pages/dealer/order"))},{default:l((()=>[i(I,{class:"item__icon"},{default:l((()=>[i(m,{class:"iconfont icon-dingdan",style:{color:"#FF7575"}})])),_:1}),i(I,{class:"item__text f-26"},{default:l((()=>[d(o(g.setting.words.order.title.value),1)])),_:1})])),_:1}),i(I,{class:"operat__item",onClick:u[3]||(u[3]=e=>c.$navTo("pages/dealer/team"))},{default:l((()=>[i(I,{class:"item__icon"},{default:l((()=>[i(m,{class:"iconfont icon-tuandui",style:{color:"#59C78E"}})])),_:1}),i(I,{class:"item__text f-26"},{default:l((()=>[d(o(g.setting.words.team.title.value),1)])),_:1})])),_:1}),i(I,{class:"operat__item",onClick:u[4]||(u[4]=e=>c.$navTo("pages/dealer/poster"))},{default:l((()=>[i(I,{class:"item__icon"},{default:l((()=>[i(m,{class:"iconfont icon-erweima",style:{co