cyywl_shop_app/dist/static/js/pages-activity-goods_seckil...

1 line
17 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-goods_seckill-index"],{1703:function(t,e,a){"use strict";a.r(e);var i=a("3d09c"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"1f12":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"uni-page-body[data-v-2faea8c0]{background-color:#f5f5f5!important}body.?%PAGE?%[data-v-2faea8c0]{background-color:#f5f5f5!important}",""]),t.exports=e},2799:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".pictrueBox[data-v-47a70398]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-47a70398]{position:fixed;color:#fff;text-align:center;z-index:9999;right:%?15?%;display:flex}.home .homeCon[data-v-47a70398]{border-radius:%?50?%;opacity:0;height:0;color:$theme-color;width:0}.home .homeCon.on[data-v-47a70398]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:#f44939!important}.home .homeCon .iconfont[data-v-47a70398]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-47a70398]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto}.home .pictrue .image[data-v-47a70398]{width:100%;height:100%;border-radius:50%;-webkit-transform:rotate(90deg);transform:rotate(90deg);ms-transform:rotate(90deg);moz-transform:rotate(90deg);webkit-transform:rotate(90deg);o-transform:rotate(90deg)}",""]),t.exports=e},"3d09c":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d81d"),a("99af");var n=i(a("ade3")),o=a("5841"),s=i(a("b7f1")),r=getApp(),l={components:{home:s.default},data:function(){var t;return t={circular:!0,autoplay:!0,interval:500,topImage:"",seckillList:[],timeList:[],active:0,scrollLeft:0},(0,n.default)(t,"interval",0),(0,n.default)(t,"status",1),(0,n.default)(t,"countDownHour","00"),(0,n.default)(t,"countDownMinute","00"),(0,n.default)(t,"countDownSecond","00"),(0,n.default)(t,"page",1),(0,n.default)(t,"limit",4),(0,n.default)(t,"loading",!1),(0,n.default)(t,"loadend",!1),(0,n.default)(t,"pageloading",!1),(0,n.default)(t,"dataList",[]),(0,n.default)(t,"returnShow",!0),(0,n.default)(t,"navH",""),t},onLoad:function(){var t=getCurrentPages();this.returnShow=1!==t.length,this.navH=r.globalData.navHeight-18,this.getSeckillConfig()},methods:{goBack:function(){uni.navigateBack()},getSeckillConfig:function(){var t=this;(0,o.getSeckillHeaderApi)().then((function(e){e.data.map((function(t){t.slide=JSON.parse(t.slide)})),t.dataList=e.data,t.getSeckillList(),t.seckillList=[],t.page=1,t.status=t.dataList[t.active].status,t.getSeckillList()}))},getSeckillList:function(){var t=this,e={page:t.page,limit:t.limit};t.loadend||t.pageloading||(this.pageloading=!0,(0,o.getSeckillList)(t.dataList[t.active].id,e).then((function(e){var a=e.data.list,i=a.length<t.limit;t.page++,t.seckillList=t.seckillList.concat(a),t.page=t.page,t.pageloading=!1,t.loadend=i})).catch((function(e){t.pageloading=!1})))},settimeList:function(t,e){this.active=e,this.interval&&(clearInterval(this.interval),this.interval=null),this.interval=0,this.countDownHour="00",this.countDownMinute="00",this.countDownSecond="00",this.status=this.dataList[this.active].status,this.loadend=!1,this.page=1,this.seckillList=[],this.getSeckillList()},goDetails:function(t){uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id="+t.id})}},onReachBottom:function(){this.getSeckillList()}};e.default=l},"3fa4":function(t,e,a){"use strict";a.r(e);var i=a("613d"),n=a("1703");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("8759"),a("9423");var s=a("f0c5"),r=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"2faea8c0",null,!1,i["a"],void 0);e["default"]=r.exports},"545a":function(t,e,a){t.exports=a.p+"static/img/noShopper.aa4c3ad3.png"},5841:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.bargainHeaderApi=function(){return n.default.get("bargain/header")},e.bargainUserCancel=function(t){return n.default.post("bargain/user/cancel",{bargainId:t})},e.combinationHeaderApi=function(){return n.default.get("combination/header")},e.getBargainDetail=function(t){return n.default.get("bargain/detail/"+t)},e.getBargainIndexApi=function(){return n.default.get("bargain/index",{},{noAuth:!0})},e.getBargainList=function(t){return n.default.get("bargain/list",t,{noAuth:!0})},e.getBargainPoster=function(t){return n.default.post("bargain/poster",t)},e.getBargainUser=function(t){return n.default.get("bargain/user",t)},e.getBargainUserCancel=function(t){return n.default.post("/bargain/user/cancel",t)},e.getBargainUserList=function(t){return n.default.get("bargain/record",t)},e.getCombinationDetail=function(t){return n.default.get("combination/detail/"+t)},e.getCombinationIndexApi=function(){return n.default.get("combination/index",{},{noAuth:!0})},e.getCombinationList=function(t){return n.default.get("combination/list",t,{noAuth:!0})},e.getCombinationMore=function(t){return n.default.get("combination/more",t,{noAuth:!0})},e.getCombinationPink=function(t){return n.default.get("combination/pink/"+t)},e.getCombinationPoster=function(t){return n.default.post("combination/poster",t)},e.getSeckillDetail=function(t){return n.default.get("seckill/detail/"+t)},e.getSeckillHeaderApi=function(){return n.default.get("seckill/header",{},{noAuth:!0})},e.getSeckillIndexApi=function(){return n.default.get("seckill/index",{},{noAuth:!0})},e.getSeckillIndexTime=function(){return n.default.get("seckill/index",{},{noAuth:!0})},e.getSeckillList=function(t,e){return n.default.get("seckill/list/"+t,e,{noAuth:!0})},e.postBargainHelp=function(t){return n.default.post("bargain/help",t)},e.postBargainHelpList=function(t,e){return n.default.get("bargain/help/list?limit="+t.limit+"&page="+t.page,e,{})},e.postBargainHelpPrice=function(t){return n.default.post("bargain/help/price",t)},e.postBargainStart=function(t){return n.default.post("bargain/start",{bargainId:t})},e.postCombinationRemove=function(t){return n.default.post("combination/remove",t)},e.scombinationCode=function(t){return n.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return n.default.get("seckill/code/"+t,e)};var n=i(a("0a86"))},"613d":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("v-uni-view",{staticClass:"flash-sale"},[t.returnShow?i("v-uni-view",{staticClass:"iconfont icon-xiangzuo",style:"top:"+t.navH/2+"rpx",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack.apply(void 0,arguments)}}}):t._e(),i("v-uni-view",{staticClass:"saleBox"}),t.dataList.length?i("v-uni-view",{staticClass:"header"},[i("v-uni-swiper",{attrs:{"indicator-dots":"true",autoplay:"true",circular:t.circular,interval:"3000",duration:"1500","indicator-color":"rgba(255,255,255,0.6)","indicator-active-color":"#fff"}},[t._l(t.dataList[t.active].slide,(function(t,e){return[i("v-uni-swiper-item",{key:e+"_0",staticClass:"borRadius14"},[i("v-uni-image",{staticClass:"slide-image borRadius14",attrs:{src:t.sattDir,"lazy-load":!0}})],1)]}))],2)],1):t._e(),i("v-uni-view",{staticClass:"seckillList acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"priceTag"},[i("v-uni-image",{attrs:{src:"/static/images/priceTag.png"}})],1),i("v-uni-view",{staticClass:"timeLsit"},[i("v-uni-scroll-view",{staticClass:"scroll-view_x",staticStyle:{width:"auto",overflow:"hidden"},attrs:{"scroll-x":!0,"scroll-with-animation":!0,"scroll-left":t.scrollLeft}},[t._l(t.dataList,(function(e,a){return[i("v-uni-view",{key:a+"_0",staticClass:"item",class:t.active==a?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.settimeList(e,a)}}},[i("v-uni-view",{staticClass:"time"},[t._v(t._s(e.time.split(",")[0]))]),i("v-uni-view",{staticClass:"state"},[t._v(t._s(e.statusName))])],1)]}))],2)],1)],1),t.seckillList.length>0?i("v-uni-view",{staticClass:"list pad30"},[t._l(t.seckillList,(function(e,a){return[i("v-uni-view",{key:a+"_0",staticClass:"item acea-row row-between-wrapper",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goDetails(e)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:e.image}})],1),i("v-uni-view",{staticClass:"text acea-row row-column-around"},[i("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"money"},[i("v-uni-text",{staticClass:"font-color"},[t._v("¥")]),i("v-uni-text",{staticClass:"num font-color"},[t._v(t._s(e.price))]),i("v-uni-text",{staticClass:"y_money"},[t._v("¥"+t._s(e.otPrice))])],1),i("v-uni-view",{staticClass:"limit"},[t._v("限量"),i("v-uni-text",{staticClass:"limitPrice"},[t._v(t._s(e.quota)+" "+t._s(e.unitName))])],1),i("v-uni-view",{staticClass:"progress"},[i("v-uni-view",{staticClass:"bg-reds",style:"width:"+e.percent+"%;"}),i("v-uni-view",{staticClass:"piece"},[t._v("已抢"+t._s(e.percent)+"%")])],1)],1),2==t.status?i("v-uni-view",{staticClass:"grab bg-color"},[t._v("马上抢")]):1==t.status?i("v-uni-view",{staticClass:"grab bg-color"},[t._v("未开始")]):i("v-uni-view",{staticClass:"grab bg-color-hui"},[t._v("已结束")])],1)]}))],2):t._e()],1),0!=t.seckillList.length||1==t.page&&0!=t.active?t._e():i("v-uni-view",{staticClass:"noCommodity"},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:a("545a")}})],1)],1),i("home")],1)},n=[]},"7b73":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticStyle:{"touch-action":"none"}},[a("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px"},attrs:{id:"right-nav"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.setTouchMove.apply(void 0,arguments)}}},[t.homeActive?a("v-uni-view",{staticClass:"homeCon bg-color-red",class:!0===t.homeActive?"on":""},[a("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none",url:"/pages/index/index","open-type":"switchTab"}}),a("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none",url:"/pages/order_addcart/order_addcart","open-type":"switchTab"}}),a("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none",url:"/pages/user/index","open-type":"switchTab"}})],1):t._e(),a("v-uni-view",{staticClass:"pictrueBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"pictrue"},[a("v-uni-image",{staticClass:"image",attrs:{src:!0===t.homeActive?"/static/images/close.gif":"/static/images/open.gif"}})],1)],1)],1)],1)},n=[]},"7ecd":function(t,e,a){var i=a("24fb");e=i(!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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.icon-xiangzuo[data-v-2faea8c0]{font-size:%?40?%;color:#fff;position:fixed;left:%?30?%;z-index:99;-webkit-transform:translateY(-20%);transform:translateY(-20%)}.flash-sale .header[data-v-2faea8c0]{width:%?710?%;height:%?330?%;margin:%?-276?% auto 0 auto;border-radius:%?14?%;overflow:hidden}.flash-sale .header uni-swiper[data-v-2faea8c0]{height:%?330?%!important;border-radius:%?14?%;overflow:hidden}.flash-sale .header uni-image[data-v-2faea8c0]{width:100%;height:100%;border-radius:%?14?%;overflow:hidden}.flash-sale .header uni-image img[data-v-2faea8c0]{border-radius:%?14?%}.flash-sale .seckillList[data-v-2faea8c0]{padding:%?25?%}.flash-sale .seckillList .priceTag[data-v-2faea8c0]{width:%?75?%;height:%?70?%}.flash-sale .seckillList .priceTag uni-image[data-v-2faea8c0]{width:100%;height:100%}.flash-sale .timeLsit[data-v-2faea8c0]{width:%?596?%;white-space:nowrap}.flash-sale .timeLsit .item[data-v-2faea8c0]{display:inline-block;font-size:%?20?%;color:#666;text-align:center;box-sizing:border-box;margin-right:%?30?%;width:%?130?%}.flash-sale .timeLsit .item .time[data-v-2faea8c0]{font-size:%?36?%;font-weight:600;color:#333}.flash-sale .timeLsit .item.on .time[data-v-2faea8c0]{color:#e93323}.flash-sale .timeLsit .item.on .state[data-v-2faea8c0]{height:%?30?%;line-height:%?30?%;border-radius:%?15?%;width:%?128?%;\n /* padding: 0 12rpx; */background:linear-gradient(90deg,#fc194b,#fc3c20);color:#fff}.flash-sale .countDown[data-v-2faea8c0]{height:%?92?%;border-bottom:%?1?% solid #f0f0f0;margin-top:%?-14?%;font-size:%?28?%;color:#282828}.flash-sale .countDown .num[data-v-2faea8c0]{font-size:%?28?%;font-weight:700;background-color:#ffcfcb;padding:%?4?% %?7?%;border-radius:%?3?%}.flash-sale .countDown .text[data-v-2faea8c0]{font-size:%?28?%;color:#282828;margin-right:%?13?%}.flash-sale .list .item[data-v-2faea8c0]{height:%?230?%;position:relative;\n /* width: 710rpx; */margin:0 auto %?20?% auto;background-color:#fff;border-radius:%?14?%;padding:%?25?% %?24?%}.flash-sale .list .item .pictrue[data-v-2faea8c0]{width:%?180?%;height:%?180?%;border-radius:%?10?%;background-color:#f5f5f5}.flash-sale .list .item .pictrue uni-image[data-v-2faea8c0]{width:100%;height:100%;border-radius:%?10?%}.flash-sale .list .item .text[data-v-2faea8c0]{width:%?440?%;font-size:%?30?%;color:#333;height:%?166?%}.flash-sale .list .item .text .name[data-v-2faea8c0]{width:100%}.flash-sale .list .item .text .money[data-v-2faea8c0]{font-size:%?30?%;color:#e93323}.flash-sale .list .item .text .money .num[data-v-2faea8c0]{font-size:%?40?%;font-weight:500;font-family:Guildford Pro}.flash-sale .list .item .text .money .y_money[data-v-2faea8c0]{font-size:%?24?%;color:#999;-webkit-text-decoration-line:line-through;text-decoration-line:line-through;margin-left:%?15?%}.flash-sale .list .item .text .limit[data-v-2faea8c0]{font-size:%?22?%;color:#999;margin-bottom:%?5?%}.flash-sale .list .item .text .limit .limitPrice[data-v-2faea8c0]{margin-left:%?10?%}.flash-sale .list .item .text .progress[data-v-2faea8c0]{overflow:hidden;background-color:#eee;width:%?260?%;border-radius:%?18?%;height:%?18?%;position:relative}.flash-sale .list .item .text .progress .bg-reds[data-v-2faea8c0]{width:0;height:100%;transition:width .6s ease;background:linear-gradient(90deg,#e93323,#ff8933)}.flash-sale .list .item .text .progress .piece[data-v-2faea8c0]{position:absolute;left:8%;-webkit-transform:translateY(-50%);transform:translateY(-50%);top:49%;font-size:%?16?%;color:#ffb9b9}.flash-sale .list .item .grab[data-v-2faea8c0]{font-size:%?28?%;color:#fff;width:%?150?%;height:%?54?%;border-radius:%?27?%;text-align:center;line-height:%?54?%;position:absolute;right:%?30?%;bottom:%?30?%;background:#bbb}.flash-sale .saleBox[data-v-2faea8c0]{width:100%;height:%?298?%;background:#e93323;border-radius:0 0 %?50?% %?50?%}',""]),t.exports=e},"83a8":function(t,e,a){var i=a("1f12");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("3dfab1fa",i,!0,{sourceMap:!1,shadowMode:!1})},8759:function(t,e,a){"use strict";var i=a("83a8"),n=a.n(i);n.a},9423:function(t,e,a){"use strict";var i=a("a480"),n=a.n(i);n.a},9801:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a("26cb"),n={name:"Home",props:{},data:function(){return{top:"500"}},computed:(0,i.mapGetters)(["homeActive"]),methods:{setTouchMove:function(t){t.touches[0].clientY<545&&t.touches[0].clientY>66&&(this.top=t.touches[0].clientY)},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){}};e.default=n},a3aa:function(t,e,a){"use strict";var i=a("f6b6"),n=a.n(i);n.a},a480:function(t,e,a){var i=a("7ecd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("32559490",i,!0,{sourceMap:!1,shadowMode:!1})},b7f1:function(t,e,a){"use strict";a.r(e);var i=a("7b73"),n=a("f72c");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("a3aa");var s=a("f0c5"),r=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"47a70398",null,!1,i["a"],void 0);e["default"]=r.exports},f6b6:function(t,e,a){var i=a("2799");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("2ff3027d",i,!0,{sourceMap:!1,shadowMode:!1})},f72c:function(t,e,a){"use strict";a.r(e);var i=a("9801"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a}}]);