(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPages-merchant-merchantClerkList-merchantClerkList"],{"0f1d":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n={data:function(){return{}},mounted:function(){},computed:{loadImage:function(){var t=this,a=t.$store.state.appInfo.loading;return a||""}}};a.default=n},"211d":function(t,a,e){"use strict";var n=e("bc7e"),i=e.n(n);i.a},"266a":function(t,a,e){var n=e("dde5");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("4f06").default;i("26196458",n,!0,{sourceMap:!1,shadowMode:!1})},"338e":function(t,a,e){"use strict";e.r(a);var n=e("be66"),i=e("b604");for(var r in i)"default"!==r&&function(t){e.d(a,t,(function(){return i[t]}))}(r);e("211d");var o,s=e("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"36935a82",null,!1,n["a"],o);a["default"]=c.exports},"33ef":function(t,a,e){"use strict";var n;e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return r})),e.d(a,"a",(function(){return n}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.TabBarsData?e("v-uni-view",[e("v-uni-view",{staticClass:"diy-tabbar",style:{background:t.TabBarsData?t.TabBarsData.style.bgcolor:"#ffffff","padding-bottom":t.isPadding?"20px":""}},t._l(t.TabBarsData.data,(function(a,n){return e("v-uni-view",{key:n,staticClass:"tabbar-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onTabItem(a.linkurl,a.name,n)}}},["1"===t.TabBarsData.params.navstyle?e("v-uni-view",[e("v-uni-image",{staticClass:"image",attrs:{src:a.imgurl}})],1):t._e(),"0"===t.TabBarsData.params.navstyle?e("v-uni-view",["pages/subPages2/homemaking/postDemand/postDemand"==a.page_path?e("v-uni-view",{staticClass:"tabbar-sever"},[e("v-uni-image",{staticClass:"tabbar-severImg",attrs:{src:t.imgfixUrls+"homemakingImg/enterCheck.png",mode:""}})],1):e("v-uni-view",[e("v-uni-view",{staticClass:"iconfont tabbar-item-icon",class:a.iconclass,style:t.current===n?"color:"+t.TabBarsData.style.iconcoloron:"color:"+t.TabBarsData.style.iconcolor}),e("v-uni-view",{staticClass:"f-24",style:t.current===n?"color:"+t.TabBarsData.style.textcoloron:"color:"+t.TabBarsData.style.textcolor},[t._v(t._s(a.text))])],1)],1):t._e(),"2"===t.TabBarsData.params.navstyle?e("v-uni-view",{staticClass:"navstyle-3-item"},[e("v-uni-view",{staticClass:"navstyle-image",style:{"background-image":t.current===n?"url("+a.select_img+")":"url("+a.default_img+")"}}),e("v-uni-view",{staticClass:"f-24 t-c",style:t.current===n?"color:"+t.TabBarsData.style.textcoloron:"color:"+t.TabBarsData.style.textcolor},[t._v(t._s(a.text))])],1):t._e()],1)})),1)],1):t._e()},r=[]},"3c24":function(t,a,e){"use strict";e.r(a);var n=e("58fc"),i=e.n(n);for(var r in n)"default"!==r&&function(t){e.d(a,t,(function(){return n[t]}))}(r);a["default"]=i.a},4624:function(t,a,e){"use strict";var n=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=n(e("2c7c")),r=n(e("c2a2")),o=n(e("6f85")),s=n(e("8f6e")),c={data:function(){return{openButton:1,qrcode:null,src:null,popShow:!1,popType:"center",loadlogo:!1,addDialog:!0,ismainList:["店长","核销员","管理员","业务员"],adminList:{},enabledList:["开启","停用"]}},components:{Loadlogo:r.default,TabBars:o.default,PopManager:s.default},computed:{},onShow:function(){},mounted:function(){},onLoad:function(t){var a=this;uni.getStorage({key:"checkStoreid",success:function(t){a.storeid=t.data,a.init(t.data)}})},methods:{closePopShow:function(){var t=this;t.popShow=!1,t.openButton=1,clearInterval(t.t1)},init:function(t){var a=this;a.getAdminList(t)},adminAjax:function(){},getAdminInfo:function(){var t=this;t.openButton=0;var a={storeid:t.storeid};i.default._post_form("&p=store&do=adminInfo",a,(function(a){function e(){var a={qrcode:t.qrcode};i.default._post_form("&p=store&do=adminAjax",a,(function(a){t.userInfo=a.data,a.data.id&&(clearInterval(t.t1),t.popShow=!1,i.default.navigationTo({url:"pages/subPages/merchant/merchantClerkEdit/merchantClerkEdit?newadminid="+a.data.id}))}),(function(a){console.info("过期结束"),clearInterval(t.t1)}))}t.popShow=!0,t.src=a.data.src,t.qrcode=a.data.qrcode,t.qrcode&&(t.t1=setInterval(e,3e3))}),(function(t){}))},getAdminList:function(t){var a=this,e={storeid:a.storeid||t};i.default._post_form("&p=store&do=adminList",e,(function(t){a.adminList=t.data}))},goEdit:function(t){i.default.navigationTo({url:"pages/subPages/merchant/merchantClerkEdit/merchantClerkEdit?adminid="+t})},changeAdminEnabled:function(t){var a=this,e={userid:t};i.default._post_form("&p=store&do=changeAdminEnabled",e,(function(e){uni.showToast({icon:"none",title:"修改店员状态成功",duration:2e3});for(var n=0;n0?this.tabBarData:this.menu},r=e.$mp.query;if(i.data){var o=[];for(var s in i.data.data)o.push(i.data.data[s]);return"pages/mainPages/index/diypage"===n?(n=n+"?i="+r.i+(r["aid"]?"&aid="+r["aid"]:"")+(r["id"]?"&id="+r["id"]:"")+"&type="+r["type"],t=o.findIndex((function(t){return t.linkurl===n})),this.current=t):(t=o.findIndex((function(t){return t.linkurl.split("?")[0]===n})),this.current=t),i.data.data=o,i.data}}}};a.default=r},"6f85":function(t,a,e){"use strict";e.r(a);var n=e("33ef"),i=e("3c24");for(var r in i)"default"!==r&&function(t){e.d(a,t,(function(){return i[t]}))}(r);e("a780");var o,s=e("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"e1dd56ac",null,!1,n["a"],o);a["default"]=c.exports},7316:function(t,a,e){"use strict";var n;e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return r})),e.d(a,"a",(function(){return n}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",[e("v-uni-view",{staticClass:"loadlogo-container"},[e("v-uni-view",{staticClass:"loadlogo"},[e("v-uni-image",{staticClass:"image",attrs:{src:t.loadImage||t.imgfixUrls+"loadlogo.svg",mode:"aspectFill"}})],1)],1)],1)},r=[]},a780:function(t,a,e){"use strict";var n=e("266a"),i=e.n(n);i.a},b604:function(t,a,e){"use strict";e.r(a);var n=e("4624"),i=e.n(n);for(var r in n)"default"!==r&&function(t){e.d(a,t,(function(){return n[t]}))}(r);a["default"]=i.a},bc7e:function(t,a,e){var n=e("d7b6");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("4f06").default;i("036004d8",n,!0,{sourceMap:!1,shadowMode:!1})},be66:function(t,a,e){"use strict";var n;e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return r})),e.d(a,"a",(function(){return n}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",[e("v-uni-view",{staticClass:"container"},[e("far-bottom"),e("v-uni-view",{staticClass:"clerklist-content p-r p-left-right-30"},[t._l(t.adminList,(function(a,n){return e("v-uni-view",{staticClass:"m-btm20"},[e("v-uni-view",{staticClass:"menu-style dis-flex flex-x-between flex-y-center"},[e("v-uni-view",{staticClass:"dis-flex flex-y-center"},[e("v-uni-image",{staticClass:"menu-style-bg",attrs:{src:a.avatar}}),e("v-uni-view",{staticClass:"dis-flex flex-dir-column"},[e("v-uni-view",{staticClass:"f-30 color-33 dis-flex flex-y-center",staticStyle:{"padding-bottom":"12upx"}},[e("v-uni-view",[t._v(t._s(a.name))]),1==a.enabled?e("v-uni-image",{staticClass:"iconbox",attrs:{src:t.imgfixUrls+"centerMerchant/clerksuccess.png"}}):t._e(),0==a.enabled?e("v-uni-image",{staticClass:"iconbox",attrs:{src:t.imgfixUrls+"centerMerchant/clerkjian.png"}}):t._e()],1),e("v-uni-view",{staticClass:"f-24 color-99"},[t._v("角色:"+t._s(t.ismainList[a.ismain-1]))])],1)],1),e("v-uni-view",{staticClass:"clerklist-btns dis-flex"},["1"!=a.ismain&&"4"!=a.ismain?e("v-uni-view",{staticClass:"edit",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goEdit(a.id)}}},[t._v("编辑店员")]):t._e(),"1"!=a.ismain&&"4"!=a.ismain?e("v-uni-view",{class:0==a.enabled?"switchOn":"switch",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeAdminEnabled(a.id)}}},[t._v(t._s(t.enabledList[Number(a.enabled)]))]):t._e()],1)],1)],1)})),e("v-uni-view",{staticClass:"addbtn",class:1==t.openButton?"":"cantButton",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.getAdminInfo.apply(void 0,arguments)}}},[t._v("添加店员")])],2)],1),e("PopManager",{attrs:{show:t.popShow,type:t.popType}},[e("v-uni-view",{staticClass:"popView"},[e("v-uni-view",{staticClass:"popImg"},[e("span",[t._v("用微信扫一扫,成为店员")]),e("v-uni-view",{staticClass:"imgView"},[e("v-uni-image",{attrs:{src:t.src}})],1)],1)],1),e("v-uni-view",{staticClass:"closeImg",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.closePopShow.apply(void 0,arguments)}}},[e("v-uni-image",{attrs:{src:t.imgfixUrls+"merchant/close.png"}})],1)],1)],1)},r=[]},c2a2:function(t,a,e){"use strict";e.r(a);var n=e("7316"),i=e("d7e5");for(var r in i)"default"!==r&&function(t){e.d(a,t,(function(){return i[t]}))}(r);e("c861");var o,s=e("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"bce21d66",null,!1,n["a"],o);a["default"]=c.exports},c757:function(t,a,e){var n=e("eb38");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("4f06").default;i("e81adc74",n,!0,{sourceMap:!1,shadowMode:!1})},c861:function(t,a,e){"use strict";var n=e("c757"),i=e.n(n);i.a},d7b6:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.cantButton[data-v-36935a82]{pointer-events:none}.closeImg[data-v-36935a82]{margin:%?40?% auto 0 auto;width:%?42?%;height:%?42?%}.closeImg > uni-image[data-v-36935a82]{width:%?42?%;height:%?42?%}.popView[data-v-36935a82]{width:%?512?%;height:%?537?%;background:#fff;border-radius:%?10?%}.popImg[data-v-36935a82]{text-align:center;padding:%?30?%}.popImg > span[data-v-36935a82]{font-size:%?28?%;color:#333}.imgView[data-v-36935a82]{margin:%?20?% auto 0 auto;width:%?359?%;height:%?359?%}.imgView > uni-image[data-v-36935a82]{width:%?359?%;height:%?359?%}uni-page-body[data-v-36935a82]{background-color:#f7f7f7}.container .color-33[data-v-36935a82]{color:#333}.container .color-99[data-v-36935a82]{color:#999}.container .record-dialog[data-v-36935a82]{z-index:10;position:fixed;background:rgba(0,0,0,.7);top:0;right:0;bottom:0;left:0}.container .record-dialog .record-dialog-main[data-v-36935a82]{border-radius:%?10?%;padding:0 %?76?% %?56?% %?76?%;z-index:11;background:#fff;position:relative}.container .record-dialog .record-dialog-main .qrcode[data-v-36935a82]{width:%?359?%;height:%?359?%}.container .record-dialog .record-dialog-btns[data-v-36935a82]{position:absolute;bottom:%?-64?%;left:0;right:0}.container .record-dialog .record-dialog-btns .btn[data-v-36935a82]{width:%?42?%;height:%?42?%;text-align:center;line-height:%?42?%;border:%?2?% solid #fff;border-radius:50%;color:#fff}.container .record-dialog .record-picker-view[data-v-36935a82]{margin:%?40?% %?30?%;box-sizing:border-box;width:%?540?%;height:%?240?%}.container .circle[data-v-36935a82]{width:%?14?%;height:%?14?%;background:#45e7ab;border-radius:50%;margin-right:4px}.container .addbtn[data-v-36935a82]{position:fixed;left:%?30?%;right:%?30?%;bottom:%?130?%;height:%?90?%;line-height:%?90?%;text-align:center;border-radius:%?45?%;font-size:%?28?%;color:#fff;background:#38f}.container .clerklist-content[data-v-36935a82]{padding-bottom:%?120?%;margin-top:%?37?%}.container .clerklist-content .tool-tab[data-v-36935a82]{padding:%?30?% 0}.container .clerklist-content .tool-tab .tool-tab-title[data-v-36935a82]{padding:0 %?30?%}.container .clerklist-content .tool-tab .tool-item .tool-item-icon[data-v-36935a82]{margin:0 auto %?20?%;display:block;width:%?80?%;height:%?80?%}.container .clerklist-content .menu-style[data-v-36935a82]{background-color:#fff;position:relative;padding:%?30?%;border-radius:%?10?%}.container .clerklist-content .menu-style .iconbox[data-v-36935a82]{width:%?24?%;height:%?24?%;margin-left:%?16?%;border-radius:50%}.container .clerklist-content .menu-style .clerklist-btns[data-v-36935a82]{font-size:%?24?%;text-align:center}.container .clerklist-content .menu-style .clerklist-btns .edit[data-v-36935a82]{width:%?124?%;height:%?44?%;line-height:%?44?%;background:#f5faff;border-radius:6px;color:#38f;margin-right:%?20?%}.container .clerklist-content .menu-style .clerklist-btns .switch[data-v-36935a82]{width:%?76?%;height:%?44?%;line-height:%?44?%;border:%?1?% solid #f62d26;border-radius:%?6?%;color:#f44}.container .clerklist-content .menu-style .clerklist-btns .switchOn[data-v-36935a82]{line-height:%?44?%;width:%?76?%;height:%?44?%;background:#38f;border-radius:%?6?%;color:#fff;font-size:%?24?%;border:%?1?% solid transparent}.container .clerklist-content .menu-style .clerklist-btns .switch.on[data-v-36935a82]{width:%?76?%;height:%?44?%;line-height:%?44?%;color:#fff;background:#38f;border:none}.container .clerklist-content .menu-style .menu-style-bg[data-v-36935a82]{width:%?80?%;height:%?80?%;margin-right:%?20?%;border-radius:%?80?%}body.?%PAGE?%[data-v-36935a82]{background-color:#f7f7f7}',""]),t.exports=a},d7e5:function(t,a,e){"use strict";e.r(a);var n=e("0f1d"),i=e.n(n);for(var r in n)"default"!==r&&function(t){e.d(a,t,(function(){return n[t]}))}(r);a["default"]=i.a},dde5:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,".diy-tabbar[data-v-e1dd56ac]{border-color:rgba(0,0,0,.33);position:fixed;z-index:9999;height:%?130?%;left:0;background-color:#fff;color:#6e6d6b;bottom:0;width:100%;display:flex}.tabbar-item[data-v-e1dd56ac]{display:flex;justify-content:center;align-items:center;flex-direction:column;flex:1;font-size:0;color:#6e6d6b;text-align:center;z-index:5;padding-bottom:%?30?%}.tabbar-severImg[data-v-e1dd56ac]{width:%?84?%;height:%?84?%;position:relative;top:%?-20?%}.tabbar-item .tabbar-item-icon[data-v-e1dd56ac]{font-size:%?44?%}.tabbar-item.item-on[data-v-e1dd56ac]{\n\t/* color: #fd4a5f; */}.tabbar-item .image[data-v-e1dd56ac]{display:inline-block;width:%?100?%;height:%?100?%}.tabbat-item-text[data-v-e1dd56ac]{padding-top:0;padding-bottom:0;font-size:%?20?%;line-height:1.8;text-align:center}.navstyle-image[data-v-e1dd56ac]{width:%?60?%;height:%?60?%;background-repeat:no-repeat;background-size:%?60?% %?60?%;display:block;margin:0 auto}.navstyle-3-item[data-v-e1dd56ac]{padding:%?10?% 0}",""]),t.exports=a},eb38:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,".loadlogo-container[data-v-bce21d66]{width:100%;height:100%;background-color:#fff;position:fixed;z-index:999}.loadlogo[data-v-bce21d66]{width:80px;height:80px;\n\t/* margin: -60px 0 0 -60px; */position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.loadlogo .image[data-v-bce21d66]{width:100%;height:100%}",""]),t.exports=a}}]);