pages-activity-presell-index.ef02b802.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-presell-index"],{"032c":function(t,e,i){"use strict";i.r(e);var a=i("7141"),s=i("262f");for(var n in s)"default"!==n&&function(t){i.d(e,t,(function(){return s[t]}))}(n);i("1cb6");var o,r=i("f0c5"),c=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"6c588de2",null,!1,a["a"],o);e["default"]=c.exports},"1c33":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i("2f62"),s={name:"Home",props:{},data:function(){return{top:"",bottom:""}},computed:(0,a.mapGetters)(["homeActive"]),methods:{setTouchMove:function(t){var e=this;t.touches[0].clientY<545&&t.touches[0].clientY>66&&(e.top=t.touches[0].clientY,e.bottom="auto")},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){this.bottom="50px"}};e.default=s},"1cb6":function(t,e,i){"use strict";var a=i("c6df"),s=i.n(a);s.a},"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)}},"262f":function(t,e,i){"use strict";i.r(e);var a=i("1c33"),s=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=s.a},"2fdc":function(t,e,i){"use strict";var a=i("4ea4");i("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=i("c117"),n=a(i("032c")),o={components:{home:n.default},data:function(){return{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:{getPresellProductList:function(){var t=this,e={page:t.page,limit:t.limit,type:t.active};t.loadend||t.pageloading||(this.pageloading=!0,(0,s.getPresellList)(e).then((function(e){var i=e.data.list,a=i.length<t.limit;t.page++,t.presellList=t.presellList.concat(i),t.page=t.page,t.pageloading=!1,t.loadend=a})).catch((function(e){t.pageloading=!1})))},settimeList:function(t,e){var i=this;i.active=e,i.type=i.active,i.loadend=!1,i.page=1,i.presellList=[],i.getPresellProductList()},goDetails:function(t){uni.navigateTo({url:"/pages/activity/presell_details/index?id="+t.product_presell_id})}},onReachBottom:function(){this.getPresellProductList()}};e.default=o},3108:function(t,e,i){"use strict";var a=i("8a15"),s=i.n(a);s.a},"4d66":function(t,e,i){t.exports=i.p+"static/img/presell_bg.1385a7ad.png"},"5f87":function(t,e,i){"use strict";i.r(e);var a=i("2fdc"),s=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=s.a},6258:function(t,e,i){var a=i("24fb"),s=i("1de5"),n=i("bc4e"),o=i("a3d7");e=a(!1);var r=s(n),c=s(o);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/* 文章场景相关 */uni-page-body[data-v-19760c66]{background-color:#ff7f21}.noCommodity[data-v-19760c66]{border-top:none}.flash-sale .header[data-v-19760c66]{width:100%;position:relative}.flash-sale .main_count[data-v-19760c66]{position:relative;top:%?-150?%}.flash-sale .header .presellBg[data-v-19760c66]{width:%?750?%}.flash-sale .presellList[data-v-19760c66]{padding:0 %?20?%;bottom:0;margin:0 %?30?%;width:%?690?%;background:#fff;-webkit-border-radius:%?16?%;border-radius:%?16?%;line-height:%?80?%;height:%?80?%}.flash-sale .presellList .priceTag[data-v-19760c66]{width:%?75?%;height:%?70?%}.flash-sale .presellList .priceTag uni-image[data-v-19760c66]{opacity:1}.flash-sale .presellList .priceTag uni-image[data-v-19760c66]{width:100%;height:100%}.flash-sale .timeList[data-v-19760c66]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin:0 auto}.flash-sale .timeList .item[data-v-19760c66]{font-size:%?20?%;color:#666;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;width:%?224?%}.flash-sale .timeList .item .time[data-v-19760c66]{font-size:%?26?%;color:#aaa}.flash-sale .timeList .item.on .time[data-v-19760c66]{color:#fd6523;font-weight:600}.flash-sale .timeList .item.on .time span[data-v-19760c66]{position:relative}.flash-sale .timeList .item.on .time span[data-v-19760c66]::after{content:"";display:inline-block;width:100%;height:%?4?%;background:#fd6523;position:absolute;left:0;bottom:%?-4?%;-webkit-border-radius:%?2?%;border-radius:%?2?%}.activity[data-v-19760c66]{height:%?56?%;padding:0 11px;color:#e93323;font-size:%?22?%;line-height:%?50?%;position:relative;background-image:url('+r+");background-size:100%;background-repeat:no-repeat}.flash-sale .list[data-v-19760c66]{margin-top:%?24?%}.flash-sale .list .item[data-v-19760c66]{height:%?278?%;position:relative;width:%?690?%;margin:0 auto %?20?% auto;background-color:#fff;-webkit-border-radius:%?20?%;border-radius:%?20?%;padding:0 %?25?%}.flash-sale .list .item .pictrue[data-v-19760c66]{width:%?240?%;height:%?240?%;-webkit-border-radius:%?10?%;border-radius:%?10?%}.flash-sale .list .item .pictrue uni-image[data-v-19760c66]{width:100%;height:100%;-webkit-border-radius:%?10?%;border-radius:%?10?%}.flash-sale .list .item .text[data-v-19760c66]{width:%?380?%;font-size:%?30?%;color:#333}.flash-sale .list .item .text .name[data-v-19760c66]{width:100%;color:#282828;font-weight:700;font-size:%?28?%}.flash-sale .list .item .text .booking[data-v-19760c66]{font-size:%?30?%;color:#e93323}.flash-sale .list .item .text .booking .count[data-v-19760c66]{font-size:%?24?%;color:#e93323}.flash-sale .list .item .text .limit[data-v-19760c66]{font-size:%?22?%;color:#999;margin-bottom:%?5?%}.flash-sale .list .item .text .limit .limitPrice[data-v-19760c66]{margin-left:%?10?%}.flash-sale .list .item .text .progress[data-v-19760c66]{width:%?392?%;height:%?74?%;background-image:url("+c+");background-size:100%;margin-top:%?16?%}.flash-sale .list .item .text .progress .presell_price[data-v-19760c66]{float:left;width:50%;text-align:center;line-height:15px;padding:%?8?% 0}.flash-sale .list .item .text .progress .presell_price .presell_text[data-v-19760c66]{display:block;color:#e93323;font-size:%?20?%}.flash-sale .list .item .text .progress .presell_price .price[data-v-19760c66]{font-size:%?26?%;color:#e93323}.flash-sale .list .item .text .progress .presell_price .price uni-text[data-v-19760c66]{font-weight:700}.flash-sale .list .item .text .progress .order_btn[data-v-19760c66]{float:left;width:50%;text-align:center;color:#fff;font-size:%?26?%;line-height:%?76?%}.flash-sale .list .item .text .progress .unStartBtn[data-v-19760c66]{float:left;width:50%;text-align:center;color:#fff;font-size:%?20?%;padding:%?8?% 0}.flash-sale .list .item .text .progress .unStartBtn uni-text[data-v-19760c66]{font-size:%?22?%}body.?%PAGE?%[data-v-19760c66]{background-color:#ff7f21}",""]),t.exports=e},"6bac":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".pictrueBox[data-v-6c588de2]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-6c588de2]{position:fixed;color:#fff;text-align:center;z-index:9999;right:%?15?%;display:-webkit-box;display:-webkit-flex;display:flex}.home .homeCon[data-v-6c588de2]{-webkit-border-radius:%?50?%;border-radius:%?50?%;opacity:0;height:0;color:#e93323;width:0}.home .homeCon.on[data-v-6c588de2]{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:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;background:#f44939!important}.home .homeCon .iconfont[data-v-6c588de2]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-6c588de2]{width:%?86?%;height:%?86?%;-webkit-border-radius:50%;border-radius:50%;margin:0 auto}.home .pictrue .image[data-v-6c588de2]{width:100%;height:100%;-webkit-border-radius:50%;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},7135:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("v-uni-view",{staticClass:"flash-sale"},[a("v-uni-view",{staticClass:"header"},[a("img",{staticClass:"presellBg",attrs:{mode:"widthFix",src:i("4d66"),alt:""}})]),a("v-uni-view",{staticClass:"main_count"},[a("v-uni-view",{staticClass:"presellList acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"timeList"},[t._l(t.timeList,(function(e,i){return[a("v-uni-view",{key:i+"_0",staticClass:"item",class:t.active==i?"on":"",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.settimeList(e,i)}}},[a("v-uni-view",{staticClass:"time"},[a("span",[t._v(t._s(e))])])],1)]}))],2)],1),a("v-uni-view",{staticClass:"list"},[t._l(t.presellList,(function(e,i){return[a("v-uni-view",{key:i+"_0",staticClass:"item acea-row row-between-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goDetails(e)}}},[a("v-uni-view",{staticClass:"pictrue"},[a("v-uni-image",{attrs:{src:e.product.image}})],1),a("v-uni-view",{staticClass:"text acea-row row-column-around"},[a("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.store_name))]),a("v-uni-view",{staticClass:"booking"},[0!=e.presell_type&&0!=t.active?a("v-uni-text",{staticClass:"count",staticStyle:{color:"#999"}},[t._v("已预定"+t._s(e.seles?e.seles:0)+t._s(e.product.unit_name))]):a("v-uni-text",{staticStyle:{color:"#999","font-size":"24rpx"}},[t._v("暂未开始")])],1),e.coupon?a("v-uni-view",{staticClass:"coupon acea-row row-between-wrapper",staticStyle:{"margin-top":"14rpx"}},[a("v-uni-view",{staticClass:"hide line1 acea-row"},[a("v-uni-view",{staticClass:"activity"},[t._v("满"+t._s(e.coupon.use_min_price)+"减"+t._s(e.coupon.coupon_price))])],1)],1):t._e(),a("v-uni-view",{staticClass:"progress"},[a("v-uni-view",{staticClass:"presell_price"},[a("v-uni-text",{staticClass:"presell_text"},[t._v("预售价")]),a("v-uni-text",{staticClass:"price"},[t._v("¥"),a("v-uni-text",[t._v(t._s(e.price))])],1)],1),0!=t.active?a("v-uni-view",{staticClass:"order_btn"},[t._v(t._s(1===t.active?"立即预定":"已结束"))]):a("v-uni-view",{staticClass:"unStartBtn"},[a("v-uni-text",[t._v("开售时间")]),a("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),a("home")],1)},n=[]},7141:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticStyle:{"touch-action":"none"}},[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 bg-color-red",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",attrs:{src:!0===t.homeActive?"/static/images/close.gif":"/static/images/open.gif"}})],1)],1)],1)],1)},n=[]},"8a15":function(t,e,i){var a=i("6258");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("4f06").default;s("c0ec5954",a,!0,{sourceMap:!1,shadowMode:!1})},a3d7:function(t,e,i){t.exports=i.p+"static/img/priceBg.7aa3093a.png"},bc4e:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAAAiCAYAAACAyEHnAAABmUlEQVR4Xu3a0UrCYBTA8fNp0ERTtGURCBJ2E934DL1DD1kP4SN0VwhGF92UrhE5cxJtsYGw0ty5P/9dunOzPz/8vn3MzYa9U+GiQEkBBxSMaAoARVOJGQEKCFQFgKLKxBBQMKAqABRVJoaAggFVAaCoMjEEFAyoCgBFlYkhN704OnH7XoUUFPivQLqKE5fdvBGpXg069eSg3iAXBfIC8TL1E4lux8Hntch3DmV9pX3xgprfFq/263fSGSuQIfkKQjeR1frJN0A8nrVbzVajbiwNj1so8D5fROeT8KMYZQPKSGTvctjrUs5ogXiZjh6Cabbc7ISS3WSDaxSJiGQb1+797OVvga17EaAApRRKKlINhr1ju6l4cv/u+dWVLT1vg06T12TbWCrzRXS4azP71BevweuxbSXrM5Rtr8fZchNy4AaQYoF4mUoikT8OFk4k4QgfHqUF8iN8vsIv7cSACB9Xo0BXgH8UXSfzU0AxT0AXACi6TuangGKegC4AUHSdzE8BxTwBXQCg6DqZnwKKeQK6AEDRdTI/9QN+EIHHN2X4OwAAAABJRU5ErkJggg=="},c117:function(t,e,i){"use strict";var a=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getCombinationList=n,e.getCombinationUser=o,e.getActivitycategory=r,e.getCombinationDetail=c,e.getCombinationPink=l,e.postCombinationRemove=u,e.getSeckillDetail=d,e.getCombinationPoster=f,e.seckillCode=p,e.scombinationCode=g,e.getSeckillIndexTime=v,e.getSeckillList=h,e.getPresellList=m,e.getAssistList=b,e.initiateAssistApi=w,e.getAssistDetail=x,e.assistHelpList=_,e.presellAgreement=k,e.assistUserData=A,e.postAssistHelp=C,e.getAssistUser=y,e.getBargainUserList=L,e.getBargainUserCancel=z;var s=a(i("112d"));function n(t){return s.default.get("store/product/group/lst",t,{noAuth:!0})}function o(t){return s.default.get("store/product/group/count",t,{noAuth:!0})}function r(t){return s.default.get("product/spu/active/category/"+t,{},{noAuth:!0})}function c(t){return s.default.get("store/product/group/detail/"+t,{},{noAuth:!0})}function l(t){return s.default.get("store/product/group/get/"+t)}function u(t){return s.default.post("store/product/group/cancel",t)}function d(t){return s.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})}function f(t){return s.default.post("combination/poster",t)}function p(t,e){return s.default.get("seckill/code/"+t,e)}function g(t){return s.default.get("combination/code/"+t)}function v(){return s.default.get("store/product/seckill/select",{},{noAuth:!0})}function h(t){return s.default.get("store/product/seckill/lst",t,{noAuth:!0})}function m(t){return s.default.get("store/product/presell/lst",t,{noAuth:!0})}function b(t){return s.default.get("store/product/assist/lst",t,{noAuth:!0})}function w(t){return s.default.post("store/product/assist/create/"+t)}function x(t){return s.default.get("store/product/assist/detail/"+t)}function _(t,e){return s.default.get("store/product/assist/user/"+t,e)}function k(){return s.default.get("store/product/presell/agree")}function A(){return s.default.get("store/product/assist/count",{},{noAuth:!0})}function C(t){return s.default.post("store/product/assist/set/"+t)}function y(t){return s.default.get("store/product/assist/share/"+t)}function L(t){return s.default.get("store/product/assist/set/lst",t)}function z(t){return s.default.post("store/product/assist/set/delete/"+t)}},c148:function(t,e,i){"use strict";i.r(e);var a=i("7135"),s=i("5f87");for(var n in s)"default"!==n&&function(t){i.d(e,t,(function(){return s[t]}))}(n);i("3108");var o,r=i("f0c5"),c=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"19760c66",null,!1,a["a"],o);e["default"]=c.exports},c6df:function(t,e,i){var a=i("6bac");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("4f06").default;s("6a4e1020",a,!0,{sourceMap:!1,shadowMode:!1})}}]);