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.2 KiB
1 lines
6.2 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["technician-pages-shield"],{1458:function(t,e,n){"use strict";n.r(e);var i=n("98be"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"2c6c":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isLoad?n("v-uni-view",{staticClass:"technician-shield"},[t._l(t.list.data,(function(e,i){return n("v-uni-view",{key:i,staticClass:"list-item flex-center fill-base mt-md ml-md mr-md pd-lg radius-16"},[n("v-uni-view",{staticClass:"flex-1 mr-md"},[n("v-uni-view",{staticClass:"f-title c-black text-bold max-380 ellipsis"},[t._v(t._s(e.nickName))]),n("v-uni-view",{staticClass:"flex-y-center f-caption mt-md",staticStyle:{color:"#4D4D4D","margin-top":"14rpx"}},[t._v("拉黑时间:"),n("v-uni-view",{staticClass:"c-caption"},[t._v(t._s(e.create_time))])],1)],1),n("v-uni-view",{staticClass:"remove-btn flex-center f-desc",style:{color:t.primaryColor,border:"1rpx solid "+t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toRemove(i)}}},[t._v("移除列表")])],1)})),t.loading?n("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?n("abnor"):t._e(),n("v-uni-view",{staticClass:"space-footer"})],2):t._e()},a=[]},"2ddf":function(t,e,n){var i=n("638c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("afef9e32",i,!0,{sourceMap:!1,shadowMode:!1})},"4cf5":function(t,e,n){"use strict";n.r(e);var i=n("2c6c"),a=n("1458");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("ed68");var s=n("828b"),o=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"0769fb5c",null,!1,i["a"],void 0);e["default"]=o.exports},"638c":function(t,e,n){var i=n("c86c");e=i(!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/* 文章场景相关 */.technician-shield .list-item .avatar[data-v-0769fb5c]{width:%?124?%;height:%?124?%}.technician-shield .list-item .text[data-v-0769fb5c]{color:#4d4d4d;margin-top:%?6?%}.technician-shield .list-item .remove-btn[data-v-0769fb5c]{width:%?140?%;height:%?52?%;border-radius:%?8?%;-webkit-transform:rotate(1turn);transform:rotate(1turn)}',""]),t.exports=e},"98be":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("c223"),n("dd2b");var a=i(n("2634")),r=i(n("2fdc")),s=i(n("9b1b")),o=n("8f59"),c={data:function(){return{isLoad:!1,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 n(){var i;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],i||!e.$jweixin.isWechat()){n.next=5;break}return n.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:return n.next=7,e.getList();case 7:e.isLoad=!0;case 8:case"end":return n.stop()}}),n)})))()},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 n,i,r;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$util.showLoading(),n=t.list,i=t.param,e.next=4,t.$api.technician.shieldCoachList(i);case 4:r=e.sent,1==t.param.page||(r.data=n.data.concat(r.data)),t.list=r,t.loading=!1,t.$util.hideAll();case 8:case"end":return e.stop()}}),e)})))()},toRemove:function(t){var e=this;return(0,r.default)((0,a.default)().mark((function n(){var i;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.list.data[t].id,!e.lockTap){n.next=3;break}return n.abrupt("return");case 3:return e.lockTap=!0,e.$util.showLoading(),n.prev=5,n.next=8,e.$api.technician.shieldUserDel({id:i});case 8:e.lockTap=!1,e.$util.hideAll(),e.$util.showToast({title:"移除成功"}),e.list.data.splice(t,1),e.updateUserItem({key:"haveShieldOper",val:val}),n.next=18;break;case 15:n.prev=15,n.t0=n["catch"](5),setTimeout((function(){e.lockTap=!1,e.$util.hideAll()}),2e3);case 18:case"end":return n.stop()}}),n,null,[[5,15]])})))()}})};e.default=c},ed68:function(t,e,n){"use strict";var i=n("2ddf"),a=n.n(i);a.a}}]); |