3 lines
12 KiB
JavaScript
3 lines
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-773852e6"],{"006e":function(t,e,r){var n=r("b450");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=r("499e").default;o("e8f90eec",n,!0,{sourceMap:!1,shadowMode:!1})},1004:function(t,e,r){"use strict";r("006e")},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r("d3b7");function n(t,e,r,n,o,a,i){try{var c=t[a](i),s=c.value}catch(l){return void r(l)}c.done?e(s):Promise.resolve(s).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,s,"next",t)}function s(t){n(i,o,a,c,s,"throw",t)}c(void 0)}))}}},ac0d:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=document.documentElement,o=document.body,a={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return n&&n.scrollTop?t=n.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&n.clientHeight?Math.min(o.clientHeight,n.clientHeight):Math.max(o.clientHeight,n.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,n.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b450:function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,".page[data-v-0fc5c82e]{background:#fff;min-height:100vh}.tool[data-v-0fc5c82e]{padding:1.031rem 1.563rem 1.031rem .781rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.tool[data-v-0fc5c82e],.tool .selected[data-v-0fc5c82e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.tool .selected[data-v-0fc5c82e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-right:1rem}.tool .selected .selectedName[data-v-0fc5c82e]{text-align:left;margin-right:.5rem;color:#0176ff;font-size:.875rem}.tool .count[data-v-0fc5c82e]{font-size:.875rem;color:#666}.items[data-v-0fc5c82e]{padding:0 .813rem}.items .item[data-v-0fc5c82e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:4.406rem;border-bottom:.031rem solid #ededed}.items .item .face[data-v-0fc5c82e],.items .item .face img[data-v-0fc5c82e]{width:2.875rem;height:2.875rem;border-radius:50%;background-color:#ededed}.items .item .name[data-v-0fc5c82e]{margin-left:.719rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left}.items .item .agent[data-v-0fc5c82e],.items .item .name[data-v-0fc5c82e]{font-size:.875rem;color:#1e1b1b}",""]),t.exports=e},c7eb:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("d9e2"),r("3410"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var n=r("53ca");function o(){
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
o=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(S){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),i=new E(n||[]);return a._invoke=function(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return O()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=_(i,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,i),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(S){return{type:"throw",arg:S}}}t.wrap=u;var h={};function d(){}function p(){}function v(){}var g={};l(g,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(j([])));y&&y!==e&&r.call(y,i)&&(g=y);var b=v.prototype=d.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(a,i,c,s){var l=f(t[a],t,i);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==Object(n["a"])(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){o("next",t,c,s)}),(function(t){o("throw",t,c,s)})):e.resolve(h).then((function(t){u.value=t,c(u)}),(function(t){return o("throw",t,c,s)}))}s(l.arg)}var a;this._invoke=function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=v,l(b,"constructor",v),l(v,"constructor",p),p.displayName=l(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=j,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}},e1c6:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page"},[r("c-title",{attrs:{text:"查询结果"}}),r("div",{staticClass:"tool"},[r("div",{staticClass:"selected"},[r("div",{staticClass:"selectedName"},[t._v(t._s(t.area))])]),r("div",{staticClass:"count"},[t._v(" 总数:"+t._s(t.total)+" ")])]),r("div",{staticClass:"items"},t._l(t.listData,(function(e){return r("div",{key:e.id,staticClass:"item"},[r("div",{staticClass:"face"},[e.has_one_member?r("img",{attrs:{src:e.has_one_member.avatar_image,alt:""}}):t._e()]),e.has_one_member?r("div",{staticClass:"name"},[t._v(t._s(e.has_one_member.nickname))]):t._e(),r("div",{staticClass:"agent"},[t._v(t._s(e.level_name))])])})),0)],1)},o=[],a=r("c7eb"),i=(r("e7e5"),r("d399")),c=r("1da1"),s=(r("99af"),r("ac0d")),l={mixins:[s["a"]],data:function(){return{area:"",total:0,listData:[],page:1,isLoadMore:!0,total_page:0}},activated:function(){this.getSearch()},methods:{initData:function(){this.page=1,this.isLoadMore=!0,this.total_page=0,this.listData=[]},getSearch:function(){var t=this;return Object(c["a"])(Object(a["a"])().mark((function e(){var r;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i["a"].loading({message:"搜索中",forbidClick:!0}),e.next=3,$http.get("plugin.agent-enquiry.Frontend.controllers.agent.index",{area_id:t.$route.query.area_id,level:t.$route.query.level});case 3:if(r=e.sent,i["a"].clear(),1==r.result){e.next=8;break}return Object(i["a"])(r.msg),e.abrupt("return");case 8:t.area=r.data.area,t.total=r.data.total,t.listData=r.data.agents.data,t.isLoadMore=!0,t.total_page=r.data.agents.last_page,t.total_page||(t.total_page=0);case 14:case"end":return e.stop()}}),e)})))()},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page+=1,$http.get("plugin.agent-enquiry.Frontend.controllers.agent.index",{area_id:this.$route.query.area_id,level:this.$route.query.level,page:this.page}).then((function(e){if(t.isLoadMore=!0,1===e.result){var r=e.data.agents.data;t.listData=t.listData.concat(r)}else t.page=t.page-1,t.isLoadMore=!1})))}}},u=l,f=u,h=(r("1004"),r("2877")),d=Object(h["a"])(f,n,o,!1,null,"0fc5c82e",null);e["default"]=d.exports}}]); |