index.9309ca3c.js 11 KB

1
  1. (function(n){function e(e){for(var o,r,u=e[0],c=e[1],s=e[2],f=0,d=[];f<u.length;f++)r=u[f],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&d.push(i[r][0]),i[r]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(n[o]=c[o]);l&&l(e);while(d.length)d.shift()();return a.push.apply(a,s||[]),t()}function t(){for(var n,e=0;e<a.length;e++){for(var t=a[e],o=!0,u=1;u<t.length;u++){var c=t[u];0!==i[c]&&(o=!1)}o&&(a.splice(e--,1),n=r(r.s=t[0]))}return n}var o={},i={index:0},a=[];function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.e=function(n){var e=[],t=i[n];if(0!==t)if(t)e.push(t[2]);else{var o=new Promise((function(e,o){t=i[n]=[e,o]}));e.push(t[2]=o);var a,u=document.createElement("script");u.charset="utf-8",u.timeout=120,r.nc&&u.setAttribute("nonce",r.nc),u.src=function(n){return r.p+"static/js/"+({"pages-enter-enter~pages-index-index":"pages-enter-enter~pages-index-index","pages-enter-enter":"pages-enter-enter","pages-index-index":"pages-index-index","pages-login-login":"pages-login-login"}[n]||n)+"."+{"pages-enter-enter~pages-index-index":"2d163305","pages-enter-enter":"ac3ba94d","pages-index-index":"8a11332e","pages-login-login":"fe46a986"}[n]+".js"}(n);var c=new Error;a=function(e){u.onerror=u.onload=null,clearTimeout(s);var t=i[n];if(0!==t){if(t){var o=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src;c.message="Loading chunk "+n+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,t[1](c)}i[n]=void 0}};var s=setTimeout((function(){a({type:"timeout",target:u})}),12e4);u.onerror=u.onload=a,document.head.appendChild(u)}return Promise.all(e)},r.m=n,r.c=o,r.d=function(n,e,t){r.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:t})},r.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,e){if(1&e&&(n=r(n)),8&e)return n;if(4&e&&"object"===typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)r.d(t,o,function(e){return n[e]}.bind(null,o));return t},r.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return r.d(e,"a",e),e},r.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},r.p="/",r.oe=function(n){throw console.error(n),n};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],c=u.push.bind(u);u.push=e,u=u.slice();for(var s=0;s<u.length;s++)e(u[s]);var l=c;a.push([0,"chunk-vendors"]),t()})({0:function(n,e,t){n.exports=t("f0e2")},"2c17":function(n,e,t){"use strict";var o=t("4ea4").default;t("b64b");var i=o(t("a9b8")),a=o(t("dc3b")),r={is_login:function(){var n=this.get_user_info();return 0!==Object.keys(n).length&&!r.isNull(n.mobile)},is_login_gotoLogin:function(){return!!this.is_login()||(uni.navigateTo({url:"/pages/login/login"}),!1)},get_user_info:function(){return uni.getStorageSync(i.default.userData)||{}},set_user_info:function(n){uni.setStorageSync(i.default.userData,n)},isNull:function(n){return null==n||void 0==n||""==n||0==n.length},request_login:function(n,e,t,o){var u=n;u.request({url:a.default.login,data:{mobile:e},method:i.default.post,success:function(n){n.code===i.default.SUCCESS?(r.set_user_info({mobile:e}),uni.$emit(i.default.notification.login_state_changed),o(!0)):o(!1)},fail:function(n){o(!1)}})},request_logout:function(n,e){setTimeout((function(){r.set_user_info({}),uni.$emit(i.default.notification.login_state_changed),e(!0)}),1e3)}};n.exports=r},"451f":function(n,e,t){var o=t("24fb");e=o(!1),e.push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*每个页面公共css */",""]),n.exports=e},"4a90":function(n,e,t){"use strict";var o=t("666d"),i=t.n(o);i.a},"4d3c":function(n,t,o){"use strict";var i=o("4ea4").default,a=i(o("a9b8"));n.exports=function(n){var t=n.url,o=n.method,i=n.header||{},r=n.data||{};o&&(o=o.toUpperCase(),i={"content-type":"application/x-www-form-urlencoded"}),n.hideLoading||uni.showLoading({title:"加载中..."}),uni.request({url:t,method:o||"GET",header:i,data:r,success:function(e){e.statusCode&&200!=e.statusCode?uni.showModal({content:e.statusCode+e.data}):(e.data.code!==a.default.SUCCESS&&uni.showToast({icon:"none",title:e.data.msg,duration:2e3}),"function"==typeof n.success&&n.success(e.data))},fail:function(e){console.log("fail",e),uni.showModal({content:e.errMsg,showCancel:!1}),"function"==typeof n.fail&&n.fail(e.data)},complete:function(){uni.hideLoading(),"function"==typeof n.complete&&n.complete(e.data)}})}},"666d":function(n,e,t){var o=t("451f");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);var i=t("4f06").default;i("37801b36",o,!0,{sourceMap:!1,shadowMode:!1})},"6d5f":function(n,e,t){"use strict";(function(n){var e=t("4ea4").default;t("13d5"),t("d3b7"),t("ddb0"),t("ac1f"),t("5319");var o=e(t("e143")),i={keys:function(){return[]}};n["____7C8A91C____"]=!0,delete n["____7C8A91C____"],n.__uniConfig={globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},uniIdRouter:{}},n.__uniConfig.compilerVersion="3.8.3",n.__uniConfig.darkmode=!1,n.__uniConfig.themeConfig={},n.__uniConfig.uniPlatform="h5",n.__uniConfig.appId="__UNI__7C8A91C",n.__uniConfig.appName="chatgpd",n.__uniConfig.appVersion="1.0.0",n.__uniConfig.appVersionCode="100",n.__uniConfig.router={mode:"hash",base:"/"},n.__uniConfig.publicPath="/",n.__uniConfig["async"]={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4},n.__uniConfig.debug=!1,n.__uniConfig.networkTimeout={request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.__uniConfig.sdkConfigs={},n.__uniConfig.qqMapKey=void 0,n.__uniConfig.googleMapKey=void 0,n.__uniConfig.aMapKey=void 0,n.__uniConfig.aMapSecurityJsCode=void 0,n.__uniConfig.aMapServiceHost=void 0,n.__uniConfig.locale="",n.__uniConfig.fallbackLocale=void 0,n.__uniConfig.locales=i.keys().reduce((function(n,e){var t=e.replace(/\.\/(uni-app.)?(.*).json/,"$2"),o=i(e);return Object.assign(n[t]||(n[t]={}),o.common||o),n}),{}),n.__uniConfig.nvue={"flex-direction":"column"},n.__uniConfig.__webpack_chunk_load__=t.e,o.default.component("pages-enter-enter",(function(n){var e={component:Promise.all([t.e("pages-enter-enter~pages-index-index"),t.e("pages-enter-enter")]).then(function(){return n(t("7235"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),o.default.component("pages-index-index",(function(n){var e={component:Promise.all([t.e("pages-enter-enter~pages-index-index"),t.e("pages-index-index")]).then(function(){return n(t("244c"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),o.default.component("pages-login-login",(function(n){var e={component:t.e("pages-login-login").then(function(){return n(t("1ecb"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),n.__uniRoutes=[{path:"/",alias:"/pages/enter/enter",component:{render:function(n){return n("Page",{props:Object.assign({isQuit:!0,isEntry:!0},__uniConfig.globalStyle,{navigationBarTitleText:"",disableScroll:!0,titleNView:!1})},[n("pages-enter-enter",{slot:"page"})])}},meta:{id:1,name:"pages-enter-enter",isNVue:!1,maxWidth:0,pagePath:"pages/enter/enter",isQuit:!0,isEntry:!0,windowTop:0}},{path:"/pages/index/index",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"",disableScroll:!0,titleNView:!1})},[n("pages-index-index",{slot:"page"})])}},meta:{name:"pages-index-index",isNVue:!1,maxWidth:0,pagePath:"pages/index/index",windowTop:0}},{path:"/pages/login/login",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"登录",disableScroll:!0,titleNView:!1})},[n("pages-login-login",{slot:"page"})])}},meta:{name:"pages-login-login",isNVue:!1,maxWidth:0,pagePath:"pages/login/login",windowTop:0}},{path:"/choose-location",component:{render:function(n){return n("Page",{props:{navigationStyle:"custom"}},[n("system-choose-location",{slot:"page"})])}},meta:{name:"choose-location",pagePath:"/choose-location"}},{path:"/open-location",component:{render:function(n){return n("Page",{props:{navigationStyle:"custom"}},[n("system-open-location",{slot:"page"})])}},meta:{name:"open-location",pagePath:"/open-location"}}],n.UniApp&&new n.UniApp}).call(this,t("c8ba"))},"86af":function(n,e,t){"use strict";t("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};e.default=o},a9b8:function(n,e){n.exports={post:"POST",get:"GET",SUCCESS:"10000",page_index:{home:0,ai_chat:1,ai_draw:2},notification:{login_state_changed:"login_state_changed",switch_page_index:"switch_page_index"},userData:"userData"}},a9e7:function(n,e,t){"use strict";t.r(e);var o=t("86af"),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(a);e["default"]=i.a},dc3b:function(n,e){var t={login:"http://47.88.86.123:8000/login"};n.exports=t},dfc1:function(n,e,t){"use strict";t.r(e);var o=t("f2cc"),i=t("a9e7");for(var a in i)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(a);t("4a90");var r=t("f0c5"),u=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=u.exports},f0e2:function(n,e,t){"use strict";var o=t("4ea4").default;t("d3b7");var i=o(t("5530")),a=o(t("53ca"));t("e260"),t("e6cf"),t("cca6"),t("a79d"),t("6d5f"),t("1c31");var r=o(t("dfc1")),u=o(t("4d3c")),c=o(t("a9b8")),s=o(t("2c17")),l=o(t("dc3b")),f=o(t("e143"));f.default.config.productionTip=!1,f.default.prototype.request=u.default,f.default.prototype.config=c.default,f.default.prototype.tools=s.default,f.default.prototype.interfaces=l.default,r.default.mpType="app";try{uni.addInterceptor({returnValue:function(n){return function(n){return!!n&&("object"===(0,a.default)(n)||"function"===typeof n)&&"function"===typeof n.then}(n)?new Promise((function(e,t){n.then((function(n){n[0]?t(n[0]):e(n[1])}))})):n}})}catch(g){}var d=new f.default((0,i.default)({},r.default));d.$mount()},f2cc:function(n,e,t){"use strict";t.d(e,"b",(function(){return o})),t.d(e,"c",(function(){return i})),t.d(e,"a",(function(){}));var o=function(){var n=this.$createElement,e=this._self._c||n;return e("App",{attrs:{keepAliveInclude:this.keepAliveInclude}})},i=[]}});