(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/advance/index/index"],{"12cd":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("4795"));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return s(t)||u(t)||c(t)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,n){if(t){if("string"===typeof t)return l(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?l(t,n):void 0}}function u(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function s(t){if(Array.isArray(t))return l(t)}function l(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e0){var c=parseInt(o/1e3/60/60/24),u=parseInt(o/1e3/60/60%24),s=parseInt(o/1e3/60%60),l=parseInt(o/1e3%60);c>0?n.$set(t[a],"html","".concat(c,"天").concat(u,":").concat(s<10?"0"+s:s,":").concat(l<10?"0"+l:l)):n.$set(t[a],"html","".concat(u,":").concat(s<10?"0"+s:s,":").concat(l<10?"0"+l:l))}else n.$delete(t,a),n.product_list.length<10&&n.page_count>1&&(n.product_list=[],n.requestList())}))},set_interval:function(){var t=this;clearInterval(this.interval),this.cutoffTime(this.product_list),this.interval=setInterval((function(){t.cutoffTime(t.product_list)}),1e3)},requestList:function(){var t=this;return d(r.default.mark((function n(){var e,a;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$request({url:t.$api.advance.goods,method:"get",data:{page:t.page}});case 2:e=n.sent,0===e.code&&((a=t.product_list).push.apply(a,i(e.data.list)),t.page_count=e.data.pagination.page_count,t.set_interval());case 4:case"end":return n.stop()}}),n)})))()},requestBanner:function(){var t=this;return d(r.default.mark((function n(){return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.$request({url:t.$api.advance.banner,method:"get"}).then((function(n){0===n.code&&(t.picture_list=n.data.list)}));case 1:case"end":return n.stop()}}),n)})))()}},components:{"search-input":p,"index-swipe":v,"product-list":h},onShareAppMessage:function(){return this.$shareAppMessage({path:"/plugins/advance/index/index",title:this.$children[0].navigationBarTitle})},onReachBottom:function(){this.page