1 line
23 KiB
JavaScript
1 line
23 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-805f9014"],{"27e1":function(a,t,o){var i=o("80ed");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[a.i,i,""]]),i.locals&&(a.exports=i.locals);var e=o("499e").default;e("21040557",i,!0,{sourceMap:!1,shadowMode:!1})},"7b7b":function(a,t,o){"use strict";var i=o("3eba"),e=o.n(i);o("ef97"),o("94b1"),o("c037"),o("d28f"),o("627c"),o("007d");t["a"]=e.a},"80ed":function(a,t,o){var i=o("24fb");t=i(!1),t.push([a.i,"#card_action .popup[data-v-244a18f5]{line-height:4.9rem;text-align:center;border-radius:10px;font-size:18px}#card_action .popup .iconfont[data-v-244a18f5]{font-size:30px;vertical-align:middle}#card_action .content .nav[data-v-244a18f5]{padding:.625rem 0}#card_action .content .nav .card_a[data-v-244a18f5],#card_action .content .nav .card_b[data-v-244a18f5],#card_action .content .nav .card_c[data-v-244a18f5]{margin-top:.625rem}#card_action .content .nav .card_a .card_a_box[data-v-244a18f5],#card_action .content .nav .card_b .card_a_box[data-v-244a18f5],#card_action .content .nav .card_c .card_a_box[data-v-244a18f5]{padding:.625rem .875rem;background:#fff}#card_action .content .nav .card_a .card_a_box .title[data-v-244a18f5],#card_action .content .nav .card_b .card_a_box .title[data-v-244a18f5],#card_action .content .nav .card_c .card_a_box .title[data-v-244a18f5]{height:2.5rem;line-height:2.5rem;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}#card_action .content .nav .card_a .card_a_box .title .block[data-v-244a18f5],#card_action .content .nav .card_b .card_a_box .title .block[data-v-244a18f5],#card_action .content .nav .card_c .card_a_box .title .block[data-v-244a18f5]{width:.25rem;height:1rem;background:#50a6f9;border-radius:.0625rem;margin-right:.375rem}#card_action .content .nav .card_a .card_a_box .title span[data-v-244a18f5],#card_action .content .nav .card_b .card_a_box .title span[data-v-244a18f5],#card_action .content .nav .card_c .card_a_box .title span[data-v-244a18f5]{font-weight:700;font-size:16px}#card_action .content .nav .card_a .card_a_box .info[data-v-244a18f5],#card_action .content .nav .card_b .card_a_box .info[data-v-244a18f5],#card_action .content .nav .card_c .card_a_box .info[data-v-244a18f5]{background:#fafafa;border-radius:.375rem;padding:.625rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}#card_action .content .nav .card_a .card_a_box .info li[data-v-244a18f5],#card_action .content .nav .card_b .card_a_box .info li[data-v-244a18f5],#card_action .content .nav .card_c .card_a_box .info li[data-v-244a18f5]{line-height:1.625rem}#card_action .content .nav .card_a .card_a_box .info li span[data-v-244a18f5]:first-child,#card_action .content .nav .card_b .card_a_box .info li span[data-v-244a18f5]:first-child,#card_action .content .nav .card_c .card_a_box .info li span[data-v-244a18f5]:first-child{font-size:16px}#card_action .content .nav .card_a .card_a_box .info li span[data-v-244a18f5]:last-child,#card_action .content .nav .card_b .card_a_box .info li span[data-v-244a18f5]:last-child,#card_action .content .nav .card_c .card_a_box .info li span[data-v-244a18f5]:last-child{color:#8c8c8c;font-size:12px}#card_action .content .nav .card_a .card_a_box .chart1[data-v-244a18f5],#card_action .content .nav .card_b .card_a_box .chart1[data-v-244a18f5],#card_action .content .nav .card_c .card_a_box .chart1[data-v-244a18f5]{margin-top:.625rem}#card_action .content .nav .card_a .card_a_box .chart1 .img[data-v-244a18f5],#card_action .content .nav .card_b .card_a_box .chart1 .img[data-v-244a18f5],#card_action .content .nav .card_c .card_a_box .chart1 .img[data-v-244a18f5]{margin:0 auto;background:#fff}#card_action .content .nav .card_a .card_a_box .chart1 span[data-v-244a18f5],#card_action .content .nav .card_b .card_a_box .chart1 span[data-v-244a18f5],#card_action .content .nav .card_c .card_a_box .chart1 span[data-v-244a18f5]{font-size:14px;line-height:1.875rem;display:block}#card_action .content .nav .card_a .look_box[data-v-244a18f5],#card_action .content .nav .card_b .look_box[data-v-244a18f5],#card_action .content .nav .card_c .look_box[data-v-244a18f5]{background:#fff;margin-top:.625rem;padding:.625rem .875rem}#card_action .content .nav .card_a .look_box .title[data-v-244a18f5],#card_action .content .nav .card_b .look_box .title[data-v-244a18f5],#card_action .content .nav .card_c .look_box .title[data-v-244a18f5]{height:2.5rem;line-height:2.5rem;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}#card_action .content .nav .card_a .look_box .title .block[data-v-244a18f5],#card_action .content .nav .card_b .look_box .title .block[data-v-244a18f5],#card_action .content .nav .card_c .look_box .title .block[data-v-244a18f5]{width:.25rem;height:1rem;background:#50a6f9;border-radius:.0625rem;margin-right:.375rem}#card_action .content .nav .card_a .look_box .title span[data-v-244a18f5],#card_action .content .nav .card_b .look_box .title span[data-v-244a18f5],#card_action .content .nav .card_c .look_box .title span[data-v-244a18f5]{font-weight:700;font-size:16px}#card_action .content .nav .card_a .look_box .other_list .header_box[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box[data-v-244a18f5]{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;padding:1rem 0;border-bottom:.0625rem solid #ebebeb;position:relative}#card_action .content .nav .card_a .look_box .other_list .header_box .header[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .header[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .header[data-v-244a18f5]{width:3rem;height:3rem;border-radius:3rem;background:#f2f2f2;overflow:hidden;margin-right:.625rem}#card_action .content .nav .card_a .look_box .other_list .header_box .header img[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .header img[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .header img[data-v-244a18f5]{width:100%}#card_action .content .nav .card_a .look_box .other_list .header_box .text[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .text[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .text[data-v-244a18f5]{text-align:left}#card_action .content .nav .card_a .look_box .other_list .header_box .text .name[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .text .name[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .text .name[data-v-244a18f5]{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;line-height:1.5rem}#card_action .content .nav .card_a .look_box .other_list .header_box .text .name span[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .text .name span[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .text .name span[data-v-244a18f5]{font-size:15px;margin-right:.25rem;max-width:7.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#card_action .content .nav .card_a .look_box .other_list .header_box .text .name .iconfont[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .text .name .iconfont[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .text .name .iconfont[data-v-244a18f5]{font-size:1.5rem;margin-right:.25rem}#card_action .content .nav .card_a .look_box .other_list .header_box .text .name button[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .text .name button[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .text .name button[data-v-244a18f5]{border:.0625rem solid #50a6f9;font-size:12px;color:#50a6f9;border-radius:.1875rem;padding:.0625rem .375rem}#card_action .content .nav .card_a .look_box .other_list .header_box .text .grade[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .text .grade[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .text .grade[data-v-244a18f5]{line-height:1.5rem;color:#8c8c8c;font-size:13px}#card_action .content .nav .card_a .look_box .other_list .header_box .icon_right[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .icon_right[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .icon_right[data-v-244a18f5]{position:absolute;right:0}#card_action .content .nav .card_a .look_box .other_list .header_box .icon_right .iconfont[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .icon_right .iconfont[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .icon_right .iconfont[data-v-244a18f5]{display:block;width:2.5rem;height:2.5rem;line-height:2.5rem;font-size:18px;color:#999}#card_action .content .nav .card_a .look_box .other_list .header_box .more_box[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .more_box[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .more_box[data-v-244a18f5]{position:absolute;right:0;top:3.125rem;background:rgba(51,51,51,.8);border-radius:.25rem;z-index:10}#card_action .content .nav .card_a .look_box .other_list .header_box .more_box .list[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .more_box .list[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .more_box .list[data-v-244a18f5]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#card_action .content .nav .card_a .look_box .other_list .header_box .more_box .list li[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .more_box .list li[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .more_box .list li[data-v-244a18f5]{padding:.125rem .625rem}#card_action .content .nav .card_a .look_box .other_list .header_box .more_box .list li span[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .more_box .list li span[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .more_box .list li span[data-v-244a18f5]{display:block;font-size:12px;color:#fff}#card_action .content .nav .card_a .look_box .other_list .header_box .more_box .list li .iconfont[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .more_box .list li .iconfont[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .more_box .list li .iconfont[data-v-244a18f5]{font-size:1.25rem;color:#fff}#card_action .content .nav .card_a .look_box .other_list .header_box .more_box .icon-up[data-v-244a18f5],#card_action .content .nav .card_b .look_box .other_list .header_box .more_box .icon-up[data-v-244a18f5],#card_action .content .nav .card_c .look_box .other_list .header_box .more_box .icon-up[data-v-244a18f5]{color:rgba(51,51,51,.8);font-size:1.25rem;position:absolute;top:-.875rem;right:.625rem}",""]),a.exports=t},"95e2":function(a,t,o){"use strict";o("27e1")},ac0d:function(a,t,o){"use strict";o.d(t,"a",(function(){return c}));var i=document.documentElement,e=document.body,c={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var a=0;return i&&i.scrollTop?a=i.scrollTop:e&&(a=e.scrollTop),a},getClientHeight:function(){var a=0;return a=e.clientHeight&&i.clientHeight?Math.min(e.clientHeight,i.clientHeight):Math.max(e.clientHeight,i.clientHeight),a},getScrollHeight:function(){return Math.max(e.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var a=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=a>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},ede8:function(a,t,o){"use strict";o.r(t);var i=function(){var a=this,t=a.$createElement,o=a._self._c||t;return o("div",{attrs:{id:"card_action"}},[o("c-title",{attrs:{hide:!1,text:"数据统计"}}),o("div",{staticClass:"content"},[o("div",{staticClass:"nav"},[o("van-tabs",{attrs:{type:"card"},on:{change:a.chooseTab},model:{value:a.active,callback:function(t){a.active=t},expression:"active"}},[o("van-tab",{attrs:{title:"名片访问"}},[o("div",{staticClass:"card_a"},[o("div",{staticClass:"card_a_box"},[o("div",{staticClass:"title"},[o("div",{staticClass:"block"}),o("span",[a._v("访客统计")])]),a.visit.statistics?o("ul",{staticClass:"info"},[o("li",[o("span",[a._v(a._s(a.visit.statistics.visitor_num))]),o("br"),o("span",[a._v("累计访问人数")])]),o("li",[o("span",[a._v(a._s(a.visit.statistics.visit_num))]),o("br"),o("span",[a._v("累计访问次数")])]),o("li",[o("span",[a._v(a._s(a.visit.statistics.fans))]),o("br"),o("span",[a._v("累计新增会员")])])]):a._e(),o("div",{staticClass:"chart1"},[a.visit.diagram.date?o("div",{staticClass:"img",staticStyle:{width:"100%",height:"350px"}},[o("ECharts",{staticStyle:{height:"350px",width:"22rem"},attrs:{id:"echarts1",text:"",XData:a.visit.diagram.date,YData:a.visit.diagram.num,right:"6%"}})],1):a._e()])]),o("div",{staticClass:"look_box"},[o("div",{staticClass:"title"},[o("div",{staticClass:"block"}),o("span",[a._v("谁看过我")])]),o("div",{staticClass:"other_list"},a._l(a.visitList,(function(t,i){return o("div",{key:i,staticClass:"header_box",on:{click:function(o){return a.toCard(t,"visit")}}},[o("div",{staticClass:"header"},[t.visitor_card?o("img",{attrs:{src:t.visitor_card.card_avatar}}):a._e(),!t.visitor_card&&t.visitor_member?o("img",{attrs:{src:t.visitor_member.avatar_image}}):a._e()]),o("ul",{staticClass:"text"},[o("li",{staticClass:"name"},[t.visitor_card?o("span",[a._v(a._s(t.visitor_card.card_name))]):a._e(),!t.visitor_card&&t.visitor_member?o("span",[a._v(a._s(t.visitor_member.nickname))]):a._e(),t.is_child?o("i",{staticClass:"iconfont icon-card_relation",staticStyle:{color:"#f66747"}}):a._e(),t.is_new?o("i",{staticClass:"iconfont icon-card_new",staticStyle:{color:"#f6c347"}}):a._e(),t.mutual_save?o("button",{attrs:{type:"button"}},[a._v(" 互存名片 ")]):a._e()]),t.visitor_member&&t.visitor_member.yz_member.level?o("li",{staticClass:"grade"},[a._v(" "+a._s(t.visitor_member.yz_member.level.level_name)+" ")]):a._e()]),t.visitor_card&&(t.visitor_card.card_wechat||t.visitor_card.card_mobile)?o("div",{staticClass:"icon_right"},[o("i",{staticClass:"iconfont icon-more",on:{click:function(o){return a.showMore(t.id)}}})]):a._e(),t.visitor_card&&t.id===a.showID?o("div",{staticClass:"more_box"},[o("ul",{staticClass:"list"},[t.visitor_card.card_wechat?o("li",{on:{click:function(o){return a.showWeChat(t,"微信")}}},[o("i",{staticClass:"iconfont icon-card_weixin1"}),o("span",[a._v("微信")])]):a._e(),t.visitor_card.card_mobile?o("li",{on:{click:function(o){return o.stopPropagation(),a.showWeChat(t,"电话")}}},[o("i",{staticClass:"iconfont icon-card_phone"}),o("span",[a._v("电话")])]):a._e()]),o("i",{staticClass:"iconfont icon-up",on:{click:function(o){return a.showMore(t.id)}}})]):a._e()])})),0)])])]),o("van-tab",{attrs:{title:"名片动作"}},[o("div",{staticClass:"card_b"},[a.share.diagram?o("div",{staticClass:"card_a_box"},[o("div",{staticClass:"title"},[o("div",{staticClass:"block"}),o("span",[a._v("分享次数:"+a._s(a.share.statistics)+"次")])]),a.share.diagram.date?o("div",{staticClass:"chart1"},[o("div",{staticClass:"img",staticStyle:{width:"100%",height:"350px"}},[o("ECharts",{staticStyle:{height:"350px",width:"22rem"},attrs:{id:"echarts2",text:"",XData:a.share.diagram.date,YData:a.share.diagram.num,right:"6%"}})],1)]):a._e()]):a._e(),a.save.diagram?o("div",{staticClass:"card_a_box"},[o("div",{staticClass:"title"},[o("div",{staticClass:"block"}),o("span",[a._v("保存次数:"+a._s(a.save.statistics)+"次")])]),o("div",{staticClass:"chart1"},[o("div",{staticClass:"img",staticStyle:{width:"100%",height:"350px"}},[o("ECharts",{staticStyle:{height:"350px",width:"22rem"},attrs:{id:"echarts3",text:"",XData:a.save.diagram.date,YData:a.save.diagram.num,right:"6%"}})],1)])]):a._e(),a.reliable.diagram?o("div",{staticClass:"card_a_box"},[o("div",{staticClass:"title"},[o("div",{staticClass:"block"}),o("span",[a._v("靠谱次数:"+a._s(a.reliable.statistics)+"次")])]),o("div",{staticClass:"chart1"},[a.reliable.diagram.date?o("div",{staticClass:"img",staticStyle:{width:"100%",height:"350px"}},[o("ECharts",{staticStyle:{height:"350px",width:"22rem"},attrs:{id:"echarts4",text:"",XData:a.reliable.diagram.date,YData:a.reliable.diagram.num,right:"6%"}})],1):a._e()])]):a._e()])]),o("van-tab",{attrs:{title:"收藏我的"}},[o("div",{staticClass:"card_c"},[o("div",{staticClass:"card_a_box"},[o("div",{staticClass:"title"},[o("div",{staticClass:"block"}),o("span",[a._v("收藏我的名片次数:"+a._s(a.collect.statistics)+"次")])]),o("div",{staticClass:"chart1"},[a.collect.diagram.date?o("div",{staticClass:"img",staticStyle:{width:"100%",height:"350px"}},[o("ECharts",{staticStyle:{height:"350px",width:"22rem"},attrs:{id:"echarts5",text:"",XData:a.collect.diagram.date,YData:a.collect.diagram.num,right:"6%"}})],1):a._e()])]),o("div",{staticClass:"look_box"},[o("div",{staticClass:"title"},[o("div",{staticClass:"block"}),o("span",[a._v("收藏我的名片会员")])]),o("div",{staticClass:"other_list"},a._l(a.collectList,(function(t,i){return o("div",{key:i,staticClass:"header_box",on:{click:function(o){return a.toCard(t,"collect")}}},[o("div",{staticClass:"header"},[t.collect_card?o("img",{attrs:{src:t.collect_card.card_avatar}}):a._e(),!t.collect_card&&t.collect_member?o("img",{attrs:{src:t.collect_member.avatar_image}}):a._e()]),o("ul",{staticClass:"text"},[o("li",{staticClass:"name"},[t.collect_card?o("span",[a._v(a._s(t.collect_card.card_name))]):a._e(),!t.collect_card&&t.collect_member?o("span",[a._v(a._s(t.collect_member.nickname))]):a._e(),t.is_child?o("i",{staticClass:"iconfont icon-card_relation",staticStyle:{color:"#f66747"}}):a._e(),t.is_new?o("i",{staticClass:"iconfont icon-card_new",staticStyle:{color:"#f6c347"}}):a._e(),t.mutual_save?o("button",{attrs:{type:"button"}},[a._v(" 互存名片 ")]):a._e()]),t.collect_member&&t.collect_member.yz_member.level?o("li",{staticClass:"grade"},[a._v(" "+a._s(t.collect_member.yz_member.level.level_name)+" ")]):a._e()]),t.collect_card&&(t.collect_card.card_wechat||t.collect_card.card_mobile)?o("div",{staticClass:"icon_right"},[o("i",{staticClass:"iconfont icon-more",on:{click:function(o){return a.showMore(t.id)}}})]):a._e(),t.collect_card&&t.id===a.showID?o("div",{staticClass:"more_box"},[o("ul",{staticClass:"list"},[t.collect_card.card_wechat?o("li",{on:{click:function(o){return a.showWeChat(t,"微信","collect")}}},[o("i",{staticClass:"iconfont icon-card_weixin1"}),o("span",[a._v("微信")])]):a._e(),t.collect_card.card_mobile?o("li",{on:{click:function(o){return a.showWeChat(t,"电话","collect")}}},[o("i",{staticClass:"iconfont icon-card_phone"}),o("span",[a._v("电话")])]):a._e()]),o("i",{staticClass:"iconfont icon-up",on:{click:function(o){return a.showMore(t.id)}}})]):a._e()])})),0)])])])],1)],1)]),o("van-popup",{staticStyle:{width:"80%",height:"5rem"},model:{value:a.show,callback:function(t){a.show=t},expression:"show"}},[o("div",{staticClass:"popup"},[o("i",{directives:[{name:"show",rawName:"v-show",value:"微信"===a.showTitle,expression:"showTitle === '微信'"}],staticClass:"iconfont icon-card_weixin1"}),o("i",{directives:[{name:"show",rawName:"v-show",value:"电话"===a.showTitle,expression:"showTitle === '电话'"}],staticClass:"iconfont icon-card_phone"}),a._v(" "+a._s(a.showTitle)+":"+a._s(a.showContent)+" ")])])],1)},e=[],c=(o("e7e5"),o("d399")),n=(o("99af"),o("6968")),r=o("ac0d"),s=o("edfd"),d={mixins:[r["a"]],data:function(){return{show:!1,showTitle:"",showContent:"",showID:"",card_id:"",nowTab:0,url:"",active:0,visit:{diagram:{},statistics:{}},visitList:[],reliable:{},save:{},share:{},collect:{diagram:{}},collectList:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){this.card_id=this.$route.params.card_id},created:function(){this.card_id=this.$route.params.card_id,this.initData(),this.getEchartDate(),this.chooseTab(0),this.getCartAction(),this.getcollect()},methods:{initData:function(){this.active=0,this.isLoadMore=!0,this.page=1,this.total_page=0},toCard:function(a,t){"collect"===t?a.collect_card?this.$router.push(this.fun.getUrl("BusinessCard",{},{mark_id:a.collect_card.id,mark:"card"})):Object(c["a"])({message:"该会员未开启名片",duration:1e3}):a.visitor_card?this.$router.push(this.fun.getUrl("BusinessCard",{},{mark_id:a.visitor_card.id,mark:"card"})):Object(c["a"])({message:"该会员未开启名片",duration:1e3})},chooseTab:function(a){if(this.nowTab=a,0===this.nowTab)this.url="plugin.business-card.frontend.controllers.statistics.visit.get-list";else{if(2!==a)return;this.url="plugin.business-card.frontend.controllers.statistics.collection.get-list"}this.showID="",this.page=1,this.getListDate()},showMore:function(a){a===this.showID?this.showID="":this.showID=a},showWeChat:function(a,t,o){this.show=!0,this.showTitle=t,"微信"===t?this.showContent=o?a.collect_card.card_wechat:a.visitor_card.card_wechat:"电话"===t&&(this.showContent=o?a.collect_card.card_mobile:a.visitor_card.card_mobile)},getEchartDate:function(){var a=this;$http.get("plugin.business-card.frontend.controllers.statistics.visit.index",{card_id:this.card_id}," ").then((function(t){1===t.result?a.visit=t.data:Object(c["a"])(t.msg)}),(function(a){}))},getListDate:function(){var a=this;$http.get(this.url,{card_id:this.card_id,page:1}," ").then((function(t){1===t.result&&1===t.result?(a.isLoadMore=!0,a.total_page=t.data.last_page,a.total_page||(a.total_page=0),0===a.nowTab?a.visitList=t.data.data:2===a.nowTab&&(a.collectList=t.data.data)):Object(c["a"])(t.msg)}),(function(a){}))},getCartAction:function(){var a=this;$http.get("plugin.business-card.frontend.controllers.statistics.card-action.index",{card_id:this.card_id}," ").then((function(t){1===t.result?(a.reliable=t.data.reliable,a.save=t.data.save,a.share=t.data.share):Object(c["a"])(t.msg)}),(function(a){}))},getcollect:function(){var a=this;$http.get("plugin.business-card.frontend.controllers.statistics.collection.index",{card_id:this.card_id}," ").then((function(t){1===t.result?a.collect=t.data:Object(c["a"])(t.msg)}),(function(a){}))},getMoreData:function(){var a=this,t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get(this.url,{card_id:t.card_id,page:t.page}).then((function(o){if(t.isLoadMore=!0,1===o.result){var i=o.data.data;0===a.nowTab?t.visitList=t.visitList.concat(i):2===a.nowTab&&(t.collectList=t.collectList.concat(i))}else t.page=t.page-1,t.isLoadMore=!1}),(function(a){})))}},components:{ECharts:s["a"],cTitle:n["a"]}},_=d,l=_,h=(o("95e2"),o("2877")),v=Object(h["a"])(l,i,e,!1,null,"244a18f5",null);t["default"]=v.exports}}]); |