bztang-admin/addons/yun_shop/static/app/js/chunk-1726e63c.b518bb04.js

1 line
22 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1726e63c"],{1141:function(t,e,a){var i=a("be4d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("26edac2a",i,!0,{sourceMap:!1,shadowMode:!1})},"51b7":function(t,e,a){"use strict";a("eed9")},"5e7a":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"*[data-v-356f163f]{margin:0;padding:0}.wh_container[data-v-356f163f]{max-width:410px;margin:auto}li[data-v-356f163f]{list-style-type:none}.wh_top_changge[data-v-356f163f],.wh_top_changge li[data-v-356f163f]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.wh_top_changge li[data-v-356f163f]{cursor:pointer;color:#fff;font-size:18px;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:47px}.wh_top_changge .wh_content_li[data-v-356f163f]{cursor:auto;-webkit-box-flex:2.5;-webkit-flex:2.5;-ms-flex:2.5;flex:2.5;color:#323232;font-size:14px}.wh_content_all[data-v-356f163f]{background-color:#fff;width:100%;overflow:hidden;padding-bottom:8px}.wh_content[data-v-356f163f]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0 3% 0 3%;width:100%}.wh_content:first-child .wh_content_item[data-v-356f163f],.wh_content:first-child .wh_content_item_tag[data-v-356f163f]{color:#ddd;font-size:16px}.wh_content_item[data-v-356f163f],wh_content_item_tag[data-v-356f163f]{font-size:13px;width:13.4%;text-align:center;color:#323232;position:relative}.wh_content_item[data-v-356f163f]{height:40px}.wh_item_date[data-v-356f163f],.wh_top_tag[data-v-356f163f]{width:40px;height:40px;line-height:40px;margin:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.wh_jiantou1[data-v-356f163f]{width:10px;height:10px;border-top:2px solid #323232;border-left:2px solid #323232;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.wh_jiantou1[data-v-356f163f]:active,.wh_jiantou2[data-v-356f163f]:active{border-color:#ddd}.wh_jiantou2[data-v-356f163f]{width:10px;height:10px;border-top:2px solid #323232;border-right:2px solid #323232;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.wh_content_item>.wh_isMark[data-v-356f163f]{margin:auto;border-radius:100px;color:#fff;background-color:#3382f9;z-index:2}.wh_content_item .wh_other_dayhide[data-v-356f163f],.wh_content_item .wh_want_dayhide[data-v-356f163f]{color:#bfbfbf}.wh_content_item .wh_isToday[data-v-356f163f]{color:#d34914;border-radius:100px}.wh_content_item .wh_chose_day[data-v-356f163f]{color:#fff;background-color:#3382f9;border-radius:100px}",""]),t.exports=e},"8c0e":function(t,e,a){var i=a("24fb"),n=a("1de5"),r=a("fd20");e=i(!1);var s=n(r);e.push([t.i,".customer-statistic[data-v-2b229d97]{background-color:#f2f2f2}.customer-statistic[data-v-2b229d97] .header-box{padding:.94rem;padding-top:0;color:#fff;background-image:url("+s+");background-size:cover}.customer-statistic[data-v-2b229d97] .header-box .van-nav-bar{background-color:transparent}.customer-statistic[data-v-2b229d97] .header-box .van-nav-bar .van-icon-arrow-left,.customer-statistic[data-v-2b229d97] .header-box .van-nav-bar .van-nav-bar__title{font-size:18px;color:#fff}.customer-statistic[data-v-2b229d97] .header-box .van-hairline--bottom:after{display:none}.customer-statistic[data-v-2b229d97] .header-box .calendar-cell{margin-top:2rem;font-size:15px}.customer-statistic[data-v-2b229d97] .header-box .calendar-cell .icon-fontclass-rili{margin-right:.5rem}.customer-statistic[data-v-2b229d97] .header-box .cumulative{font-size:10px;line-height:30px}.customer-statistic[data-v-2b229d97] .header-box .cumulative .cumulative-num{font-size:23px;font-weight:700;margin-right:.3rem}.customer-statistic[data-v-2b229d97] .header-box .statistic-box{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:1.2rem}.customer-statistic[data-v-2b229d97] .header-box .statistic-box .cumulative-box,.customer-statistic[data-v-2b229d97] .header-box .statistic-box .current-box{width:9.38rem;padding:.69rem;background-color:#fff;border-radius:.31rem}.customer-statistic[data-v-2b229d97] .header-box .statistic-box .cumulative-box .statistic-title,.customer-statistic[data-v-2b229d97] .header-box .statistic-box .current-box .statistic-title{font-size:12px;color:#575757}.customer-statistic[data-v-2b229d97] .header-box .statistic-box .cumulative-box .statistic-num,.customer-statistic[data-v-2b229d97] .header-box .statistic-box .current-box .statistic-num{font-size:18px;font-weight:700;padding:.5rem 0;color:#323232}.customer-statistic[data-v-2b229d97] .header-box .statistic-box .cumulative-box .diff,.customer-statistic[data-v-2b229d97] .header-box .statistic-box .current-box .diff{font-size:10px;color:#868686}.customer-statistic[data-v-2b229d97] .header-box .increase-icon{color:#ee2525}.customer-statistic[data-v-2b229d97] .header-box .reduce-icon{color:#4aa22b;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.customer-statistic .container[data-v-2b229d97]{padding-bottom:1rem}.customer-statistic .plane-block[data-v-2b229d97]{margin:.63rem .94rem;border-radius:.53rem;background-color:#fff}.customer-statistic[data-v-2b229d97] .calendar-popup{padding:.5rem 2rem}.flex[data-v-2b229d97],.flex-j-c[data-v-2b229d97]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flex-j-c[data-v-2b229d97]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.flex-j-sb[data-v-2b229d97]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.flex-a-c[data-v-2b229d97],.flex-j-sb[data-v-2b229d97]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flex-a-c[data-v-2b229d97]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.flex-a-fe[data-v-2b229d97]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}",""]),t.exports=e},"9e7d":function(t,e,a){var i=a("8c0e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("0605aea6",i,!0,{sourceMap:!1,shadowMode:!1})},b4f4:function(t,e,a){"use strict";a("1141")},be4d:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".member-visit-record[data-v-ce37cda0]{padding:5%}.member-visit-record .block-title[data-v-ce37cda0]{color:#202020;text-align:left;font-weight:700;font-size:18px}.member-visit-record .record-list[data-v-ce37cda0]{margin-top:1rem}.member-visit-record .record-list .record-item[data-v-ce37cda0]{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-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:1.2rem}.member-visit-record .record-list .record-item .avatar[data-v-ce37cda0]{width:2.688rem;height:2.688rem;border-radius:50%}.member-visit-record .record-list .record-item .member-info[data-v-ce37cda0]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.5rem;text-align:left}.member-visit-record .record-list .record-item .member-info .member-nickname[data-v-ce37cda0]{max-width:7rem;font-size:.813rem;color:#222}.member-visit-record .record-list .record-item .member-info .member-id[data-v-ce37cda0],.member-visit-record .record-list .record-item .member-info .visit-num[data-v-ce37cda0]{margin-left:.5rem;font-size:.688rem;color:#666}.member-visit-record .record-list .record-item .member-info .visit-num[data-v-ce37cda0]{margin:.5rem 0}.member-visit-record .record-list .record-item .member-info .view-record[data-v-ce37cda0]{font-size:.688rem;color:#0b8dfe}.member-visit-record .record-list .record-item .open-chat-btn[data-v-ce37cda0]{padding:.5rem .9rem;font-size:.688rem;color:#fff;background-color:#0b8dfe;border-radius:1rem;cursor:default}",""]),t.exports=e},cc64:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"customer-statistic"},[a("div",{staticClass:"header-box"},[a("van-nav-bar",{staticClass:"nav-bar",attrs:{"left-arrow":"",title:"数据统计"},on:{"click-left":t.onClickLeft}}),a("div",{staticClass:"calendar-cell flex-j-sb flex-a-c",on:{click:t.showCalendar}},[a("span",[a("van-icon",{staticClass:"iconfont icon-fontclass-rili"}),a("span",[t._v(t._s(t.timeText))])],1),a("van-icon",{attrs:{name:"arrow"}})],1),a("div",{staticClass:"cumulative"},[a("p",[t._v("累计访问次数")]),a("div",[a("span",{staticClass:"cumulative-num"},[t._v(t._s(t.cumulative.total))]),a("span",[t._v("较昨日"+t._s(t.cumulative.yday_total))])])]),a("div",{staticClass:"statistic-box"},[a("div",{staticClass:"cumulative-box"},[a("p",{staticClass:"statistic-title"},[t._v("累计访问人数")]),a("p",{staticClass:"statistic-num"},[t._v(t._s(t.cumulative.people_total))]),a("div",{staticClass:"diff flex-j-sb flex-a-c"},[a("span",[t._v("较昨日"+t._s(t.cumulative.yday_people_total))]),a("van-icon",{staticClass:"iconfont icon-rise",class:t.cumulative.yday_people_total>0?"increase-icon":"reduce-icon"})],1)]),a("div",{staticClass:"current-box"},[a("p",{staticClass:"statistic-title"},[t._v("当日最高访问次数")]),a("p",{staticClass:"statistic-num"},[t._v(t._s(t.cumulative.max_number))]),a("div",{staticClass:"diff flex-j-sb flex-a-c"},[a("span",[t._v("较昨日"+t._s(t.cumulative.yday_max_number))]),a("van-icon",{staticClass:"iconfont icon-rise",class:t.cumulative.yday_max_number>0?"increase-icon":"reduce-icon"})],1)])])],1),a("div",{staticClass:"container"},[a("div",{staticClass:"plane-block"},[a("history-echart",{attrs:{id:"line-history-chart",history:t.history}})],1),a("div",{staticClass:"plane-block"},[a("port-echart",{attrs:{barId:"bar-port-chart",pieId:"pie-port-chart",port:t.port}})],1),t.rank.length>0?a("div",{staticClass:"plane-block"},[a("page-ranking",{attrs:{rankList:t.rank}})],1):t._e(),t.member.length>0?a("div",{staticClass:"plane-block"},[a("member-record",{attrs:{memberList:t.member,currentTime:t.currentTime},on:{childOpenChat:t.openEnterpriseChat}})],1):t._e()]),a("van-popup",{staticClass:"calendar-popup",attrs:{position:"bottom",round:""},model:{value:t.isShowCalendar,callback:function(e){t.isShowCalendar=e},expression:"isShowCalendar"}},[a("div",{staticClass:"popup-title"},[t._v("选择日期")]),a("calendar",{ref:"Calendar",attrs:{markDate:t.markDate,agoDayHide:0,futureDayHide:t.futureDayHide},on:{choseDay:t.changeDate}})],1)],1)},n=[],r=(a("fb6a"),a("d3b7"),a("25f0"),a("d76c")),s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"wh_container"},[a("div",{staticClass:"wh_content_all"},[a("div",{staticClass:"wh_top_changge"},[a("li",{on:{click:function(e){return t.PreMonth(t.myDate,!1)}}},[a("div",{staticClass:"wh_jiantou1"})]),a("li",{staticClass:"wh_content_li"},[t._v(t._s(t.dateTop))]),a("li",{on:{click:function(e){return t.NextMonth(t.myDate,!1)}}},[a("div",{staticClass:"wh_jiantou2"})])]),a("div",{staticClass:"wh_content"},t._l(t.textTop,(function(e){return a("div",{staticClass:"wh_content_item"},[a("div",{staticClass:"wh_top_tag"},[t._v(t._s(e))])])})),0),a("div",{staticClass:"wh_content"},t._l(t.list,(function(e,i){return a("div",{staticClass:"wh_content_item",on:{click:function(a){return t.clickDay(e,i)}}},[a("div",{staticClass:"wh_item_date",class:[{wh_isMark:e.isMark},{wh_other_dayhide:"nowMonth"!==e.otherMonth},{wh_want_dayhide:e.dayHide},{wh_isToday:e.isToday},{wh_chose_day:e.chooseDay},t.setClass(e)]},[t._v(t._s(e.id))])])})),0)])])},o=[],c=a("b85c"),d=a("3835"),l=(a("d81d"),a("99af"),a("14d9"),a("2909")),f=(a("ac1f"),a("5319"),{getDaysInOneMonth:function(t){var e=t.getFullYear(),a=t.getMonth()+1,i=new Date(e,a,0);return i.getDate()},getMonthweek:function(t){var e=t.getFullYear(),a=t.getMonth()+1,i=new Date(e+"/"+a+"/1");return this.sundayStart?0==i.getDay()?7:i.getDay():0==i.getDay()?6:i.getDay()-1},getOtherMonth:function(t){var e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nextMonth",i=this.dateFormat(t).split("/"),n=i[0],r=i[1],s=i[2],o=n;"nextMonth"===a?(e=parseInt(r)+1,13==e&&(o=parseInt(o)+1,e=1)):(e=parseInt(r)-1,0==e&&(o=parseInt(o)-1,e=12));var c=s,d=new Date(o,e,0).getDate();c>d&&(c=d),e<10&&(e="0"+e),c<10&&(c="0"+c);var l=o+"/"+e+"/"+c;return new Date(l)},getLeftArr:function(t){for(var e=[],a=this.getMonthweek(t),i=this.getDaysInOneMonth(this.getOtherMonth(t,"preMonth"))-a+1,n=this.getOtherMonth(t,"preMonth"),r=0;r<a;r++){var s=n.getFullYear()+"/"+(n.getMonth()+1)+"/"+(i+r);e.push({id:i+r,date:s,isToday:!1,otherMonth:"preMonth"})}return e},getRightArr:function(t){for(var e=[],a=this.getOtherMonth(t,"nextMonth"),i=this.getDaysInOneMonth(t)+this.getMonthweek(t),n=7-i%7,r=0;r<n;r++){var s=a.getFullYear()+"/"+(a.getMonth()+1)+"/"+(r+1);e.push({id:r+1,date:s,isToday:!1,otherMonth:"nextMonth"})}return e},dateFormat:function(t){return t="string"===typeof t?new Date(t.replace(/\-/g,"/")):t,t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()},getMonthListNoOther:function(t){for(var e=[],a=this.getDaysInOneMonth(t),i=t.getFullYear(),n=t.getMonth()+1,r=this.dateFormat(new Date),s=0;s<a;s++){var o=i+"/"+n+"/"+(s+1);e.push({id:s+1,date:o,isToday:r===o,otherMonth:"nowMonth"})}return e},getMonthList:function(t){return[].concat(Object(l["a"])(this.getLeftArr(t)),Object(l["a"])(this.getMonthListNoOther(t)),Object(l["a"])(this.getRightArr(t)))},sundayStart:!1}),h={data:function(){return{myDate:[],list:[],historyChose:[],dateTop:""}},props:{markDate:{type:Array,default:function(){return[]}},markDateMore:{type:Array,default:function(){return[]}},textTop:{type:Array,default:function(){return["一","二","三","四","五","六","日"]}},sundayStart:{type:Boolean,default:function(){return!1}},agoDayHide:{type:String,default:"0"},futureDayHide:{type:String,default:"2554387200"}},created:function(){this.intStart(),this.myDate=new Date},methods:{intStart:function(){f.sundayStart=this.sundayStart},setClass:function(t){var e={};return e[t.markClassName]=t.markClassName,e},clickDay:function(t,e){"nowMonth"!==t.otherMonth||t.dayHide||this.getList(this.myDate,t.date),"nowMonth"!==t.otherMonth&&("preMonth"===t.otherMonth?this.PreMonth(t.date):this.NextMonth(t.date))},ChoseMonth:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t=f.dateFormat(t),this.myDate=new Date(t),this.$emit("changeMonth",f.dateFormat(this.myDate)),e?this.getList(this.myDate,t,e):this.getList(this.myDate)},PreMonth:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t=f.dateFormat(t),this.myDate=f.getOtherMonth(this.myDate,"preMonth"),this.$emit("changeMonth",f.dateFormat(this.myDate)),e?this.getList(this.myDate,t,e):this.getList(this.myDate)},NextMonth:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t=f.dateFormat(t),this.myDate=f.getOtherMonth(this.myDate,"nextMonth"),this.$emit("changeMonth",f.dateFormat(this.myDate)),e?this.getList(this.myDate,t,e):this.getList(this.myDate)},forMatArgs:function(){var t=this.markDate,e=this.markDateMore;return t=t.map((function(t){return f.dateFormat(t)})),e=e.map((function(t){return t.date=f.dateFormat(t.date),t})),[t,e]},getList:function(t,e){var a=this.forMatArgs(),i=Object(d["a"])(a,2),n=i[0],r=i[1];this.dateTop="".concat(t.getFullYear(),"年").concat(t.getMonth()+1,"月");for(var s=f.getMonthList(this.myDate),o=0;o<s.length;o++){var l="",h=s[o];h.chooseDay=!1;var u,m=h.date,p=new Date(m).getTime()/1e3,b=Object(c["a"])(r);try{for(b.s();!(u=b.n()).done;){var g=u.value;g.date===m&&(l=g.className||"")}}catch(x){b.e(x)}finally{b.f()}h.markClassName=l,h.isMark=n.indexOf(m)>-1,h.dayHide=p<this.agoDayHide||p>this.futureDayHide,h.isToday&&this.$emit("isToday",m);var v=!h.dayHide&&"nowMonth"===h.otherMonth;e&&e===m&&v?(this.$emit("choseDay",m),this.historyChose.push(m),h.chooseDay=!0):this.historyChose[this.historyChose.length-1]===m&&!e&&v&&(h.chooseDay=!0)}this.list=s}},mounted:function(){this.getList(this.myDate)},watch:{markDate:{handler:function(t,e){this.getList(this.myDate)},deep:!0},markDateMore:{handler:function(t,e){this.getList(this.myDate)},deep:!0},agoDayHide:{handler:function(t,e){this.getList(this.myDate)},deep:!0},futureDayHide:{handler:function(t,e){this.getList(this.myDate)},deep:!0},sundayStart:{handler:function(t,e){this.intStart(),this.getList(this.myDate)},deep:!0}}},u=h,m=(a("51b7"),a("2877")),p=Object(m["a"])(u,s,o,!1,null,"356f163f",null),b=p.exports,g=b,v=a("ff78"),x=a("c996"),w=a("bfeb"),y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"member-visit-record"},[a("h1",{staticClass:"block-title"},[t._v("访问会员")]),a("div",{staticClass:"record-list"},t._l(t.memberList,(function(e,i){return a("div",{key:i,staticClass:"record-item"},[a("img",{staticClass:"avatar",attrs:{src:e.avatar,alt:""}}),a("div",{staticClass:"member-info"},[a("div",{staticStyle:{display:"flex"}},[a("span",{staticClass:"member-nickname van-ellipsis"},[t._v(t._s(e.nickname))]),a("span",{staticClass:"member-id"},[t._v("ID"+t._s(e.id))])]),a("p",{staticClass:"visit-num"},[t._v("访问次数:"+t._s(e.total))]),a("p",{staticClass:"view-record",on:{click:function(a){return t.toRecordDetail(e.id)}}},[t._v("查看访问记录")])]),a("div",{staticClass:"open-chat-btn",on:{click:function(a){return t.emitChat(e.external_userid)}}},[t._v("发起会话")])])})),0)])},_=[],k={props:{memberList:{type:Array,default:function(){return[]}},currentTime:{type:Date}},data:function(){return{}},methods:{toRecordDetail:function(t){this.$router.push(this.fun.getUrl("memberRecordDetail",{id:t},{time:this.currentTime.getTime()}))},emitChat:function(t){this.$emit("childOpenChat",t)}},components:{}},D=k,C=(a("b4f4"),Object(m["a"])(D,y,_,!1,null,"ce37cda0",null)),M=C.exports,j={mixins:[r["a"]],data:function(){return{isShowCalendar:!1,currentTime:new Date,timeText:"",markDate:[],resData:null,cumulative:{},history:[],port:[],rank:[],member:[]}},created:function(){this.appjsApiList=["openEnterpriseChat"],this.agentConfigUrl="plugin.customer-radar.frontend.controller.member.login.getConfig"},activated:function(){var t=this.fun.getKey("date");t&&(this.currentTime=new Date(t)),this.timeText=this.fun.dateFormat("YYY-mm-dd",this.currentTime),this.markDate[0]=this.fun.dateFormat("YYYY/mm/dd",this.currentTime),this.getStatisticsByDay()},methods:{getStatisticsByDay:function(){var t=this;$http.post("plugin.customer-radar.frontend.controller.member.browse-statistics.getStatisticsByDay",{date:this.currentTime}).then((function(e){if(1!==e.result)return t.$toast(e.msg);t.resData=e.data;var a=e.data,i=a.cumulative,n=a.history,r=a.port,s=a.rank,o=a.member;t.cumulative=i,t.history=n,t.port=r,t.rank=s&&s.slice(0,10),t.member=o}))},showCalendar:function(){this.isShowCalendar=!0},changeDate:function(t){this.markDate=[t],this.currentTime=new Date(t),this.timeText=this.fun.dateFormat("YYY-mm-dd",this.currentTime),this.isShowCalendar=!1,this.getStatisticsByDay()},onClickLeft:function(){history.back()},openEnterpriseChat:function(t){if(!this.isSignWorkApp)return this.$dialog.confirm({title:"提示",message:"企业应用未授权!"});wx.openEnterpriseChat({externalUserIds:t,success:function(t){},fail:function(t){t.errMsg.indexOf("function not exist")>-1&&alert("版本过低请升级")}})}},computed:{futureDayHide:function(){var t=Date.parse(new Date).toString();return t=t.substr(0,10),t}},components:{historyEchart:v["a"],portEchart:x["a"],pageRanking:w["a"],memberRecord:M,calendar:g}},S=j,L=(a("e24e"),Object(m["a"])(S,i,n,!1,null,"2b229d97",null));e["default"]=L.exports},d76c:function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var i=a("c7eb"),n=a("1da1"),r=(a("e9c4"),{data:function(){return{agentConfigUrl:null,isSignWorkApp:!1,agentData:{agent_secret:"",agentid:"",corpid:""},get_token:{},appjsApiList:[],appSignCallback:null,appSignError:null,agentConfigLoading:0}},created:function(){if(this.fun.getKey("crop_id")){var t=this.fun.getKey("crop_id");window.localStorage.setItem("crop_id",t),this.corp_id=t}else this.corp_id=window.localStorage.getItem("crop_id")||"0"},activated:function(){("work"===this.fun.getKey("client")||window.localStorage.getItem("client"))&&this.getAgentConfig()},methods:{getAgentConfig:function(){var t=this;return Object(n["a"])(Object(i["a"])().mark((function e(){var a,n,r,s,o;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t,n=t.agentConfigUrl||"plugin.wechat-chat-sidebar.frontend.controller.index.get-config",r="ios"===t.fun.isIosOrAndroid()?window.initUrl:document.location.href,e.prev=3,e.next=6,$http.post(n,{crop_id:t.corp_id,url:r},"loading");case 6:if(s=e.sent,1!=s.result){e.next=11;break}t.agentData=s.data,e.next=13;break;case 11:return t.agentConfigLoading=-1,e.abrupt("return",t.$toast(s.msg));case 13:t.agentConfigLoading=0,t.get_token=t.agentData.get_token,o={debug:!1,beta:!0,jsApiList:["agentConfig","closeWindow"],openTagList:["ww-open-data"],appId:t.agentData.corpid,nonceStr:t.get_token.noncestr,timestamp:t.get_token.timestamp,signature:t.get_token.token},wx.config(o),wx.ready((function(){setTimeout((function(){t.getAgentSign(o,t.get_token.app_token)}),500)})),wx.error((function(t){a.$toast(JSON.stringify(t))})),e.next=24;break;case 21:e.prev=21,e.t0=e["catch"](3),t.$toast(e.t0);case 24:case"end":return e.stop()}}),e,null,[[3,21]])})))()},getAgentSign:function(t,e){var a=this;wx.agentConfig({debug:!1,corpid:t.appId,agentid:this.agentData.agentid,timestamp:t.timestamp,nonceStr:t.nonceStr,signature:e,jsApiList:a.appjsApiList,success:function(){a.isSignWorkApp=!0,a.agentConfigLoading=1,a.appSignSuccess&&a.appSignSuccess()},fail:function(t){a.agentConfigLoading=-1,a.appSignError&&a.appSignError(),t.errMsg.indexOf("function not exist")>-1?a.$toast("版本过低请升级"):a.$toast("企业应用授权失败,请联系管理员重新配置!")}})}}})},e24e:function(t,e,a){"use strict";a("9e7d")},eed9:function(t,e,a){var i=a("5e7a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("fc784544",i,!0,{sourceMap:!1,shadowMode:!1})},fd20:function(t,e,a){t.exports=a.p+"static/app/img/customer_statistic_bg.c301dc59.png"}}]);