(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-shop-info"],{7399:function(t,a,n){"use strict";var i=n("4ea4");n("ac1f"),n("5319"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n("96cf");var e=i(n("1da1")),s={data:function(){return{shopData:{id:0,avatar:"",shopname:"",state:0,islive:0,isself:0,find_user:{user_no:"",fans:0}}}},onLoad:function(t){this.loadData(t.id)},methods:{loadData:function(t){var a=this;return(0,e.default)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:a.$api.get({url:"/wanlshop/shop/getShopInfo",data:{id:t},success:function(t){t.bio=t.bio.replace(/<img/g,"<img style='display: block;'"),a.shopData=t}});case 1:case"end":return n.stop()}}),n)})))()},handleFollow:function(){var t=this;return(0,e.default)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.$store.state.user.isLogin?t.$api.post({url:"/wanlshop/find/user/setFindUser",data:{id:t.shopData.find_user.user_no,type:"follow"},success:function(a){var n=t.$store.state.statistics.dynamic.concern;0===a.data?(n-=1,t.shopData.find_user.fans-=1):(n+=1,t.shopData.find_user.fans+=1),t.$store.commit("statistics/dynamic",{concern:n}),t.shopData.isFollow=a.data}}):t.$wanlshop.to("/pages/user/auth/auth");case 1:case"end":return a.stop()}}),a)})))()}}};a.default=s},b78c:function(t,a,n){"use strict";var i;n.d(a,"b",(function(){return e})),n.d(a,"c",(function(){return s})),n.d(a,"a",(function(){return i}));var e=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("v-uni-view",{staticClass:"wanlshop-info-container"},[n("v-uni-view",{staticClass:"edgeInsetTop"}),n("v-uni-view",{staticClass:"wanlshop-info-container__main bg-white"},[n("v-uni-view",{staticClass:"margin-left-bj shopuser"},[n("v-uni-view",{staticClass:"cu-avatar round margin-right-bj",style:{backgroundImage:"url("+t.$wanlshop.oss(t.shopData.avatar,52,52,2,"avatar")+")"}}),n("v-uni-view",{},[n("v-uni-view",{staticClass:"text-df text-cut",staticStyle:{width:"320rpx"}},[n("v-uni-text",[t._v(t._s(t.shopData.shopname||"加载中..."))])],1),n("v-uni-view",{staticClass:"wanl-gray text-min"},[t._v("粉丝数 "+t._s(t.shopData.find_user.fans))]),n("v-uni-view",{staticClass:"wanl-gray text-min"},[t._v(t._s(t.shopData.city))])],1)],1),n("v-uni-view",{staticClass:"margin-right-bj"},[0===t.shopData.isFollow?n("v-uni-button",{staticClass:"cu-btn radius-bock text-sm",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.handleFollow.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"wlIcon-tianjia margin-right-xs text-bold"}),t._v("关注")],1):n("v-uni-button",{staticClass:"cu-btn radius-bock text-sm",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.handleFollow.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"wlIcon-31xuanze margin-right-xs text-bold"}),t._v("已关注")],1)],1)],1),n("v-uni-view",{staticClass:"shop_info bg-white margin-top-bj padding-lr-bj"},[n("v-uni-view",{staticClass:"padding-tb-bj solid-bottom"},[t._v("店铺介绍")])],1),n("v-uni-view",{staticClass:"bg-white padding-bj"},[n("v-uni-rich-text",{attrs:{nodes:t.shopData.bio}})],1)],1)},s=[]},bd37:function(t,a,n){"use strict";n.r(a);var i=n("7399"),e=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(a,t,(function(){return i[t]}))}(s);a["default"]=e.a},e208:function(t,a,n){"use strict";var i=n("ef43"),e=n.n(i);e.a},ee89:function(t,a,n){"use strict";n.r(a);var i=n("b78c"),e=n("bd37");for(var s in e)"default"!==s&&function(t){n.d(a,t,(function(){return e[t]}))}(s);n("e208");var o,r=n("f0c5"),u=Object(r["a"])(e["default"],i["b"],i["c"],!1,null,"7a4f8f69",null,!1,i["a"],o);a["default"]=u.exports},ef43:function(t,a,n){var i=n("f871");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var e=n("4f06").default;e("5ee3c7b1",i,!0,{sourceMap:!1,shadowMode:!1})},f871:function(t,a,n){var i=n("24fb");a=i(!1),a.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */.wanlshop-info-container__main[data-v-7a4f8f69]{display:flex;align-items:center;justify-content:space-between;height:%?200?%}.wanlshop-info-container__main .cu-avatar[data-v-7a4f8f69]{width:%?120?%;height:%?120?%}.wanlshop-info-container__main .shopuser[data-v-7a4f8f69]{display:flex;align-items:center}',""]),t.exports=a}}]);