| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["videoGoods-fans-index"],{"32f0":function(t,o,e){"use strict";var i=e("96ce"),n=e.n(i);n.a},"5335c":function(t,o,e){"use strict";e.d(o,"b",(function(){return i})),e.d(o,"c",(function(){return n})),e.d(o,"a",(function(){}));var i=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("v-uni-view",{staticClass:"fans"},[e("singleHeader",{attrs:{pageTitle:t.name}}),e("v-uni-view",{staticClass:"fansList"},[t._l(t.list,(function(o){return e("v-uni-view",{key:o.id,staticClass:"item"},[e("v-uni-view",{staticClass:"img"},[e("v-uni-image",{attrs:{src:o.avatar,mode:"aspectFill"}})],1),e("v-uni-view",{staticClass:"name"},[t._v(t._s(o.name))]),"1"===t.type?e("v-uni-view",{staticClass:"btn",class:[t.isFollow(o)[0]],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.follow(o)}}},[t.isFollow[0]?e("i",{staticClass:"iconfont icon-add-select"}):t._e(),t._v(t._s(t.isFollow(o)[1]))]):t._e()],1)})),e("v-uni-view",{staticClass:"noMore"},[t._v(t._s(t.$t("home.noMore"))+"~")])],2),e("transitionPage")],1)},n=[]},"551f":function(t,o,e){"use strict";e("6a54");var i=e("f5bd").default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var n=i(e("cc29")),d={categoryList:function(t,o){return n.default.GET("/video-goods/cat-list",t,o)},videoGoodsList:function(t,o){return n.default.GET("/video-goods/list",t,o)},videoGoodsDetail:function(t,o){return n.default.GET("/video-goods/detail",t,o)},videoGoodsCommentList:function(t,o){return n.default.GET("/video-goods/comment-list",t,o)},videoGoodsSubmitComment:function(t,o){return n.default.POST("/video-goods/submit-comment",t,o)},videoGoodsAuthorApply:function(t,o){return n.default.POST("/video-goods/author-apply",t,o)},videoAuditApplyConfig:function(t,o){return n.default.POST("/video-goods/audit-apply-config",t,o)},videoGoodsGoodsList:function(t,o){return n.default.GET("/video-goods/goods-list",t,o)},videoGoodsVote:function(t,o){return n.default.POST("/video-goods/vote",t,o)},videoGoodsCancelVote:function(t,o){return n.default.POST("/video-goods/cancel-vote",t,o)},videoGoodsSubmit:function(t,o){return n.default.POSTJSON("/video-goods/submit",t,o)},videoGoodsReport:function(t,o){return n.default.POST("/video-goods/report",t,o)},videoGoodsUserIndex:function(t,o){return n.default.GET("/video-goods/user-index",t,o)},videoGoodsUserVideoList:function(t,o){return n.default.GET("/video-goods/user-video-list",t,o)},videoGoodsFocusList:function(t,o){return n.default.GET("/video-goods/focus-list",t,o)},videoGoodsFansList:function(t,o){return n.default.GET("/video-goods/fans-list",t,o)},videoGoodsFocus:function(t,o){return n.default.POST("/video-goods/focus",t,o)},videoGoodsCancelFocus:function(t,o){return n.default.POST("/video-goods/cancel-focus",t,o)},videoGoodsCommentlike:function(t,o){return n.default.POST("/video-goods/comment-like",t,o)},videoGoodsChangeTop:function(t,o){return n.default.POST("/video-goods/change-top",t,o)},videoGoodsUserDelete:function(t,o){return n.default.POST("/video-goods/user-delete",t,o)},videoGoodsQrcode:function(t,o){return n.default.GET("/video-goods/qrcode",t,o)},uploadBase64:function(t,o){return n.default.POST("/upload/upload-base64",t,o)},videoAnalyze:function(t,o){return n.default.POST("/video-goods/video-analyze",t,o)},lookVideoSendIntegral:function(t,o){return n.default.GET("/video-goods/look-video-send-integral",t,o)}};o.default=d},"79bc":function(t,o,e){"use strict";e.r(o);var i=e("5335c"),n=e("c918");for(var d in n)["default"].indexOf(d)<0&&function(t){e.d(o,t,(function(){return n[t]}))}(d);e("32f0");var s=e("828b"),a=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"7d6fbfb4",null,!1,i["a"],void 0);o["default"]=a.exports},"942a":function(t,o,e){var i=e("c86c");o=i(!1),o.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/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-7d6fbfb4] .u-form-item--right__content__slot > uni-view,[data-v-7d6fbfb4] .u-form-item--right__content__slot > div,[data-v-7d6fbfb4] .u-form-item--right__content__slot > span,[data-v-7d6fbfb4] .u-form-item--right__content__slot > uni-text{width:100%}.fansList[data-v-7d6fbfb4]{padding:%?12?% %?30?%}.fansList .item[data-v-7d6fbfb4]{display:flex;align-items:center;margin-bottom:%?20?%}.fansList .img[data-v-7d6fbfb4]{width:%?78?%;height:%?78?%}.fansList .img uni-image[data-v-7d6fbfb4]{background:#d9d9d9;border-radius:50%;width:100%;height:100%}.fansList .name[data-v-7d6fbfb4]{flex:1;margin:0 %?16?%;font-size:%?32?%;color:#262626;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.fansList .btn[data-v-7d6fbfb4]{display:flex;align-items:center;justify-content:center;width:%?124?%;height:%?56?%;border:1px solid #f0f0f0;color:#8c8c8c;font-size:%?24?%}.fansList .btn.on[data-v-7d6fbfb4]{border-color:#f82641;background:#f82641;color:#fff}.noMore[data-v-7d6fbfb4]{padding:%?40?% 0;font-size:%?22?%;text-align:center;color:#c1c1c1}',""]),t.exports=o},"96ce":function(t,o,e){var i=e("942a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("967d").default;n("95cb6f54",i,!0,{sourceMap:!1,shadowMode:!1})},"9b52":function(t,o,e){"use strict";e("6a54");var i=e("f5bd").default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var n=i(e("b7c7")),d=i(e("9b1b"));e("e966"),e("fd3c"),e("aa9c");var s=i(e("551f")),a=i(e("6b25")),u={components:{singleHeader:a.default},data:function(){return{page:1,list:[],count:0,isEnd:!1,id:void 0,name:"",type:""}},computed:{isFollow:function(){var t=this;return function(o){var e=t.$t("videoGoods.list.follow"),i="";return o.is_focus&&(e=t.$t("videoGoods.list.checkedFollow"),i="on"),[i,e]}}},onLoad:function(t){var o=t.name,e=t.id,i=t.type;this.$utils.hideShareMenu(),this.name=decodeURIComponent(o),this.id=e,this.type=i,this.getDataList()},methods:{getDataList:function(){var t=this.type;"0"!==t?this.videoGoodsFocusList():this.videoGoodsFansList()},videoGoodsFocusList:function(){var t=this,o=this.list,e=this.id,i=this.page,a=this.count;s.default.videoGoodsFocusList({user_id:e,page:i,limit:20}).then((function(e){if(0===e.code){var s=e.data,u=s.list,f=s.row_count;t.count=parseInt(f),u=u.map((function(t){return(0,d.default)((0,d.default)({},t),{},{is_focus:1})})),u.length&&(o.push.apply(o,(0,n.default)(u)),t.page=i+1),o.length>=a&&(t.isEnd=!0)}}))},videoGoodsFansList:function(){var t=this,o=this.list,e=this.id,i=this.page,a=this.count;s.default.videoGoodsFansList({user_id:e,page:i,limit:20}).then((function(e){if(0===e.code){var s=e.data,u=s.list,f=s.row_count;t.count=parseInt(f),u=u.map((function(t){return(0,d.default)((0,d.default)({},t),{},{is_focus:1})})),u.length&&(o.push.apply(o,(0,n.default)(u)),t.page=i+1),o.length>=a&&(t.isEnd=!0)}}))},follow:function(t){var o=this,e=t.id,i=t.is_focus;0===i?s.default.videoGoodsFocus({focus_user_id:e},!1).then((function(e){0===e.code&&(o.$set(t,"is_focus",1),o.$utils.toast(e.msg))})):s.default.videoGoodsCancelFocus({user_id:e},!1).then((function(e){0===e.code&&(o.$set(t,"is_focus",0),o.$utils.toast(e.msg))}))},onReachBottom:function(){this.isEnd||this.getDataList()}}};o.default=u},c918:function(t,o,e){"use strict";e.r(o);var i=e("9b52"),n=e.n(i);for(var d in i)["default"].indexOf(d)<0&&function(t){e.d(o,t,(function(){return i[t]}))}(d);o["default"]=n.a}}]);
|