(function(e){function t(t){for(var r,i,u=t[0],s=t[1],c=t[2],d=0,f=[];d0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(this,e),this.baseUrl=window.global.baseURL,this.timeout=t.timeout||l.default.timeout,this.interceptor=(0,u.default)({},d.default)}return(0,c.default)(e,[{key:"request",value:function(){var e=(0,i.default)((0,o.default)().mark((function e(t){var n,r,s=this;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=(0,u.default)({url:t.url||"",method:t.method||"GET",data:t.data||{},header:(0,u.default)((0,u.default)({"Content-Type":"application/json"},l.default.defaultHeaders),t.header),timeout:this.timeout,showLoading:!1!==t.showLoading,loadingText:t.loadingText||"加载中..."},t),n.url.startsWith("http")||(n.url=this.baseUrl+n.url),!this.interceptor.request||"function"!==typeof this.interceptor.request){e.next=16;break}return e.prev=3,e.next=6,this.interceptor.request((0,u.default)({},n));case 6:if(r=e.sent,!1!==r){e.next=9;break}return e.abrupt("return",Promise.reject(new Error("请求被拦截器阻止")));case 9:r&&"object"===(0,a.default)(r)&&(n=(0,u.default)((0,u.default)({},n),r)),e.next=16;break;case 12:return e.prev=12,e.t0=e["catch"](3),console.error("请求拦截器错误:",e.t0),e.abrupt("return",Promise.reject(e.t0));case 16:return n.showLoading&&uni.showLoading({title:n.loadingText,mask:!0}),e.abrupt("return",new Promise((function(e,t){uni.request({url:n.url,method:n.method,data:n.data,header:n.header,timeout:n.timeout,success:function(){var r=(0,i.default)((0,o.default)().mark((function r(a){var i;return(0,o.default)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(r.prev=0,!s.interceptor.response||"function"!==typeof s.interceptor.response){r.next=8;break}return r.next=4,s.interceptor.response(a,n);case 4:i=r.sent,e(i),r.next=9;break;case 8:e(a);case 9:r.next=14;break;case 11:r.prev=11,r.t0=r["catch"](0),t(r.t0);case 14:case"end":return r.stop()}}),r,null,[[0,11]])})));return function(e){return r.apply(this,arguments)}}(),fail:function(){var e=(0,i.default)((0,o.default)().mark((function e(r){return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!s.interceptor.error||"function"!==typeof s.interceptor.error){e.next=3;break}return e.next=3,s.interceptor.error(r,n);case 3:t(r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),complete:function(){n.showLoading&&uni.hideLoading()}})})));case 18:case"end":return e.stop()}}),e,this,[[3,12]])})));return function(t){return e.apply(this,arguments)}}()},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,u.default)({url:e,method:"GET",data:t},n))}},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,u.default)({url:e,method:"POST",data:t},n))}},{key:"put",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,u.default)({url:e,method:"PUT",data:t},n))}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,u.default)({url:e,method:"DELETE",data:t},n))}},{key:"upload",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Promise((function(a,i){var s=e.startsWith("http")?e:n.baseUrl+e;uni.uploadFile({url:s,filePath:t,name:o.name||"file",formData:r,header:(0,u.default)((0,u.default)({},l.default.defaultHeaders),o.header),success:function(e){try{var t=JSON.parse(e.data);a(t)}catch(n){a(e)}},fail:i})}))}},{key:"download",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r,o){var a=e.startsWith("http")?e:t.baseUrl+e;uni.downloadFile({url:a,header:(0,u.default)((0,u.default)({},l.default.defaultHeaders),n.header),success:r,fail:o})}))}}]),e}(),p=new f,g=p;t.default=g},"3cfc":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};t.default=r},"5ca6":function(e,t,n){var r=n("76e9");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var o=n("967d").default;o("19691bbd",r,!0,{sourceMap:!1,shadowMode:!1})},"66cb":function(e,t,n){"use strict";(function(e){var t=n("f5bd").default;n("473f"),n("bf0f"),n("de6c"),n("5c47"),n("a1c1");var r=t(n("9b8e")),o={keys:function(){return[]}};e["____F0A1CC3____"]=!0,delete e["____F0A1CC3____"],e.__uniConfig={globalStyle:{navigationStyle:"custom",backgroundColor:"#F8F8F8",backgroundColorTop:"#fff",backgroundColorBottom:"#fff",rpxCalcMaxDeviceWidth:960,rpxCalcBaseDeviceWidth:375,rpxCalcIncludeWidth:750,navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8"},uniIdRouter:{}},e.__uniConfig.compilerVersion="4.85",e.__uniConfig.darkmode=!1,e.__uniConfig.themeConfig={},e.__uniConfig.uniPlatform="h5",e.__uniConfig.appId="__UNI__F0A1CC3",e.__uniConfig.appName="h5-28",e.__uniConfig.appVersion="1.0.0",e.__uniConfig.appVersionCode="100",e.__uniConfig.router={mode:"hash",base:"/"},e.__uniConfig.publicPath="/",e.__uniConfig["async"]={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4},e.__uniConfig.debug=!1,e.__uniConfig.networkTimeout={request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},e.__uniConfig.sdkConfigs={},e.__uniConfig.qqMapKey=void 0,e.__uniConfig.googleMapKey=void 0,e.__uniConfig.aMapKey=void 0,e.__uniConfig.aMapSecurityJsCode=void 0,e.__uniConfig.aMapServiceHost=void 0,e.__uniConfig.locale="",e.__uniConfig.fallbackLocale=void 0,e.__uniConfig.locales=o.keys().reduce((function(e,t){var n=t.replace(/\.\/(uni-app.)?(.*).json/,"$2"),r=o(t);return Object.assign(e[n]||(e[n]={}),r.common||r),e}),{}),e.__uniConfig.nvue={"flex-direction":"column"},e.__uniConfig.__webpack_chunk_load__=n.e,r.default.component("pages-index-index",(function(e){var t={component:n.e("pages-index-index").then(function(){return e(n("ce61"))}.bind(null,n)).catch(n.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(t.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(t.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),t})),r.default.component("pages-details-details",(function(e){var t={component:n.e("pages-details-details").then(function(){return e(n("246d"))}.bind(null,n)).catch(n.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(t.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(t.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),t})),r.default.component("pages-Customer-Customer",(function(e){var t={component:n.e("pages-Customer-Customer").then(function(){return e(n("483a"))}.bind(null,n)).catch(n.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(t.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(t.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),t})),e.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{render:function(e){return e("Page",{props:Object.assign({isQuit:!0,isEntry:!0},__uniConfig.globalStyle,{navigationBarTitleText:"福利大厅"})},[e("pages-index-index",{slot:"page"})])}},meta:{id:1,name:"pages-index-index",isNVue:!1,maxWidth:0,pagePath:"pages/index/index",isQuit:!0,isEntry:!0,windowTop:0}},{path:"/pages/details/details",component:{render:function(e){return e("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"详情"})},[e("pages-details-details",{slot:"page"})])}},meta:{name:"pages-details-details",isNVue:!1,maxWidth:0,pagePath:"pages/details/details",windowTop:0}},{path:"/pages/Customer/Customer",component:{render:function(e){return e("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"客服"})},[e("pages-Customer-Customer",{slot:"page"})])}},meta:{name:"pages-Customer-Customer",isNVue:!1,maxWidth:0,pagePath:"pages/Customer/Customer",windowTop:0}},{path:"/choose-location",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-choose-location",{slot:"page"})])}},meta:{name:"choose-location",pagePath:"/choose-location"}},{path:"/open-location",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-open-location",{slot:"page"})])}},meta:{name:"open-location",pagePath:"/open-location"}}],e.UniApp&&new e.UniApp}).call(this,n("0ee4"))},6747:function(e,t,n){"use strict";var r=n("5ca6"),o=n.n(r);o.a},"6f5f":function(e,t,n){"use strict";var r=n("f5bd").default,o=r(n("9b1b"));n("3dde"),n("a8b2"),n("1480"),n("6e4a"),n("66cb"),n("9337");var a=r(n("10b3")),i=r(n("9b8e"));n("25a8");var u=r(n("3a2d")),s=r(n("b0d3"));uni.$request=u.default,uni.$api=s.default,i.default.config.productionTip=!1,a.default.mpType="app";var c=new i.default((0,o.default)({},a.default));c.$mount()},"76e9":function(e,t,n){var r=n("c86c");t=r(!1),t.push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*每个页面公共css */",""]),e.exports=t},8458:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.setUserInfo=t.setToken=t.setStorageWithExpire=t.removeUserInfo=t.removeToken=t.getUserInfo=t.getToken=t.getStorageWithExpire=t.clearStorage=t.USER_INFO_KEY=t.TOKEN_KEY=void 0,n("d4b5");t.TOKEN_KEY="auth_token";t.USER_INFO_KEY="user_info";t.getToken=function(){return uni.getStorageSync("auth_token")};t.setToken=function(e){uni.setStorageSync("auth_token",e)};var r=function(){uni.removeStorageSync("auth_token")};t.removeToken=r;t.getUserInfo=function(){var e=uni.getStorageSync("user_info");return e?JSON.parse(e):null};t.setUserInfo=function(e){uni.setStorageSync("user_info",JSON.stringify(e))};var o=function(){uni.removeStorageSync("user_info")};t.removeUserInfo=o;t.clearStorage=function(){r(),o()};t.setStorageWithExpire=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:864e5,r={value:t,expire:Date.now()+n};uni.setStorageSync(e,JSON.stringify(r))};t.getStorageWithExpire=function(e){var t=uni.getStorageSync(e);if(!t)return null;try{var n=JSON.parse(t);return Date.now()>n.expire?(uni.removeStorageSync(e),null):n.value}catch(r){return null}}},9423:function(e,t,n){"use strict";n("6a54");var r=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("c223"),n("bf0f"),n("7a76"),n("c9b5"),n("4626"),n("5ac7");var o=r(n("2634")),a=r(n("9b1b")),i=r(n("2fdc")),u=r(n("3995")),s=n("8458"),c=function(){var e=(0,i.default)((0,o.default)().mark((function e(t){var n,r;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=(0,a.default)({},t),r=(0,s.getToken)(),r&&(n.header=(0,a.default)((0,a.default)({},n.header),{},{Authorization:"Bearer ".concat(r)})),u.default.isDev&&console.log("📤 请求: ".concat(n.method," ").concat(n.url),n.data),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=(0,i.default)((0,o.default)().mark((function e(t,n){var r,a,i,s,c,l,d;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.statusCode,a=t.data,u.default.isDev&&console.log("📥 响应: ".concat(n.method," ").concat(n.url),{statusCode:r,data:a,header:t.header}),200!==r){e.next=32;break}e.prev=3,i="string"===typeof a?JSON.parse(a):a,e.next=10;break;case 7:return e.prev=7,e.t0=e["catch"](3),e.abrupt("return",a);case 10:s=i,c=s.code,s.data,l=s.msg,d=l,e.t1=c,e.next=0===e.t1?15:-1===e.t1?16:-3===e.t1?18:401===e.t1?20:403===e.t1?23:500===e.t1?25:27;break;case 15:return e.abrupt("return",i);case 16:return uni.showToast({title:d||"抱歉,请求错误",icon:"none"}),e.abrupt("return",Promise.reject(new Error(d||"无权限访问")));case 18:return uni.showToast({title:d||"抱歉,请求错误",icon:"none"}),e.abrupt("return",Promise.reject(new Error(d||"无权限访问")));case 20:return e.next=22,f();case 22:return e.abrupt("return",Promise.reject(new Error(d||"登录已过期")));case 23:return uni.showToast({title:d||"抱歉,您没有权限访问",icon:"none"}),e.abrupt("return",Promise.reject(new Error(d||"无权限访问")));case 25:return uni.showToast({title:d||"服务器繁忙,请稍后再试",icon:"none"}),e.abrupt("return",Promise.reject(new Error(d||"服务器错误")));case 27:return d&&uni.showToast({title:d,icon:"none"}),Promise.reject(new Error(d||"请求失败")),e.abrupt("return",i);case 30:e.next=35;break;case 32:return e.next=34,g(r);case 34:return e.abrupt("return",Promise.reject(new Error("HTTP错误: ".concat(r))));case 35:case"end":return e.stop()}}),e,null,[[3,7]])})));return function(t,n){return e.apply(this,arguments)}}(),d=function(){var e=(0,i.default)((0,o.default)().mark((function e(t,n){return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.errMsg||!t.errMsg.includes("network")){e.next=3;break}return uni.showToast({title:"网络连接失败,请检查网络",icon:"none"}),e.abrupt("return");case 3:if(!t.errMsg||!t.errMsg.includes("timeout")){e.next=6;break}return uni.showToast({title:"请求超时,请稍后重试",icon:"none"}),e.abrupt("return");case 6:console.error("请求错误:",t),u.default.isDev&&uni.showModal({title:"请求错误",content:t.message||t.errMsg||"未知错误",showCancel:!1});case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function f(){return p.apply(this,arguments)}function p(){return p=(0,i.default)((0,o.default)().mark((function e(){return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:(0,s.removeToken)(),uni.showToast({title:"登录已过期,请重新登录",icon:"none",duration:2e3}),setTimeout((function(){var e=getCurrentPages(),t=e[e.length-1],n=t.route;n.includes("login")||uni.reLaunch({url:"/pages/login/login"})}),1500);case 3:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function g(e){return h.apply(this,arguments)}function h(){return h=(0,i.default)((0,o.default)().mark((function e(t){var n,r;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n={400:"请求参数错误",401:"未授权,请登录",403:"拒绝访问",404:"请求资源不存在",500:"服务器内部错误",502:"网关错误",503:"服务不可用",504:"网关超时"},r=n[t]||"请求失败,状态码: ".concat(t),uni.showToast({title:r,icon:"none"});case 3:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}var v={request:c,response:l,error:d};t.default=v},b0d3:function(e,t,n){"use strict";n("6a54");var r=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.userApi=t.default=void 0;var o=r(n("9b1b")),a=r(n("3a2d")),i={fingerprint:function(e){return a.default.post("/fingerprint/setVisitorId",e)},participate:function(e){return a.default.post("/ActivityReward/participate",e)},sendPhoneCode:function(e){return a.default.post("/ActivityReward/sendPhoneCode",e)},verifyPhone:function(e){return a.default.post("/ActivityReward/verifyPhone",e)},ActivityReward:function(e){return a.default.get("/ActivityReward",e)},ActivityRewardrole:function(e){return a.default.get("/ActivityReward/rule",e)}};t.userApi=i;var u=(0,o.default)({},i);t.default=u},fccd:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("App",{attrs:{keepAliveInclude:this.keepAliveInclude}})},o=[]}});