王总上门按摩后台代码
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.
 
 
 
 
 
shangmenanmo/public/h6/static/js/agent-pages-technician-list...

1 lines
9.0 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["agent-pages-technician-list"],{1332:function(t,a,i){var e=i("8495");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=i("967d").default;n("5d06742e",e,!0,{sourceMap:!1,shadowMode:!1})},2082:function(t,a,i){"use strict";i.d(a,"b",(function(){return e})),i.d(a,"c",(function(){return n})),i.d(a,"a",(function(){}));var e=function(){var t=this,a=t.$createElement,i=t._self._c||a;return t.isLoad?i("v-uni-view",{staticClass:"agent-technician-list"},[i("fixed",[i("v-uni-view",{staticClass:"search-info fill-base pt-lg pb-md"},[i("v-uni-view",{staticClass:"flex-center pl-lg pr-lg pb-md"},[i("v-uni-view",{staticClass:"dynamic-btn flex-center f-caption mr-lg radius",style:{color:t.primaryColor,border:"1rpx solid "+t.primaryColor},on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.$util.goUrl({url:"/agent/pages/technician/apply"})}}},[i("i",{staticClass:"iconfont icon-jia-bold"}),t._v("添加")]),i("v-uni-view",{staticClass:"flex-1"},[i("search",{attrs:{type:"input",padding:0,radius:30,backgroundColor:"#F0F0F0",placeholder:t.placeholder},on:{input:function(a){arguments[0]=a=t.$handleEvent(a),t.toSearch.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticStyle:{"padding-right":"30rpx"}},[i("tab",{attrs:{isLine:!0,list:t.tabList,activeIndex:1*t.activeIndex,color:"#9D9D9D",activeColor:t.primaryColor,width:100/t.tabList.length+"%",height:"100rpx",numberType:2},on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.handerTabChange.apply(void 0,arguments)}}})],1)],1)],1),t._l(t.list.data,(function(a,e){return i("v-uni-view",{key:e,staticClass:"list-item fill-base flex-warp mt-md ml-md mr-md pd-lg radius-16",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.goDetail(e)}}},[i("v-uni-view",[i("v-uni-view",{staticClass:"avatar rel"},[i("v-uni-view",{staticClass:"avatar radius"},[i("v-uni-view",{staticClass:"h5-image avatar radius",style:{backgroundImage:"url('"+a.work_img+"')"}})],1)],1),i("v-uni-view",{staticClass:"flex-center"},[i("v-uni-view",{staticClass:"item-tag flex-center f-icontext c-base radius-20",class:[{"have-user":a.auth_status}]},[t._v(t._s(t.authStatusType[a.auth_status]))])],1)],1),i("v-uni-view",{staticClass:"flex-1 ml-md"},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"f-icontext c-paragraph"},[t._v("ID:"+t._s(a.id))]),i("v-uni-view",{staticClass:"f-paragraph",style:{color:1==a.is_update?t.primaryColor:4==a.status?t.subColor:3==a.status?"#E82F21":"#999999"}},[t._v(t._s(t.statusType[a.status]))])],1),i("v-uni-view",{staticClass:"flex-y-center pb-lg b-1px-b"},[i("v-uni-view",{staticClass:"f-paragraph c-black text-bold max-400 ellipsis"},[t._v(t._s(a.coach_name))]),i("v-uni-view",{staticClass:"status-btn flex-center f-icontext ml-md",style:{color:1==a.admin_add?t.primaryColor:t.subColor,border:"1rpx solid "+(1==a.admin_add?t.primaryColor:t.subColor)}},[t._v(t._s(1==a.admin_add?"平台":"用户"))])],1),i("v-uni-view",{staticClass:"f-icontext c-paragraph mt-md"},[t._v(t._s(a.mobile))]),i("v-uni-view",{staticClass:"f-icontext c-paragraph mt-sm"},[t._v("所属代理商:"+t._s(a.admin_name||"-")+t._s(a.admin_id?" ("+t.cityType[a.city_type]+")":""))]),i("v-uni-view",{staticClass:"f-icontext c-paragraph mt-sm"},[t._v("申请时间:"+t._s(a.create_time))]),a.is_update?t._e():i("v-uni-view",{staticClass:"flex-between mt-md"},[i("v-uni-view"),i("v-uni-view",{staticClass:"edit-btn flex-center f-desc radius",style:{color:t.primaryColor,border:"1rpx solid "+t.primaryColor}},[t._v("编辑")])],1)],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()},n=[]},"5e27":function(t,a,i){"use strict";i.r(a);var e=i("2082"),n=i("f462");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(a,t,(function(){return n[t]}))}(s);i("f72c");var r=i("828b"),o=Object(r["a"])(n["default"],e["b"],e["c"],!1,null,"6c89adec",null,!1,e["a"],void 0);a["default"]=o.exports},8495:function(t,a,i){var e=i("c86c");a=e(!1),a.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/* 文章场景相关 */.agent-technician-list .search-info[data-v-6c89adec]{width:100%}.agent-technician-list .search-info .dynamic-btn[data-v-6c89adec]{width:%?134?%;height:%?56?%;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.agent-technician-list .search-info .dynamic-btn .iconfont[data-v-6c89adec]{font-size:%?24?%;margin-right:%?6?%}.agent-technician-list .list-item .avatar[data-v-6c89adec]{width:%?124?%;height:%?124?%}.agent-technician-list .list-item .item-tag[data-v-6c89adec]{width:%?100?%;height:%?32?%;color:#4a4a4a;background:#d8d8d8;margin-top:%?19?%;margin-bottom:%?6?%}.agent-technician-list .list-item .have-user[data-v-6c89adec]{color:#ebddb1;background:linear-gradient(270deg,#4c545a,#282b34)}.agent-technician-list .list-item .status-btn[data-v-6c89adec]{width:%?60?%;height:%?32?%;border-radius:%?5?%;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.agent-technician-list .list-item .edit-btn[data-v-6c89adec]{width:%?120?%;height:%?50?%;-webkit-transform:rotate(1turn);transform:rotate(1turn)}',""]),t.exports=a},e337:function(t,a,i){"use strict";i("6a54");var e=i("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,i("c223");var n=e(i("2634")),s=e(i("2fdc")),r=i("8f59"),o={data:function(){return{options:{},placeholder:"请输入"+this.$t("action.attendantName")+"姓名/手机号",tabList:[{id:0,title:"全部",number:0},{id:1,title:"申请中",number:0},{id:2,title:"已授权",number:0},{id:3,title:"已驳回",number:0},{id:4,title:"重新审核",number:0}],activeIndex:0,authStatusType:{0:"未认证",1:"认证中",2:"已认证",3:"认证失败"},statusType:{1:"申请中",2:"已授权",3:"取消授权",4:"已驳回"},cityType:{1:"城市",2:"区县",3:"省"},loading:!0,isLoad:!1,param:{page:1,limit:10,status:0},list:{data:[]}}},computed:(0,r.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(t){this.options=t,uni.setNavigationBarTitle({title:this.$t("action.attendantName")+"管理"}),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:{initIndex:function(){var t=arguments,a=this;return(0,s.default)((0,n.default)().mark((function i(){var e;return(0,n.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(e=t.length>0&&void 0!==t[0]&&t[0],e||!a.$jweixin.isWechat()){i.next=5;break}return i.next=4,a.$jweixin.initJssdk();case 4:a.$jweixin.wxReady((function(){a.$jweixin.hideOptionMenu()}));case 5:a.$util.setNavigationBarColor({bg:a.primaryColor}),a.getList();case 7: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)},toSearch:function(t){this.param.page=1,this.param.name=t,this.getList()},getList:function(){var t=this;return(0,s.default)((0,n.default)().mark((function a(){var i,e,s;return(0,n.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.$util.showLoading(),i=t.list,e=t.param,a.next=4,t.$api.agent.coachList(e);case 4:s=a.sent,1==t.param.page||(s.data=i.data.concat(s.data)),t.list=s,t.tabList[1].number=s.ing,t.isLoad=!0,t.loading=!1,t.$util.hideAll();case 10:case"end":return a.stop()}}),a)})))()},goDetail:function(t){var a=this.list.data[t],i=a.id,e=a.is_update;e||this.$util.goUrl({url:"/agent/pages/technician/apply?id=".concat(i)})}}};a.default=o},f462:function(t,a,i){"use strict";i.r(a);var e=i("e337"),n=i.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){i.d(a,t,(function(){return e[t]}))}(s);a["default"]=n.a},f72c:function(t,a,i){"use strict";var e=i("1332"),n=i.n(e);n.a}}]);