(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a987dd3e"],{"0c74":function(t,e,r){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"fav",on:{click:t.fav}},[t.status.flag?e("icons",{staticStyle:{"mergin-left":"20px"},attrs:{name:"icontianjiashoucang",size:t.size}}):t._e(),t.status.flag?t._e():e("icons",{staticStyle:{"mergin-left":"20px"},attrs:{name:"iconcollected",size:t.size,color:"#FA5E2E"}}),t.status.flag?t._e():e("div",{staticClass:"tip f12"},[t._v("从个人收藏删除")]),t.status.flag?e("div",{staticClass:"tip f12"},[t._v("添加到个人收藏")]):t._e()],1)},i=[],o=r("2f62"),a=r("fdf8");function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(S){l=function(t,e,r){return t[e]=r}}function f(t,e,r,i){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),c=new j(i||[]);return n(a,"_invoke",{value:O(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(S){return{type:"throw",arg:S}}}t.wrap=f;var p={};function d(){}function v(){}function y(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(P([])));b&&b!==e&&r.call(b,o)&&(m=b);var w=y.prototype=d.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function i(n,o,a,s){var u=h(t[n],t,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==c(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=h(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function _(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var i=h(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return v.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(L.prototype),l(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new L(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,u,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function u(t,e,r,n,i,o,a){try{var c=t[o](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,c,"next",t)}function c(t){u(o,n,i,a,c,"throw",t)}a(void 0)}))}}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){p(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(t,e,r){return e=d(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=v(t,"string");return"symbol"===c(e)?e:String(e)}function v(t,e){if("object"!==c(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var y={mixins:[a["a"]],props:{list:{},goodsType:{},size:{default:20}},data:function(){return{status:{flag:!0}}},computed:h(h({},Object(o["b"])(["user"])),{},{params:function(){if(666!==this.goodsType){var t=this.list,e=t.computerNo,r=t.configs,n=t.extendSelected,i=t.diyerrorFromId1,o=t.diyerrorList,a=t.diywarningList,c=t.logoConfigJson;return r=this.configsFormat(r),{gameId:this.list.gameId,shareCode:this.list.shareCode,goodsType:this.goodsType,computerCollect:{computerNo:e,configs:r,extendSelected:n,diyerrorFromId1:i,diyerrorList:o,diywarningList:a,logoConfigJson:c}}}return{goodsType:666,materialCollect:{id:this.list.id,quantity:this.list.quantity}}}}),watch:{"user.info.people.id":function(t){t&&this.check()},list:{handler:function(){this.user.info.people.id&&this.check()},immediate:!0,deep:!0}},mounted:function(){this.user.info.people.id&&this.check()},methods:{fav:function(){var t=l(s().mark((function t(){return s().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.user.info.people.id){t.next=4;break}this.$store.commit("setLoginShow",!0),t.next=15;break;case 4:if(!this.status.flag){t.next=11;break}return t.next=7,this.api.collectAdd(this.params);case 7:this.check(),this.$toast.success("收藏成功"),t.next=14;break;case 11:return t.next=13,this.api.collectDelete({id:this.status.id});case 13:this.$toast.success("取消收藏");case 14:this.check();case 15:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),check:function(){var t=l(s().mark((function t(){var e;return s().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.api.collectCheck(this.params);case 2:e=t.sent,this.status=e;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},m=y,g=(r("117f"),r("2877")),b=Object(g["a"])(m,n,i,!1,null,"590b8dd8",null);e["a"]=b.exports},"117f":function(t,e,r){"use strict";r("378f")},"378f":function(t,e,r){},"425b":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"install"},[e("div",{staticClass:"box"},[e("div",{staticClass:"box-left"},[e("div",{staticClass:"title f24"},[t._v("独立商品分类")]),t._l(t.extendType,(function(r){return e("div",{staticClass:"item",class:{cur:r.id===t.extendTypeCur},on:{click:function(e){return t.getParts(r)}}},[e("div",{staticClass:"icon"},[e("i",{style:"background-image:url(".concat(t.OBSW(r.img,100),")")})]),e("div",{staticClass:"info"},[e("div",{staticClass:"name f18"},[t._v(t._s(r.typeName))]),e("div",{staticClass:"desc gray"},[t._v(t._s(r.description))])])])}))],2),e("div",{staticClass:"box-right"},[e("div",{staticClass:"title f18"},[t._v("独立商品")]),e("div",{staticClass:"extend-selected"},[t.list.length>0?e("div",t._l(t.list,(function(r){return e("div",{key:r.id,staticClass:"item"},[e("div",{staticClass:"img",on:{click:function(e){return t.comPartsShow(r)}}},[e("i",{style:"background-image:url(".concat(t.OBSW(r.materialImgs,450),")")})]),e("div",{staticClass:"info"},[e("div",{staticClass:"name",attrs:{title:r.materialName}},[e("span",[t._v(t._s(r.materialName))])]),e("div",{staticClass:"select"},[e("div",{staticClass:"num2"},[e("i",[t._v("RMB")]),e("span",[t._v(t._s(t._f("formatNumber")(r.actualSellingPrice)))])]),e("van-stepper",{attrs:{max:r.limitNum},model:{value:r.quantity,callback:function(e){t.$set(r,"quantity",e)},expression:"item.quantity"}}),e("div",{staticClass:"tool"},[e("div",{staticClass:"cart",on:{click:function(e){return t.addCart(r)}}},[e("icons",{attrs:{name:"iconcart_add",size:"30"}})],1),e("fav",{attrs:{list:r,goodsType:666}})],1)],1)])])})),0):t._e()]),t.finished&&0===t.list.length?e("div",{staticClass:"none"},[t._m(0),e("div",{staticClass:"info"},[t._v("暂无相关商品")])]):t._e(),e("div",{staticClass:"coupon"},[e("coupon",{attrs:{type:"3"}})],1)])]),e("div",{staticClass:"step-tool step-tool-fixed"},[e("div",{staticClass:"box"},[e("div",{staticClass:"price"}),e("van-button",{staticClass:"btn--ghost btn--h40 btn--w250",attrs:{type:"info"},on:{click:function(e){return t.$router.push("/cart")}}},[e("van-badge",{staticClass:"badge",attrs:{content:t.user.cart||"",color:"#FA5E2E"}},[e("div",{staticClass:"toCart"},[t._v("去购物车")])])],1)],1)]),t.comParts.show?e("comParts",{attrs:{data:t.comParts.data},on:{close:function(e){t.comParts.show=!1}}}):t._e()],1)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"img"},[e("img",{attrs:{src:r("cb05")}})])}],o=r("0c74"),a=r("2f62"),c=r("c42b");function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(S){l=function(t,e,r){return t[e]=r}}function f(t,e,r,i){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),c=new j(i||[]);return n(a,"_invoke",{value:O(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(S){return{type:"throw",arg:S}}}t.wrap=f;var p={};function d(){}function v(){}function y(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(P([])));b&&b!==e&&r.call(b,o)&&(m=b);var w=y.prototype=d.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function i(n,o,a,c){var u=h(t[n],t,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==s(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,c)}),(function(t){i("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return i("throw",t,a,c)}))}c(u.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=h(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function _(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var i=h(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return v.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(L.prototype),l(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new L(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function l(t,e,r,n,i,o,a){try{var c=t[o](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){l(o,n,i,a,c,"next",t)}function c(t){l(o,n,i,a,c,"throw",t)}a(void 0)}))}}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function d(t,e,r){return e=v(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){var e=y(t,"string");return"symbol"===s(e)?e:String(e)}function y(t,e){if("object"!==s(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var m={components:{coupon:c["a"],fav:o["a"],comParts:function(){return Promise.all([r.e("chunk-9d5eaaaa"),r.e("chunk-06250a3f")]).then(r.bind(null,"5559"))}},data:function(){return{loading:!1,list:[],finished:!1,extendType:[],extendTypeCur:0,comParts:{show:!1,data:null}}},activated:function(){this.getData()},computed:p({},Object(a["b"])(["user"])),methods:{comPartsShow:function(t){this.comParts={show:!0,data:t}},getData:function(){var t=f(u().mark((function t(){var e;return u().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this.$session.get("package-data"),e&&666===e.computerType&&(this.data=e),this.getExtendType();case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getExtendType:function(){var t=f(u().mark((function t(){var e;return u().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.api.extendTypeAlone();case 2:e=t.sent,this.extendType=e,this.getParts(e[0]);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getParts:function(){var t=f(u().mark((function t(e){var r;return u().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.extendTypeCur=e.id,this.finished=!1,t.next=4,this.api.selectParts({materialTypeId:e.id,independentCommodity:1});case 4:r=t.sent,this.list=r.map((function(t){return p(p({},t),{},{quantity:t.quantity||1})})),this.finished=!0;case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),getCart:function(){var t=f(u().mark((function t(){var e,r,n=this;return u().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.api.cart();case 2:e=t.sent,r=0,e.effectiveShoppingCarts.forEach((function(t){r=n.$ADD(r,t.quantity)})),this.$store.commit("setCart",r);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),addCart:function(){var t=f(u().mark((function t(e){return u().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.user.token&&this.user.info.people.id){t.next=3;break}return this.$store.commit("setLoginShow",!0),t.abrupt("return",!1);case 3:return t.prev=3,t.next=6,this.api.cartAdd({quantity:1,goodsType:666,gameIds:"",materialCollect:{id:e.id,quantity:e.quantity}});case 6:e.quantity=1,this.$toast.success("加入成功"),this.getCart(),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](3);case 14:case"end":return t.stop()}}),t,this,[[3,11]])})));function e(e){return t.apply(this,arguments)}return e}()}},g=m,b=(r("6c7a"),r("2877")),w=Object(b["a"])(g,n,i,!1,null,"6e7f624c",null);e["default"]=w.exports},"6c7a":function(t,e,r){"use strict";r("b256")},b256:function(t,e,r){},cb05:function(t,e,r){t.exports=r.p+"img/empty.03bb1365.png"},fdf8:function(t,e,r){"use strict";e["a"]={methods:{configsFormat:function(t){var e=t||[],r=[];return e.forEach((function(t,e){r.push({id:t.id,computerCateTypeList:[]}),t.computerCateTypeList.forEach((function(t,n){r[e].computerCateTypeList.push({id:t.id,computerCateId:t.computerCateId,computerCateTypeMaterialList:[],oldPrice:t.oldPrice,oldMaterial:t.oldMaterial}),t.computerCateTypeMaterialList.forEach((function(t){r[e].computerCateTypeList[n].computerCateTypeMaterialList.push({id:t.id,materialNo:t.materialNo,actualSellingPrice:t.actualSellingPrice,core:t.core,independentSendGoods:t.independentSendGoods,materialTypeId:t.materialTypeId,quantity:t.quantity,wgData:t.wgData,gpuData:t.gpuData,lineData:t.lineData,installedLiveStream:t.installedLiveStream})}))}))})),r}}}}}]);