(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesTools/phoneBook/index"],{"0fa5":function(t,e,n){"use strict";var o=n("81b9"),r=n.n(o);r.a},"1a29":function(t,e,n){"use strict";n.r(e);var o=n("b1d2"),r=n("df57");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("0fa5");var i=n("828b"),c=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=c.exports},"30e3":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("7ca3")),a=n("8f59");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var c={data:function(){return{loadEnd:!1,titleBarHeight:0,keyword:"",sortOrder:0,phoneList:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,a.mapState)({themeColor:function(t){return t.app.themeColor}})),mounted:function(){var e=t.getSystemInfoSync().statusBarHeight,n=t.getMenuButtonBoundingClientRect();this.titleBarHeight=e+2*(n.top-e)+n.height},onLoad:function(){var e=this;t.showLoading({title:"加载中"}),this.getPhoneList((function(){e.loadEnd=!0,t.hideLoading()}))},onPullDownRefresh:function(){this.getPhoneList((function(){t.stopPullDownRefresh()}))},methods:{getPhoneList:function(e){var n=this;this.$util.request("member.addressBook",{keywords:this.keyword}).then((function(o){if(e&&e(),1==o.code){if(n.sortOrder=o.data.address_book_sort_order,3==o.data.address_book_sort_order)n.phoneList=o.data.data;else if(n.phoneList=[],n.phoneList)try{for(var r in o.data.data)n.phoneList.push({key:r,value:o.data.data[r]})}catch(a){n.phoneList=[]}}else t.showToast({title:o.msg,icon:"none"})})).catch((function(t){e&&e(),console.error("获取通讯录",t)}))},onContact:function(t){this.$util.toPage({mode:6,phone:t})}}};e.default=c}).call(this,n("df3c")["default"])},"81b9":function(t,e,n){},b1d2:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=(this._self._c,this.loadEnd?this.phoneList.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},r=[]},df57:function(t,e,n){"use strict";n.r(e);var o=n("30e3"),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},ed22:function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("aa6c");o(n("3240"));var r=o(n("1a29"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["ed22","common/runtime","common/vendor"]]]);