(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_user-index"],{"21b4":function(t,a,e){"use strict";e.r(a);var i=e("eb66"),n=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);a["default"]=n.a},"4ac3":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.container[data-v-cccf661a]{background:#fff;min-height:100vh}.header[data-v-cccf661a]{width:%?750?%;height:%?400?%;padding:%?56?% %?30?% 0;background-repeat:no-repeat;background-size:100%}.header .user_wrapper[data-v-cccf661a]{align-items:center}.header .user_wrapper .image[data-v-cccf661a], .header .user_wrapper uni-image[data-v-cccf661a], .header .user_wrapper uni-image[data-v-cccf661a]{width:%?140?%;height:%?140?%;border-radius:100%;border:%?4?% solid #fff}.header .user_wrapper .user_text[data-v-cccf661a]{margin-left:%?22?%;color:#fff}.header .user_wrapper .user_text .name[data-v-cccf661a]{font-size:%?34?%;font-weight:700;align-items:center}.header .user_wrapper .user_text .user_id[data-v-cccf661a]{margin-top:%?16?%;font-size:%?24?%}.header .user_wrapper .user_text .level_icon[data-v-cccf661a]{width:%?34?%;height:%?32?%;margin:%?4?% 0 0 %?6?%;border:none}.header .plant_info[data-v-cccf661a]{margin-top:%?60?%;align-items:center;justify-content:space-between}.header .plant_info .count_wrapper[data-v-cccf661a]{color:#fff;font-size:%?24?%}.header .plant_info .count_wrapper .item[data-v-cccf661a]{text-align:center;margin-right:%?60?%}.header .plant_info .count_wrapper .item[data-v-cccf661a]:last-child{margin-right:0}.header .plant_info .count_wrapper .item uni-text[data-v-cccf661a]{display:block;font-size:%?30?%;margin-top:%?10?%}.header .follow_btn[data-v-cccf661a]{color:#fff;font-size:%?26?%;display:flex;align-items:center;justify-content:center;width:%?146?%;height:%?62?%;background-color:initial;background-image:linear-gradient(270deg,var(--view-bntColor21),var(--view-bntColor22));border-radius:%?33?%}.header .follow_btn .iconfont[data-v-cccf661a]{font-size:%?16?%;margin-right:%?12?%}.header .follow_btn .icon-fabu[data-v-cccf661a]{font-size:%?24?%}.header .follow_btn.focused[data-v-cccf661a]{background:transparent;color:#fff;border:1px solid #fff}.main[data-v-cccf661a]{background:#fff;padding:%?30?% 0;border-radius:%?24?% %?24?% 0 0;position:relative;top:%?-20?%}.main .tab_count[data-v-cccf661a]{margin-bottom:%?40?%;text-align:center}.main .tab_count uni-text[data-v-cccf661a]{font-size:%?28?%;color:#999;margin:0 %?30?%;position:relative;padding-bottom:%?10?%}.main .tab_count uni-text.on[data-v-cccf661a]{font-size:%?32?%;color:#282828;font-weight:700}.main .tab_count uni-text.on[data-v-cccf661a]::after{content:"";width:%?40?%;height:%?5?%;background:var(--view-theme);position:absolute;bottom:0;left:%?10?%}.goods[data-v-cccf661a]{display:flex;flex-wrap:wrap;justify-content:space-between;width:%?750?%;padding:0 %?20?%}.empty[data-v-cccf661a]{margin:%?130?% 0 %?150?%;text-align:center}.empty uni-image[data-v-cccf661a], .empty uni-image[data-v-cccf661a]{display:inline-block;width:%?414?%;height:%?305?%}.empty uni-text[data-v-cccf661a]{display:block;color:#999;font-size:%?26?%}.end[data-v-cccf661a]{margin-top:%?50?% 0;text-align:center}.end uni-text[data-v-cccf661a]{color:#999;font-size:%?22?%;position:relative}.end uni-text.loaded[data-v-cccf661a]::before, .end uni-text.loaded[data-v-cccf661a]::after{content:"";display:inline-block;width:%?22?%;height:%?1?%;background:#999;position:absolute;top:%?18?%;opacity:.5}.end uni-text.loaded[data-v-cccf661a]::before{left:%?-30?%}.end uni-text.loaded[data-v-cccf661a]::after{right:%?-30?%}',""]),t.exports=a},"4b68":function(t,a,e){var i=e("4ac3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("50b95a70",i,!0,{sourceMap:!1,shadowMode:!1})},"6d22":function(t,a,e){"use strict";e.r(a);var i=e("930f"),n=e("21b4");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);e("a57d");var s=e("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"cccf661a",null,!1,i["a"],void 0);a["default"]=c.exports},"930f":function(t,a,e){"use strict";e.d(a,"b",(function(){return n})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){return i}));var i={WaterfallsFlow:e("d920").default},n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"container",style:t.viewColor},[e("v-uni-view",{staticClass:"header",style:{"background-image":"url("+t.domain+"/static/images/plant-header.png)"}},[e("v-uni-view",{staticClass:"user_wrapper acea-row"},[e("v-uni-image",{staticClass:"picture",attrs:{src:t.userInfo.avatar||"/static/images/f.png"}}),e("v-uni-view",{staticClass:"user_text"},[e("v-uni-view",{staticClass:"name acea-row"},[e("v-uni-text",[t._v(t._s(t.userInfo.nickname||""))]),t.userInfo.member_icon?e("v-uni-image",{staticClass:"level_icon",attrs:{src:t.userInfo.member_icon,alt:""}}):t._e()],1),e("v-uni-view",{staticClass:"user_id"},[t._v("ID: "+t._s(t.userInfo.uid||""))])],1)],1),e("v-uni-view",{staticClass:"plant_info acea-row"},[e("v-uni-view",{staticClass:"count_wrapper acea-row"},[e("v-uni-navigator",{staticClass:"item",attrs:{url:t.userInfo.is_self?"/pages/plantGrass/plant_user_attention/index":"","hover-class":"none"}},[e("v-uni-text",[t._v(t._s(t.userInfo.focus))]),t._v("关注")],1),e("v-uni-navigator",{staticClass:"item",attrs:{url:t.userInfo.is_self?"/pages/plantGrass/plant_user_fans/index":"","hover-class":"none"}},[e("v-uni-text",[t._v(t._s(t.userInfo.fans))]),t._v("粉丝")],1),e("v-uni-view",{staticClass:"item"},[e("v-uni-text",[t._v(t._s(t.userInfo.start))]),t._v("获赞")],1)],1),t.userInfo.is_self?e("v-uni-view",[e("v-uni-navigator",{staticClass:"follow_btn focus",attrs:{"hover-class":"none",url:"/pages/plantGrass/plant_release/index"}},[e("v-uni-text",{staticClass:"iconfont icon-fabu"}),t._v("发布")],1)],1):e("v-uni-view",{on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.followAuthor.apply(void 0,arguments)}}},[t.userInfo.is_start?e("v-uni-button",{staticClass:"follow_btn focused"},[t._v("已关注")]):e("v-uni-button",{staticClass:"follow_btn focus"},[e("v-uni-text",{staticClass:"iconfont icon-jiahao2"}),t._v("关注")],1)],1)],1)],1),e("v-uni-view",{staticClass:"main"},[t.userInfo.is_self?e("v-uni-view",{staticClass:"tab_count"},[e("v-uni-text",{class:0==t.tab?"on":"",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.changeTab(0)}}},[t._v("作品")]),e("v-uni-text",{class:1==t.tab?"on":"",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.changeTab(1)}}},[t._v("赞过")])],1):t._e(),e("v-uni-view",{staticClass:"tab-cont"},[t.goods.length>0?e("v-uni-view",{staticClass:"goods-wrap"},[e("v-uni-view",{staticClass:"goods"},[e("WaterfallsFlow",{attrs:{wfList:t.goods,isAuth:1,uid:parseInt(t.uid),tab:t.tab}})],1)],1):t._e(),0!=t.goods.length||t.loading?t._e():e("v-uni-view",{staticClass:"empty"},[e("v-uni-image",{attrs:{src:"/static/images/no_thing.png"}}),e("v-uni-text",[t._v("暂无内容哦~")])],1),e("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[e("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),e("v-uni-view",{staticClass:"end",attrs:{hidden:t.loading||0==t.goods.length}},[e("v-uni-text",{class:t.loaded?"loaded":""},[t._v(t._s(t.loadTitle))])],1)],1)],1)],1),e("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth},on:{onLoadFun:function(a){arguments[0]=a=t.$handleEvent(a),t.onLoadFun.apply(void 0,arguments)},authColse:function(a){arguments[0]=a=t.$handleEvent(a),t.authColse.apply(void 0,arguments)}}})],1)},o=[]},a57d:function(t,a,e){"use strict";var i=e("4b68"),n=e.n(i);n.a},eb66:function(t,a,e){"use strict";e("7a82");var i=e("4ea4").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=i(e("5530")),o=i(e("c232")),s=e("d2c9"),c=e("26cb"),r=i(e("f272")),u=e("8342"),d=(getApp(),{components:{authorize:r.default,WaterfallsFlow:o.default},data:function(){return{domain:u.HTTP_REQUEST_URL,goods:[],loadTitle:"加载更多",loading:!1,loaded:!1,isShowAuth:!1,isAuto:!1,userInfo:{},where:{page:1,limit:30},tab:0,uid:""}},created:function(){},computed:(0,n.default)({},(0,c.mapGetters)(["isLogin","viewColor"])),watch:{},onLoad:function(t){this.uid=t.id,this.isLogin?(this.getAuthorInfo(this.uid),this.getList(this.uid)):(this.isAuto=!0,this.isShowAuth=!0)},onShow:function(){},onReady:function(){},mounted:function(){},methods:{onLoadFun:function(){this.isShowAuth=!1,this.getAuthorInfo(this.uid),this.getList(this.uid)},authColse:function(t){this.isShowAuth=t},authOpen:function(){!1===this.isLogin&&(this.isAuto=!0,this.isShowAuth=!0)},getAuthorInfo:function(t){var a=this;(0,s.userInfoApi)(t).then((function(t){a.userInfo=t.data}))},followAuthor:function(){var t=this;if(!1===this.isLogin)this.isAuto=!0,this.isShowAuth=!0;else{var a=!this.userInfo.is_start;(0,s.followAuthorApi)(this.userInfo.uid,{status:a}).then((function(a){200===a.status&&(t.userInfo.is_start=!t.userInfo.is_start),t.$util.Tips({title:a.message})}))}},changeTab:function(t){this.tab=t,this.where.page=1,this.loaded=this.loading=!1,this.goods=[];var a=this.userInfo.is_self?this.uid:this.userInfo.uid;this.getList(a)},getList:function(t){var a=this;a.loaded||a.loading||(a.loading=!0,a.loadTitle="",1==a.tab?this.where.is_type=1:this.where.is_type="",0==a.tab?(0,s.userArticleLst)(t,a.where).then((function(t){var e=t.data.list,i=a.$util.SplitArray(e,a.goods);a.loaded=e.length