yzms/android/merge_pay11/static/js/index.51547f74.js

1 line
14 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,o=t[0],u=t[1],s=t[2],l=0,d=[];l<o.length;l++)r=o[l],Object.prototype.hasOwnProperty.call(c,r)&&c[r]&&d.push(c[r][0]),c[r]=0;for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(e[a]=u[a]);f&&f(t);while(d.length)d.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],a=!0,r=1;r<n.length;r++){var o=n[r];0!==c[o]&&(a=!1)}a&&(i.splice(t--,1),e=u(u.s=n[0]))}return e}var a={},r={index:0},c={index:0},i=[];function o(e){return u.p+"static/js/"+({}[e]||e)+"."+{"chunk-068f3910":"abc5001f","chunk-273c4f53":"e809da83","chunk-6aa34c20":"fbbeb099","chunk-df300936":"d13bd359","chunk-ecdc4d7c":"458897ef"}[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-068f3910":1,"chunk-273c4f53":1,"chunk-6aa34c20":1,"chunk-df300936":1,"chunk-ecdc4d7c":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-068f3910":"64dece74","chunk-273c4f53":"01c9c65d","chunk-6aa34c20":"dfea8f7a","chunk-df300936":"c86622dc","chunk-ecdc4d7c":"5835d7af"}[e]+".css",c=u.p+a,i=document.getElementsByTagName("link"),o=0;o<i.length;o++){var s=i[o],l=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(l===a||l===c))return t()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){s=d[o],l=s.getAttribute("data-href");if(l===a||l===c)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var a=t&&t.target&&t.target.src||c,i=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=a,delete r[e],f.parentNode.removeChild(f),n(i)},f.href=c;var h=document.getElementsByTagName("head")[0];h.appendChild(f)})).then((function(){r[e]=0})));var a=c[e];if(0!==a)if(a)t.push(a[2]);else{var i=new Promise((function(t,n){a=c[e]=[t,n]}));t.push(a[2]=i);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,u.nc&&l.setAttribute("nonce",u.nc),l.src=o(e);var d=new Error;s=function(t){l.onerror=l.onload=null,clearTimeout(f);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;d.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",d.name="ChunkLoadError",d.type=a,d.request=r,n[1](d)}c[e]=void 0}};var f=setTimeout((function(){s({type:"timeout",target:l})}),12e4);l.onerror=l.onload=s,document.head.appendChild(l)}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 s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var d=0;d<s.length;d++)t(s[d]);var f=l;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("cd49")},"3e61":function(e,t,n){"use strict";n("9568")},"79f6":function(e,t,n){"use strict";n.d(t,"f",(function(){return l})),n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"g",(function(){return y}));n("d3b7"),n("25f0");var a=n("bc3a"),r=n.n(a),c=n("4328"),i=n.n(c),o={baseURL:"../../../../",timeout:12e3,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},transformRequest:function(e){return i.a.stringify(e)}},u=r.a.create(o);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 s=u;function l(e){return s({url:"/show/chkserver.php?act=info&custid=--"+e,method:"get"})}function d(e){return s({url:"/api/user/qrpay",method:"post",data:e})}function f(e){return s({url:"/api/order/take",method:"post",data:e})}function h(e){return s({url:"/show/chkserver.php?act=facegetcode",method:"post",data:e})}function p(e){return s({url:"/show/chkserver.php?act=icgetcode",method:"post",data:e})}function b(e){return s({url:"/show/chkserver.php?act=getConsumeList",method:"post",data:e})}function m(e){return s({url:"/show/chkserver.php?act=icUserInfo",method:"post",data:e})}function v(e){return s({url:"/show/chkserver.php?act=faceUserInfo",method:"post",data:e})}function y(e){return s({url:"/show/chkserver.php?act=getMealOrPay",method:"post",data:e})}},9568: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:"",payValues:[],showBalance:!1,showAutomatic:!1,payWaitingTime:0,paySuccessTime:5e3,icCardPayInterval:1e4,uname:""}},actions:{setCanteen:function(e){this.canteenId=e.canteenId,this.channelId=e.channelId,this.canteenName=e.canteenName,this.channelName=e.channelName,this.payValues=e.payValues,this.showBalance=e.showBalance,this.showAutomatic=e.showAutomatic,this.payWaitingTime=e.payWaitingTime,this.paySuccessTime=e.paySuccessTime,this.icCardPayInterval=e.icCardPayInterval,this.uname=e.uname}}});t["a"]=r},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 text-2xl"},[a(r.Attention,{staticClass:"mb-2 text-5xl",attrs:{theme:"filled",fill:"rgb(248, 113, 113)"}}),n._v("请先配置正确的饭堂信息 ")],1)]]],2)},c=[],i=n("6815"),o=n("2c59"),u=n("d399"),s=(n("e7e5"),n("79f6")),l=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 pointer-events-none"},[t(n.Tabbar,{staticClass:"rounded overflow-hidden",attrs:{route:"",fixed:!1}},[n.canteenStore.showAutomatic?t(n.TabbarItem,{attrs:{replace:"",to:"/take-or-pay-meal"}},[e._v("自动")]):e._e(),n.canteenStore.showAutomatic?e._e():t(n.TabbarItem,{attrs:{replace:"",to:"/take-meal"}},[e._v("取餐")]),n.canteenStore.showAutomatic?e._e():t(n.TabbarItem,{attrs:{replace:"",to:"/pay-meal"}},[e._v("消费")]),n.canteenStore.showAutomatic?e._e():t(n.TabbarItem,{attrs:{replace:"",to:"/bills"}},[e._v("账单")]),n.canteenStore.showBalance&&!n.canteenStore.showAutomatic?t(n.TabbarItem,{attrs:{replace:"",to:"/banlance"}},[e._v("余额")]):e._e()],1)],1)])},d=[],f=n("ac28"),h=(n("537a"),n("2ed4")),p=(n("a52c"),n("a01b")),b=Object(a["defineComponent"])({__name:"index",setup:function(e){var t=Object(p["a"])();return{__sfc:!0,canteenStore:t,Tabbar:f["a"],TabbarItem:h["a"]}}}),m=b,v=(n("3e61"),n("2877")),y=Object(v["a"])(m,l,d,!1,null,"7722712a",null),g=y.exports,w=n("3a342"),_=n.n(w),k=Object(a["defineComponent"])({__name:"App",setup:function(e){var t=new _.a,n=Object(p["a"])(),r=Object(i["a"])(),c=Object(i["b"])(),l=Object(a["ref"])(!0),d=function(){var e=new URLSearchParams(location.search),t=e.get("ft_id")||void 0,a=e.get("channel_id")||void 0;l.value=!0;var r=u["a"].loading({duration:0,message:"初始化"});Object(s["f"])(t).then((function(e){var r,i,o,s,l,d,f,h;if(1==e.status){if(!Array.isArray(null===(r=e.data)||void 0===r?void 0:r.dining_hall_ids)||!(null===(i=e.data)||void 0===i?void 0:i.dining_hall_ids.length))return void u["a"].fail({message:"获取配置信息失败,请检查网络"});var p=(null===(o=e.data)||void 0===o?void 0:o.dining_hall_ids).find((function(e){return e.id==t})),b=null===p||void 0===p?void 0:p.channel_ids.find((function(e){return e.channel_id==a}));if(!p)return void u["a"].fail({message:"获取饭堂信息失败请饭堂id配置是否正确"});if(!b)return void u["a"].fail({message:"获取取餐机信息失败请取餐机id配置是否正确"});n.setCanteen({canteenId:t,channelId:a,canteenName:p.name,channelName:b.channel_name,payValues:(null===(s=p.pay_values)||void 0===s?void 0:s.split(","))||["1","2","4","5","10","15"],showBalance:!!(null===(l=e.data)||void 0===l?void 0:l.showYe),showAutomatic:!!(null===(d=e.data)||void 0===d?void 0:d.show_automatic),payWaitingTime:1e3*(p.pay_exit_time||0),paySuccessTime:1e3*(p.pay_suc_exit_time||0),icCardPayInterval:1e3*((null===(f=e.data)||void 0===f?void 0:f.ic_interval)||10),uname:null===(h=e.data)||void 0===h?void 0:h.unique_name}),0==n.paySuccessTime&&("lqj"==n.uname?n.paySuccessTime=2e4:n.paySuccessTime=3e4),0==n.payWaitingTime&&("lqj"==n.uname?n.payWaitingTime=12e4:n.payWaitingTime=36e5),n.showAutomatic&&c.replace("/take-or-pay-meal")}}))["catch"]((function(e){u["a"].fail({message:e})})).then((function(){l.value=!1,r.clear()}))};return Object(a["onMounted"])((function(){d()})),{__sfc:!0,vConsole:t,canteenStore:n,route:r,router:c,loading:l,initCanteenInfo:d,Attention:o["a"],Header:g}}}),j=k,x=(n("d5ce"),Object(v["a"])(j,r,c,!1,null,null,null)),O=x.exports,T=n("53ca"),C=n("9ab4"),S=n("8c4f"),A=[{path:"/take-or-pay-meal",name:"取餐/消费",component:function(){return n.e("chunk-273c4f53").then(n.bind(null,"364f"))},meta:{title:"取餐",keepAlive:!1}},{path:"/take-meal",name:"取餐",component:function(){return n.e("chunk-068f3910").then(n.bind(null,"aa5e"))},meta:{title:"取餐",keepAlive:!1},alias:"/"},{path:"/pay-meal",name:"消费",component:function(){return n.e("chunk-df300936").then(n.bind(null,"847d"))},meta:{title:"消费",keepAlive:!1}},{path:"/banlance",name:"消费记录",component:function(){return n.e("chunk-6aa34c20").then(n.bind(null,"2a1d"))},meta:{title:"消费记录",keepAlive:!1}},{path:"/bills",name:"查看余额",component:function(){return n.e("chunk-ecdc4d7c").then(n.bind(null,"7e23"))},meta:{title:"查看余额",keepAlive:!1}},{path:"*",redirect:{path:"/take-meal"}}],I=S["a"].prototype.push;S["a"].prototype.push=function(e){return Object(C["a"])(this,void 0,Promise,(function(){var t;return Object(C["b"])(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,I.bind(this)(e)];case 1:return[2,n.sent()];case 2:if(t=n.sent(),"object"===Object(T["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 P=S["a"].prototype.replace;S["a"].prototype.replace=function(e){return Object(C["a"])(this,void 0,Promise,(function(){var t;return Object(C["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(T["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(S["a"]);var N=new S["a"]({base:"",routes:A,scrollBehavior:function(e,t,n){return n||{x:0,y:0}}});N.beforeEach((function(e,t,n){return Object(C["a"])(void 0,void 0,void 0,(function(){return Object(C["b"])(this,(function(e){return n(),[2]}))}))})),N.afterEach((function(e){var t;document.title=null===(t=e.meta)||void 0===t?void 0:t.title}));var E=N,B=(n("b749"),n("5cfb"),n("a3e2"));n("5f1a");u["a"].allowMultiple(!0),u["a"].setDefaultOptions("loading",{forbidClick:!0}),a["default"].use(f["a"]).use(h["a"]).use(B["a"]).use(u["a"]);n("e7ad"),n("b972");var q=n("be92");a["default"].use(q["a"]);var L=Object(q["b"])(),M=L;a["default"].config.productionTip=!1,new a["default"]({router:E,pinia:M,render:function(e){return e(O)}}).$mount("#app")},d5ce:function(e,t,n){"use strict";n("f498")},e7ad:function(e,t,n){},f498:function(e,t,n){}});