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kvmU5hCPYMbfQK/1YvrPS6mHzlKJZpOOONivJ2Q0i6cXweYj0Zip20tmHPSmZeQ7cwMZvh0MKZKr0DKufD8AEbPediP08bSI5WmdbvA/wkwAA0RLWTsP6UIAAAAAElFTkSuQmCC"},5608:function(t,i,n){"use strict";var o=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"time"},[t._v("\n "+t._s(t.tipText)),!0===t.isDay?n("span",{staticClass:"styleAll"},[t._v(t._s(t.day))]):t._e(),n("span",{staticClass:"timeTxt"},[t._v(t._s(t.dayText))]),n("span",{staticClass:"styleAll"},[t._v(t._s(t.hour))]),n("span",{staticClass:"timeTxt"},[t._v(t._s(t.hourText))]),n("span",{staticClass:"styleAll"},[t._v(t._s(t.minute))]),n("span",{staticClass:"timeTxt"},[t._v(t._s(t.minuteText))]),n("span",{staticClass:"styleAll"},[t._v(t._s(t.second))]),n("span",{staticClass:"timeTxt"},[t._v(t._s(t.secondText))])])},s=[],e=(n("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 i(){var i=t.datatime-Date.parse(new Date)/1e3,n=0,o=0,s=0,e=0;i>0?(n=!0===t.isDay?Math.floor(i/86400):0,o=Math.floor(i/3600)-24*n,s=Math.floor(i/60)-24*n*60-60*o,e=Math.floor(i)-24*n*60*60-60*o*60-60*s,o<=9&&(o="0"+o),s<=9&&(s="0"+s),e<=9&&(e="0"+e),t.day=n,t.hour=o,t.minute=s,t.second=e):(t.day="00",t.hour="00",t.minute="00",t.second="00")}i(),setInterval(i,1e3)}}}),a=e,c=n("2877"),r=Object(c["a"])(a,o,s,!1,null,null,null);i["a"]=r.exports},c32d:function(t,i,n){"use strict";n.r(i);var o=function(){var t=this,i=t.$createElement,o=t._self._c||i;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,i){return o("div",{key:i,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:n("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(i){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(i,n){return o("div",{key:n,staticClass:"item",on:{click:function(n){return t.goDetail(i.id)}}},[o("div",{staticClass:"pictrue"},[o("img",{attrs:{src:i.image}}),o("div",{staticClass:"team",domProps:{textContent:t._s(i.people+"人团")}})]),o("div",{staticClass:"name line1",domProps:{textContent:t._s(i.title)}}),o("div",{staticClass:"money font-color-red",domProps:{textContent:t._s("¥"+i.price)}})])}),0)])])},s=[],e=(n("7f7f"),n("5608")),a=n("ca41"),c=n("73f5"),r="GroupRule",l={name:r,components:{CountDown:e["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 i=this;t.name===r&&(i.pinkId=i.$route.params.id,i.getCombinationPink())}},mounted:function(){var t=this;t.pinkId=t.$route.params.id,t.getCombinationPink()},methods:{pay:function(){var t=this,i=this,n={};n.productId=i.storeCombination.product_id,n.cartNum=i.pinkT.total_num,n.uniqueId="",n.combinationId=i.storeCombination.id,n.new=1,Object(c["m"])(n).then(function(t){i.$router.push({path:"/order/submit/"+t.data.cartId,query:{pinkid:i.pinkId}})}).catch(function(i){t.$dialog.error(i.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(a["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)})},getCombinationRemove:function(){var t=this;Object(a["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}}},d=l,u=n("2877"),p=Object(u["a"])(d,o,s,!1,null,null,null);i["default"]=p.exports}}]);
|