(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/merchant/detail/index"],{"1bc3":function(e,t,n){"use strict";n.r(t);var o=n("7ed8"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a},"25d1":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.store.typeId?e._f("merchantTypeFilter")(e.store.typeId):null),o=e.store.followerNum<1e4?null:(e.store.followerNum/1e4).toFixed(2),r=Number(e.merchantAPPInfo.starLevel),i=Number(e.merchantAPPInfo.starLevel),a=e._f("dateFormat")(e.store.createTime);e._isMounted||(e.e0=function(t){e.popupShow=!0},e.e1=function(t){e.popupShow=!1}),e.$mp.data=Object.assign({},{$root:{f0:n,g0:o,m0:r,m1:i,f1:a}})},r=[]},"44ad":function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("1d3c");o(n("3240"));var r=o(n("b3c8"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"7ed8":function(e,t,n){"use strict";(function(e){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("7eb4")),i=o(n("7ca3")),a=o(n("ee10")),c=n("8f59"),s=n("28e0"),u=n("fa02"),l=n("05ac");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=getApp(),m={computed:(0,c.mapGetters)(["isLogin","uid","merchantAPPInfo","merchantType"]),components:{Navbar:function(){n.e("components/navBar").then(function(){return resolve(n("820c"))}.bind(null,n)).catch(n.oe)},tuiSkeleton:function(){Promise.all([n.e("common/vendor"),n.e("components/base/tui-skeleton")]).then(function(){return resolve(n("caab"))}.bind(null,n)).catch(n.oe)}},data:function(){return{skeletonShow:!0,merid:0,store:{},score:0,star:0,popupShow:!1,storeCode:"",openSettingBtnHidden:!0,qualificationPicture:[],theme:p.globalData.theme}},onLoad:function(e){this.merid=e.merId,this.getStore()},onReady:function(){},mounted:function(){this.merchantAPPInfo||this.getMerIndexInfo()},methods:{getMerIndexInfo:function(){var e=this;return(0,a.default)(r.default.mark((function t(){var n,o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,getMerIndexInfoApi(e.merId);case 2:n=t.sent,o=n.data,e.$store.commit("MERCHANTJINFO",o);case 5:case"end":return t.stop()}}),t)})))()},showMaoLocation:function(t,n){if(!t||!n)return this.$util.Tips({title:"请设置允许商城访问您的位置！"});e.openLocation({latitude:parseFloat(t),longitude:parseFloat(n),scale:8,geocode:!0,name:this.store.name,address:this.store.addressDetail?this.store.addressDetail:"",success:function(e){}})},followToggle:function(){var e=this;!1===this.isLogin?toLogin():(0,l.followMer)(this.store.isCollect,this.merid).then((function(){e.$set(e.store,"isCollect",!e.store.isCollect);var t=d({},e.merchantAPPInfo);t.isCollect=!t.isCollect,e.$store.commit("MERCHANTJINFO",d({},t))}))},returns:function(){e.navigateBack()},call:function(){(0,u.chatConfig)(this.$Cache.getItem("merchantAPPInfo"))},getpreviewImage:function(t){e.previewImage({urls:this.qualificationPicture,current:this.qualificationPicture[t]})},getStore:function(){var e=this;(0,s.getMerDetailApi)(this.merid).then((function(t){var n=t.data;e.store=n,e.qualificationPicture=JSON.parse(n.qualificationPicture),e.score=(parseFloat(n.postage_score)+parseFloat(n.product_score)+parseFloat(n.service_score))/3,e.star=e.score/5*100,e.skeletonShow=!1}))}}};t.default=m}).call(this,n("df3c")["default"])},9826:function(e,t,n){"use strict";var o=n("a797"),r=n.n(o);r.a},a797:function(e,t,n){},b3c8:function(e,t,n){"use strict";n.r(t);var o=n("25d1"),r=n("1bc3");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("9826");var a=n("828b"),c=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"1f5b1734",null,!1,o["a"],void 0);t["default"]=c.exports}},[["44ad","common/runtime","common/vendor"]]]);