王总上门按摩后台代码
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/user-pages-distribution-age...

1 lines
6.3 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-distribution-agent"],{"01c3":function(t,i,n){var e=n("5898c");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=n("967d").default;a("d42f0abc",e,!0,{sourceMap:!1,shadowMode:!1})},3651:function(t,i,n){"use strict";var e=n("01c3"),a=n.n(e);a.a},"39a0":function(t,i,n){"use strict";n.r(i);var e=n("8ec3"),a=n.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(s);i["default"]=a.a},"5898c":function(t,i,n){var e=n("c86c");i=e(!1),i.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/* 文章场景相关 */.list-item .avatar[data-v-e1fd8428]{width:%?94?%;height:%?94?%}.list-item .city-btn[data-v-e1fd8428]{height:%?32?%;padding:0 %?6?% 0 %?6?%}.list-item .city-btn .bg[data-v-e1fd8428]{opacity:.1;border-radius:%?5?%;top:0;left:0;right:0;bottom:0;z-index:1}',""]),t.exports=i},"8ec3":function(t,i,n){"use strict";n("6a54");var e=n("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,n("c223");var a=e(n("2634")),s=e(n("2fdc")),o=n("8f59"),r={data:function(){return{loading:!0,isLoad:!1,cityType:["","城市","区县","省"],param:{page:1,limit:10,status:0},list:{data:[]},check_admin:{}}},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(){var t=this.$util.getPage(-1),i=t.check_admin;this.check_admin=i,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,i=this;return(0,s.default)((0,a.default)().mark((function n(){var e;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e=t.length>0&&void 0!==t[0]&&t[0],e||!i.$jweixin.isWechat()){n.next=5;break}return n.next=4,i.$jweixin.initJssdk();case 4:i.$jweixin.wxReady((function(){i.$jweixin.hideOptionMenu()}));case 5:i.$util.setNavigationBarColor({bg:i.primaryColor}),i.getList();case 7:case"end":return n.stop()}}),n)})))()},handerTabChange:function(t){this.activeIndex=t,this.param.status=t,this.getList()},toSearch:function(t){this.param.page=1,this.param.nickName=t,this.check_admin={},this.getList()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getList:function(){var t=this;return(0,s.default)((0,a.default)().mark((function i(){var n,e,s;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.$util.showLoading(),n=t.list,e=t.param,i.next=4,t.$api.mine.adminList(e);case 4:s=i.sent,1==t.param.page||(s.data=n.data.concat(s.data)),t.list=s,t.isLoad=!0,t.loading=!1,t.$util.hideAll();case 9:case"end":return i.stop()}}),i)})))()},toChangeItem:function(t){this.check_admin=this.list.data[t]},toConfirm:function(){var t=this.check_admin.id,i=void 0===t?0:t;i?(this.$util.getPage(-1).check_admin=this.check_admin,this.$util.goUrl({url:1,openType:"navigateBack"})):this.$util.showToast({title:"请选择代理商"})}}};i.default=r},d16a:function(t,i,n){"use strict";n.r(i);var e=n("f7b28"),a=n("39a0");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(i,t,(function(){return a[t]}))}(s);n("3651");var o=n("828b"),r=Object(o["a"])(a["default"],e["b"],e["c"],!1,null,"e1fd8428",null,!1,e["a"],void 0);i["default"]=r.exports},f7b28:function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return a})),n.d(i,"a",(function(){}));var e=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("v-uni-view",[n("fixed",[n("search",{attrs:{type:"input",padding:30,radius:0,placeholder:"请输入代理商姓名"},on:{input:function(i){arguments[0]=i=t.$handleEvent(i),t.toSearch.apply(void 0,arguments)}}})],1),t._l(t.list.data,(function(i,e){return n("v-uni-view",{key:e,staticClass:"list-item fill-base pt-lg pb-lg pl-md pr-lg flex-center mt-md ml-md mr-md radius-16",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.toChangeItem(e)}}},[n("i",{staticClass:"iconfont mr-md",class:[{"icon-xuanze":t.check_admin.id!=i.id},{"icon-radio-fill":t.check_admin.id==i.id}],style:{color:t.check_admin.id==i.id?t.primaryColor:""}}),n("v-uni-view",{staticClass:"flex-1 flex-center"},[n("v-uni-image",{staticClass:"avatar radius",attrs:{src:i.avatarUrl}}),n("v-uni-view",{staticClass:"flex-1 ml-md"},[n("v-uni-view",{staticClass:"f-title c-title text-bold ellipsis",staticStyle:{"max-width":"494rpx"}},[t._v(t._s(i.agent_name))]),n("v-uni-view",{staticClass:"flex-between mt-sm"},[n("v-uni-view",{staticClass:"city-btn flex-center f-icontext rel",style:{color:t.primaryColor}},[n("v-uni-view",{staticClass:"bg abs",style:{background:t.primaryColor}}),t._v(t._s(t.cityType[i.city_type])+"代理")],1),n("v-uni-view")],1)],1)],1)],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-max-footer"}),n("fix-bottom-button",{attrs:{text:[{text:"确定",type:"confirm"}],bgColor:"#fff"},on:{confirm:function(i){arguments[0]=i=t.$handleEvent(i),t.toConfirm.apply(void 0,arguments)}}})],2)},a=[]}}]);