1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8c243dc8"],{"0391":function(e,t,a){var r=a("e222");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=a("499e").default;i("af059ac0",r,!0,{sourceMap:!1,shadowMode:!1})},"0b6b":function(e,t,a){"use strict";a("0391")},a426:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:[3==this.fun.getPhoneEnv()?"pcStyle":""],attrs:{id:"work-wechat-sidebar"}},[a("div",{staticClass:"member-header"},[a("div",{staticClass:"member-info"},[a("div",{staticClass:"atavar"},[a("img",{attrs:{src:e.memberInfo.avatar,alt:""}})]),a("div",{staticClass:"info"},[a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("h1",{staticClass:"user-name overflow"},[e._v(e._s(e.memberInfo.nickname))]),e.memberInfo.uid?a("span",{staticClass:"user-id"},[e._v("ID: "+e._s(e.memberInfo.uid))]):e._e(),e.memberInfo.is_agent?a("el-tooltip",{attrs:{effect:"dark",content:"推广员",placement:"top"}},[a("i",{staticClass:"iconfont icon-fontclass-daili"})]):e._e(),e.memberInfo.is_existence?a("el-tooltip",{attrs:{effect:"dark",content:"名片",placement:"top"}},[a("i",{staticClass:"iconfont icon-fontclass-mingpian",on:{click:function(t){return e.toCard(e.memberInfo.card_id)}}})]):e._e()],1),a("div",{staticStyle:{display:"flex","margin-top":"0.6rem"}},[e.memberInfo.level_name?a("div",{staticClass:"mermber-level",on:{click:e.gotoMemberGrade}},[e._v(e._s(e.memberInfo.level_name))]):e._e(),e.memberInfo.yz_member&&e.memberInfo.yz_member.validity?a("div",{staticClass:"end-time"},[e._v(e._s(e.memberInfo.yz_member.validity)+"到期")]):e._e()])])]),a("div",{staticClass:"border"}),a("ul",{staticClass:"integral-detail"},[e.memberInfo.credit&&1==e.memberInfo.credit.is_show?a("li",[a("p",{staticClass:"amount"},[e._v(e._s(e.$i18n.t("money"))+e._s(e.memberInfo.credit.data))]),a("p",[e._v(e._s(e.memberInfo.credit.text))])]):e._e(),e.memberInfo.love_show&&1==e.memberInfo.love_show.unable_love_show?a("li",[a("p",{staticClass:"amount"},[e._v(e._s(e.memberInfo.love_show.unable_data))]),a("p",[e._v(e._s(e.memberInfo.love_show.unable_text))])]):e._e(),e.memberInfo.love_show&&1==e.memberInfo.love_show.usable_love_show?a("li",[a("p",{staticClass:"amount"},[e._v(e._s(e.memberInfo.love_show.usable_data))]),a("p",[e._v(e._s(e.memberInfo.love_show.usable_text))])]):e._e(),e.memberInfo.integral_show&&e.memberInfo.integral_show.is_show?a("li",[a("p",{staticClass:"amount"},[e._v(e._s(e.memberInfo.integral_show.data))]),a("p",[e._v(e._s(e.memberInfo.integral_show.text))])]):e._e(),e.memberInfo.integral&&1==e.memberInfo.integral.is_show?a("li",[a("p",{staticClass:"amount"},[e._v(e._s(e.memberInfo.integral.data))]),a("p",[e._v(e._s(e.memberInfo.integral.text))])]):e._e(),e.memberInfo.coupon&&1==e.memberInfo.coupon.is_show?a("li",[a("p",{staticClass:"amount"},[e._v(e._s(e.memberInfo.coupon.data))]),a("p",[e._v(e._s(e.memberInfo.coupon.text))])]):e._e()])]),a("div",{staticClass:"center-box"},[a("van-tabs",{staticClass:"time-tabs",attrs:{color:e.subjectColor},on:{change:e.selectTime},model:{value:e.income_statistic_type,callback:function(t){e.income_statistic_type=t},expression:"income_statistic_type"}},[a("van-tab",{attrs:{title:"全部",name:"0"}}),a("van-tab",{attrs:{title:"今日",name:"1"}}),a("van-tab",{attrs:{title:"昨日",name:"2"}}),a("van-tab",{attrs:{title:"本周",name:"3"}}),a("van-tab",{attrs:{title:"上周",name:"4"}}),a("van-tab",{attrs:{title:"本月",name:"5"}})],1),e.income_statistic.length>0?a("div",{staticClass:"income-detail"},e._l(e.income_statistic,(function(t,r){return a("div",{key:r,staticClass:"item"},[a("el-tooltip",{attrs:{effect:"dark",content:t.value,placement:"top"}},[a("div",[a("p",{staticClass:"num overflow"},[e._v(e._s(t.value))]),a("p",{staticClass:"name"},[e._v(e._s(t.title))])])])],1)})),0):e._e(),a("p",{staticClass:"tips"},[e._v("团队粉丝不随周期变化")]),e.tags&&e.tags.length>0?a("div",{staticClass:"my-tags"},[a("div",{staticClass:"header"},[a("div",{staticClass:"title"},[a("span",[e._v("标签")]),e.memberInfo.is_agent?a("el-tooltip",{attrs:{effect:"dark",content:"每个企业最多设置3000个标签,标签数据可能延时,请手动刷新",placement:"top"}},[a("i",{staticClass:"iconfont icon-ht_tips"})]):e._e(),a("van-icon",{staticStyle:{"margin-left":"4px"},attrs:{name:"replay"},on:{click:function(t){return t.stopPropagation(),e.getUserData.apply(null,arguments)}}})],1),a("div")]),a("div",{staticClass:"tag-list"},e._l(e.tags,(function(t,r){return a("van-tag",{key:r,staticClass:"tag",attrs:{plain:"",type:"primary",color:"#f78b00","text-color":"#f78b00"}},[e._v(e._s(t.tag.title))])})),1)]):e._e()],1),a("div",{staticClass:"tab-bar"},[a("van-tabs",{staticClass:"tabs",attrs:{color:e.subjectColor},model:{value:e.navActive,callback:function(t){e.navActive=t},expression:"navActive"}},e._l(e.tabList,(function(e,t){return a("van-tab",{key:t,attrs:{title:e,name:t}})})),1)],1),e.showChild?a("div",{staticClass:"bottom-box"},[0===e.navActive?a("user-info",{attrs:{userMember:e.memberInfo,memberId:e.memberInfo.yz_member?e.memberInfo.yz_member.member_id:"",keywork:"customer"}}):[a(e.componentName,{tag:"component",attrs:{keywork:"customer",memberId:e.memberInfo.yz_member?e.memberInfo.yz_member.member_id:""}})]],2):e._e(),a("van-action-sheet",{attrs:{actions:e.actions},on:{select:e.selectTags},model:{value:e.showAddSheet,callback:function(t){e.showAddSheet=t},expression:"showAddSheet"}}),a("van-popup",{style:{height:"12rem",width:"80%",position:"fixed",left:"50%"},attrs:{closeable:!0,round:"","get-container":"#work-wechat-sidebar"},model:{value:e.showAddTagPop,callback:function(t){e.showAddTagPop=t},expression:"showAddTagPop"}},[a("div",{staticClass:"addtag-popup"},[a("p",{staticClass:"popup-title"},[e._v("添加标签")]),a("van-field",{staticClass:"tag-input",attrs:{placeholder:"请输入标签内容"},model:{value:e.addTagText,callback:function(t){e.addTagText=t},expression:"addTagText"}}),a("div",{staticClass:"btn-confirm",on:{click:e.confirmAdd}},[e._v("确定")])],1)])],1)},i=[],o=(a("e7e5"),a("d399")),s=a("5530"),n=(a("b64b"),a("14d9"),a("7203")),b=a("3e36"),m=a("dbcd"),c=a("bef2"),d=a("5f19"),l=a("dcaf"),f=a("dd33"),h=a("91b7"),p={data:function(){return{agentData:{agent_secret:"",agentid:"",corpid:""},testUserId:"wmDesSDgAAnVOxcNIw8XQ6x1qhN5ZidA",userDataUrl:"plugin.customer-center.frontend.controllers.customer.get-customer",getConfig:{member_id:"",income_statistic_type:0},memberInfo:{},income_statistic:[],tags:[],actions:[],navActive:0,addTagText:"",showAddTagPop:!1,showAddSheet:!1,income_statistic_type:"0",tabList:["会员详情","Ta的客户","订单列表","收入详情","Ta的购物车","优惠券","商品收藏","浏览足迹"],showChild:!1,subjectColor:""}},computed:{componentName:function(){switch(this.navActive){case 1:return"myCustomer";case 2:return"orderList";case 3:return"revenueDetails";case 4:return"myCart";case 5:return"goodsCoupon";case 6:return"myFavorite";case 7:return"browseRecord"}}},activated:function(){this.getConfig.member_id=this.$route.params.id,this.getUserData();try{this.subjectColor=JSON.parse(localStorage.getItem("yz_basic_info")).theme_color}catch(e){}},methods:{getUserData:function(){var e=this;$http.post(this.userDataUrl,this.getConfig,"loading").then((function(t){1===t.result?(t.data.member&&0==t.data.member.hasAuth&&e.$dialog.alert({message:"暂无权限"}).then((function(){e.$router.push(e.fun.getUrl("member"))})),e.showChild=!0,e.tags=t.data.member.has_many_tag,e.memberInfo=t.data.member,e.income_statistic=t.data.statistics):e.$toast(t.msg)})).catch((function(e){}))},closeSheet:function(){this.showAddSheet=!1},beforeClose:function(e,t){var a=this;if("confirm"===e)var r=setInterval((function(){a.countTime-=1,0==a.countTime&&(clearInterval(r),t())}),1e3);else t()},selectTime:function(){var e=this;$http.get(this.userDataUrl,Object(s["a"])(Object(s["a"])({},this.getConfig),{},{income_statistic_type:this.income_statistic_type}),"loading").then((function(t){1===t.result?e.income_statistic=t.data.statistics:e.$toast(t.msg)})).catch((function(e){}))},gotoMemberGrade:function(){this.isMemberGrade&&this.$router.push(this.fun.getUrl("MemberGradeList"))},toCard:function(e){e?this.$router.push(this.fun.getUrl("BusinessCard",{},{mark_id:e,mark:"card"})):Object(o["a"])("该会员没有对应的名片")},errorLogHandler:function(e,t){$http.get("plugin.wechat-chat-sidebar.frontend.controller.index.recordErrorLog",{logType:e,err:t},"loading").then().catch((function(e){}))}},components:{userInfo:n["a"],myCustomer:b["a"],orderList:m["a"],revenueDetails:c["a"],myCart:d["a"],goodsCoupon:l["a"],myFavorite:f["a"],browseRecord:h["a"]}},w=p,g=w,u=(a("0b6b"),a("2877")),v=Object(u["a"])(g,r,i,!1,null,"3ebb66b3",null);t["default"]=v.exports},e222:function(e,t,a){var r=a("24fb"),i=a("1de5"),o=a("95ae"),s=a("1241");t=r(!1);var n=i(o),b=i(s);t.push([e.i,'.pcStyle[data-v-3ebb66b3]{width:375px;margin:0 auto}#work-wechat-sidebar[data-v-3ebb66b3]{font-size:12px;background:#f2f2f2}#work-wechat-sidebar .header-tabs[data-v-3ebb66b3]{width:12rem}#work-wechat-sidebar .member-header[data-v-3ebb66b3]{color:#fff;padding:1rem .875rem;background-color:var(--themeBaseColor)}#work-wechat-sidebar .member-header .member-info[data-v-3ebb66b3]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#work-wechat-sidebar .member-header .member-info .atavar[data-v-3ebb66b3]{width:3.781rem;height:3.75rem;border-radius:50%;overflow:hidden}#work-wechat-sidebar .member-header .member-info .atavar img[data-v-3ebb66b3]{width:100%;height:100%}#work-wechat-sidebar .member-header .member-info .info[data-v-3ebb66b3]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.5rem}#work-wechat-sidebar .member-header .member-info .info .user-name[data-v-3ebb66b3]{max-width:10rem;font-size:1.238rem}#work-wechat-sidebar .member-header .member-info .info .user-id[data-v-3ebb66b3]{height:1.288rem;padding:.2rem;margin-left:.5rem;border-radius:.125rem;background-color:#f34f47}#work-wechat-sidebar .member-header .member-info .info .iconfont[data-v-3ebb66b3]{margin-left:.7rem;color:#ffc479}#work-wechat-sidebar .member-header .member-info .info .icon-fontclass-mingpian[data-v-3ebb66b3]{font-size:2rem}#work-wechat-sidebar .member-header .member-info .info .icon-fontclass-daili[data-v-3ebb66b3]{font-size:1.1rem}#work-wechat-sidebar .member-header .member-info .info .mermber-level[data-v-3ebb66b3]{position:relative;height:1.094rem;color:#6c2a09;padding:0 .5rem 0 1.5rem;border-radius:.469rem;background-image:-webkit-gradient(linear,left top,right top,from(#ffebc0),to(#ffc479)),-webkit-gradient(linear,left top,left bottom,from(#ffd821),to(#ffd821));background-image:-webkit-linear-gradient(left,#ffebc0,#ffc479),-webkit-linear-gradient(#ffd821,#ffd821);background-image:linear-gradient(90deg,#ffebc0,#ffc479),linear-gradient(#ffd821,#ffd821)}#work-wechat-sidebar .member-header .member-info .info .mermber-level[data-v-3ebb66b3]:before{position:absolute;top:-.1rem;left:0;content:"";width:1.188rem;height:1.094rem;background-image:url('+n+");background-size:100% 100%}#work-wechat-sidebar .member-header .member-info .info .end-time[data-v-3ebb66b3]{margin-left:1rem;color:#e8e8e8}#work-wechat-sidebar .member-header .border[data-v-3ebb66b3]{margin:1.2rem 0;height:1.0016px;background-color:#fff}#work-wechat-sidebar .member-header .integral-detail[data-v-3ebb66b3]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;white-space:nowrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;overflow-x:auto;overflow-y:hidden}#work-wechat-sidebar .member-header .integral-detail li[data-v-3ebb66b3]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:1.5rem;margin:0 .5rem}#work-wechat-sidebar .member-header .integral-detail li .amount[data-v-3ebb66b3]{font-size:.888rem;font-weight:700;color:#fff}#work-wechat-sidebar .center-box[data-v-3ebb66b3]{background-color:#fff;padding:.875rem}#work-wechat-sidebar .center-box .time-tabs[data-v-3ebb66b3]{width:auto}#work-wechat-sidebar .center-box .income-detail[data-v-3ebb66b3]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:.5rem;margin-top:1rem;color:#fff;background-repeat:no-repeat;background-size:100% 100%;background-image:url("+b+');text-align:left;white-space:pre-wrap;word-break:break-all}#work-wechat-sidebar .center-box .income-detail .item[data-v-3ebb66b3]{display:inline-block;position:relative;width:32%;padding:.5rem;text-align:center;white-space:nowrap;font-size:.813rem}#work-wechat-sidebar .center-box .income-detail .item[data-v-3ebb66b3]:before{position:absolute;content:"";top:50%;left:0;width:1.0016px;height:1.5rem;background-color:#fff;-webkit-transform:translateY(-50%) scaleX(.5);transform:translateY(-50%) scaleX(.5)}#work-wechat-sidebar .center-box .income-detail .item[data-v-3ebb66b3]:first-child:before,#work-wechat-sidebar .center-box .income-detail .item[data-v-3ebb66b3]:nth-child(3n+4):before{width:0}#work-wechat-sidebar .center-box .tips[data-v-3ebb66b3]{color:#6e6e6e;text-align:left;font-size:.688rem;margin-top:.5rem}#work-wechat-sidebar .center-box .my-tags[data-v-3ebb66b3]{margin-top:1rem}#work-wechat-sidebar .center-box .my-tags .header[data-v-3ebb66b3]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#work-wechat-sidebar .center-box .my-tags .header .title[data-v-3ebb66b3]{font-size:.938rem}#work-wechat-sidebar .center-box .my-tags .header .history-tag[data-v-3ebb66b3]{margin-right:.625rem;color:#f14e4e;font-size:600}#work-wechat-sidebar .center-box .my-tags .header .add-tags[data-v-3ebb66b3]{display:inline-block;color:#f14e4e;font-size:.688rem;padding:.1rem .5rem;border-radius:.125rem;border:.031rem solid #f14e4e}#work-wechat-sidebar .center-box .my-tags .header .icon-ht_tips[data-v-3ebb66b3]{color:#cda881}#work-wechat-sidebar .center-box .my-tags .tag-list[data-v-3ebb66b3]{text-align:left}#work-wechat-sidebar .center-box .my-tags .tag-list .tag[data-v-3ebb66b3]{padding:.2rem;margin:.625em .325rem 0 0;font-size:.688rem}#work-wechat-sidebar .tab-bar[data-v-3ebb66b3]{position:relative;padding:1rem .875rem .3rem .875rem;background-color:#fff;margin-top:.5rem}#work-wechat-sidebar .tab-bar .title[data-v-3ebb66b3]{text-align:left;font-size:.938rem;margin-bottom:.5rem}#work-wechat-sidebar .tab-bar[data-v-3ebb66b3] .van-tabs .van-tabs__nav--complete{padding-left:0}#work-wechat-sidebar .tab-bar[data-v-3ebb66b3] .van-tabs .van-tabs__wrap--scrollable .van-tab{padding:0 24px 0 0}#work-wechat-sidebar .tab-bar[data-v-3ebb66b3] .van-tabs .van-tabs__line{left:-12px}#work-wechat-sidebar .tab-bar[data-v-3ebb66b3]:after{position:absolute;content:"";bottom:0;left:0;width:100%;height:1.0016px;background-color:#e9e5e5;-webkit-transform:scaleY(.5);transform:scaleY(.5)}#work-wechat-sidebar .addtag-popup[data-v-3ebb66b3]{width:100%;height:100%;padding:1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#work-wechat-sidebar .addtag-popup .popup-title[data-v-3ebb66b3]{color:#252525;font-size:.938rem}#work-wechat-sidebar .addtag-popup .tag-input[data-v-3ebb66b3]{margin:.5rem 0;padding:5.0016px 16px;border:1.0016px solid #afaaaa;border-radius:2rem}#work-wechat-sidebar .addtag-popup .btn-confirm[data-v-3ebb66b3]{width:80%;color:#fff;border-radius:1rem;padding:.46rem 0;font-size:.938rem;background-color:#f59a1f}',""]),e.exports=t}}]); |