|
|
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-seckill"],{1015:function(t,e,i){"use strict";var n=i("4ea4");i("99af"),i("7db0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var o=n(i("1da1")),a=i("5cb4"),r={data:function(){return{timeList:[],goodsList:[],pageIndex:1,length:15,activityTime:{},loadingStatus:"loading",isLast:!1}},mounted:function(){this.getTimeList()},onReachBottom:function(){if("nomore"===this.loadingStatus)return!1;this.pageIndex++,this.getGoodsList()},methods:{getTimeList:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){var i,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,a.ApiGetSeckillTimes)();case 2:if(i=e.sent,n=i.error,o=i.result,!n){e.next=8;break}return uni.$u.toast(n.message),e.abrupt("return",!1);case 8:t.timeList=o,t.activityTime=o.find((function(t){return t.isInProgress}))||o[0],t.getGoodsList();case 11:case"end":return e.stop()}}),e)})))()},getGoodsList:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){var i,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loadingStatus="loading",e.next=3,(0,a.ApiGetSeckillGoods)({pageIndex:t.pageIndex,length:t.length,activityTimeId:t.activityTime.id});case 3:if(i=e.sent,n=i.error,o=i.result,!n){e.next=9;break}return uni.$u.toast(n.message),e.abrupt("return",!1);case 9:t.goodsList=t.goodsList.concat(o.records),o.records.length<t.length&&(t.loadingStatus="nomore");case 11:case"end":return e.stop()}}),e)})))()},changeTime:function(t){this.activityTime=t,this.pageIndex=1,this.goodsList=[],this.getGoodsList()}}};e.default=r},"11a3":function(t,e,i){var n=i("615a");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("140c4568",n,!0,{sourceMap:!1,shadowMode:!1})},"1de5":function(t,e,i){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},2433:function(t,e,i){"use strict";i.r(e);var n=i("f2c3"),o=i("c0f3");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("27a9");var r,s=i("f0c5"),u=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"5a885ee4",null,!1,n["a"],r);e["default"]=u.exports},"27a9":function(t,e,i){"use strict";var n=i("fd7d"),o=i.n(n);o.a},"42cf":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-view[data-v-5a885ee4], uni-scroll-view[data-v-5a885ee4], uni-swiper-item[data-v-5a885ee4]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-line-progress[data-v-5a885ee4]{align-items:stretch;position:relative;display:flex;flex-direction:row;flex:1;overflow:hidden;border-radius:100px}.u-line-progress__background[data-v-5a885ee4]{background-color:#ececec;border-radius:100px;flex:1}.u-line-progress__line[data-v-5a885
|