(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ea1baed0"],{"4af2":function(t,a,s){"use strict";s("ba0d")},5703:function(t,a,s){"use strict";s.r(a);var e=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("el-drawer",{attrs:{title:"客户详情",visible:t.showStatus,size:"70%","before-close":t.closeFn,"custom-class":"member-draw-wrap"},on:{"update:visible":function(a){t.showStatus=a}}},[s("div",{staticClass:"head-wrap"},[s("div",{staticClass:"head-left"},[s("cl-avatar",{style:{margin:"auto"},attrs:{size:60,src:t._f("default_avatar")(t.info.avatarUrl)}}),s("div",[t._v(t._s(t.info.userName))]),t.info.userAsset?s("div",[t._v(t._s(t.info.userAsset.growth))]):t._e()],1),s("div",{staticClass:"head-right"},[s("div",[s("div",{staticClass:"info-label"},[t._v("用户ID")]),s("div",{staticClass:"info-val"},[t._v(t._s(t.info.id))])]),s("div",[s("div",{staticClass:"info-label"},[t._v("手机号")]),s("div",{staticClass:"info-val"},[t._v(t._s(t.info.mobile||"-"))])]),s("div",[s("div",{staticClass:"info-label"},[t._v("昵称")]),s("div",{staticClass:"info-val"},[t._v(t._s(t.info.userName))])]),s("div",[s("div",{staticClass:"info-label"},[t._v("粉丝")]),s("div",{staticClass:"info-val"},[t._v(t._s(0==t.info.subscribe?"否":"是"))])]),s("div",[s("div",{staticClass:"info-label"},[t._v("性别")]),s("div",{staticClass:"info-val"},[1==t.info.sex?[t._v("男")]:2==t.info.sex?[t._v("女")]:[t._v("-")]],2)]),s("div",[s("div",{staticClass:"info-label"},[t._v("最近访问")]),s("div",{staticClass:"info-val"},[t._v(t._s(t.info.visitTimeFormat))])]),s("div",[s("div",{staticClass:"info-label"},[t._v("生日")]),s("div",{staticClass:"info-val"},["0000-00-00"==t.info.birthday?[t._v("-")]:[t._v(t._s(t.info.birthday))]],2)]),s("div",[s("div",{staticClass:"info-label"},[t._v("创建时间")]),s("div",{staticClass:"info-val"},[t._v(t._s(t.info.createTime))])]),s("div",[s("div",{staticClass:"info-label"},[t._v("住址")]),s("div",{staticClass:"info-val"},[t._v(t._s(t.info.address||"-"))])]),s("div",[s("div",{staticClass:"info-label"},[t._v("用户来源")]),s("div",{staticClass:"info-val"},[0==t.info.sourceType?[t._v("微信")]:1==t.info.sourceType?[t._v("支付宝")]:2==t.info.sourceType?[t._v("小程序")]:3==t.info.sourceType?[t._v("朋友圈")]:4==t.info.sourceType?[t._v("美团")]:5==t.info.sourceType?[t._v("系统")]:[t._v("-")]],2)])])]),s("div",{staticClass:"card-wrap"},[s("div",{staticClass:"card-tit"},[t._v("资产信息")]),s("el-table",{attrs:{data:t.assetsData}},[s("el-table-column",{attrs:{property:"totalExpend",label:"消费金额"}}),s("el-table-column",{attrs:{property:"totalBuyNum",label:"消费次数"}}),s("el-table-column",{attrs:{property:"balance",label:"余额"}}),s("el-table-column",{attrs:{property:"growth",label:"成长值"}}),s("el-table-column",{attrs:{property:"getCouponNum",label:"领优惠券数"}}),s("el-table-column",{attrs:{property:"totalRecharge",label:"累计充值"}}),s("el-table-column",{attrs:{property:"inviteNum",label:"邀请新人数"}}),s("el-table-column",{attrs:{property:"discount",label:"享折扣"}})],1)],1),s("div",{staticClass:"card-wrap"},[s("div",{staticClass:"card-tit"},[t._v("订单记录")]),s("el-table",{attrs:{data:t.orderData}},[s("el-table-column",{attrs:{property:"id",label:"ID"}}),s("el-table-column",{attrs:{property:"createTime",label:"提交时间"}}),s("el-table-column",{attrs:{property:"actPrice",label:"订单金额"}}),s("el-table-column",{attrs:{property:"payWay",label:"支付方式"}}),s("el-table-column",{attrs:{property:"sendNum",label:"编号"}}),s("el-table-column",{attrs:{property:"status",label:"订单状态"},scopedSlots:t._u([{key:"default",fn:function(a){return[s("span",[t._v(t._s(t._f("constantfilter")(a.row.status,"ORDER_STATUS")))])]}}])}),s("el-table-column",{attrs:{property:"discount",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(a){return[s("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.$router.push("/order/list")}}},[t._v("查看订单")])]}}])})],1)],1)])},i=[],l={name:"detail-draw",props:{show:{type:Boolean,default:!1},info:{type:Object,default:function(){}}},data:function(){return{showStatus:!1,data:{},assetsData:[],orderData:[]}},watch:{show:function(t){this.showStatus=t,t&&this.init()}},methods:{init:function(){var t=this;this.$service.member.allDetail({userId:this.info.id}).then((function(a){t.data=a,t.assetsData=[a.userAsset],t.orderData=a.orderList}))},closeFn:function(t){this.$emit("update:show",!1),t()}}},o=l,r=(s("4af2"),s("a564"),s("5d22")),n=Object(r["a"])(o,e,i,!1,null,"20028f68",null);a["default"]=n.exports},a564:function(t,a,s){"use strict";s("b944")},b944:function(t,a,s){},ba0d:function(t,a,s){}}]);