|
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/consultanonduty/index"],{248:function(t,n,e){"use strict";(function(t){e(5),e(6);i(e(4));var n=i(e(249));function i(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e(1)["createPage"])},249:function(t,n,e){"use strict";e.r(n);var i=e(250),o=e(252);for(var u in o)"default"!==u&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e(254);var a,c=e(17),r=Object(c["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,"5bb161e4",null,!1,i["components"],a);r.options.__file="pages/mine/consultanonduty/index.vue",n["default"]=r.exports},250:function(t,n,e){"use strict";e.r(n);var i=e(251);e.d(n,"render",(function(){return i["render"]})),e.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),e.d(n,"components",(function(){return i["components"]}))},251:function(t,n,e){"use strict";var i;e.r(n),e.d(n,"render",(function(){return o})),e.d(n,"staticRenderFns",(function(){return a})),e.d(n,"recyclableRender",(function(){return u})),e.d(n,"components",(function(){return i}));var o=function(){var t=this,n=t.$createElement,e=(t._self._c,t.activeAgentList.length>0?t.__map(t.activeAgentList,(function(n,e){var i=t.__get_orig(n),o=n.name.slice(0,1);return{$orig:i,g0:o}})):null);t.$mp.data=Object.assign({},{$root:{l0:e}})},u=!1,a=[];o._withStripped=!0},252:function(t,n,e){"use strict";e.r(n);var i=e(253),o=e.n(i);for(var u in i)"default"!==u&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=o.a},253:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{value:"",activeTotal:1,agentList:[],pausedAgentList:[],houseId:""}},onLoad:function(){this.houseId=t.getStorageSync("buildingID").id,this.changeAgentListShow(),this.changePausedAgentListShow()},computed:{activeAgentList:function(){return 1==this.activeTotal?this.agentList:this.pausedAgentList}},methods:{tabtimetap:function(t){this.activeTotal=t},changeAgentListShow:function(){var t=this;this.$u.get("/zkAgentPool/nextFreeAgent?itemId="+this.houseId).then((function(n){t.agentList=n}))},changePausedAgentListShow:function(){var t=this;this.$u.get("/zkAgentPool/stopAgentList?itemId="+this.houseId).then((function(n){t.pausedAgentList=n}))},changeAgentStatus:function(n){var e=this,i="";i=1==this.activeTotal?"确定当前顾问暂停接待?":"确定取消暂停?",t.showModal({content:i,cancelColor:"#999999",success:function(i){i.confirm&&e.$u.get("/zkAgentPool/update",{agentId:n,status:1==e.activeTotal?2:0}).then((function(n){t.showToast({icon:"none",title:"操作成功"}),e.changeAgentListShow(),e.changePausedAgentListShow()}))}})}}};n.default=e}).call(this,e(1)["default"])},254:function(t,n,e){"use strict";e.r(n);var i=e(255),o=e.n(i);for(var u in i)"default"!==u&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=o.a},255:function(t,n,e){}},[[248,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/mine/consultanonduty/index.js.map
|