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.
shop-app/unpackage/dist/build/h5/static/js/pages-seckill.c3e9c645.js

1 line
18 KiB

3 years ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-seckill"],{1015:function(t,e,i){"use strict";var n=i("4ea4");i("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var a=n(i("1da1")),s=i("5cb4"),o={data:function(){return{timeList:[],goodsList:[],pageIndex:1,length:10,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,a.default)(regeneratorRuntime.mark((function e(){var i,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,s.ApiGetSeckillTimes)();case 2:if(i=e.sent,n=i.error,a=i.result,!n){e.next=8;break}return uni.$u.toast(n.message),e.abrupt("return",!1);case 8:t.timeList=a,t.activityTime=a[0],t.getGoodsList();case 11:case"end":return e.stop()}}),e)})))()},getGoodsList:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var i,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loadingStatus="loading",e.next=3,(0,s.ApiGetSeckillGoods)({pageIndex:t.pageIndex,length:t.length,activityTimeId:t.activityTime.id});case 3:if(i=e.sent,n=i.error,a=i.result,!n){e.next=9;break}return uni.$u.toast(n.message),e.abrupt("return",!1);case 9:t.goodsList=t.goodsList.concat(a.records),a.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=o},"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"),a=i("c0f3");for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("27a9");var o,r=i("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"5a885ee4",null,!1,n["a"],o);e["default"]=c.exports},"27a9":function(t,e,i){"use strict";var n=i("fd7d"),a=i.n(n);a.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-5a885ee4]{position:absolute;top:0;left:0;bottom:0;align-items:center;display:flex;flex-direction:row;color:#fff;border-radius:100px;transition:width .5s ease;justify-content:flex-end}.u-line-progress__text[data-v-5a885ee4]{font-size:10px;alig