pages-activity-presell-index.e7975904.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-presell-index"],{"13b8":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container",style:t.viewColor},[i("v-uni-view",{staticClass:"flash-sale"},[i("v-uni-view",{staticClass:"sys-head fixed"},[i("v-uni-view",{staticClass:"sys-bar",style:{height:t.sysHeight}}),t.isFixed?i("v-uni-view",{staticClass:"bg"}):t._e()],1),i("v-uni-view",{staticClass:"header"},[i("v-uni-image",{staticClass:"presellBg",attrs:{mode:"widthFix",src:t.domain+"/static/images/presell_header_banner.png",alt:""}})],1),i("v-uni-view",{staticClass:"main_count pad20"},[i("v-uni-view",{staticClass:"presellList acea-row",style:{"background-image":"url("+t.nav_bg+")"}},[i("v-uni-view",{staticClass:"timeList"},[t._l(t.timeList,(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"},[i("v-uni-text",[t._v(t._s(e))])],1)],1)]}))],2)],1),i("v-uni-view",{staticClass:"list bg-f"},[t._l(t.presellList,(function(e,a){return t.presellList.length>0?[i("v-uni-view",{key:a+"_0",staticClass:"item acea-row row-between-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goDetails(e)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:e.product.image}})],1),i("v-uni-view",{staticClass:"text acea-row row-column-between"},[i("v-uni-view",{staticClass:"name line2"},[t._v(t._s(e.store_name))]),i("v-uni-view",{staticClass:"item_tags acea-row row-middle"},[e.coupon?i("v-uni-text",{staticClass:"font-bg-red"},[t._v("领券")]):t._e(),1==e.delivery_free?i("v-uni-text",{staticClass:"tags_item"},[t._v("包邮")]):t._e()],1),i("v-uni-view",{staticClass:"progress",class:1==t.active?"":"progress-gray",style:"background-image:url("+t.domain+"/static/images/presell_buy_btn"+t.active+".png"},[i("v-uni-view",{staticClass:"presell_price acea-row"},[i("v-uni-text",{staticClass:"presell_text"},[t._v("预售:")]),i("v-uni-view",{staticClass:"price"},[i("priceFormat",{attrs:{price:e.price,weight:!0,intSize:"40",floatSize:"26",labelSize:"28"}})],1)],1)],1)],1)],1)]:t._e()})),0==t.presellList.length?[i("v-uni-view",{staticClass:"empty-box"},[i("v-uni-image",{attrs:{src:t.domain+"/static/images/empty-box.png"}}),i("v-uni-view",{staticClass:"txt"},[t._v("暂无预售商品,去看看其他商品吧~")])],1)]:t._e()],2)],1)],1),i("home")],1)},n=[]},"247f":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticStyle:{"touch-action":"none"},style:t.viewColor},[i("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px",bottom:t.bottom},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?i("v-uni-view",{staticClass:"homeCon",class:!0===t.homeActive?"on":""},[i("v-uni-navigator",{staticClass:"iconfont icon-ic_home",attrs:{"hover-class":"none",url:"/pages/index/index","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-ic_ShoppingCart1",attrs:{"hover-class":"none",url:"/pages/order_addcart/order_addcart","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-ic_user1",attrs:{"hover-class":"none",url:"/pages/user/index","open-type":"switchTab"}})],1):t._e(),i("v-uni-view",{staticClass:"pictrueBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{staticClass:"image pictruea",attrs:{src:!0===t.homeActive?t.domain+"/static/images/navbtn_open.gif":t.domain+"/static/images/navbtn_close.gif"}})],1)],1)],1)],1)},n=[]},2968:function(t,e,i){var a=i("87a7");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("0ecf5b3c",a,!0,{sourceMap:!1,shadowMode:!1})},"4c0c":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i("8f59"),n=i("aa10"),s={name:"Home",props:{},data:function(){return{domain:n.HTTP_REQUEST_URL,top:"",bottom:""}},computed:(0,a.mapGetters)(["homeActive","viewColor","keyColor"]),methods:{setTouchMove:function(t){t.touches[0].clientY<545&&t.touches[0].clientY>66&&(this.top=t.touches[0].clientY,this.bottom="auto")},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){this.bottom="50px"}};e.default=s},"4c81":function(t,e,i){"use strict";i.r(e);var a=i("cbdb"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},6003:function(t,e,i){"use strict";var a=i("d612"),n=i.n(a);n.a},6776:function(t,e,i){"use strict";var a=i("2968"),n=i.n(a);n.a},7935:function(t,e,i){"use strict";i.r(e);var a=i("4c0c"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},"87a7":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,".pictrueBox[data-v-0dd0b5be]{width:%?130?%;height:%?120?%}\n/*返回主页按钮*/.home[data-v-0dd0b5be]{position:fixed;color:#fff;text-align:center;z-index:9999;right:%?15?%;display:flex}.home .homeCon[data-v-0dd0b5be]{border-radius:%?50?%;opacity:0;height:0;color:#e93323;width:0}.home .homeCon.on[data-v-0dd0b5be]{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:var(--view-theme)}.home .homeCon .iconfont[data-v-0dd0b5be]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-0dd0b5be]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme);box-shadow:0 %?5?% %?12?% rgba(0,0,0,.5)}.home .pictrue .image[data-v-0dd0b5be]{width:100%;height:100%}.pictruea[data-v-0dd0b5be]{width:100%;height:100%;display:block;object-fit:cover;vertical-align:middle}",""]),t.exports=e},bee8b:function(t,e,i){"use strict";i.r(e);var a=i("13b8"),n=i("4c81");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("6003");var o=i("828b"),r=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"c21ec3aa",null,!1,a["a"],void 0);e["default"]=r.exports},cbdb:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223");var n=i("d727"),s=a(i("defc")),o=i("96e0"),r=i("8f59"),c=i("aa10"),l=uni.getSystemInfoSync().statusBarHeight+"px",u={computed:(0,o.configMap)({statusBarHeight:0},(0,r.mapGetters)(["viewColor","keyColor"])),components:{home:s.default},data:function(){return{sysHeight:l,domain:c.HTTP_REQUEST_URL,nav_bg:c.HTTP_REQUEST_URL+"/static/images/presell_nav_current1.png",presellList:[],timeList:["未开始","正在进行","已结束"],active:1,type:0,scrollLeft:0,interval:0,status:1,page:1,limit:10,loading:!1,loadend:!1,pageloading:!1,isFixed:!1}},onLoad:function(){this.getPresellProductList()},methods:{goBack:function(){uni.navigateBack()},getPresellProductList:function(){var t=this,e={page:t.page,limit:t.limit,type:t.active};t.loadend||t.pageloading||(this.pageloading=!0,(0,n.getPresellList)(e).then((function(e){var i=e.data.list,a=i.length<t.limit;t.page++,t.presellList=t.presellList.concat(i),uni.stopPullDownRefresh(),t.pageloading=!1,t.loadend=a})).catch((function(e){t.pageloading=!1})))},settimeList:function(t,e){this.active=e,this.type=this.active,this.nav_bg=this.domain+"/static/images/presell_nav_current"+this.active+".png",this.loadend=!1,this.page=1,this.presellList=[],this.getPresellProductList()},goDetails:function(t){uni.navigateTo({url:"/pages/activity/presell_details/index?id="+t.product_presell_id})}},onPullDownRefresh:function(){this.page=1,this.pageloading=!1,this.loadend=!1,this.presellList=[],this.getPresellProductList()},onPageScroll:function(t){this.isFixed=t.scrollTop>60},onReachBottom:function(){this.getPresellProductList()}};e.default=u},d612:function(t,e,i){var a=i("fa32");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("65ad8dbf",a,!0,{sourceMap:!1,shadowMode:!1})},d727:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return n.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(t){return n.default.get("store/product/assist/count",t,{noAuth:!0})},e.cancelReservationApi=function(t){return n.default.post("order/self/cancel/".concat(t))},e.getActivitycategory=function(t){return n.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t,e){return n.default.get("store/product/assist/detail/"+t,e)},e.getAssistList=function(t){return n.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return n.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return n.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return n.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t,e){return n.default.get("store/product/group/detail/"+t,e,{noAuth:!0})},e.getCombinationList=function(t){return n.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return n.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return n.default.post("combination/poster",t)},e.getCombinationUser=function(t){return n.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return n.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return n.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return n.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return n.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getReservationDate=function(t,e){return n.default.get("store/product/reservation/getMonth/".concat(t),e)},e.getReservationMerData=function(t){return n.default.get("store/merchant/detail/".concat(t))},e.getReservationTimes=function(t,e){return n.default.get("store/product/reservation/getDay/".concat(t),e)},e.getSeckillDetail=function(t){return n.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTime=function(){return n.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return n.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return n.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return n.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return n.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return n.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return n.default.post("store/product/assist/create/"+t)},e.postAssistHelp=function(t){return n.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return n.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return n.default.get("store/product/presell/agree")},e.scombinationCode=function(t){return n.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return n.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return n.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return n.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})};var n=a(i("fea3"))},defc:function(t,e,i){"use strict";i.r(e);var a=i("247f"),n=i("7935");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("6776");var o=i("828b"),r=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"0dd0b5be",null,!1,a["a"],void 0);e["default"]=r.exports},fa32:function(t,e,i){var a=i("c86c");e=a(!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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.container[data-v-c21ec3aa]{min-height:100vh;background:linear-gradient(270deg,#6d4adc,#7033d7 98%)}.sys-head .bg[data-v-c21ec3aa]{background:#7033d7}.noCommodity[data-v-c21ec3aa]{border-top:none}.flash-sale .header[data-v-c21ec3aa]{width:100%;position:relative}.flash-sale .main_count[data-v-c21ec3aa]{position:relative;margin-top:%?-40?%;padding-bottom:%?60?%;padding-bottom:calc(60rpx+ constant(safe-area-inset-bottom));padding-bottom:calc(%?60?% + env(safe-area-inset-bottom))}.flash-sale .header .presellBg[data-v-c21ec3aa]{width:%?750?%;box-sizing:border-box}.flash-sale .presellList[data-v-c21ec3aa]{bottom:0;height:%?112?%;background:#d3dbfc;border-radius:%?24?% %?24?% 0 0;background-size:100% 100%;background-repeat:no-repeat}.flash-sale .timeList[data-v-c21ec3aa]{display:flex;justify-content:center;margin:0 auto;width:100%}.flash-sale .timeList .item[data-v-c21ec3aa]{font-size:%?20?%;color:#666;text-align:center;box-sizing:border-box;width:33.333%;padding:%?26?% 0}.flash-sale .timeList .item .time[data-v-c21ec3aa]{font-size:%?26?%;color:#666}.flash-sale .timeList .item.on .time[data-v-c21ec3aa]{color:#7033d7;font-size:%?32?%;font-weight:500}.flash-sale .timeList .item.on .time span[data-v-c21ec3aa]{position:relative}.flash-sale .timeList .item.on .time span[data-v-c21ec3aa]::after{content:"";display:inline-block;width:100%;height:%?5?%;background:#7033d7;position:absolute;left:0;bottom:%?-8?%;border-radius:%?2?%}.item_tags[data-v-c21ec3aa]{margin-top:%?16?%}.item_tags .tags_item[data-v-c21ec3aa]{display:flex;font-size:%?20?%;text-align:center;border-radius:%?5?%;padding:0 %?4?%;height:%?28?%;align-items:center;justify-content:center;margin-right:%?8?%;color:#e93323;border:1px solid #e93323}.flash-sale .list[data-v-c21ec3aa]{border-radius:%?24?%;margin-top:%?-20?%}.flash-sale .list .item[data-v-c21ec3aa]{height:%?278?%;position:relative;padding:0 %?20?%}.flash-sale .list .item .pictrue[data-v-c21ec3aa]{width:%?240?%;height:%?240?%;border-radius:%?16?%}.flash-sale .list .item .pictrue uni-image[data-v-c21ec3aa]{width:100%;height:100%;border-radius:%?16?%}.flash-sale .list .item .text[data-v-c21ec3aa]{width:%?406?%;height:%?240?%}.flash-sale .list .item .text .name[data-v-c21ec3aa]{width:100%;font-size:%?28?%}.flash-sale .list .item .text .progress[data-v-c21ec3aa]{width:%?392?%;height:%?68?%;background-size:%?180?% %?68?%;background-position:100% 0;background-repeat:no-repeat;background-color:rgba(233,51,35,.1);border-radius:%?12?%}.flash-sale .list .item .text .progress.progress-gray[data-v-c21ec3aa]{opacity:.6}.flash-sale .list .item .text .progress .presell_price[data-v-c21ec3aa]{width:50%;padding:%?16?% 0 %?16?% %?16?%;color:#e93323;align-items:flex-end}.flash-sale .list .item .text .progress .presell_price .presell_text[data-v-c21ec3aa]{font-size:%?22?%;font-weight:700;margin-right:%?6?%}.empty-box[data-v-c21ec3aa]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:%?100?% 0 %?120?%}.empty-box uni-image[data-v-c21ec3aa]{width:%?414?%;height:%?305?%}.empty-box .txt[data-v-c21ec3aa]{font-size:%?26?%;color:#999}',""]),t.exports=e}}]);