main.js 4.6 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"63b6":function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=function(){function e(){o(this,e),u(this,"updateManager",wx.getUpdateManager()),u(this,"canIUse",wx.canIUse("getUpdateManager"))}return r(e,[{key:"check",value:function(){var e=this;e.canIUse?e.updateManager.onCheckForUpdate((function(t){t.hasUpdate&&wx.showModal({title:"更新提示",content:"检测到新版本,是否下载新版本并重启小程序?",success:function(t){t.confirm?e.downLoadAndUpdateApplet():t.cancel&&wx.showModal({title:"温馨提示~",content:"本次版本更新比较重要,旧版本可能无法正常访问的哦~",showCancel:!1,confirmText:"确定更新",success:function(t){t.confirm&&e.downLoadAndUpdateApplet()}})}})})):e.downLoadAndUpdateWeChat()}},{key:"downLoadAndUpdateApplet",value:function(){var e=this;wx.showLoading(),e.updateManager.onUpdateReady((function(){wx.hideLoading(),e.updateManager.applyUpdate()})),e.updateManager.onUpdateFailed((function(){wx.hideLoading(),wx.showModal({title:"已经有新版本了哟~",content:"新版本已经上线啦~,请您删除当前小程序,重新从公众号或搜索打开小程序哟~"})}))}},{key:"downLoadAndUpdateWeChat",value:function(){wx.showModal({title:"重要提示",content:"您当前微信版本过低,使用过程可能会不稳定。点击确认立刻升级微信。",success:function(e){e.confirm&&wx.updateWeChatApp({success:function(e){console.log("res",e)},fail:function(e){console.log("err",e)}})}})}}],[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}]),e}(),i={onLaunch:function(){c.getInstance()},onShow:function(){var e=c.getInstance();e.check()},onHide:function(){console.log("App Hide")}};t.default=i},c021:function(e,t,n){"use strict";var o=n("c2ad"),a=n.n(o);a.a},c2ad:function(e,t,n){},cd4b:function(e,t,n){"use strict";n.r(t);var o=n("63b6"),a=n.n(o);for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=a.a},d9de:function(e,t,n){"use strict";(function(e){n("a134"),n("921b");var t=u(n("66fd")),o=u(n("e6ba")),a=u(n("7be5")),r=n("e6a3");function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default.prototype.$Request=r.myRequest,t.default.config.productionTip=!1,o.default.mpType="app",t.default.config.warnHandler=function(e){if(!e.includes("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders."))return console.warn&&console.warn(e)},t.default.mixin({computed:{appId:function(){return a.default.state.appId},phoneNumber:function(){return a.default.state.user.phoneNumber},openId:function(){return a.default.state.user.openId},unionId:function(){return a.default.state.user.unionId},userInfo:function(){return a.default.state.user.userInfo},stationId:function(){return a.default.state.station.stationId},selectedGas:function(){return a.default.state.station.selectedGas},labelId:function(){return a.default.state.station.labelId},employeeId:function(){return a.default.state.station.employeeId},orderInfo:function(){return a.default.state.order.orderInfo}}});var f=new t.default(i({store:a.default},o.default));e(f).$mount()}).call(this,n("543d")["createApp"])},e6ba:function(e,t,n){"use strict";n.r(t);var o=n("cd4b");for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("c021");var r,u,c,i,d=n("f0c5"),f=Object(d["a"])(o["default"],r,u,!1,null,null,null,!1,c,i);t["default"]=f.exports}},[["d9de","common/runtime","common/vendor"]]]);