(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-presell-index"],{"06f6":function(t,e,i){"use strict";var a=i("937a"),o=i.n(a);o.a},"1f3e":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),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-shouye-xianxing",attrs:{"hover-class":"none",url:"/pages/index/index","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none",url:"/pages/order_addcart/order_addcart","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",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?"/static/images/navbtn_open.gif":"/static/images/navbtn_close.gif"}})],1)],1)],1)],1)},o=[]},"32e8":function(t,e,i){"use strict";i.r(e);var a=i("ae5c"),o=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},"3b3e":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return o.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(){return o.default.get("store/product/assist/count",{},{noAuth:!0})},e.getActivitycategory=function(t){return o.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t){return o.default.get("store/product/assist/detail/"+t)},e.getAssistList=function(t){return o.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return o.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return o.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return o.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t){return o.default.get("store/product/group/detail/"+t,{},{noAuth:!0})},e.getCombinationList=function(t){return o.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return o.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return o.default.post("combination/poster",t)},e.getCombinationUser=function(t){return o.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return o.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return o.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return o.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return o.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getSeckillDetail=function(t){return o.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTime=function(){return o.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return o.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return o.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return o.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return o.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return o.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return o.default.post("store/product/assist/create/"+t)},e.postAssistHelp=function(t){return o.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return o.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return o.default.get("store/product/presell/agree")},e.scombinationCode=function(t){return o.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return o.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return o.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return o.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})};var o=a(i("b5ef"))},"3e0f":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af");var o=i("3b3e"),n=a(i("a394")),s=i("4f1b"),r=i("26cb"),l=i("8342"),c={computed:(0,s.configMap)({statusBarHeight:0},(0,r.mapGetters)(["viewColor","keyColor"])),components:{home:n.default},data:function(){return{domain:l.HTTP_REQUEST_URL,topImage:"",presellList:[],timeList:["未开始","正在进行","已结束"],active:1,type:0,scrollLeft:0,interval:0,status:1,page:1,limit:8,loading:!1,loadend:!1,pageloading:!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,o.getPresellList)(e).then((function(e){var i=e.data.list,a=i.length66&&(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=n},c803:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),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:"fixed-head"},[i("v-uni-view",{staticClass:"sys-head",style:{height:t.statusBarHeight}}),i("v-uni-view",{staticClass:"tool-bar"},[i("v-uni-view",{staticClass:"iconfont icon-xiangzuo",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"header"},[i("v-uni-image",{staticClass:"presellBg",attrs:{mode:"widthFix",src:t.domain+"/static/diy/presell_title"+t.keyColor+".png",alt:""}})],1),i("v-uni-view",{staticClass:"main_count"},[i("v-uni-view",{staticClass:"presellList acea-row row-between-wrapper"},[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"},[t._l(t.presellList,(function(e,a){return[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-around"},[i("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.store_name))]),i("v-uni-view",{staticClass:"booking"},[0!=e.presell_type&&0!=t.active?i("v-uni-text",{staticClass:"count",staticStyle:{color:"#BFBFBF"}},[t._v("已预定"+t._s(e.seles?e.seles:0)+t._s(e.product.unit_name))]):i("v-uni-text",{staticStyle:{color:"#999","font-size":"24rpx"}},[t._v("暂未开始")])],1),e.coupon?i("v-uni-view",{staticClass:"coupon acea-row row-between-wrapper",staticStyle:{"margin-top":"14rpx"}},[i("v-uni-view",{staticClass:"hide line1 acea-row"},[i("v-uni-view",{staticClass:"activity"},[t._v("满"+t._s(e.coupon.use_min_price)+"减"+t._s(e.coupon.coupon_price))])],1)],1):t._e(),i("v-uni-view",{staticClass:"progress",style:"background-image:url("+t.domain+"/static/diy/priceBg"+t.keyColor+".png"},[i("v-uni-view",{staticClass:"presell_price"},[i("v-uni-text",{staticClass:"presell_text"},[t._v("预售价")]),i("v-uni-text",{staticClass:"price"},[t._v("¥"),i("v-uni-text",[t._v(t._s(e.price))])],1)],1),0!=t.active?i("v-uni-view",{staticClass:"order_btn"},[t._v(t._s(1===t.active?"立即预定":"已结束"))]):i("v-uni-view",{staticClass:"unStartBtn"},[i("v-uni-text",[t._v("开售时间")]),i("v-uni-view",[t._v(t._s(new Date(e.start_time.replace(/-/g,"/")).getMonth()+1)+"月\n\t\t\t\t\t\t\t\t\t"+t._s(new Date(e.start_time.replace(/-/g,"/")).getDate())+"日 \n\t\t\t\t\t\t\t\t\t"+t._s(new Date(e.start_time.replace(/-/g,"/")).getHours()<10?"0"+new Date(e.start_time.replace(/-/g,"/")).getHours():new Date(e.start_time.replace(/-/g,"/")).getHours()||"00")+":\n\t\t\t\t\t\t\t\t\t"+t._s(new Date(e.start_time.replace(/-/g,"/")).getMinutes()<10?"0"+new Date(e.start_time.replace(/-/g,"/")).getMinutes():new Date(e.start_time.replace(/-/g,"/")).getMinutes()||"00"))])],1)],1)],1)],1)]}))],2)],1)],1),i("home")],1)},o=[]},e88f4:function(t,e,i){"use strict";i.r(e);var a=i("3e0f"),o=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},eaa6:function(t,e,i){"use strict";i.r(e);var a=i("c803"),o=i("e88f4");for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("06f6");var s=i("f0c5"),r=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"199e33a5",null,!1,a["a"],void 0);e["default"]=r.exports}}]);