You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
6.5 KiB
1 lines
6.5 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-shield"],{3627:function(t,e,i){var n=i("c86c");e=n(!1),e.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/* 文章场景相关 */.user-shield .list-item .avatar[data-v-7ff298ce]{width:%?124?%;height:%?124?%}.user-shield .list-item .text[data-v-7ff298ce]{color:#4d4d4d;margin-top:%?6?%}.user-shield .list-item .remove-btn[data-v-7ff298ce]{width:%?146?%;height:%?56?%;-webkit-transform:rotate(1turn);transform:rotate(1turn)}',""]),t.exports=e},"43b3":function(t,e,i){"use strict";var n=i("77f1"),a=i.n(n);a.a},"4b9d":function(t,e,i){"use strict";i.r(e);var n=i("e6be"),a=i("ce5e");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("43b3");var s=i("828b"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"7ff298ce",null,!1,n["a"],void 0);e["default"]=o.exports},"77f1":function(t,e,i){var n=i("3627");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("8a797a50",n,!0,{sourceMap:!1,shadowMode:!1})},ce5e:function(t,e,i){"use strict";i.r(e);var n=i("ea9b"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},e6be:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isLoad?i("v-uni-view",{staticClass:"user-shield"},[t.configInfo.plugAuth.dynamic?i("fixed",[i("tab",{attrs:{list:t.tabList,activeIndex:1*t.activeIndex,activeColor:t.primaryColor,width:"50%",height:"100rpx",color:"#999999"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.handerTabChange.apply(void 0,arguments)}}})],1):t._e(),t._l(t.list.data,(function(e,n){return i("v-uni-view",{key:n,staticClass:"list-item flex-center fill-base mt-md ml-md mr-md pd-lg radius-16"},[i("v-uni-image",{staticClass:"avatar radius",attrs:{mode:"aspectFill",src:e.work_img}}),i("v-uni-view",{staticClass:"flex-1 flex-between ml-md"},[i("v-uni-view",{staticClass:"f-title c-black text-bold max-300 ellipsis"},[t._v(t._s(e.coach_name))]),i("v-uni-view",{staticClass:"remove-btn flex-center f-desc radius",style:{color:t.primaryColor,border:"1rpx solid "+t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toRemove(n)}}},[t._v("移除列表")])],1)],1)})),t.loading?i("load-more",{attrs:{noMore:t.list.current_page>=t.list.last_page&&t.list.data.length>0,loading:t.loading}}):t._e(),!t.loading&&t.list.data.length<=0&&1==t.list.current_page?i("abnor"):t._e(),i("v-uni-view",{staticClass:"space-footer"})],2):t._e()},a=[]},ea9b:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("bf0f"),i("18f7"),i("de6c"),i("c223"),i("dd2b");var a=n(i("2634")),r=n(i("2fdc")),s=n(i("9b1b")),o=i("8f59"),l={data:function(){return{isLoad:!1,tabList:[{id:2,title:"不喜欢Ta"},{id:1,title:"不想看Ta的作品"}],activeIndex:0,loading:!0,param:{page:1},list:{data:[]},lockTap:!1}},computed:(0,o.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(){this.$util.setNavigationBarColor({bg:this.primaryColor}),this.initIndex()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:(0,s.default)((0,s.default)((0,s.default)({},(0,o.mapActions)(["getConfigInfo"])),(0,o.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,r.default)((0,a.default)().mark((function i(){var n;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.length>0&&void 0!==t[0]&&t[0],n||!e.$jweixin.isWechat()){i.next=5;break}return i.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:return i.next=7,Promise.all([e.getConfigInfo(),e.getList()]);case 7:e.isLoad=!0;case 8:case"end":return i.stop()}}),i)})))()},handerTabChange:function(t){this.activeIndex=t,this.param.status=t,this.getList()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getList:function(){var t=this;return(0,r.default)((0,a.default)().mark((function e(){var i,n,r,s,o,l;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$util.showLoading(),i=t.list,n=t.param,r=t.tabList,s=t.activeIndex,o=r[s].id,n.type=o,e.next=6,t.$api.mine.shieldCoachList(n);case 6:l=e.sent,1==t.param.page||(l.data=i.data.concat(l.data)),t.list=l,t.loading=!1,t.$util.hideAll();case 10:case"end":return e.stop()}}),e)})))()},toRemove:function(t){var e=this;return(0,r.default)((0,a.default)().mark((function i(){var n,r;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e.list.data[t].id,r=e.tabList[e.activeIndex].id,!e.lockTap){i.next=4;break}return i.abrupt("return");case 4:return e.lockTap=!0,e.$util.showLoading(),i.prev=6,i.next=9,e.$api.mine.shieldCoachDel({id:n});case 9:e.lockTap=!1,e.$util.hideAll(),e.$util.showToast({title:"移除成功"}),e.list.data.splice(t,1),e.updateUserItem({key:"haveShieldOper",val:r}),i.next=19;break;case 16:i.prev=16,i.t0=i["catch"](6),setTimeout((function(){e.lockTap=!1,e.$util.hideAll()}),2e3);case 19:case"end":return i.stop()}}),i,null,[[6,16]])})))()}})};e.default=l}}]); |