1 line
11 KiB
JavaScript
Executable File
1 line
11 KiB
JavaScript
Executable File
(function(e){function n(n){for(var a,i,u=n[0],c=n[1],s=n[2],l=0,f=[];l<u.length;l++)i=u[l],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&f.push(o[i][0]),o[i]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);d&&d(n);while(f.length)f.shift()();return r.push.apply(r,s||[]),t()}function t(){for(var e,n=0;n<r.length;n++){for(var t=r[n],a=!0,u=1;u<t.length;u++){var c=t[u];0!==o[c]&&(a=!1)}a&&(r.splice(n--,1),e=i(i.s=t[0]))}return e}var a={},o={index:0},r=[];function i(n){if(a[n])return a[n].exports;var t=a[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t=o[e];if(0!==t)if(t)n.push(t[2]);else{var a=new Promise((function(n,a){t=o[e]=[n,a]}));n.push(t[2]=a);var r,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"static/js/"+({"pages-details-details":"pages-details-details","pages-index-index":"pages-index-index"}[e]||e)+"."+{"pages-details-details":"5554a441","pages-index-index":"aec60e70"}[e]+".js"}(e);var c=new Error;r=function(n){u.onerror=u.onload=null,clearTimeout(s);var t=o[e];if(0!==t){if(t){var a=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;c.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",c.name="ChunkLoadError",c.type=a,c.request=r,t[1](c)}o[e]=void 0}};var s=setTimeout((function(){r({type:"timeout",target:u})}),12e4);u.onerror=u.onload=r,document.head.appendChild(u)}return Promise.all(n)},i.m=e,i.c=a,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)i.d(t,a,function(n){return e[n]}.bind(null,a));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="/",i.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],c=u.push.bind(u);u.push=n,u=u.slice();for(var s=0;s<u.length;s++)n(u[s]);var d=c;r.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("6e56")},"1ac8":function(e,n,t){var a=t("3ae7");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=t("4f06").default;o("7bce69be",a,!0,{sourceMap:!1,shadowMode:!1})},"1c8a":function(e,n,t){"use strict";t.r(n);var a=t("a80f"),o=t("2ef7");for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);t("695e");var i=t("f0c5"),u=Object(i["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=u.exports},"2ef7":function(e,n,t){"use strict";t.r(n);var a=t("9d24"),o=t.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(r);n["default"]=o.a},"3ae7":function(e,n,t){var a=t("24fb");n=a(!1),n.push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*每个页面公共css */",""]),e.exports=n},"62c5":function(e,n,t){"use strict";(function(e){var n=t("4ea4").default;t("13d5"),t("d3b7"),t("ddb0"),t("ac1f"),t("5319");var a=n(t("e143")),o={keys:function(){return[]}};e["____AF847DA____"]=!0,delete e["____AF847DA____"],e.__uniConfig={globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#fff",backgroundColor:"#fff"},uniIdRouter:{}},e.__uniConfig.compilerVersion="3.95",e.__uniConfig.darkmode=!1,e.__uniConfig.themeConfig={},e.__uniConfig.uniPlatform="h5",e.__uniConfig.appId="__UNI__AF847DA",e.__uniConfig.appName="card",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,n){var t=n.replace(/\.\/(uni-app.)?(.*).json/,"$2"),a=o(n);return Object.assign(e[t]||(e[t]={}),a.common||a),e}),{}),e.__uniConfig.nvue={"flex-direction":"column"},e.__uniConfig.__webpack_chunk_load__=t.e,a.default.component("pages-index-index",(function(e){var n={component:t.e("pages-index-index").then(function(){return e(t("bbe9"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n})),a.default.component("pages-details-details",(function(e){var n={component:t.e("pages-details-details").then(function(){return e(t("9792"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n})),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:44}},{path:"/pages/details/details",component:{render:function(e){return e("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"卡包详情",enablePullDownRefresh:!1})},[e("pages-details-details",{slot:"page"})])}},meta:{name:"pages-details-details",isNVue:!1,maxWidth:0,pagePath:"pages/details/details",windowTop:44}},{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,t("c8ba"))},"695e":function(e,n,t){"use strict";var a=t("1ac8"),o=t.n(a);o.a},"6e56":function(e,n,t){"use strict";var a=t("4ea4").default,o=a(t("5530"));t("e260"),t("e6cf"),t("cca6"),t("a79d"),t("62c5"),t("1c31");var r=a(t("e143")),i=a(t("1c8a")),u=a(t("f5f8")),c=a(t("78eb"));t("f41c"),r.default.use({install:function(e,n){e.prototype.$api=u.default,e.prototype.$request=c.default}}),r.default.config.productionTip=!1,i.default.mpType="app";var s=new r.default((0,o.default)({},i.default));s.$mount()},"78eb":function(e,n,t){"use strict";t("7a82");var a=t("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,t("c975"),t("99af"),t("e9c4"),t("d3b7");var o=a(t("c7eb")),r=a(t("1da1")),i=a(t("e143")),u=function(){var e=(0,r.default)((0,o.default)().mark((function e(n){var t,a;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={"X-Requested-Time":(new Date).getTime(),"content-type":"application/x-www-form-urlencoded"},n.data=n.data?n.data:{},e.next=4,uni.request({url:n.url,method:n.method||"get",data:n.data,header:t});case 4:return a=e.sent,e.abrupt("return",c(a));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),c=function(e){var n={code:500,msg:"服务器内部错误",data:e};switch(e.statusCode){case 200:return function(e){if(console.log(e,"测试返回东西"),e.data){var n=e.data,t=n.msg,a=n.code;if(a>=400)return e.data.error||e.data.data,Promise.reject(t);if(-1===a)return console.log("经过-1"),i.default.prototype.$utils.clearAllToken(),Promise.resolve(e.data);if(-2===a){console.log("简历额"),console.log("简历额2"),console.log("简历额2。。。。。。。。。。。。。。。。。。。");var o=getCurrentPages(),r=getCurrentPages().length-1;return console.log(o[r].$page.fullPath,"ssss"),Promise.resolve(e.data)}return-3===a?(i.default.prototype.$bindphone(),Promise.reject(t)):-7===a?(i.default.prototype.$bindOauthLogin(),Promise.reject(t)):Promise.resolve(e.data)}return Promise.reject({code:200,msg:"数据不存在",data:e})}(e);case 404:n={code:404,msg:"资源获取不到",data:e};break;case 500:n={code:500,msg:"服务器内部错误",data:e};break;case 503:n={code:503,msg:"服务不可用",data:e};break;case 504:n={code:504,msg:"网关超时",data:e};break;case 400:n={code:400,msg:"服务器不理解请求的语法",data:e};break;case 403:n={code:403,msg:"服务器拒绝请求",data:e};break;case 405:n={code:405,msg:"方法禁用",data:e};break;case 406:n={code:406,msg:"无法使用请求的内容特性响应请求的网页",data:e};break;case 407:n={code:407,msg:"需要代理授权",data:e};break;case 408:n={code:408,msg:"请求超时",data:e};break;case 409:n={code:409,msg:"冲突",data:e};break;case 410:n={code:410,msg:"已删除",data:e};break;case 411:n={code:411,msg:"需要有效长度",data:e};break;case 412:n={code:412,msg:"服务器未满足请求者在请求中设置的其中一个前提条件",data:e};break;case 413:n={code:413,msg:"请求实体过大",data:e};break;case 414:n={code:414,msg:"求情URI过长",data:e};break;case 415:n={code:415,msg:"不支持的媒体类型",data:e};break;case 416:n={code:416,msg:"请求范围不符合要求",data:e};break;case 417:n={code:417,msg:"未满足期望值",data:e};break;default:break}return Promise.reject(n)},s=u;n.default=s},"9d24":function(e,n,t){"use strict";t("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};n.default=a},a80f:function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){}));var a=function(){var e=this.$createElement,n=this._self._c||e;return n("App",{attrs:{keepAliveInclude:this.keepAliveInclude}})},o=[]},f41c:function(e,n,t){var a=t("7037").default;t("d3b7"),uni.addInterceptor({returnValue:function(e){return!e||"object"!==a(e)&&"function"!==typeof e||"function"!==typeof e.then?e:new Promise((function(n,t){e.then((function(e){return e[0]?t(e[0]):n(e[1])}))}))}})},f5f8:function(e,n,t){"use strict";t("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a="";switch("dev"){case"dev":a="https://app.cxhxy.dev.1nww.com";break;case"test":a="http://192.168.43.169:8888";break;case"prod":a="https://app.cxhxy.dev.1nww.com";break;default:a="http://192.168.43.169:8888"}var o=a+"/api/",r={wxCode:o+"food.user/wxCode",list:o+"food.user/getWxUserCoupon",login:o+"food.user/wxLogin",is_write:o+"food.user/is_write",write:o+"food.user/write"},i=r;n.default=i}}); |