1 line
8.9 KiB
JavaScript
1 line
8.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a7f6dc4"],{1126:function(t,e,i){var c=i("24fb");e=c(!1),e.push([t.i,"#card_collect .popup[data-v-4cd42c56]{line-height:4.9rem;text-align:center;border-radius:10px;font-size:18px}#card_collect .popup .iconfont[data-v-4cd42c56]{font-size:30px;vertical-align:middle}#card_collect .collect[data-v-4cd42c56]{background:#fff;padding:.625rem .875rem}#card_collect .collect .title[data-v-4cd42c56]{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_collect .collect .title .block[data-v-4cd42c56]{width:.25rem;height:1rem;background:#50a6f9;border-radius:.0625rem;margin-right:.375rem}#card_collect .collect .title span[data-v-4cd42c56]{font-weight:700;font-size:16px}#card_collect .collect .other_list .header_box[data-v-4cd42c56]{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_collect .collect .other_list .header_box .header[data-v-4cd42c56]{width:3rem;height:3rem;border-radius:3rem;background:#f2f2f2;overflow:hidden;margin-right:.625rem}#card_collect .collect .other_list .header_box .header img[data-v-4cd42c56]{width:100%}#card_collect .collect .other_list .header_box .text[data-v-4cd42c56]{text-align:left}#card_collect .collect .other_list .header_box .text .name[data-v-4cd42c56]{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_collect .collect .other_list .header_box .text .name span[data-v-4cd42c56]{font-size:15px;margin-right:.25rem;max-width:6.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#card_collect .collect .other_list .header_box .text .name .iconfont[data-v-4cd42c56]{font-size:1.5rem;margin-right:.25rem}#card_collect .collect .other_list .header_box .text .name button[data-v-4cd42c56]{border:.0625rem solid #50a6f9;font-size:12px;color:#50a6f9;border-radius:.1875rem;padding:.0625rem .375rem}#card_collect .collect .other_list .header_box .text .grade[data-v-4cd42c56]{line-height:1.5rem;color:#8c8c8c;font-size:13px}#card_collect .collect .other_list .header_box .icon_right[data-v-4cd42c56]{position:absolute;right:0}#card_collect .collect .other_list .header_box .icon_right .iconfont[data-v-4cd42c56]{display:block;width:2.5rem;height:2.5rem;line-height:2.5rem;font-size:18px;color:#999}#card_collect .collect .other_list .header_box .more_box[data-v-4cd42c56]{position:absolute;right:0;top:3.125rem;background:rgba(51,51,51,.8);border-radius:.25rem;z-index:10}#card_collect .collect .other_list .header_box .more_box .list[data-v-4cd42c56]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#card_collect .collect .other_list .header_box .more_box .list li[data-v-4cd42c56]{padding:.125rem .625rem}#card_collect .collect .other_list .header_box .more_box .list li span[data-v-4cd42c56]{display:block;font-size:12px;color:#fff}#card_collect .collect .other_list .header_box .more_box .list li .iconfont[data-v-4cd42c56]{font-size:1.25rem;color:#fff}#card_collect .collect .other_list .header_box .more_box .icon-up[data-v-4cd42c56]{color:rgba(51,51,51,.8);font-size:1.25rem;position:absolute;top:-.875rem;right:.625rem}",""]),t.exports=e},5960:function(t,e,i){"use strict";i("842d4")},"842d4":function(t,e,i){var c=i("1126");c.__esModule&&(c=c.default),"string"===typeof c&&(c=[[t.i,c,""]]),c.locals&&(t.exports=c.locals);var o=i("499e").default;o("0ba04dff",c,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var c=document.documentElement,o=document.body,a={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return c&&c.scrollTop?t=c.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&c.clientHeight?Math.min(o.clientHeight,c.clientHeight):Math.max(o.clientHeight,c.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,c.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(){}}}},ae80:function(t,e,i){"use strict";i.r(e);var c=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"card_collect"}},[i("c-title",{attrs:{hide:!1,text:"名片收藏"}}),i("div",{staticClass:"collect"},[i("div",{staticClass:"title"},[i("div",{staticClass:"block"}),i("span",[t._v("我收藏的名片:"+t._s(t.collectNum)+"个")])]),i("div",{staticClass:"other_list"},t._l(t.collectList,(function(e,c){return i("div",{key:c,staticClass:"header_box",on:{click:function(i){return i.stopPropagation(),t.toCard(e)}}},[i("div",{staticClass:"header"},[i("img",{attrs:{src:e.card.card_avatar}})]),i("ul",{staticClass:"text"},[i("li",{staticClass:"name"},[i("span",[t._v(t._s(e.card.card_name))]),e.is_child?i("i",{staticClass:"iconfont icon-card_relation",staticStyle:{color:"#f66747"}}):t._e(),e.is_new?i("i",{staticClass:"iconfont icon-card_new",staticStyle:{color:"#f6c347"}}):t._e(),e.mutual_save?i("button",{attrs:{type:"button"}},[t._v("互存名片")]):t._e()]),e.card.member.yz_member&&e.card.member.yz_member.level?i("li",{staticClass:"grade"},[t._v(" "+t._s(e.card.member.yz_member.level.level_name)+" ")]):t._e()]),e.card.card_mobile||e.card.card_wechat?i("div",{staticClass:"icon_right"},[i("i",{staticClass:"iconfont icon-more",on:{click:function(i){return t.showMore(e.id)}}})]):t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:e.id===t.showID,expression:"item.id === showID"}],staticClass:"more_box"},[i("ul",{staticClass:"list"},[e.card.card_wechat?i("li",{on:{click:function(i){return t.showWeChat(e,"微信")}}},[i("i",{staticClass:"iconfont icon-card_weixin1"}),i("span",[t._v("微信")])]):t._e(),e.card.card_mobile?i("li",{on:{click:function(i){return t.showWeChat(e,"电话")}}},[i("i",{staticClass:"iconfont icon-card_phone"}),i("span",[t._v("电话")])]):t._e()]),i("i",{staticClass:"iconfont icon-up",on:{click:function(i){return t.showMore(e.id)}}})])])})),0)]),i("van-popup",{staticStyle:{width:"80%",height:"5rem"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[i("div",{staticClass:"popup"},[i("i",{directives:[{name:"show",rawName:"v-show",value:"微信"===t.showTitle,expression:"showTitle === '微信'"}],staticClass:"iconfont icon-card_weixin1"}),i("i",{directives:[{name:"show",rawName:"v-show",value:"电话"===t.showTitle,expression:"showTitle === '电话'"}],staticClass:"iconfont icon-card_phone"}),t._v(" "+t._s(t.showTitle)+":"+t._s(t.showContent)+" ")])])],1)},o=[],a=(i("e7e5"),i("d399")),l=(i("99af"),i("6968")),r=i("ac0d"),s={mixins:[r["a"]],data:function(){return{show:!1,card_id:"",collectNum:0,collectList:[],showTitle:"",showContent:"",showID:"",isLoadMore:!0,page:1,total_page:0}},activated:function(){this.card_id=this.$route.params.card_id,this.getNumber(),this.getDate()},methods:{initData:function(){this.showID="",this.isLoadMore=!0,this.page=1,this.total_page=0},toCard:function(t){this.$router.push(this.fun.getUrl("BusinessCard",{},{mark_id:t.card_id,mark:"card"}))},showMore:function(t){t===this.showID?this.showID="":this.showID=t},showWeChat:function(t,e){this.show=!0,this.showTitle=e,"微信"===e?this.showContent=t.card.card_wechat:"电话"===e&&(this.showContent=t.card.card_mobile)},getNumber:function(){var t=this;$http.get("plugin.business-card.frontend.controllers.statistics.my-collection.index",{card_id:this.card_id}," ").then((function(e){1===e.result?t.collectNum=e.data:Object(a["a"])(e.msg)}),(function(t){})).catch((function(t){}))},getDate:function(){var t=this;$http.get("plugin.business-card.frontend.controllers.statistics.my-collection.get-list",{card_id:this.card_id,page:1}," ").then((function(e){1===e.result&&1===e.result?(t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0),t.collectList=e.data.data):Object(a["a"])(e.msg)}),(function(t){})).catch((function(t){}))},getMoreData:function(){var t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("plugin.business-card.frontend.controllers.statistics.my-collection.get-list",{card_id:t.card_id,page:t.page}," ").then((function(e){if(t.isLoadMore=!0,1===e.result){var i=e.data.data;t.collectList=t.collectList.concat(i)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){})).catch((function(t){})))}},components:{cTitle:l["a"]}},n=s,d=n,h=(i("5960"),i("2877")),_=Object(h["a"])(d,c,o,!1,null,"4cd42c56",null);e["default"]=_.exports}}]); |