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qamph6A/HW81An20ofOdFIcfkvmU5hCPYMbfQK/1YvrPS6mHzlKJZpOOONivJ2Q0i6cXweYj0Zip20tmHPSmZeQ7cwMZvh0MKZKr0DKufD8AEbPediP08bSI5WmdbvA/wkwAA0RLWTsP6UIAAAAAElFTkSuQmCC"},5608:function(t,i,e){"use strict";var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"time"},[t._v("\n "+t._s(t.tipText)),!0===t.isDay?e("span",{staticClass:"styleAll"},[t._v(t._s(t.day))]):t._e(),e("span",{staticClass:"timeTxt"},[t._v(t._s(t.dayText))]),e("span",{staticClass:"styleAll"},[t._v(t._s(t.hour))]),e("span",{staticClass:"timeTxt"},[t._v(t._s(t.hourText))]),e("span",{staticClass:"styleAll"},[t._v(t._s(t.minute))]),e("span",{staticClass:"timeTxt"},[t._v(t._s(t.minuteText))]),e("span",{staticClass:"styleAll"},[t._v(t._s(t.second))]),e("span",{staticClass:"timeTxt"},[t._v(t._s(t.secondText))])])},a=[],o=(e("163d"),{name:"CountDown",props:{tipText:{type:String,default:"倒计时"},dayText:{type:String,default:"天"},hourText:{type:String,default:"时"},minuteText:{type:String,default:"分"},secondText:{type:String,default:"秒"},datatime:{type:Number,default:0},isDay:{type:Boolean,default:!0}},data:function(){return{day:"00",hour:"00",minute:"00",second:"00"}},created:function(){this.show_time()},mounted:function(){},methods:{show_time:function(){var t=this;function i(){var i=t.datatime-Date.parse(new Date)/1e3,e=0,n=0,a=0,o=0;i>0?(e=!0===t.isDay?Math.floor(i/86400):0,n=Math.floor(i/3600)-24*e,a=Math.floor(i/60)-24*e*60-60*n,o=Math.floor(i)-24*e*60*60-60*n*60-60*a,n<=9&&(n="0"+n),a<=9&&(a="0"+a),o<=9&&(o="0"+o),t.day=e,t.hour=n,t.minute=a,t.second=o):(t.day="00",t.hour="00",t.minute="00",t.second="00")}i(),setInterval(i,1e3)}}}),s=o,r=e("623f"),c=Object(r["a"])(s,n,a,!1,null,null,null);i["a"]=c.exports},a2cd:function(t,i,e){"use strict";var n=e("238a");t.exports=function(t,i){return!!t&&n((function(){i?t.call(null,(function(){}),1):t.call(null)}))}},acda:function(t,i,e){},c32d:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"group-con"},[n("div",{staticClass:"header acea-row row-between-wrapper"},[n("div",{staticClass:"pictrue"},[n("img",{attrs:{src:t.storeCombination.image}})]),n("div",{staticClass:"text"},[n("div",{staticClass:"line1",domProps:{textContent:t._s(t.storeCombination.title)}}),n("div",{staticClass:"money"},[t._v("\n ¥\n "),n("span",{staticClass:"num",domProps:{textContent:t._s(t.storeCombination.price)}}),n("span",{staticClass:"team cart-color",domProps:{textContent:t._s(t.storeCombination.people+"人拼")}})])]),-1===t.pinkBool?n("div",{staticClass:"iconfont icon-pintuanshibai"}):1===t.pinkBool?n("div",{staticClass:"iconfont icon-pintuanchenggong font-color-red"}):t._e()]),n("div",{staticClass:"wrapper"},[n("div",{staticClass:"title acea-row row-center-wrapper"},[n("div",{staticClass:"line"}),n("div",{staticClass:"name acea-row row-center-wrapper"},[t._v("\n 剩余\n "),n("CountDown",{attrs:{"is-day":!1,"tip-text":"","day-text":"","hour-text":" : ","minute-text":" : ","second-text":"",datatime:t.pinkT.stop_time}}),t._v("结束\n ")],1),n("div",{staticClass:"line"})]),1===t.pinkBool?n("div",{staticClass:"tips font-color-red"},[t._v("\n 恭喜您拼团成功\n ")]):-1===t.pinkBool?n("div",{staticClass:"tips"},[t._v("\n 还差"+t._s(t.count)+"人,拼团失败\n ")]):0===t.pinkBool?n("div",{staticClass:"tips font-color-red"},[t._v("\n 拼团中,还差"+t._s(t.count)+"人拼团成功\n ")]):t._e(),n("div",{staticClass:"list acea-row row-middle",class:[1===t.pinkBool||-1===t.pinkBool?"result":"",t.iShidden?"on":""]},[n("div",{staticClass:"pictrue"},[n("img",{attrs:{src:t.pinkT.avatar}})]),t.pinkAll.length>0?n("div",{staticClass:"acea-row row-middle"},t._l(t.pinkAll,(function(t,i){return n("div",{key:i,staticClass:"pictrue"},[n("img",{attrs:{src:t.avatar}})])})),0):t._e(),t._l(t.count,(function(t){return n("div",{key:t,staticClass:"pictrue"},[n("img",{staticClass:"img-none",attrs:{src:e("1483")}})])}))],2),(1===t.pinkBool||-1===t.pinkBool)&&t.count>9?n("div",{staticClass:"lookAll acea-row row-center-wrapper",on:{click:t.lookAll}},[t._v("\n "+t._s(t.iShidden?"收起":"查看全部")+"\n "),n("span",{staticClass:"iconfont",class:t.iShidden?"icon-xiangshang":"icon-xiangxia"})]):t._e(),1===t.userBool&&0==t.isOk&&0===t.pinkBool?n("div",{staticClass:"teamBnt bg-color-red",on:{click:t.goPoster}},[t._v("\n 邀请好友参团\n ")]):0===t.userBool&&0===t.pinkBool&&t.count>0?n("div",{staticClass:"teamBnt bg-color-red",on:{click:t.pay}},[t._v("\n 我要参团\n ")]):t._e(),1===t.pinkBool||-1===t.pinkBool?n("div",{staticClass:"teamBnt bg-color-red",on:{click:function(i){return t.goDetail(t.storeCombination.id)}}},[t._v("\n 再次开团\n ")]):t._e(),0===t.pinkBool&&1===t.userBool?n("div",{staticClass:"cancel",on:{click:t.getCombinationRemove}},[n("span",{staticClass:"iconfont icon-guanbi3"}),t._v("取消开团\n ")]):t._e(),1===t.pinkBool?n("div",{staticClass:"lookOrder",on:{click:t.goOrder}},[t._v("\n 查看订单信息\n "),n("span",{staticClass:"iconfont icon-xiangyou"})]):t._e()]),n("div",{staticClass:"group-recommend"},[n("div",{staticClass:"title acea-row row-between-wrapper"},[n("div",[t._v("大家都在拼")]),n("div",{staticClass:"more",on:{click:t.goList}},[t._v("\n 更多拼团\n "),n("span",{staticClass:"iconfont icon-jiantou"})])]),n("div",{staticClass:"list acea-row row-middle"},t._l(t.storeCombinationHost,(function(i,e){return n("div",{key:e,staticClass:"item",on:{click:function(e){return t.goDetail(i.id)}}},[n("div",{staticClass:"pictrue"},[n("img",{attrs:{src:i.image}}),n("div",{staticClass:"team",domProps:{textContent:t._s(i.people+"人团")}})]),n("div",{staticClass:"name line1",domProps:{textContent:t._s(i.title)}}),n("div",{staticClass:"money font-color-red",domProps:{textContent:t._s("¥"+i.price)}})])})),0)]),n("Product-window",{attrs:{attr:t.attr},on:{changeFun:t.changeFun}})],1)},a=[],o=(e("c904"),e("9a33"),e("3bf2")),s=(e("cc57"),e("5608")),r=e("c6da"),c=e("ca41"),u=e("73f5"),l="GroupRule",d={name:l,components:{CountDown:s["a"],ProductWindow:r["a"]},props:{},data:function(){return{currentPinkOrder:"",isOk:0,pinkBool:0,userBool:0,pinkAll:[],pinkT:[],storeCombination:[],storeCombinationHost:[],pinkId:0,count:0,iShidden:!1,isOpen:!1,attr:{cartAttr:!1,productSelect:{image:"",store_name:"",price:"",quota:0,unique:"",cart_num:1,quota_show:0,product_stock:0},attrValue:"",productAttr:[]}}},watch:{$route:function(t){var i=this;t.name===l&&(i.pinkId=i.$route.params.id,i.getCombinationPink())}},mounted:function(){var t=this;t.pinkId=t.$route.params.id,t.getCombinationPink()},methods:{changeFun:function(t){"object"!==Object(o["a"])(t)&&(t={});var i=t.action||"",e=void 0===t.value?"":t.value;this[i]&&this[i](e)},changeattr:function(t){var i=this;i.attr.cartAttr=t},ChangeAttr:function(t){var i=this.productValue[t];i?(this.$set(this.attr.productSelect,"image",i.image),this.$set(this.attr.productSelect,"price",i.price),this.$set(this.attr.productSelect,"quota",i.quota),this.$set(this.attr.productSelect,"unique",i.unique),this.$set(this.attr.productSelect,"cart_num",1),this.$set(this.attr.productSelect,"product_stock",i.product_stock),this.$set(this.attr.productSelect,"quota_show",i.quota_show),this.$set(this,"attrValue",t),this.$set(this,"attrTxt","已选择")):(this.$set(this.attr.productSelect,"image",this.storeCombination.image),this.$set(this.attr.productSelect,"price",this.storeCombination.price),this.$set(this.attr.productSelect,"quota",0),this.$set(this.attr.productSelect,"unique",""),this.$set(this.attr.productSelect,"cart_num",0),this.$set(this.attr.productSelect,"quota_show",0),this.$set(this.attr.productSelect,"product_stock",0),this.$set(this,"attrValue",""),this.$set(this,"attrTxt","请选择"))},ChangeCartNum:function(t){var i=this.productValue[this.attrValue];if(void 0!==i||this.attr.productAttr.length||(i=this.attr.productSelect),void 0!==i){var e=i.quota||0,n=this.attr.productSelect;t?(n.cart_num++,n.cart_num>e&&(this.$set(this.attr.productSelect,"cart_num",e),this.$set(this,"cart_num",e))):(n.cart_num--,n.cart_num<1&&(this.$set(this.attr.productSelect,"cart_num",1),this.$set(this,"cart_num",1)))}},DefaultSelect:function(){var t=this.attr.productAttr,i=[];for(var e in this.productValue)if(this.productValue[e].quota>0){i=this.attr.productAttr.length?e.split(","):[];break}for(var n=0;n<t.length;n++)this.$set(t[n],"index",i[n]);var a=this.productValue[i.sort().join(",")];a&&t.length?(this.$set(this.attr.productSelect,"store_name",this.storeCombination.title),this.$set(this.attr.productSelect,"image",a.image),this.$set(this.attr.productSelect,"price",a.price),this.$set(this.attr.productSelect,"quota",a.quota),this.$set(this.attr.productSelect,"unique",a.unique),this.$set(this.attr.productSelect,"cart_num",1),this.$set(this.attr.productSelect,"product_stock",a.product_stock),this.$set(this.attr.productSelect,"quota_show",a.quota_show),this.$set(this,"attrValue",i.sort().join(",")),this.attrValue=i.sort().join(","),this.$set(this,"attrTxt","已选择")):!a&&t.length?(this.$set(this.attr.productSelect,"store_name",this.storeCombination.title),this.$set(this.attr.productSelect,"image",this.storeCombination.image),this.$set(this.attr.productSelect,"price",this.storeCombination.price),this.$set(this.attr.productSelect,"quota",0),this.$set(this.attr.productSelect,"unique",""),this.$set(this.attr.productSelect,"cart_num",0),this.$set(this.attr.productSelect,"product_stock",0),this.$set(this.attr.productSelect,"quota_show",0),this.$set(this,"attrValue",""),this.$set(this,"attrTxt","请选择")):a||t.length||(this.$set(this.attr.productSelect,"store_name",this.storeCombination.title),this.$set(this.attr.productSelect,"image",this.storeCombination.image),this.$set(this.attr.productSelect,"price",this.storeCombination.price),this.$set(this.attr.productSelect,"quota",0),this.$set(this.attr.productSelect,"unique",this.storeCombination.unique||""),this.$set(this.attr.productSelect,"cart_num",1),this.$set(this.attr.productSelect,"quota_show",0),this.$set(this.attr.productSelect,"product_stock",0),this.$set(this,"attrValue",""),this.$set(this,"attrTxt","请选择"))},setProductSelect:function(){var t=this,i=t.attr;i.productSelect.image=t.storeCombination.image,i.productSelect.store_name=t.storeCombination.title,i.productSelect.price=t.storeCombination.price,i.productSelect.quota=0,i.productSelect.quota_show=0,i.productSelect.product_stock=0,i.cartAttr=!1,t.$set(t,"attr",i)},pay:function(){var t=this;t.attr.cartAttr=!0,t.isOpen=!0},goPay:function(t){var i=this,e=this,n={};e.attr.cartAttr=t,n.productId=e.storeCombination.product_id,n.cartNum=e.attr.productSelect.cart_num,n.uniqueId=e.attr.productSelect.unique,n.combinationId=e.storeCombination.id,n.new=1,Object(u["m"])(n).then((function(t){e.$router.push({path:"/order/submit/"+t.data.cartId,query:{pinkid:e.pinkId}})})).catch((function(t){i.$dialog.error(t.msg)}))},goPoster:function(){var t=this;this.$router.push({path:"/activity/poster/"+t.pinkId+"/1"})},goOrder:function(){var t=this;this.$router.push({path:"/order/detail/"+t.currentPinkOrder})},goList:function(){this.$router.push({path:"/activity/group"})},goDetail:function(t){this.$router.push({path:"/activity/group_detail/"+t})},getCombinationPink:function(){var t=this;Object(c["o"])(t.pinkId).then((function(i){t.$set(t,"storeCombinationHost",i.data.store_combination_host),t.$set(t,"storeCombination",i.data.store_combination),t.$set(t,"pinkT",i.data.pinkT),t.$set(t,"pinkAll",i.data.pinkAll),t.$set(t,"count",i.data.count),t.$set(t,"userBool",i.data.userBool),t.$set(t,"pinkBool",i.data.pinkBool),t.$set(t,"isOk",i.data.is_ok),t.$set(t,"currentPinkOrder",i.data.current_pink_order),t.attr.productAttr=i.data.store_combination.productAttr,t.productValue=i.data.store_combination.productValue,t.setProductSelect(),0!=t.attr.productAttr&&t.DefaultSelect()}))},getCombinationRemove:function(){var t=this;Object(c["q"])({id:t.pinkId,cid:t.storeCombination.id}).then((function(i){t.$dialog.success(i.msg)})).catch((function(i){t.$dialog.error(i.msg)}))},lookAll:function(){this.iShidden=!this.iShidden}}},p=d,h=e("623f"),m=Object(h["a"])(p,n,a,!1,null,null,null);i["default"]=m.exports},c6da:function(t,i,e){"use strict";var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",[e("div",{staticClass:"product-window group-con",class:!0===t.attr.cartAttr?"on":"",style:"padding-bottom:"+(t.isShowBtn?"0":"")},[e("div",{staticClass:"textpic acea-row row-between-wrapper"},[e("div",{staticClass:"pictrue"},[e("img",{staticClass:"image",attrs:{src:t.attr.productSelect.image}})]),e("div",{staticClass:"text"},[e("div",{staticClass:"line1"},[t._v("\n "+t._s(t.attr.productSelect.store_name)+"\n ")]),e("div",{staticClass:"money font-color-red"},[t._v("\n ¥"),e("span",{staticClass:"num"},[t._v(t._s(t.attr.productSelect.price))]),t.isShow?e("span",{staticClass:"stock"},[t._v("\n 库存: "+t._s(t.attr.productSelect.stock)+"\n ")]):e("span",{staticClass:"stock"},[t._v("\n 限量:\n "+t._s(t.attr.productSelect.quota_show?t.attr.productSelect.quota_show:0)+"\n ")])])]),e("div",{staticClass:"iconfont icon-guanbi",on:{click:t.closeAttr}})]),e("div",{staticClass:"productWinList"},t._l(t.attr.productAttr,(function(i,n){return e("div",{key:n,staticClass:"item"},[e("div",{staticClass:"title"},[t._v(t._s(i.attr_name))]),e("div",{staticClass:"listn acea-row row-middle"},t._l(i.attr_value,(function(a,o){return e("div",{key:o,staticClass:"itemn",class:i.index===a.attr?"on":"",on:{click:function(i){return t.tapAttr(n,a.attr)}}},[t._v("\n "+t._s(a.attr)+"\n ")])})),0)])})),0),e("div",{staticClass:"cart"},[e("div",{staticClass:"title"},[t._v("数量")]),e("div",{staticClass:"carnum acea-row row-left"},[e("div",{staticClass:"item reduce",class:t.attr.productSelect.cart_num<=1?"on":"",on:{click:t.CartNumDes}},[t._v("\n -\n ")]),e("div",{staticClass:"item num"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.attr.productSelect.cart_num,expression:"attr.productSelect.cart_num"}],staticClass:"ipt_num",attrs:{type:"number"},domProps:{value:t.attr.productSelect.cart_num},on:{input:function(i){i.target.composing||t.$set(t.attr.productSelect,"cart_num",i.target.value)}}})]),e("div",{staticClass:"item plus",class:t.attr.productSelect.cart_num>=t.attr.productSelect.stock?"on":"",on:{click:t.CartNumAdd}},[t._v("\n +\n ")])])]),t.isShowBtn?e("div",{staticClass:"wrapper"},[t.attr.productSelect.quota>0&&t.attr.productSelect.product_stock>0?e("div",{staticClass:"teamBnt bg-color-red",on:{click:t.openAlone}},[t._v("\n 立即参团\n ")]):e("div",{staticClass:"teamBnt bg-color-hui"},[t._v("已售罄")])]):t._e()]),e("div",{staticClass:"mask",attrs:{hidden:!1===t.attr.cartAttr},on:{touchmove:function(t){t.preventDefault()},click:t.closeAttr}})])},a=[],o=(e("c904"),{name:"ProductWindow",props:{attr:{type:Object,default:function(){}}},data:function(){return{}},computed:{isShow:function(){return 1===this.$route.path.indexOf("detail")},isShowBtn:function(){return-1!=this.$route.path.indexOf("group_rule")}},mounted:function(){},methods:{openAlone:function(){this.$emit("changeFun",{action:"goPay",value:!1})},closeAttr:function(){this.$emit("changeFun",{action:"changeattr",value:!1})},CartNumDes:function(){this.$emit("changeFun",{action:"ChangeCartNum",value:!1})},CartNumAdd:function(){this.$emit("changeFun",{action:"ChangeCartNum",value:1})},tapAttr:function(t,i){var e=this;e.attr.productAttr[t].index=i;var n=e.getCheckedValue().sort().join(",");e.$emit("changeFun",{action:"ChangeAttr",value:n})},getCheckedValue:function(){for(var t=this.attr.productAttr,i=[],e=0;e<t.length;e++)for(var n=0;n<t[e].attr_value.length;n++)t[e].index===t[e].attr_value[n].attr&&i.push(t[e].attr_value[n].attr);return i}}}),s=o,r=(e("fb19"),e("623f")),c=Object(r["a"])(s,n,a,!1,null,"0610ad94",null);i["a"]=c.exports},c904:function(t,i,e){"use strict";var n=e("e46b"),a=e("5daa"),o=e("008a"),s=e("238a"),r=[].sort,c=[1,2,3];n(n.P+n.F*(s((function(){c.sort(void 0)}))||!s((function(){c.sort(null)}))||!e("a2cd")(r)),"Array",{sort:function(t){return void 0===t?r.call(o(this)):r.call(o(this),a(t))}})},ca41:function(t,i,e){"use strict";e.d(i,"n",(function(){return a})),e.d(i,"m",(function(){return o})),e.d(i,"o",(function(){return s})),e.d(i,"q",(function(){return r})),e.d(i,"p",(function(){return c})),e.d(i,"r",(function(){return u})),e.d(i,"t",(function(){return l})),e.d(i,"s",(function(){return d})),e.d(i,"f",(function(){return p})),e.d(i,"a",(function(){return h})),e.d(i,"h",(function(){return m})),e.d(i,"i",(function(){return v})),e.d(i,"b",(function(){return f})),e.d(i,"e",(function(){return C})),e.d(i,"c",(function(){return g})),e.d(i,"j",(function(){return b})),e.d(i,"d",(function(){return A})),e.d(i,"g",(function(){return k})),e.d(i,"l",(function(){return S})),e.d(i,"k",(function(){return w}));var n=e("b775");function a(t){return n["a"].get("/combination/list",t,{login:!1})}function o(t){return n["a"].get("/combination/detail/"+t,{},{login:!1})}function s(t){return n["a"].get("/combination/pink/"+t)}function r(t){return n["a"].post("/combination/remove",t)}function c(t){return n["a"].post("/combination/poster",t)}function u(){return n["a"].get("/seckill/index",{},{login:!1})}function l(t,i){return n["a"].get("/seckill/list/"+t,i,{login:!1})}function d(t){return n["a"].get("/seckill/detail/"+t,{},{login:!1})}function p(t){return n["a"].get("/bargain/list",t,{login:!1})}function h(t){return n["a"].get("/bargain/detail/"+t)}function m(t){return n["a"].post("/bargain/share",t)}function v(t){return n["a"].post("/bargain/start",t)}function f(t){return n["a"].post("/bargain/help",t)}function C(t){return n["a"].post("/bargain/help/price",t)}function g(t){return n["a"].post("/bargain/help/count",t)}function b(t){return n["a"].post("/bargain/start/user",t)}function A(t){return n["a"].post("/bargain/help/list",t)}function k(t){return n["a"].post("/bargain/poster",t)}function S(t){return n["a"].get("/bargain/user/list",t)}function w(t){return n["a"].post("/bargain/user/cancel",t)}},fb19:function(t,i,e){"use strict";var n=e("acda"),a=e.n(n);a.a}}]);
  2. //# sourceMappingURL=chunk-7a920428.6aa89515.js.map