bztang-admin/addons/yun_shop/static/app/js/chunk-183caaa7.e3eb8546.js

1 line
11 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-183caaa7"],{"294d0":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".customerCenterRecord[data-v-3f025b66]{padding:1rem .75rem 1.5rem .75rem}.listBox[data-v-3f025b66]{border-radius:.5rem;padding:1rem .75rem;margin:.75rem 0;background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.listBox .lis[data-v-3f025b66]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;font-size:.8125rem;margin-bottom:.625rem}.listBox .lis .leftType[data-v-3f025b66]{color:#999;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.listBox .lis .rightTxt[data-v-3f025b66]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left}.listBox .lis .url[data-v-3f025b66]{text-decoration:underline;color:#02bbff;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.timeSet[data-v-3f025b66]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 0 .6875rem 0}.timeSet[data-v-3f025b66],.timeSet .left[data-v-3f025b66]{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}.timeSet .left[data-v-3f025b66]{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}.timeSet img[data-v-3f025b66]{width:1rem;height:1rem;margin-right:.25rem}.timeSet .date[data-v-3f025b66]{font-size:.8125rem;color:#333}.timeSet .txt[data-v-3f025b66]{color:var(--themeBaseColor)}.top[data-v-3f025b66]{background:#fff;border-radius:.5rem;padding:1rem .75rem 1.0625rem .75rem}.top[data-v-3f025b66],.top .topRight[data-v-3f025b66]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.top .topRight[data-v-3f025b66]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.top .topRight .icobox[data-v-3f025b66]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.top .topRight .icobox .iconfont[data-v-3f025b66]{font-size:1.3rem;color:var(--themeBaseColor)}.top .topRight .icobox .icon-card_weixin1[data-v-3f025b66]{margin-right:.625rem}.top .topRight .user[data-v-3f025b66]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;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:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.top .topRight .user .name[data-v-3f025b66]{font-size:.875rem;color:#333}.top .topRight .user .id[data-v-3f025b66]{font-size:.75rem;color:#999}.top .image[data-v-3f025b66]{width:2.25rem;height:2.25rem;border-radius:50%;margin-right:.5rem}.top .image img[data-v-3f025b66]{width:100%;height:100%;border-radius:50%}",""]),t.exports=e},abca:function(t,e,i){"use strict";i("cc84")},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var a=document.documentElement,s=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&a.clientHeight?Math.min(s.clientHeight,a.clientHeight):Math.max(s.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b111:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"customerCenterRecord"},[i("c-title",{attrs:{hide:!1,text:"轨迹追踪"}}),t.customer_details?i("div",{staticClass:"top"},[i("div",{staticClass:"image"},[i("img",{attrs:{src:t.customer_details.avatar_image,alt:""}})]),i("div",{staticClass:"topRight"},[i("div",{staticClass:"user"},[i("div",{staticClass:"name"},[t._v(t._s(t.customer_details.nickname))]),i("div",{staticClass:"id"},[t._v("ID"+t._s(t.customer_details.uid))])]),i("div",{staticClass:"icobox"},[t.customer_details.wechat&&t.display_set.wechat?i("i",{staticClass:"iconfont icon-card_weixin1"}):t._e(),t.customer_details.mobile&&t.display_set.phone?i("i",{staticClass:"iconfont icon-card_phone",on:{click:function(e){return t.telCall(t.customer_details.mobile)}}}):t._e()])])]):t._e(),i("div",{staticClass:"timeSet"},[i("div",{staticClass:"left"},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images%2FcustomerCenter%2Fimage8%402x.png",alt:""}}),i("div",{staticClass:"date"},[t.endtTime?i("span",{on:{click:function(e){t.show1=!0}}},[t._v(t._s(this.formatTimes(t.endtTime)))]):i("span",{on:{click:t.showStart}},[t._v("请选择开始时间")]),t._v(" — "),t.startTime?i("span",{on:{click:function(e){t.show=!0}}},[t._v(t._s(this.formatTimes(t.startTime)))]):i("span",{on:{click:t.showEnd}},[t._v("请选择结束时间")])])]),i("div",{staticClass:"txt",on:{click:t.clearTime}},[t._v("清空选择")])]),t._l(t.list,(function(e,a){return i("div",{key:a,staticClass:"listBox"},[i("div",{staticClass:"lis"},[i("div",{staticClass:"leftType"},[t._v("访问时间:")]),i("div",{staticClass:"rightTxt"},[t._v(t._s(e.created_at))])]),i("div",{staticClass:"lis"},[i("div",{staticClass:"leftType"},[t._v("页面类型:")]),i("div",{staticClass:"rightTxt"},[t._v(t._s(e.page_type))])]),i("div",{staticClass:"lis"},[i("div",{staticClass:"leftType"},[t._v("页面标题:")]),i("div",{staticClass:"rightTxt"},[t._v(t._s(e.title))])]),i("div",{staticClass:"lis"},[i("div",{staticClass:"leftType"},[t._v("页面URL")]),t.fun.isUrl(e.url)?i("div",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.url,expression:"item.url",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}],staticClass:"rightTxt url"},[t._v(t._s(e.url))]):i("div",{staticClass:"rightTxt url",on:{click:function(i){return t.toUrl(e.url)}}},[t._v(t._s(e.url))])]),i("div",{staticClass:"lis"},[i("div",{staticClass:"leftType"},[t._v("访问端口:")]),i("div",{staticClass:"rightTxt"},[t._v(t._s(e.port_name))])]),i("div",{staticClass:"lis"},[i("div",{staticClass:"leftType"},[t._v("访问次数:")]),i("div",{staticClass:"rightTxt"},[t._v(t._s("-1"==e.second?"未知":"当天第"+e.second+"次访问"))])])])})),i("van-popup",{attrs:{position:"bottom"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[i("van-datetime-picker",{attrs:{type:"date",title:"选择年月日","max-date":t.nowData},on:{confirm:t.confirmStart,cancel:t.cancel},model:{value:t.startTime,callback:function(e){t.startTime=e},expression:"startTime"}})],1),i("van-popup",{attrs:{position:"bottom"},model:{value:t.show1,callback:function(e){t.show1=e},expression:"show1"}},[i("van-datetime-picker",{attrs:{type:"date",title:"选择年月日","max-date":t.nowData},on:{confirm:t.confirmEnd,cancel:t.cancel},model:{value:t.endtTime,callback:function(e){t.endtTime=e},expression:"endtTime"}})],1)],2)},s=[],o=(i("e7e5"),i("d399")),n=(i("a15b"),i("d81d"),i("d3b7"),i("25f0"),i("99af"),i("ac0d")),l={mixins:[n["a"]],data:function(){return{customer_details:[],list:[],startTime:new Date,endtTime:"",show:!1,show1:!1,nowData:new Date,display_set:"",isLoadMore:!0,page:1,total_page:0}},activated:function(){this.endtTime=new Date(this.formatTimes(this.getlastMonth())),this.getData()},methods:{showStart:function(){this.show1=!0,this.endtTime=this.nowData},showEnd:function(){this.show=!0,this.startTime=this.nowData},clearTime:function(){this.endtTime="",this.startTime="",this.init(),this.getData()},toUrl:function(t){this.fun.isUrl(t)||(window.location.href=t)},copy:function(){window.clipboardData.setData("Text",clipBoardContent)},onCopy:function(){Object(o["a"])({message:"复制成功",position:"bottom",duration:1500})},cancel:function(){this.show=!1,this.show1=!1},confirmStart:function(t){this.show=!1,this.init(),this.getData()},confirmEnd:function(t){this.show1=!1,this.init(),this.getData()},init:function(){this.page=1,this.total_page=0,this.isLoadMore=!0,this.list=[]},getlastMonth:function(){var t=new Date,e=t.getDate(),i=new Date(t.getTime());i.setMonth(i.getMonth()),i.setDate(0);var a=i.getDate();return i.setDate(e>a?a:e),i},formatTimes:function(t){var e=t.getFullYear(),i=t.getMonth()+1,a=t.getDate();t.getHours(),t.getMinutes(),t.getSeconds();return[e,i,a].map(this.formatNumber).join("-")},formatNumber:function(t){return t=t.toString(),t[1]?t:"0"+t},telCall:function(t){window.location.href="tel://".concat(t)},getMoreData:function(){var t=this;if(t.isLoadMore=!1,!(this.page>=this.total_page)){var e={member_id:this.$route.params.id};this.endtTime&&(e.start_date=this.formatTimes(this.endtTime)),this.startTime&&(e.end_date=this.formatTimes(this.startTime)),this.page=this.page+1,e.page=this.page,$http.post("plugin.customer-center.frontend.controllers.browse.get-member-browse-details",e,"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var i=e.data.browse_details_list.data;t.list=t.list.concat(i)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){}))}},getData:function(){var t=this,e={member_id:this.$route.params.id};this.endtTime&&(e.start_date=this.formatTimes(this.endtTime)),this.startTime&&(e.end_date=this.formatTimes(this.startTime)),$http.get("plugin.customer-center.frontend.controllers.browse.get-member-browse-details",e,"加载中").then((function(e){1===e.result?(t.isLoadMore=!0,t.total_page=e.data.browse_details_list.last_page,t.total_page||(t.total_page=0),t.customer_details=e.data.customer_details,t.list=e.data.browse_details_list.data,t.display_set=e.data.display_set):t.$dialog.alert({message:e.msg})})).catch((function(t){}))}}},r=l,c=(i("abca"),i("2877")),d=Object(c["a"])(r,a,s,!1,null,"3f025b66",null);e["default"]=d.exports},cc84:function(t,e,i){var a=i("294d0");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("a55d3948",a,!0,{sourceMap:!1,shadowMode:!1})}}]);