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gpDE7qamph6A/HW81An20ofOdFIcfkvmU5hCPYMbfQK/1YvrPS6mHzlKJZpOOONivJ2Q0i6cXweYj0Zip20tmHPSmZeQ7cwMZvh0MKZKr0DKufD8AEbPediP08bSI5WmdbvA/wkwAA0RLWTsP6UIAAAAAElFTkSuQmCC"},5608:function(t,n,i){"use strict";var o=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("div",{staticClass:"time"},[t._v("\n "+t._s(t.tipText)),!0===t.isDay?i("span",{staticClass:"styleAll"},[t._v(t._s(t.day))]):t._e(),i("span",{staticClass:"timeTxt"},[t._v(t._s(t.dayText))]),i("span",{staticClass:"styleAll"},[t._v(t._s(t.hour))]),i("span",{staticClass:"timeTxt"},[t._v(t._s(t.hourText))]),i("span",{staticClass:"styleAll"},[t._v(t._s(t.minute))]),i("span",{staticClass:"timeTxt"},[t._v(t._s(t.minuteText))]),i("span",{staticClass:"styleAll"},[t._v(t._s(t.second))]),i("span",{staticClass:"timeTxt"},[t._v(t._s(t.secondText))])])},e=[],a=(i("c5f6"),{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 n(){var n=t.datatime-Date.parse(new Date)/1e3,i=0,o=0,e=0,a=0;n>0?(i=!0===t.isDay?Math.floor(n/86400):0,o=Math.floor(n/3600)-24*i,e=Math.floor(n/60)-24*i*60-60*o,a=Math.floor(n)-24*i*60*60-60*o*60-60*e,o<=9&&(o="0"+o),e<=9&&(e="0"+e),a<=9&&(a="0"+a),t.day=i,t.hour=o,t.minute=e,t.second=a):(t.day="00",t.hour="00",t.minute="00",t.second="00")}n(),setInterval(n,1e3)}}}),s=a,r=i("2877"),c=Object(r["a"])(s,o,e,!1,null,null,null);n["a"]=c.exports},c32d:function(t,n,i){"use strict";i.r(n);var o=function(){var t=this,n=t.$createElement,o=t._self._c||n;return o("div",{staticClass:"group-con"},[o("div",{staticClass:"header acea-row row-between-wrapper"},[o("div",{staticClass:"pictrue"},[o("img",{attrs:{src:t.storeCombination.image}})]),o("div",{staticClass:"text"},[o("div",{staticClass:"line1",domProps:{textContent:t._s(t.storeCombination.title)}}),o("div",{staticClass:"money"},[t._v("\n ¥\n "),o("span",{staticClass:"num",domProps:{textContent:t._s(t.storeCombination.price)}}),o("span",{staticClass:"team cart-color",domProps:{textContent:t._s(t.storeCombination.people+"人拼")}})])]),-1===t.pinkBool?o("div",{staticClass:"iconfont icon-pintuanshibai"}):1===t.pinkBool?o("div",{staticClass:"iconfont icon-pintuanchenggong font-color-red"}):t._e()]),o("div",{staticClass:"wrapper"},[o("div",{staticClass:"title acea-row row-center-wrapper"},[o("div",{staticClass:"line"}),o("div",{staticClass:"name acea-row row-center-wrapper"},[t._v("\n 剩余\n "),o("CountDown",{attrs:{"is-day":!1,"tip-text":"","day-text":"","hour-text":" : ","minute-text":" : ","second-text":"",datatime:t.pinkT.stop_time}}),t._v("结束\n ")],1),o("div",{staticClass:"line"})]),1===t.pinkBool?o("div",{staticClass:"tips font-color-red"},[t._v("\n 恭喜您拼团成功\n ")]):-1===t.pinkBool?o("div",{staticClass:"tips"},[t._v("\n 还差"+t._s(t.count)+"人,拼团失败\n ")]):0===t.pinkBool?o("div",{staticClass:"tips font-color-red"},[t._v("\n 拼团中,还差"+t._s(t.count)+"人拼团成功\n ")]):t._e(),o("div",{staticClass:"list acea-row row-middle",class:[1===t.pinkBool||-1===t.pinkBool?"result":"",t.iShidden?"on":""]},[o("div",{staticClass:"pictrue"},[o("img",{attrs:{src:t.pinkT.avatar}})]),t.pinkAll.length>0?o("div",{staticClass:"acea-row row-middle"},t._l(t.pinkAll,function(t,n){return o("div",{key:n,staticClass:"pictrue"},[o("img",{attrs:{src:t.avatar}})])}),0):t._e(),t._l(t.count,function(t){return o("div",{key:t,staticClass:"pictrue"},[o("img",{staticClass:"img-none",attrs:{src:i("1483")}})])})],2),(1===t.pinkBool||-1===t.pinkBool)&&t.count>9?o("div",{staticClass:"lookAll acea-row row-center-wrapper",on:{click:t.lookAll}},[t._v("\n "+t._s(t.iShidden?"收起":"查看全部")+"\n "),o("span",{staticClass:"iconfont",class:t.iShidden?"icon-xiangshang":"icon-xiangxia"})]):t._e(),1===t.userBool&&0==t.isOk&&0===t.pinkBool?o("div",{staticClass:"teamBnt bg-color-red",on:{click:t.goPoster}},[t._v("\n 邀请好友参团\n ")]):0===t.userBool&&0===t.pinkBool&&t.count>0?o("div",{staticClass:"teamBnt bg-color-red",on:{click:t.pay}},[t._v("\n 我要参团\n ")]):t._e(),1===t.pinkBool||-1===t.pinkBool?o("div",{staticClass:"teamBnt bg-color-red",on:{click:function(n){return t.goDetail(t.storeCombination.id)}}},[t._v("\n 再次开团\n ")]):t._e(),0===t.pinkBool&&1===t.userBool?o("div",{staticClass:"cancel",on:{click:t.getCombinationRemove}},[o("span",{staticClass:"iconfont icon-guanbi3"}),t._v("取消开团\n ")]):t._e(),1===t.pinkBool?o("div",{staticClass:"lookOrder",on:{click:t.goOrder}},[t._v("\n 查看订单信息\n "),o("span",{staticClass:"iconfont icon-xiangyou"})]):t._e()]),o("div",{staticClass:"group-recommend"},[o("div",{staticClass:"title acea-row row-between-wrapper"},[o("div",[t._v("大家都在拼")]),o("div",{staticClass:"more",on:{click:t.goList}},[t._v("\n 更多拼团\n "),o("span",{staticClass:"iconfont icon-jiantou"})])]),o("div",{staticClass:"list acea-row row-middle"},t._l(t.storeCombinationHost,function(n,i){return o("div",{key:i,staticClass:"item",on:{click:function(i){return t.goDetail(n.id)}}},[o("div",{staticClass:"pictrue"},[o("img",{attrs:{src:n.image}}),o("div",{staticClass:"team",domProps:{textContent:t._s(n.people+"人团")}})]),o("div",{staticClass:"name line1",domProps:{textContent:t._s(n.title)}}),o("div",{staticClass:"money font-color-red",domProps:{textContent:t._s("¥"+n.price)}})])}),0)])])},e=[],a=(i("7f7f"),i("5608")),s=i("ca41"),r=i("73f5"),c="GroupRule",u={name:c,components:{CountDown:a["a"]},props:{},data:function(){return{currentPinkOrder:"",isOk:0,pinkBool:0,userBool:0,pinkAll:[],pinkT:[],storeCombination:[],storeCombinationHost:[],pinkId:0,count:0,iShidden:!1}},watch:{$route:function(t){var n=this;t.name===c&&(n.pinkId=n.$route.params.id,n.getCombinationPink())}},mounted:function(){var t=this;t.pinkId=t.$route.params.id,t.getCombinationPink()},methods:{pay:function(){var t=this,n=this,i={};i.productId=n.storeCombination.product_id,i.cartNum=n.pinkT.total_num,i.uniqueId="",i.combinationId=n.storeCombination.id,i.new=1,Object(r["m"])(i).then(function(t){n.$router.push({path:"/order/submit/"+t.data.cartId,query:{pinkid:n.pinkId}})}).catch(function(n){t.$dialog.error(n.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(s["o"])(t.pinkId).then(function(n){t.$set(t,"storeCombinationHost",n.data.store_combination_host),t.$set(t,"storeCombination",n.data.store_combination),t.$set(t,"pinkT",n.data.pinkT),t.$set(t,"pinkAll",n.data.pinkAll),t.$set(t,"count",n.data.count),t.$set(t,"userBool",n.data.userBool),t.$set(t,"pinkBool",n.data.pinkBool),t.$set(t,"isOk",n.data.is_ok),t.$set(t,"currentPinkOrder",n.data.current_pink_order)})},getCombinationRemove:function(){var t=this;Object(s["q"])({id:t.pinkId,cid:t.storeCombination.id}).then(function(n){t.$dialog.success(n.msg)}).catch(function(n){t.$dialog.error(n.msg)})},lookAll:function(){this.iShidden=!this.iShidden}}},l=u,d=i("2877"),p=Object(d["a"])(l,o,e,!1,null,null,null);n["default"]=p.exports},ca41:function(t,n,i){"use strict";i.d(n,"n",function(){return e}),i.d(n,"m",function(){return a}),i.d(n,"o",function(){return s}),i.d(n,"q",function(){return r}),i.d(n,"p",function(){return c}),i.d(n,"r",function(){return u}),i.d(n,"t",function(){return l}),i.d(n,"s",function(){return d}),i.d(n,"f",function(){return p}),i.d(n,"a",function(){return m}),i.d(n,"h",function(){return f}),i.d(n,"i",function(){return C}),i.d(n,"b",function(){return g}),i.d(n,"e",function(){return b}),i.d(n,"c",function(){return h}),i.d(n,"j",function(){return v}),i.d(n,"d",function(){return A}),i.d(n,"g",function(){return k}),i.d(n,"l",function(){return y}),i.d(n,"k",function(){return B});var o=i("b775");function e(t){return o["a"].get("/combination/list",t,{login:!1})}function a(t){return o["a"].get("/combination/detail/"+t,{},{login:!1})}function s(t){return o["a"].get("/combination/pink/"+t)}function r(t){return o["a"].post("/combination/remove",t)}function c(t){return o["a"].post("/combination/poster",t)}function u(){return o["a"].get("/seckill/index",{},{login:!1})}function l(t,n){return o["a"].get("/seckill/list/"+t,n,{login:!1})}function d(t){return o["a"].get("/seckill/detail/"+t,{},{login:!1})}function p(t){return o["a"].get("/bargain/list",t,{login:!1})}function m(t){return o["a"].get("/bargain/detail/"+t)}function f(t){return o["a"].post("/bargain/share",t)}function C(t){return o["a"].post("/bargain/start",t)}function g(t){return o["a"].post("/bargain/help",t)}function b(t){return o["a"].post("/bargain/help/price",t)}function h(t){return o["a"].post("/bargain/help/count",t)}function v(t){return o["a"].post("/bargain/start/user",t)}function A(t){return o["a"].post("/bargain/help/list",t)}function k(t){return o["a"].post("/bargain/poster",t)}function y(t){return o["a"].get("/bargain/user/list",t)}function B(t){return o["a"].post("/bargain/user/cancel",t)}}}]);
  2. //# sourceMappingURL=chunk-a13a9f76.c762a3b7.js.map