zx/public/static/js/pages-plantGrass-plant_user...

1 line
9.5 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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