(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"1bfe":function(e,t,r){"use strict";var n=r("8402"),o=r.n(n);o.a},"1da1":function(e,t,r){"use strict";function n(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(s){return void r(s)}u.done?t(c):Promise.resolve(c).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function u(e){n(i,o,a,u,c,"next",e)}function c(e){n(i,o,a,u,c,"throw",e)}u(void 0)}))}}r("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},"308f":function(e,t,r){"use strict";var n=r("4ea4");r("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("96cf");var o=n(r("1da1")),a=(n(r("e143")),n(r("dcb3"))),i=(0,a.default)({timeout:123456,baseURL:"http://api.app.cliu.cc/api",header:{"content-type":"application/json"}});function u(e,t){return new Promise((function(e,r){uni.login({success:function(r){var n=r.code;wx.getLocation({success:function(r){var o=r.latitude,a=r.longitude;wecatLogin({openid:"",avatar:uni.getStorageSync("userInfo").avatar,nickname:uni.getStorageSync("userInfo").nickname,code:n,longitude:a,latitude:o}).then((function(r){200==r.code&&(uni.setStorageSync("token",r.data.token),i.get(t).then((function(r){200==r.code&&("/user/get_info"==t&&uni.setStorageSync("userInfo",r.data),e(r))}))),300==r.code&&uni.switchTab({url:"../index/index?isPhone="+!0})})).catch((function(e){}))},fail:function(e){uni.showModal({content:"不授权将无法获取到您的位置信息",showCancel:!1})}})}})}))}i.interceptors.request.use((function(e){return uni.showLoading({title:"加载中",mask:!0}),e.header.Authorization="Bearer "+uni.getStorageSync("token"),e})),i.interceptors.response.use(function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t){var r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(uni.hideLoading(),5e4!==t.data.code||!uni.getStorageSync("userInfo")){e.next=8;break}return e.next=4,u(t,r.length<=2?void 0:r[2]);case 4:return t=e.sent,e.abrupt("return",t);case 8:if(5e4!==t.data.code||uni.getStorageSync("userInfo")){e.next=13;break}uni.removeStorageSync("token"),uni.switchTab({url:"/pages/index/index"}),e.next=18;break;case 13:if(200!==t.data.code&&300!==t.data.code){e.next=17;break}return e.abrupt("return",t);case 17:return e.abrupt("return",t);case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),i.onerror=function(){for(var e=arguments.length,t=new Array(e),r=0;r=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:q(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),v}}}function b(e,t,r,n){var o=t&&t.prototype instanceof k?t:k,a=Object.create(o.prototype),i=new T(n||[]);return a._invoke=P(e,r,i),a}function x(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}function k(){}function L(){}function R(){}function _(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function E(e){function t(r,n,a,i){var u=x(e[r],e,n);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"===typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then((function(e){t("next",e,a,i)}),(function(e){t("throw",e,a,i)})):Promise.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,i)}))}i(u.arg)}var r;function n(e,n){function o(){return new Promise((function(r,o){t(e,n,r,o)}))}return r=r?r.then(o,o):o()}this._invoke=n}function P(e,t,r){var n=l;return function(o,a){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw a;return C()}r.method=o,r.arg=a;while(1){var i=r.delegate;if(i){var u=S(i,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=x(e,t,r);if("normal"===c.type){if(n=r.done?p:d,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=p,r.method="throw",r.arg=c.arg)}}}function S(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,S(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=x(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,v;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,v):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function q(e){if(e){var t=e[i];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){while(++n