1 line
9.4 KiB
JavaScript
1 line
9.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_user_fans-index"],{"242b":function(t,n,e){t.exports=e.p+"pages/plantGrass/static/images/no_fans.png"},"7a6f":function(t,n,e){"use strict";e.r(n);var a=e("d3f0"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},"7c27":function(t,n,e){"use strict";e.r(n);var a=e("f4b1"),i=e("7a6f");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("e5ba");var s=e("828b"),u=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"a7651bf0",null,!1,a["a"],void 0);n["default"]=u.exports},a7917:function(t,n,e){var a=e("f2d6");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=e("967d").default;i("41ead6e6",a,!0,{sourceMap:!1,shadowMode:!1})},d3f0:function(t,n,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("c223");var i=a(e("9b1b")),o=e("8f59"),s=e("edc0b"),u=(getApp(),{data:function(){return{list:[],isScroll:!0,page:1,limit:20,loading:!1}},computed:(0,i.default)({},(0,o.mapGetters)(["isLogin","uid","viewColor"])),onLoad:function(){this.getList()},onReady:function(){},mounted:function(){},methods:{getList:function(){var t=this;this.isScroll&&!this.loading&&(this.loading=!0,(0,s.myFansLst)({page:this.page,limit:this.limit}).then((function(n){t.loading=!1,t.isScroll=n.data.list.length>=t.limit,t.list=t.list.concat(n.data.list),t.page+=1})))},focusToggle:function(t){var n=this,e=t.is_start?0:1;(0,s.followAuthorApi)(t.left_id,{status:e}).then((function(e){200===e.status&&(t.is_start=!t.is_start),n.$util.Tips({title:e.message})})).catch((function(t){n.$util.Tips({title:t})}))}},onReachBottom:function(){this.getList()}});n.default=u},e5ba:function(t,n,e){"use strict";var a=e("a7917"),i=e.n(a);i.a},edc0b:function(t,n,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.boughtLstApi=function(t){return i.default.get("community/pay_product/lst",t)},n.browseLstApi=function(t){return i.default.get("community/hist_product/lst",t)},n.collectLstApi=function(t){return i.default.get("community/rela_product/lst",t)},n.createPlantApi=function(t){return i.default.post("community/create",t)},n.deletePlantApi=function(t){return i.default.post("community/delete/".concat(t))},n.focusArticleLst=function(t){return i.default.get("community/focuslst",t,{noAuth:!0})},n.followAuthorApi=function(t,n){return i.default.post("community/fans/".concat(t),n)},n.getTopicList=function(){return i.default.get("community/category/lst",{},{noAuth:!0})},n.getVideoCode=function(t,n){return i.default.get("community/qrcode/".concat(t),n,{noAuth:!0})},n.graphicLstApi=function(t){return i.default.get("community/lst",t,{noAuth:!0})},n.graphicProApi=function(t){return i.default.get("product/spu/get/".concat(t),{},{noAuth:!0})},n.graphicStartApi=function(t,n){return i.default.post("community/start/".concat(t),n)},n.hotSearchLst=function(){return i.default.get("common/commuunity/hot_keyword",{},{noAuth:!0})},n.myFansLst=function(t){return i.default.get("community/fans/lst",t)},n.myFocusLst=function(t){return i.default.get("community/focus/lst",t)},n.myVideoList=function(t,n){return i.default.get("community/user/community_video/".concat(t),n,{noAuth:!0})},n.orderAssociatePlantApi=function(t){return i.default.get("community/order/".concat(t),{},{noAuth:!0})},n.plantDetailApi=function(t){return i.default.get("community/show/".concat(t),{},{noAuth:!0})},n.replyCreateApi=function(t,n){return i.default.post("community/reply/create/".concat(t),n)},n.replyLstApi=function(t,n){return i.default.get("community/".concat(t,"/reply"),n,{noAuth:!0})},n.starArticleLst=function(t){return i.default.get("community/start/lst",t)},n.starCommentApi=function(t,n){return i.default.post("community/reply/start/".concat(t),n)},n.updatePlantApi=function(t,n){return i.default.post("community/update/".concat(t),n)},n.userArticleLst=function(t,n){return i.default.get("community/user/community/".concat(t),n)},n.userInfoApi=function(t){return i.default.get("community/user/info/".concat(t))},n.videoList=function(t){return i.default.get("community/video_lst",t,{noAuth:!0})};var i=a(e("fea3"))},f2d6:function(t,n,e){var a=e("c86c");n=a(!1),n.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/* 文章场景相关 */.user_plant_item[data-v-a7651bf0]{position:relative;display:flex;padding:%?30?% %?20?%;background-color:#fff;align-items:center}.user_plant_item[data-v-a7651bf0]::after{content:" ";position:absolute;bottom:0;left:%?30?%;right:0;height:1px;background:#f0f0f0}.user_plant_item uni-image[data-v-a7651bf0]{width:%?120?%;height:%?120?%;border-radius:50%}.user_plant_item .info[data-v-a7651bf0]{flex:1;display:flex;flex-direction:column;justify-content:space-between;margin-left:%?20?%;position:relative}.user_plant_item .info .name[data-v-a7651bf0]{width:%?410?%;font-size:%?30?%;color:#282828}.user_plant_item .info .plant-des[data-v-a7651bf0]{color:#999;font-size:%?24?%;margin-top:%?16?%}.user_plant_item .info .plant-des .des[data-v-a7651bf0]{margin-right:%?15?%}.user_plant_item .info .plant-des .des + .des[data-v-a7651bf0]{margin-left:%?15?%}.user_plant_item .info .plant-des .des + .des[data-v-a7651bf0]::before{content:"";display:inline-block;width:%?1?%;height:%?16?%;background:#999;position:relative;left:%?-15?%;top:%?-2?%}.user_plant_item .info .plant-des .des uni-text[data-v-a7651bf0]{padding-left:%?8?%}.user_plant_item .info .plant-des .des uni-text[data-v-a7651bf0]::before{content:".";position:relative;top:%?-6?%;left:%?-3?%}.user_plant_item .info .btn[data-v-a7651bf0]{display:flex;align-items:center;justify-content:center;position:absolute;right:0;top:50%;width:%?126?%;height:%?50?%;-webkit-transform:translateY(-50%);transform:translateY(-50%);border:1px solid #999;color:#999;border-radius:%?33?%;font-size:%?26?%}.user_plant_item .info .btn.focusBtn .iconfont[data-v-a7651bf0]{font-size:%?20?%;margin-right:%?10?%}.focusBtn[data-v-a7651bf0]{color:var(--view-theme)!important;border-color:var(--view-theme)!important}.no_content[data-v-a7651bf0], .main[data-v-a7651bf0]{min-height:100vh;background:#fff;position:relative}.no_content .count[data-v-a7651bf0], .main .count[data-v-a7651bf0]{position:absolute;text-align:center;width:100%;top:50%;margin-top:%?-300?%}.no_content .count uni-image[data-v-a7651bf0], .no_content .count uni-image[data-v-a7651bf0], .main .count uni-image[data-v-a7651bf0], .main .count uni-image[data-v-a7651bf0]{width:%?424?%;height:%?305?%}.no_content .count uni-text[data-v-a7651bf0], .main .count uni-text[data-v-a7651bf0]{display:block;color:#999;font-size:%?26?%}',""]),t.exports=n},f4b1:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var a=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("v-uni-view",{staticClass:"user_store_attention",style:t.viewColor},[t.list.length>0?t._l(t.list,(function(n,e){return a("v-uni-view",{key:e,staticClass:"user_plant_item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goHomepage(n)}}},[a("v-uni-image",{attrs:{src:n.fans&&n.fans.avatar||"/static/images/f.png",mode:""}}),a("v-uni-view",{staticClass:"info"},[a("v-uni-view",{staticClass:"line1"},[a("v-uni-text",{staticClass:"name line1"},[t._v(t._s(n.fans&&n.fans.nickname||"用户已注销"))])],1),n.fans?a("v-uni-view",{staticClass:"acea-row plant-des"},[a("v-uni-view",{staticClass:"des"},[t._v("内容"),a("v-uni-text",[t._v(t._s(n.fans.count_content<1e4&&n.fans.count_content>0?n.fans.count_content:n.fans.count_content>1e3?(n.fans.count_content/1e4).toFixed(2)+"万":0))])],1),a("v-uni-view",{staticClass:"des"},[t._v("粉丝"),a("v-uni-text",[t._v(t._s(n.fans.count_fans<1e4&&n.fans.count_fans>0?n.fans.count_fans:n.fans.count_fans>1e3?(n.fans.count_fans/1e4).toFixed(2)+"万":0))])],1)],1):t._e(),a("v-uni-view",{staticClass:"btn",class:n.is_start?"":"focusBtn",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.focusToggle(n)}}},[n.is_start?t._e():a("v-uni-text",{staticClass:"iconfont icon-jiahao2"}),t._v(t._s(n.is_start?"已关注":"关注"))],1)],1)],1)})):t._e(),a("v-uni-view",{staticClass:"acea-row row-center-wrapper loadingicon",attrs:{hidden:!t.loading}},[a("v-uni-text",{staticClass:"iconfont icon-jiazai loading"})],1),0!=t.list.length||t.loading?t._e():a("v-uni-view",{staticClass:"no_content"},[a("v-uni-view",{staticClass:"count"},[a("v-uni-image",{attrs:{src:e("242b")}}),a("v-uni-text",[t._v("你还没有粉丝哦~")])],1)],1)],2)},i=[]}}]); |