yzms/android/merge_pay_bak/static/js/index.c9f3ae8a.js

2 lines
12 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(e){function t(t){for(var a,r,i=t[0],u=t[1],d=t[2],f=0,l=[];f<i.length;f++)r=i[f],Object.prototype.hasOwnProperty.call(c,r)&&c[r]&&l.push(c[r][0]),c[r]=0;for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(e[a]=u[a]);s&&s(t);while(l.length)l.shift()();return o.push.apply(o,d||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,r=1;r<n.length;r++){var i=n[r];0!==c[i]&&(a=!1)}a&&(o.splice(t--,1),e=u(u.s=n[0]))}return e}var a={},r={index:0},c={index:0},o=[];function i(e){return u.p+"static/js/"+({}[e]||e)+"."+{"chunk-24e1c30c":"f350078b","chunk-2d0bcdf8":"72197571","chunk-2d0ddfff":"4b7d2c3a","chunk-e0cacb40":"6c6a2b39"}[e]+".js"}function u(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={"chunk-24e1c30c":1,"chunk-e0cacb40":1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=new Promise((function(t,n){for(var a="static/css/"+({}[e]||e)+"."+{"chunk-24e1c30c":"c1d30de7","chunk-2d0bcdf8":"31d6cfe0","chunk-2d0ddfff":"31d6cfe0","chunk-e0cacb40":"77b5503c"}[e]+".css",c=u.p+a,o=document.getElementsByTagName("link"),i=0;i<o.length;i++){var d=o[i],f=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(f===a||f===c))return t()}var l=document.getElementsByTagName("style");for(i=0;i<l.length;i++){d=l[i],f=d.getAttribute("data-href");if(f===a||f===c)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=t,s.onerror=function(t){var a=t&&t.target&&t.target.src||c,o=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=a,delete r[e],s.parentNode.removeChild(s),n(o)},s.href=c;var b=document.getElementsByTagName("head")[0];b.appendChild(s)})).then((function(){r[e]=0})));var a=c[e];if(0!==a)if(a)t.push(a[2]);else{var o=new Promise((function(t,n){a=c[e]=[t,n]}));t.push(a[2]=o);var d,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=i(e);var l=new Error;d=function(t){f.onerror=f.onload=null,clearTimeout(s);var n=c[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",l.name="ChunkLoadError",l.type=a,l.request=r,n[1](l)}c[e]=void 0}};var s=setTimeout((function(){d({type:"timeout",target:f})}),12e4);f.onerror=f.onload=d,document.head.appendChild(f)}return Promise.all(t)},u.m=e,u.c=a,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)u.d(n,a,function(t){return e[t]}.bind(null,a));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="",u.oe=function(e){throw console.error(e),e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],f=d.push.bind(d);d.push=t,d=d.slice();for(var l=0;l<d.length;l++)t(d[l]);var s=f;o.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("cd49")},"0c9a":function(e,t,n){},"79f6":function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return l})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return b})),n.d(t,"a",(function(){return h})),n.d(t,"e",(function(){return p}));n("d3b7"),n("25f0");var a=n("bc3a"),r=n.n(a),c=n("4328"),o=n.n(c),i=(n("e7e5"),{baseURL:"../../../../",timeout:12e3,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},transformRequest:function(e){return o.a.stringify(e)}}),u=r.a.create(i);u.interceptors.request.use((function(e){return e}),(function(e){return Promise.reject(new Error(e).toString())})),u.interceptors.response.use((function(e){return e.data}),(function(e){return Promise.reject(new Error(e).toString())}));var d=u;function f(){return d({url:"/show/chkserver.php?act=info",method:"get"})}function l(e){return d({url:"/api/order/take",method:"post",data:e})}function s(e){return d({url:"/show/chkserver.php?act=facegetcode",method:"post",data:e})}function b(e){return d({url:"/show/chkserver.php?act=icgetcode",method:"post",data:e})}function h(e){return d({url:"/show/chkserver.php?act=getConsumeList",method:"post",data:e})}function p(e){return d({url:"/show/chkserver.php?act=getMealOrPay",method:"post",data:e})}},"9bad":function(e,t,n){},a01b:function(e,t,n){"use strict";var a=n("be92"),r=Object(a["c"])("canteen",{state:function(){return{canteenId:"",channelId:"",canteenName:"",channelName:""}},actions:{setCanteen:function(e){this.canteenId=e.canteenId,this.channelId=e.channelId,this.canteenName=e.canteenName,this.channelName=e.channelName}}});t["a"]=r},b054:function(e,t,n){},c3fd:function(e,t,n){"use strict";n("9bad")},cd49:function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("a4d3"),n("e01a"),n("b636"),n("dc8d"),n("efe9"),n("d28b"),n("2a1b"),n("80e0"),n("6b9e"),n("197b"),n("2351"),n("8172"),n("944a"),n("81b8"),n("99af"),n("a874"),n("a623"),n("cb29"),n("4de4"),n("7db0"),n("c740"),n("0481"),n("5db7"),n("4160"),n("a630"),n("caad"),n("c975"),n("a15b"),n("baa5"),n("d81d"),n("5ded"),n("13d5"),n("f4dd"),n("fb6a"),n("45fc"),n("4e82"),n("f785"),n("a434"),n("4069"),n("73d9"),n("c19f"),n("82da"),n("ace4"),n("b420"),n("accc"),n("f4b3"),n("efec"),n("b56e"),n("0c47"),n("4ec9"),n("5327"),n("79a8"),n("9ff9"),n("3ea3"),n("40d9"),n("ff9c"),n("0ac8"),n("f664"),n("4057"),n("bc01"),n("6b93"),n("ca21"),n("90d7"),n("2af1"),n("0261"),n("7898"),n("23dc"),n("b65f"),n("a9e3"),n("35b3"),n("f00c"),n("8ba4"),n("9129"),n("583b"),n("aff5"),n("e6e1"),n("c35a"),n("25eb"),n("b680"),n("542d"),n("12a8"),n("1d1c"),n("7a82"),n("e71b"),n("4fadc"),n("dca8"),n("c1f9"),n("e439"),n("dbb4"),n("7039"),n("3410"),n("2b19"),n("c906"),n("e21d"),n("e43e"),n("b64b"),n("bf96"),n("5bf7"),n("cee8"),n("af93"),n("131a"),n("d3b7"),n("07ac"),n("acd8"),n("e25e"),n("a6fd"),n("4ae1"),n("3f3a"),n("ac16"),n("5d41"),n("9e4a"),n("7f78"),n("c760"),n("db96"),n("1bf2"),n("d6dd"),n("7ed3"),n("8b9a"),n("4d63"),n("ac1f"),n("5377"),n("25f0"),n("6062"),n("f5b2"),n("8a79"),n("f6d6"),n("2532"),n("3ca3"),n("466d"),n("843c"),n("4d90"),n("d80f"),n("38cf"),n("5319"),n("841c"),n("1276"),n("2ca0"),n("498a"),n("1e25"),n("eee7"),n("cfc3"),n("4a9b"),n("fd87"),n("8b09"),n("143c"),n("5cc6"),n("8a59"),n("84c3"),n("fb2c"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("20bf"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ec97"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),n("10d1"),n("1fe2"),n("159b"),n("ddb0"),n("130f"),n("9f96"),n("2b3d"),n("bf19"),n("9861"),n("96cf");var a=n("a026"),r=function(){var e,t,n=this,a=n._self._c,r=n._self._setupProxy;return a("div",{staticClass:"app-bg h-full w-full relative"},[r.loading?n._e():[r.canteenStore.channelId&&r.canteenStore.canteenId?a("div",{staticClass:"flex flex-col h-full w-full"},[a("div",{staticClass:"flex-shrink"},[a(r.Header)],1),a("div",{staticClass:"flex-grow relative"},[a("div",{staticClass:"absolute inset-0"},[a("keep-alive",[null!==(e=r.route.meta)&&void 0!==e&&e.keepAlive?a("router-view"):n._e()],1),null!==(t=r.route.meta)&&void 0!==t&&t.keepAlive?n._e():a("router-view")],1)])]):[a("div",{staticClass:"flex w-full h-full items-center justify-center flex-col"},[a(r.Attention,{staticClass:"text-2xl mb-2 text-red-400",attrs:{theme:"filled",fill:"rgb(248, 113, 113)"}}),n._v("请先配置饭堂信息 ")],1)]]],2)},c=[],o=n("6815"),i=n("2c59"),u=n("d399"),d=(n("e7e5"),n("e17f"),n("79f6")),f=function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"flex van-hairline--bottom bg py-1 px-2 items-center"},[t("div",{staticClass:"flex-grow flex items-center font-bold header-text text-xs"},[e._v(" "+e._s(n.canteenStore.canteenName)+" • "+e._s(n.canteenStore.channelName)+" ")]),t("div",{staticClass:"flex-shrink-0 h-full"},[t(n.Tabbar,{staticClass:"rounded overflow-hidden bg-gray-50",attrs:{route:"",fixed:!1}})],1)])},l=[],s=n("ac28"),b=(n("537a"),n("a52c"),n("a01b")),h=Object(a["defineComponent"])({__name:"index",setup:function(e){var t=Object(b["a"])();return{__sfc:!0,canteenStore:t,Tabbar:s["a"]}}}),p=h,v=(n("cf41"),n("2877")),m=Object(v["a"])(p,f,l,!1,null,"e51f4cdc",null),g=m.exports,y=Object(a["defineComponent"])({__name:"App",setup:function(e){var t=Object(b["a"])(),n=Object(o["a"])(),r=Object(a["ref"])(!0),c=function(){var e=new URLSearchParams(location.search),n=e.get("ft_id")||void 0,a=e.get("channel_id")||void 0;r.value=!0;var c=u["a"].loading({duration:0,message:"初始化"});Object(d["d"])().then((function(e){var r,c,o;if(1==e.status){if(!Array.isArray(null===(r=e.data)||void 0===r?void 0:r.dining_hall_ids)||!(null===(c=e.data)||void 0===c?void 0:c.dining_hall_ids.length))return void u["a"].fail({message:"获取配置信息失败,请检查网络"});var i=(null===(o=e.data)||void 0===o?void 0:o.dining_hall_ids).find((function(e){return e.id==n})),d=null===i||void 0===i?void 0:i.channel_ids.find((function(e){return e.channel_id==a}));if(!i)return void u["a"].fail({message:"获取饭堂信息失败请饭堂id配置是否正确"});if(!d)return void u["a"].fail({message:"获取取餐机信息失败请取餐机id配置是否正确"});t.setCanteen({canteenId:n,channelId:a,canteenName:i.name,channelName:d.channel_name})}}))["catch"]((function(e){u["a"].fail({message:e})})).then((function(){r.value=!1,c.clear()}))};return Object(a["onMounted"])((function(){c()})),{__sfc:!0,canteenStore:t,route:n,loading:r,initCanteenInfo:c,Attention:i["a"],Header:g}}}),w=y,_=(n("c3fd"),Object(v["a"])(w,r,c,!1,null,"4e90b7af",null)),k=_.exports,j=n("53ca"),O=n("9ab4"),x=n("8c4f"),C=[{path:"/take-meal",name:"取餐",component:function(){return n.e("chunk-24e1c30c").then(n.bind(null,"aa5e"))},meta:{title:"取餐",keepAlive:!1},alias:"/"},{path:"/pay-meal",name:"消费",component:function(){return n.e("chunk-2d0ddfff").then(n.bind(null,"847d"))},meta:{title:"消费",keepAlive:!1}},{path:"/banlance",name:"消费记录",component:function(){return n.e("chunk-2d0bcdf8").then(n.bind(null,"2a1d"))},meta:{title:"消费记录",keepAlive:!1}},{path:"/bills",name:"查看余额",component:function(){return n.e("chunk-e0cacb40").then(n.bind(null,"7e23"))},meta:{title:"查看余额",keepAlive:!1}},{path:"*",redirect:{path:"/take-meal"}}],P=x["a"].prototype.push;x["a"].prototype.push=function(e){return Object(O["a"])(this,void 0,Promise,(function(){var t;return Object(O["b"])(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,P.bind(this)(e)];case 1:return[2,n.sent()];case 2:if(t=n.sent(),"object"===Object(j["a"])(t)&&null!==t&&t.hasOwnProperty("name")&&"NavigationDuplicated"===(null===t||void 0===t?void 0:t.name))return console.warn(t),[2,t];throw console.warn(t),t;case 3:return[2]}}))}))};var S=x["a"].prototype.replace;x["a"].prototype.replace=function(e){return Object(O["a"])(this,void 0,Promise,(function(){var t;return Object(O["b"])(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,S.bind(this)(e)];case 1:return[2,n.sent()];case 2:if(t=n.sent(),"object"===Object(j["a"])(t)&&null!==t&&t.hasOwnProperty("name")&&"NavigationDuplicated"===(null===t||void 0===t?void 0:t.name))return console.warn(t),[2,t];throw console.warn(t),t;case 3:return[2]}}))}))},a["default"].use(x["a"]);var A=new x["a"]({base:"",routes:C,scrollBehavior:function(e,t,n){return n||{x:0,y:0}}});A.beforeEach((function(e,t,n){return Object(O["a"])(void 0,void 0,void 0,(function(){return Object(O["b"])(this,(function(e){return n(),[2]}))}))})),A.afterEach((function(e){var t;document.title=null===(t=e.meta)||void 0===t?void 0:t.title}));var N=A,E=(n("b749"),n("5cfb"),n("a3e2")),I=(n("5f1a"),n("2ed4"));u["a"].allowMultiple(!0),a["default"].use(s["a"]).use(I["a"]).use(E["a"]).use(u["a"]);n("0c9a"),n("e7ad");var T=n("be92");a["default"].use(T["a"]);var L=Object(T["b"])(),M=L;a["default"].config.productionTip=!1,new a["default"]({router:N,pinia:M,render:function(e){return e(k)}}).$mount("#app")},cf41:function(e,t,n){"use strict";n("b054")},e7ad:function(e,t,n){}});
//# sourceMappingURL=index.c9f3ae8a.js.map