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.

7 lines
687 KiB

4 years ago
(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0095":function(t,e,s){"use strict";s.r(e);var i=s("1fec"),a=s("2012");for(var n in a)"default"!==n&&function(t){s.d(e,t,(function(){return a[t]}))}(n);var r,o=s("f0c5"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"8ace16d0",null,!1,i["a"],r);e["default"]=c.exports},"012f":function(t,e,s){"use strict";s.r(e);var i=s("15be"),a=s("6f61");for(var n in a)"default"!==n&&function(t){s.d(e,t,(function(){return a[t]}))}(n);var r,o=s("f0c5"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"0153":function(t,e,s){"use strict";s.r(e);var i=s("147c"),a=s.n(i);for(var n in i)"default"!==n&&function(t){s.d(e,t,(function(){return i[t]}))}(n);e["default"]=a.a},"015b":function(t,e,s){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=s("260c"),a=s("4254"),n=l(s("83d4")),r=l(s("755e")),o=l(s("ad8c")),c=s("2f62"),u=s("6a69");function l(t){return t&&t.__esModule?t:{default:t}}var d=["\u5f85\u4ed8\u6b3e","\u5f85\u53d1\u8d27","\u5f85\u6536\u8d27","\u5f85\u8bc4\u4ef7","\u5df2\u5b8c\u6210","","","","","\u5f85\u4ed8\u6b3e"],f="MyOrder",_={name:f,data:function(){return{offlinePayStatus:2,orderData:{},type:"",page:1,limit:20,loaded:!1,loading:!1,orderList:[],pay:!1,payType:["yue","weixin"],from:this.$deviceType}},components:{Loading:n.default,Payment:r.default,DataFormat:o.default},computed:(0,c.mapGetters)(["userInfo"]),onShow:function(){t("log",this," at pages/order/MyOrder/index.vue:200"),this.type=parseInt(this.$yroute.query.type)||0,this.changeType(this.type),this.getOrderData(),this.getOrderList()},onHide:function(){this.orderList=[],this.page=1,this.limit=20,this.loaded=!1,this.loading=!1},methods:{goLogistics:function(t){this.$yrouter.push({path:"/pages/order/Logistics/index",query:{id:t.orderId}})},goOrderDetails:function(t){this.$yrouter.push({path:"/pages/order/OrderDetails/index",query:{id:t.orderId}})},dataFormat:u.dataFormat,setOfflinePayStatus:function(t){var e=this;e.offlinePayStatus=t,1===t&&e.payType.indexOf("offline")<0&&e.payType.push("offline")},getOrderData:function(){var t=this;(0,i.getOrderData)().then((function(e){t.orderData=e.data}))},takeOrder:function(t){var e=this;(0,a.takeOrderHandle)(t.orderId).finally((function(){e.reload(),e.getOrderData()}))},reload:function(){this.changeType(this.type)},changeType:function(t){this.type=t,this.orderList=[],this.page=1,this.loaded=!1,this.loading=!1,this.getOrderList()},getOrderList:function(){var t=this;if(!this.loading&&!this.loaded){this.loading=!0;var e=this.page,s=this.limit,a=this.type;(0,i.getOrderList)({page:e,limit:s,type:a}).then((function(e){t.orderList=t.orderList.concat(e.data),t.page++,t.loaded=e.data.length<t.limit,t.loading=!1}))}},getStatus:function(t){return d[t._status._type]},cancelOrder:function(t){var e=this;(0,a.cancelOrderHandle)(t.orderId).then((function(){e.getOrderData(),e.orderList.splice(e.orderList.indexOf(t),1)})).catch((function(){e.reload()}))},paymentTap:function(t){var e=this,s=this;t.combinationId>0||t.bargainId>0||t.seckillId>0||s.setOfflinePayStatus(t.offlinePayStatus),this.pay=!0,this.toPay=function(i){(0,a.payOrderHandle)(t.orderId,i,s.from).then((function(){var t=parseInt(e.$yroute.query.type)||0;s.changeType(t),s.getOrderData()})).catch((function(){var t=parseInt(s.$yroute.query.type)||0;s.changeType(t),s.getOrderData()}))}},toPay:function(){}},mounted:function(){},onReachBottom:function(){!this.loading&&this.getOrderList()}};e.default=_}).call(this,s("0de9")["default"])},"016b":function(t,e,s){"use strict";s.r(e);var i=s("9b8e"),a=s.n(i);for(var n in i)"default"!==n&&function(t){s.d(e,t,(function(){return i[t]}))}(n);e["default"]=a.a},"01bb":function(t,e,s){"use strict";s.r(e);var i=s("9611"),a=s.n(i);for(var n in i)"default"!==n&&function(t){s.d(e,t,(function(){return i[t]}))}(n);e["default"]=a.a},"0212":function(t,e,s){"use strict";var i,a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("view",[s("view",{staticClass:t._$s(1,"sc","searchGood"),at
/**
* vuex v3.0.1
* (c) 2017 Evan You
* @license MIT
*/
4 years ago
var i=function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:i});else{var s=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[i].concat(t.init):i,s.call(this,t)}}function i(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}},a="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function n(t){a&&(t._devtoolHook=a,a.emit("vuex:init",t),a.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){a.emit("vuex:mutation",t,e)})))}function r(t,e){Object.keys(t).forEach((function(s){return e(t[s],s)}))}function o(t){return null!==t&&"object"===typeof t}function c(t){return t&&"function"===typeof t.then}var u=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var s=t.state;this.state=("function"===typeof s?s():s)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},u.prototype.addChild=function(t,e){this._children[t]=e},u.prototype.removeChild=function(t){delete this._children[t]},u.prototype.getChild=function(t){return this._children[t]},u.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},u.prototype.forEachChild=function(t){r(this._children,t)},u.prototype.forEachGetter=function(t){this._rawModule.getters&&r(this._rawModule.getters,t)},u.prototype.forEachAction=function(t){this._rawModule.actions&&r(this._rawModule.actions,t)},u.prototype.forEachMutation=function(t){this._rawModule.mutations&&r(this._rawModule.mutations,t)},Object.defineProperties(u.prototype,l);var d=function(t){this.register([],t,!1)};function f(t,e,s){if(e.update(s),s.modules)for(var i in s.modules){if(!e.getChild(i))return void 0;f(t.concat(i),e.getChild(i),s.modules[i])}}d.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},d.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,s){return e=e.getChild(s),t+(e.namespaced?s+"/":"")}),"")},d.prototype.update=function(t){f([],this.root,t)},d.prototype.register=function(t,e,s){var i=this;void 0===s&&(s=!0);var a=new u(e,s);if(0===t.length)this.root=a;else{var n=this.get(t.slice(0,-1));n.addChild(t[t.length-1],a)}e.modules&&r(e.modules,(function(e,a){i.register(t.concat(a),e,s)}))},d.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),s=t[t.length-1];e.getChild(s).runtime&&e.removeChild(s)};var _;var p=function(t){var e=this;void 0===t&&(t={}),!_&&"undefined"!==typeof window&&window.Vue&&O(window.Vue);var s=t.plugins;void 0===s&&(s=[]);var i=t.strict;void 0===i&&(i=!1);var a=t.state;void 0===a&&(a={}),"function"===typeof a&&(a=a()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new _;var r=this,o=this,c=o.dispatch,u=o.commit;this.dispatch=function(t,e){return c.call(r,t,e)},this.commit=function(t,e,s){return u.call(r,t,e,s)},this.strict=i,w(this,a,[],this._modules.root),m(this,a),s.forEach((function(t){return t(e)})),_.config.devtools&&n(this)},v={state:{configurable:!0}};function h(t,e){return e.indexOf(t)<0&&e.push(t),function(){var s=e.indexOf(t);s>-1&&e.splice(s,1)}}function g(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var s=t.state;w(t,s,[],t._modules.root,!0),m(t,s,e)}function m(t,e,s){var i=t._vm;t.getters={};var a=t._wrappedGetters,n={};r(a,(function(e,s){n[s]=function(){return e(t)},Object.defineProperty(t.getters,s,{get:function(){return t._vm[s]},enumerable:!0})}));var o=_.config.silent;_.config.silent=!0,t._vm=new _({data:{$$state:e},computed:n}),_.config.silent=o,t.stri