1 |
- ;(function(){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}System.register(['./index-legacy.4b2d517a.js','./vendor-legacy.73abbe39.js'],function(exports){'use strict';var request,ref;return{setters:[function(module){request=module.r;},function(module){ref=module.M;}],execute:function execute(){var orderState=exports('o',{0:"\u5F85\u652F\u4ED8",1:"\u5F85\u53D1\u8D27",2:"\u5DF2\u53D1\u8D27",3:"\u5DF2\u5B8C\u6210",4:"\u5DF2\u5173\u95ED",5:"\u65E0\u6548\u8BA2\u5355",6:"\u5F85\u652F\u4ED8"});var cartCount=exports('c',ref(0));var getCartCount=exports('g',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var _yield$request$get,count;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return request.get("/api-mall-portal/home/content",{hideLoading:true});case 3:_yield$request$get=_context.sent;count=_yield$request$get.data.count;cartCount.value=count;_context.next=10;break;case 8:_context.prev=8;_context.t0=_context["catch"](0);case 10:case"end":return _context.stop();}}},_callee,null,[[0,8]]);})));}};});})();
|