2 lines
5.6 KiB
JavaScript
2 lines
5.6 KiB
JavaScript
|
import{U as R,J as q,o as N,w as U,D as V,a2 as M,a3 as S,F as z}from"./element-plus.ff90c99c.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.ec118b31.js";import{s as I,b as J}from"./index.9acc1fa4.js";import{u as O}from"./vue-router.6d4cf914.js";import{g as Q,u as T,a as W}from"./consumer.cefe9115.js";import{_ as G}from"./account-adjust.vue_vue_type_script_setup_true_lang.3c21b144.js";import{d as h,$ as D,s as K,aq as L,o as d,c as X,W as e,Q as t,u as s,a as _,U as r,V as i,R as F,P as b}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./lodash.ffb5376d.js";import"./axios.f9df025a.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.d1ea016b.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.4e7fd6e6.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";import"./index.6e7b2ec9.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";const Y={class:"bg-page flex py-5 mb-10 items-center"},Z={class:"basis-40 flex flex-col justify-center items-center"},ee=_("div",{class:"mb-2 text-tx-regular"},"\u7528\u6237\u5934\u50CF",-1),te={class:"basis-40 flex flex-col justify-center items-center"},ae=_("div",{class:"text-tx-regular"},"\u8D26\u6237\u4F59\u989D",-1),oe={class:"mt-2 flex items-center"},se=h({name:"consumerDetail"}),Ge=h({...se,setup(le){const E=O(),o=D({avatar:"",channel:"",create_time:"",login_time:"",mobile:"",nickname:"",real_name:0,sex:0,sn:"",account:"",user_money:""}),p=D({show:!1,value:""}),A=K(),w=async()=>{const l=await Q({id:E.query.id});Object.keys(o).forEach(a=>{o[a]=l[a],a=="sex"&&(o[a]=Number(l[a]))})},v=async(l,a)=>{I(l)||(await T({id:E.query.id,field:a,value:l}),w())},g=l=>{p.show=!0,p.value=l},B=async l=>{await W({user_id:E.query.id,...l}),p.show=!1,w()};return w(),(l,a)=>{const k=R,C=q,j=N,c=U,m=V,u=M,y=J,x=H,$=S,P=z,f=L("perms");return d(),X("div",null,[e(C,{class:"!border-none",shadow:"never"},{default:t(()=>[e(k,{content:"\u7528\u6237\u8BE6\u60C5",onBack:a[0]||(a[0]=n=>l.$router.back())})]),_:1}),e(C,{class:"mt-4 !border-none",header:"\u57FA\u672C\u8D44\u6599",shadow:"never"},{default:t(()=>[e(P,{ref_key:"formRef",ref:A,class:"ls-form",model:s(o),"label-width":"120px"},{default:t(()=>[_("div",Y,[_("div",Z,[ee,e(j,{src:s(o).avatar,size:58},null,8,["src"])]),_("div",te,[ae,_("div",oe,[r(" \xA5"+i(s(o).user_money)+" ",1),F((d(),b(c,{type:"primary",link:"",onClick:a[1]||(a[1]=n=>g(s(o).user_money))},{default:t(()=>[r(" \u8C03\u6574 ")]),_:1})),[[f,["user.user/adjustMoney"]]])])])]),e(u,{span:24,class:"el-card pt-6"},{default:t(()=>[e($,null,{default:t(()=>[e(u,{span:12},{default:t(()=>[e(m,{label:"\u7528\u6237\u7F16\u53F7\uFF1A"},{default:t(()=>[r(i(s(o).sn),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(m,{label:"\u7528\u6237\u6635\u79F0\uFF1A"},{default:t(()=>[r(i(s(o).nickname),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(m,{label:"\u8D26\u53F7\uFF1A"},{default:t(()=>[r(i(s(o).account)+" ",1),F((d(),b(x,{class:"ml-[10px]",onConfirm:a[2]||(a[2]=n=>v(n,"account")),limit:32},{default:t(()=>[e(c,{type:"primary",link:""},{default:t(()=>[e(y,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[f,["user.user/edit"]]])]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(m,{label:"\u771F\u5B9E\u59D3\u540D\uFF1A"},{default:t(()=>[r(i(s(o).real_name||"-")+" ",1),F((d(),b
|