You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
397 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"0371":function(e,n){},"0510":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.cancelOrderHandle=l,n.takeOrderHandle=m,n.delOrderHandle=f,n.payOrderHandle=h,n.handleOrderPayResults=g,n.subscribeMessage=v,n.goOrderDetails=y;var i=c(t("a34a")),o=t("2559"),d=c(t("89cc")),a=t("183b"),r=t("8c38");function c(e){return e&&e.__esModule?e:{default:e}}function s(e,n,t,i,o,d,a){try{var r=e[d](a),c=r.value}catch(s){return void t(s)}r.done?n(c):Promise.resolve(c).then(i,o)}function u(e){return function(){var n=this,t=arguments;return new Promise((function(i,o){var d=e.apply(n,t);function a(e){s(d,i,o,a,r,"next",e)}function r(e){s(d,i,o,a,r,"throw",e)}a(void 0)}))}}function l(n){return new Promise((function(t,i){e.showModal({title:"提示",content:"确认取消该订单?",success:function(d){d.confirm?(0,o.cancelOrder)(n).then((function(n){e.showToast({title:"取消成功",icon:"success",duration:2e3}),t(n)})).catch((function(n){e.showToast({title:"取消失败",icon:"none",duration:2e3}),i(n)})):d.cancel}})}))}function m(n){return new Promise((function(t,i){(0,o.takeOrder)(n).then((function(n){e.showToast({title:"收货成功",icon:"success",duration:2e3}),t(n)})).catch((function(n){e.showToast({title:"收货失败",icon:"none",duration:2e3}),i(n)}))}))}function f(n){return new Promise((function(t,i){d.default.confirm({mes:"确认删除该订单?",opts:function(){(0,o.delOrder)(n).then((function(n){e.showToast({title:"删除成功",icon:"success",duration:2e3}),t(n)})).catch((function(n){e.showToast({title:"删除失败",icon:"none",duration:2e3}),i(n)}))}})}))}function h(e,n,t){return p.apply(this,arguments)}function p(){return p=u(i.default.mark((function n(t,d,a){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(n,r){e.showLoading({title:"支付中",mask:!0}),(0,o.payOrder)(t,d,a).then(function(){var e=u(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(t),e.next=3,g(t.data,d);case 3:n();case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()).catch((function(n){r(),e.hideLoading(),e.showToast({title:n.msg||n.response.data.msg||n.response.data.message||"订单支付失败",icon:"none",duration:2e3})}))})));case 1:case"end":return n.stop()}}),n)}))),p.apply(this,arguments)}function g(n,t,i){return new Promise((function(i,o){switch(e.hideLoading(),n.status){case"ORDER_EXIST":i();break;case"EXTEND_ORDER":e.showToast({title:n.msg,icon:"none",duration:2e3}),i(),y(n.result.orderId,t);break;case"PAY_DEFICIENCY":break;case"PAY_ERROR":e.showToast({title:n.msg,icon:"none",duration:2e3}),o(),y(n.result.orderId,t);break;case"SUCCESS":e.showToast({title:n.msg||n.payMsg,icon:"none",duration:2e3}),i(),y(n.result.orderId,t);break;case"WECHAT_H5_PAY":y(n.result.orderId,t),console.log(n),setTimeout((function(){i()}),100);break;case"WECHAT_PAY":(0,a.weappPay)(n.result.jsConfig).finally((function(){i(),y(n.result.orderId,t)})).then((function(e){v()}));break;case"WECHAT_APP_PAY":(0,a.weappPay)(n.result.jsConfig).finally((function(){i(),y(n.result.orderId,t)}));break}}))}function v(){console.log("调用订阅"),(0,o.getSubscribeTemplate)().then((function(n){e.requestSubscribeMessage({tmplIds:n.data,success:function(e){console.log(e)},fail:function(e){console.log(e)}})})).catch((function(e){}))}function y(e,n){"create"==n&&(console.log(r._router),r._router.replace({path:"/pages/order/OrderDetails/index",query:{id:e}}))}}).call(this,t("543d")["default"])},"0518":function(e,n,t){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=this.$parent;while(n){if(!n.$options||n.$options.name===e)return n;n=n.$parent}return!1}Object.defineProperty(n,"__esModule",{value:!0}),n.default=i},"11c7":function(e,n,t){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",n=arguments.length>1
3 years ago
/*!
* vuex v3.4.0
* (c) 2020 Evan You
* @license MIT
*/
function i(e){var n=Number(e.version.split(".")[0]);if(n>=2)e.mixin({beforeCreate:i});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,t.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}t.d(n,"Store",(function(){return g})),t.d(n,"createNamespacedHelpers",(function(){return I})),t.d(n,"install",(function(){return E})),t.d(n,"mapActions",(function(){return D})),t.d(n,"mapGetters",(function(){return M})),t.d(n,"mapMutations",(function(){return C})),t.d(n,"mapState",(function(){return T}));var o="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},d=o.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){d&&(e._devtoolHook=d,d.emit("vuex:init",e),d.on("vuex:travel-to-state",(function(n){e.replaceState(n)})),e.subscribe((function(e,n){d.emit("vuex:mutation",e,n)}),{prepend:!0}),e.subscribeAction((function(e,n){d.emit("vuex:action",e,n)}),{prepend:!0}))}function r(e,n){Object.keys(e).forEach((function(t){return n(e[t],t)}))}function c(e){return null!==e&&"object"===typeof e}function s(e){return e&&"function"===typeof e.then}function u(e,n){return function(){return e(n)}}var l=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var t=e.state;this.state=("function"===typeof t?t():t)||{}},m={namespaced:{configurable:!0}};m.namespaced.get=function(){return!!this._rawModule.namespaced},l.prototype.addChild=function(e,n){this._children[e]=n},l.prototype.removeChild=function(e){delete this._children[e]},l.prototype.getChild=function(e){return this._children[e]},l.prototype.hasChild=function(e){return e in this._children},l.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},l.prototype.forEachChild=function(e){r(this._children,e)},l.prototype.forEachGetter=function(e){this._rawModule.getters&&r(this._rawModule.getters,e)},l.prototype.forEachAction=function(e){this._rawModule.actions&&r(this._rawModule.actions,e)},l.prototype.forEachMutation=function(e){this._rawModule.mutations&&r(this._rawModule.mutations,e)},Object.defineProperties(l.prototype,m);var f=function(e){this.register([],e,!1)};function h(e,n,t){if(n.update(t),t.modules)for(var i in t.modules){if(!n.getChild(i))return void 0;h(e.concat(i),n.getChild(i),t.modules[i])}}f.prototype.get=function(e){return e.reduce((function(e,n){return e.getChild(n)}),this.root)},f.prototype.getNamespace=function(e){var n=this.root;return e.reduce((function(e,t){return n=n.getChild(t),e+(n.namespaced?t+"/":"")}),"")},f.prototype.update=function(e){h([],this.root,e)},f.prototype.register=function(e,n,t){var i=this;void 0===t&&(t=!0);var o=new l(n,t);if(0===e.length)this.root=o;else{var d=this.get(e.slice(0,-1));d.addChild(e[e.length-1],o)}n.modules&&r(n.modules,(function(n,o){i.register(e.concat(o),n,t)}))},f.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),t=e[e.length-1];n.getChild(t).runtime&&n.removeChild(t)},f.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),t=e[e.length-1];return n.hasChild(t)};var p;var g=function(e){var n=this;void 0===e&&(e={}),!p&&"undefined"!==typeof window&&window.Vue&&E(window.Vue);var t=e.plugins;void 0===t&&(t=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new f(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new p,this._makeLocalGettersCache=Object.create(null);var o=this,d=this,r=d.dispatch,c=d.commit;this.dispatch=function(e,n){return r.call(o,e,n)},this.commit=function(e,n,t){return c.call(o,e,n,t)},this.strict=i;var s=this._modules.root.state;w(this,s,[],this._modules.root),_(this,s),t.forEach((function(e){return e(n)}));var u=void 0!==e.devtools?e.devtool
3 years ago
/*!
* Vue.js v2.6.11
* (c) 2014-2021 Evan You
* Released under the MIT License.
*/
var t=Object.freeze({});function i(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function d(e){return!0===e}function a(e){return!1===e}function r(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var s=Object.prototype.toString;function u(e){return"[object Object]"===s.call(e)}function l(e){return"[object RegExp]"===s.call(e)}function m(e){var n=parseFloat(String(e));return n>=0&&Math.floor(n)===n&&isFinite(e)}function f(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===s?JSON.stringify(e,null,2):String(e)}function p(e){var n=parseFloat(e);return isNaN(n)?e:n}function g(e,n){for(var t=Object.create(null),i=e.split(","),o=0;o<i.length;o++)t[i[o]]=!0;return n?function(e){return t[e.toLowerCase()]}:function(e){return t[e]}}g("slot,component",!0);var v=g("key,ref,slot,slot-scope,is");function y(e,n){if(e.length){var t=e.indexOf(n);if(t>-1)return e.splice(t,1)}}var b=Object.prototype.hasOwnProperty;function _(e,n){return b.call(e,n)}function w(e){var n=Object.create(null);return function(t){var i=n[t];return i||(n[t]=e(t))}}var O=/-(\w)/g,x=w((function(e){return e.replace(O,(function(e,n){return n?n.toUpperCase():""}))})),k=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),A=/\B([A-Z])/g,$=w((function(e){return e.replace(A,"-$1").toLowerCase()}));function S(e,n){function t(t){var i=arguments.length;return i?i>1?e.apply(n,arguments):e.call(n,t):e.call(n)}return t._length=e.length,t}function P(e,n){return e.bind(n)}var j=Function.prototype.bind?P:S;function E(e,n){n=n||0;var t=e.length-n,i=new Array(t);while(t--)i[t]=e[t+n];return i}function T(e,n){for(var t in n)e[t]=n[t];return e}function C(e){for(var n={},t=0;t<e.length;t++)e[t]&&T(n,e[t]);return n}function M(e,n,t){}var D=function(e,n,t){return!1},I=function(e){return e};function L(e,n){if(e===n)return!0;var t=c(e),i=c(n);if(!t||!i)return!t&&!i&&String(e)===String(n);try{var o=Array.isArray(e),d=Array.isArray(n);if(o&&d)return e.length===n.length&&e.every((function(e,t){return L(e,n[t])}));if(e instanceof Date&&n instanceof Date)return e.getTime()===n.getTime();if(o||d)return!1;var a=Object.keys(e),r=Object.keys(n);return a.length===r.length&&a.every((function(t){return L(e[t],n[t])}))}catch(s){return!1}}function R(e,n){for(var t=0;t<e.length;t++)if(L(e[t],n))return t;return-1}function F(e){var n=!1;return function(){n||(n=!0,e.apply(this,arguments))}}var N=["component","directive","filter"],q=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],U={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:D,isReservedAttr:D,isUnknownElement:D,getTagNamespace:M,parsePlatformTagName:I,mustUseProp:D,async:!0,_lifecycleHooks:q},z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function H(e){var n=(e+"").charCodeAt(0);return 36===n||95===n}function V(e,n,t,i){Object.defineProperty(e,n,{value:t,enumerable:!!i,writable:!0,configurable:!0})}var B=new RegExp("[^"+z.source+".$_\\d]");function G(e){if(!B.test(e)){var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e)return;e=e[n[t]]}return e}}}var W,J="__proto__"in{},Y="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,K=Z&&WXEnvironment.platform.toLowerCase(),X=Y&&window.navigator.userAgent.toLowerCase(),Q=X&&/msie|trident/.test(X),ee=(X&&X.indexOf("msie 9.0"),X&&X.indexOf("edge/")>0),ne=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===K),te=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/),{}.watch);if(Y)try{var ie={};Object.defineProperty(ie,"passive",{get:fun