(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesCard/card/details"],{2138:function(t,e,n){},"31f7":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"3cf9"))},mpHtml:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/mp-html/components/mp-html/mp-html")]).then(n.bind(null,"7717"))}},a=function(){var t=this.$createElement;this._self._c},r=[]},"3a95":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("aa6c");i(n("3240"));var a=i(n("e848"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"4d13":function(t,e,n){"use strict";var i=n("2138"),a=n.n(i);a.a},"767c":function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("7ca3")),r=n("8f59");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var c={components:{cardItem:function(){n.e("pagesCard/component/card/item").then(function(){return resolve(n("61ad"))}.bind(null,n)).catch(n.oe)}},data:function(){return{loadEnd:!1,cardId:null,cardDetails:{}}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({themeColor:function(t){return t.app.themeColor}})),onLoad:function(e){var n=this;t.showLoading({title:"加载中"}),this.cardId=e.id,this.getCardDetails((function(){t.hideLoading(),n.loadEnd=!0}))},onShareAppMessage:function(){return{title:this.cardDetails.share_title,path:"/pagesCard/card/details?id="+this.cardDetails.id,imageUrl:this.cardDetails.image}},onShareTimeline:function(){return{title:this.cardDetails.share_title,path:"/pagesCard/card/details?id="+this.cardDetails.id,imageUrl:this.cardDetails.image}},methods:{getCardDetails:function(e){var n=this;this.$util.request("card.details",{id:this.cardId}).then((function(i){e&&e(),1==i.code?n.cardDetails=i.data:t.showToast({title:i.msg,icon:"none"})})).catch((function(t){e&&e(),console.error("获取名片详情 ",t)}))},handleContact:function(){this.cardDetails.mobile?this.$util.toPage({mode:6,phone:this.cardDetails.mobile}):t.showToast({icon:"none",title:"该用户暂未完善该信息"})},handleCopy:function(){this.cardDetails.wechat_number?this.$util.toPage({mode:8,content:this.cardDetails.wechat_number,success:function(){t.showToast({icon:"success",title:"已复制微信号",duration:2e3})}}):t.showToast({icon:"none",title:"该用户暂未完善该信息"})},setCardReliable:function(){var e=this;this.$util.request(1==this.cardDetails.reliable_status?"card.cancelReliable":"card.setReliable",{card_id:this.cardId}).then((function(n){1==n.code?e.getCardDetails():t.showToast({title:n.msg,icon:"none"})})).catch((function(t){console.error("设置靠谱 ",t)}))},toCardList:function(){this.$util.toPage({mode:1,path:"/pagesCard/mine/index"})}}};e.default=c}).call(this,n("df3c")["default"])},"94fb":function(t,e,n){"use strict";n.r(e);var i=n("767c"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},e848:function(t,e,n){"use strict";n.r(e);var i=n("31f7"),a=n("94fb");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("4d13");var o=n("828b"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports}},[["3a95","common/runtime","common/vendor"]]]);