1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65da2a89","chunk-2d0d83d6"],{"79db":function(t,e,i){t.exports=i.p+"static/app/img/empty-image-search.ef236a93.png"},"7e29":function(t,e,i){var a=i("b8b5");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("40b3190b",a,!0,{sourceMap:!1,shadowMode:!1})},"7f6e8":function(t,e,i){"use strict";i("f5a9")},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var a=document.documentElement,s=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&a.clientHeight?Math.min(s.clientHeight,a.clientHeight):Math.max(s.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b351:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"groupListCell"}},[i("div",{staticClass:"goods_img"},[i("img",{attrs:{src:t.thumb}})]),i("ul",{staticClass:"goods_info"},[i("li",{staticClass:"name",staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(" "+t._s(t.title)+" ")]),i("li",{staticClass:"price"},[i("span",[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(t.group_price)+" "),i("span",{staticStyle:{"text-decoration":"line-through"}},[t._v(t._s(t.$i18n.t("money"))+t._s(t.price))])]),t.teamList.length>0?[i("van-swipe",{staticClass:"my-swipe",staticStyle:{height:"2rem",margin:"4px 0"},attrs:{autoplay:3e3,touchable:!1,"show-indicators":!1,vertical:!0}},[t._l(t.teamList,(function(e,a){return[i("van-swipe-item",{key:a},[i("div",{staticClass:"allteam",on:{click:function(e){return e.stopPropagation(),t.getAllTeam()}}},[i("div",{staticClass:"allLeft"},[e.has_one_leader?i("div",{staticClass:"teamNo"},[t._v(t._s(e.has_one_leader.username))]):t._e(),e.has_one_level?i("span",{staticClass:"teamTwo"},[t._v("已开团,差"+t._s(e.has_one_level.member_num-e.has_many_success_member_count)+"人")]):t._e()]),i("div",{staticClass:"allRight"},[i("van-icon",{attrs:{name:"arrow"}})],1)])])]}))],2)]:t._e(),i("li",{staticClass:"number"},[t.num?i("div",{staticClass:"left"},[i("i",{staticClass:"iconfont icon-group_list"}),i("span",[t._v(t._s(t.num)+"人")])]):t._e(),i("div",{staticClass:"go_group",on:{click:function(e){return t.goGroup(t.id,t.storeid)}}},[i("span",[t._v("去开团")]),i("i",{staticClass:"fa fa-angle-right"})])])],2)])},s=[],o=(i("a9e3"),{props:{teamList:{type:Array,default:function(){return[]}},title:{type:String,default:null},thumb:{type:String,default:null},group_price:{type:[String,Number],default:""},price:{type:[String,Number],default:""},num:{type:[String,Number],default:""},id:{type:[String,Number],default:""},storeid:{type:[String,Number],default:""}},data:function(){return{}},activated:function(){},components:{},computed:{},mounted:function(){},methods:{getAllTeam:function(){this.$emit("openTeam",{id:this.id,storeid:this.storeid,title:this.title})},goGroup:function(){this.$emit("click",{id:this.id,storeid:this.storeid,title:this.title})}}}),n=o,l=(i("7f6e8"),i("2877")),r=Object(l["a"])(n,a,s,!1,null,"7a790beb",null);e["a"]=r.exports},b607:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#groupListCell[data-v-7a790beb]{background-color:#fff;border-radius:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:.625rem;padding:.625rem}#groupListCell .goods_img[data-v-7a790beb]{width:7.5rem;height:7.5rem;background:#f2f2f2;overflow:hidden;border-radius:.625rem;border-radius:.25rem;margin-right:.625rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}#groupListCell .goods_img img[data-v-7a790beb]{width:100%}#groupListCell .goods_info[data-v-7a790beb]{width:14.0625rem;text-align:left;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#groupListCell .goods_info .name[data-v-7a790beb]{font-size:14px;height:2.625rem;line-height:1.25rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}#groupListCell .goods_info .price[data-v-7a790beb]{font-size:16px;color:#f15353}#groupListCell .goods_info .price span[data-v-7a790beb]{font-size:12px}#groupListCell .goods_info .price span[data-v-7a790beb]:last-child{color:#8c8c8c;margin-left:.625rem}#groupListCell .goods_info .number[data-v-7a790beb]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#groupListCell .goods_info .number[data-v-7a790beb],#groupListCell .goods_info .number .left[data-v-7a790beb]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#groupListCell .goods_info .number .left .iconfont[data-v-7a790beb]{font-size:1.5rem;color:#f15353;margin-right:.375rem}#groupListCell .goods_info .number .left span[data-v-7a790beb]{color:#f15353;font-size:14px;border-left:.0625rem solid #ebebeb;padding-left:.375rem}#groupListCell .goods_info .number .go_group[data-v-7a790beb]{width:5rem;height:1.75rem;border-radius:.25rem;background:#f15353;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#groupListCell .goods_info .number .go_group span[data-v-7a790beb]{color:#fff;font-size:14px}#groupListCell .goods_info .number .go_group .fa[data-v-7a790beb]{color:#fff;font-size:1rem;margin-left:.625rem}#groupListCell .allteam[data-v-7a790beb]{-ms-flex-align:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;height:100%;width:100%;padding:0 .38rem;background-color:#f8f8f8}#groupListCell .allteam[data-v-7a790beb],#groupListCell .allteam .allLeft[data-v-7a790beb]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}#groupListCell .allteam .allLeft[data-v-7a790beb]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;-ms-flex-align:center;font-size:12px}#groupListCell .allteam .allLeft .teamNo[data-v-7a790beb]{color:#f15353;max-width:55%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:.35rem;text-align:right}#groupListCell .allteam .allLeft .teamTwo[data-v-7a790beb]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#groupListCell .allteam .allRight[data-v-7a790beb]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}",""]),t.exports=e},b8b5:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#mygroups .content .list_box[data-v-843f7f02]{min-height:100vh}#mygroups .content .list_box .list[data-v-843f7f02]{background:#fff;margin:.625rem;border-radius:.625rem;overflow:hidden}#mygroups .content .list_box .list .store-box[data-v-843f7f02]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.5rem .875rem 0;text-align:left;color:#333}#mygroups .content .list_box .list .store-box img[data-v-843f7f02]{width:1.875rem;height:1.875rem;border-radius:50%;overflow:hidden;margin-right:.5rem}#mygroups .content .list_box .list .store-box .store-name[data-v-843f7f02]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.75rem}#mygroups .content .list_box .list .time_state[data-v-843f7f02]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;height:2.5rem;line-height:2.5rem;padding:0 .875rem}#mygroups .content .list_box .list .time_state .state[data-v-843f7f02]{color:#f15353}#mygroups .content .list_box .list .goods_box[data-v-843f7f02]{border-top:.0625rem solid #ebebeb;padding:.625rem .875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#mygroups .content .list_box .list .goods_box .goods_img[data-v-843f7f02]{width:5.625rem;height:5.625rem;overflow:hidden;background:#f2f2f2;border-radius:.25rem;margin-right:.625rem}#mygroups .content .list_box .list .goods_box .goods_img img[data-v-843f7f02]{width:100%}#mygroups .content .list_box .list .goods_box .goods_name[data-v-843f7f02]{width:15.4375rem;position:relative}#mygroups .content .list_box .list .goods_box .goods_name .name_price[data-v-843f7f02]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#mygroups .content .list_box .list .goods_box .goods_name .name_price .name[data-v-843f7f02]{width:100%;font-size:14px;line-height:1.25rem;max-height:2.5rem;text-align:left;font-weight:400;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#mygroups .content .list_box .list .goods_box .goods_name .name_price .price[data-v-843f7f02]{font-size:14px;text-align:right;line-height:1.25rem}#mygroups .content .list_box .list .goods_box .goods_name .name_price .price span[data-v-843f7f02]{color:#8c8c8c}#mygroups .content .list_box .list .goods_box .goods_name .option[data-v-843f7f02]{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;color:#f15353;font-size:14px;margin-top:.625rem;text-align:left;position:absolute;bottom:.625rem}#mygroups .content .list_box .list .allbt[data-v-843f7f02]{border-top:.0625rem solid #ebebeb;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;padding:.5rem .3rem 0 0;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#mygroups .content .list_box .list .allbt button[data-v-843f7f02]{border-radius:.1875rem;border:.0625rem solid #666;font-size:12px;padding:.25rem .625rem;margin-left:.625rem;margin-bottom:.5rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}#mygroups .content .list_box .card-list[data-v-843f7f02]{text-align:left}#mygroups .content .list_box .card-list .card-title[data-v-843f7f02]{padding:0 .875rem;width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-align:left;line-height:1.25rem}#mygroups .content .list_box .card-list .card-title .card-type[data-v-843f7f02]{font-size:10px;display:inline-grid;text-align:center;line-height:1.25rem;background-color:#ee2e2b;border-radius:.125rem;margin:0;padding:0 4px;color:#fff;margin-right:.5rem}#mygroups .content .list_box .card-list .card-time[data-v-843f7f02]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:10px;padding:.5rem .875rem}#mygroups .content .list_box .card-list .card-time .van-count-down[data-v-843f7f02]{font-size:10px}#mygroups .list-cell[data-v-843f7f02]{width:100%;padding:10px 16px;overflow:hidden;color:#323233;font-size:14px;line-height:24px;background-color:#fff;text-align:left}#mygroups .list-cell em[data-v-843f7f02]{color:#ee2e2b}#mygroups .active-pop-box[data-v-843f7f02]{width:18.875rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:scroll}#mygroups .active-pop-box[data-v-843f7f02] #groupListCell{padding:0}#mygroups .active-pop-box[data-v-843f7f02] #groupListCell .goods_img{width:6.25rem;height:6.25rem}",""]),t.exports=e},ba8d:function(t,e,i){"use strict";i("7e29")},e4ded:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"mygroups"}},[i("c-title",{attrs:{hide:!1,text:"我的拼团",totext:"开团卡明细",tolink:"ywmGroupsDetailed"}}),i("div",{staticClass:"content"},[i("van-tabs",{attrs:{sticky:""},on:{change:t.getData},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.titleArr,(function(e,a){return i("van-tab",{key:a,attrs:{title:e.name}},[i("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:3==t.activeName,expression:"activeName == 3"}],staticClass:"list-cell"},[t._v("可用开团卡数量:"),i("em",[t._v(t._s(t.cardTotal))]),t._v("张")]),t.dataList[a]&&!t.fun.isTextEmpty(t.dataList[a].list)?i("div",{staticClass:"list_box"},t._l(t.dataList[a].list,(function(e,s){return i("div",{key:s,staticClass:"list"},[3!=a?[e.has_one_store&&e.has_one_store.id?i("div",{staticClass:"store-box",on:{click:function(i){return i.stopPropagation(),t.gotoUrl("o2oStore_v2",{store_id:e.has_one_store.id,fromHome:1})}}},[i("img",{attrs:{src:e.has_one_store.thumb,alt:""}}),i("div",{staticClass:"store-name"},[t._v(t._s(e.has_one_store.store_name))]),i("i",{staticClass:"iconfont icon-advertise-next"})]):t._e(),i("div",{staticClass:"time_state"},[i("span",{staticClass:"time"},[t._v("开团:"+t._s(t._f("startTimes")(e.has_one_team.start_time)))]),i("span",{staticClass:"state"},[t._v(t._s(e.group_status_text))])]),i("div",{staticClass:"goods_box"},[i("div",{staticClass:"goods_img"},[i("img",{attrs:{src:t.fun.isTextEmpty(e.has_one_goods)?"":e.has_one_goods.thumb}})]),i("ul",{staticClass:"goods_name"},[i("li",{staticClass:"name_price"},[i("h2",{staticClass:"name",staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(" "+t._s(e.has_one_goods?e.has_one_goods.title:"")+" ")])]),i("li",{staticClass:"option"},[i("span",[t._v(t._s(t.$i18n.t("money"))+t._s(e.total_price))]),i("span",{staticStyle:{color:"#000"}},[i("van-count-down",{staticClass:"bottom_time",attrs:{time:t.fun.getTimeDifference(e.has_one_team.end_time),format:"DD天HH时mm分ss秒"},on:{finish:t.groupEnd}})],1)])])]),i("div",{staticClass:"allbt"},t._l(e.group_button_arr,(function(a){return i("button",{key:a.value,attrs:{type:"button"},on:{click:function(i){return t.clickBtn({value:a.value,id:e.id,tid:e.team_id,good:e.has_one_goods,orderid:e.order_id})}}},[t._v(" "+t._s(a.name)+" ")])})),0)]:t._e(),3==a?[i("div",{staticClass:"card-list"},[i("div",{staticClass:"time_state"},[i("span",{staticClass:"time"},[t._v("创建:"+t._s(e.created_at))])]),i("div",{staticClass:"card-title"},[i("div",{staticClass:"card-type"},[t._v(t._s(e.use_activity_type_text))]),t._v(" "+t._s(e.open_group_card_name)+" ")]),i("div",{staticClass:"card-time"},[i("div",{staticStyle:{display:"flex","align-items":"center"}},[t._v(" 仅剩"),i("van-count-down",{staticClass:"bottom_time",attrs:{time:t.fun.getTimeDifference(e.effective_end_time),format:"DD天HH时mm分ss秒"},on:{finish:t.groupEnd}})],1),i("van-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return t.clickBtn({value:5,id:e.id})}}},[t._v("去使用")])],1)])]:t._e()],2)})),0):t._e(),i("yz-blank",{attrs:{datas:t.dataList[a]&&t.dataList[a].list}})],1)],1)})),1)],1),i("van-popup",{style:{height:"75%"},attrs:{round:""},model:{value:t.showActivePop,callback:function(e){t.showActivePop=e},expression:"showActivePop"}},[i("div",{staticStyle:{height:"100%",display:"flex","flex-direction":"column"}},[i("van-nav-bar",{attrs:{title:"拼团列表","right-text":"关闭"},on:{"click-right":t.cloneActivePop}}),i("div",{staticClass:"active-pop-box"},t._l(t.groupList,(function(e,a){return i("div",{key:a},[i("group-list-cell",{attrs:{thumb:e.has_one_goods&&e.has_one_goods.thumb,title:e.title,group_price:e.has_many_option_levels&&e.has_many_option_levels[0]&&e.has_many_option_levels[0].group_price,price:e.has_many_option_levels&&e.has_many_option_levels[0]&&e.has_many_option_levels[0].has_one_fight_groups_option.option_price,num:e.has_many_option_levels[0]&&e.has_many_option_levels[0].member_num,id:e.id,storeid:e.store_id},on:{click:t.openTeam}})],1)})),0)],1)])],1)},s=[],o=i("5530"),n=(i("99af"),i("d3b7"),i("159b"),i("a9e3"),i("9911"),i("e9c4"),i("eb17")),l=i("b351"),r=i("ac0d"),c={mixins:[r["a"]],data:function(){return{activeName:0,dataList:[],titleArr:[],cardTotal:"---",isLoading:!1,isLoadMore:!0,showActivePop:!1,groupList:[],selectGroupId:null}},activated:function(){this.initOptions()},methods:{initOptions:function(){var t=this,e="plugin.ywm-fight-groups.frontend.controllers.fight-groups.get-member-join-teams",i="plugin.ywm-fight-groups.frontend.controllers.fight-groups.my-open-group-card";this.dataList=[],this.titleArr=[{name:"正在拼团",url:e,param:{team_status:1}},{name:"拼团成功",url:e,param:{team_status:2}},{name:"拼团失败",url:e,param:{team_status:3}},{name:"我的开团卡",url:i,param:{},callback:function(e){t.isLoadMore=!0,t.cardTotal=e.card_number,t.dataList[t.activeName].isLoadMore=!0,t.dataList[t.activeName].total_page=e.data.last_page,t.dataList[t.activeName].page=e.data.current_page,t.dataList[t.activeName].list=t.dataList[t.activeName].list.concat(e.data.data),t.isLoading=!1}}],this.activeName=this.$route.params.status||0,this.$nextTick((function(){t.$refs.tabs&&t.$refs.tabs.resize()})),this.initData()},initData:function(){var t=this;this.dataList=[],this.isLoadMore=!0,this.titleArr.forEach((function(e,i){t.dataList.push({isLoadMore:!0,page:1,total_page:0,list:[]})})),this.getData()},loadTop:function(){this.initData()},cloneActivePop:function(){this.showActivePop=!1},getData:function(){var t=this;if(!(this.dataList[this.activeName].list.length>0)){var e=Object(o["a"])({},this.titleArr[this.activeName].param),i=this.titleArr[this.activeName].url;$http.get(i,e,"").then((function(e){if(1===e.result){if(t.titleArr[t.activeName].callback)return t.titleArr[t.activeName].callback(e.data);t.isLoadMore=!0,t.dataList[t.activeName].isLoadMore=!0,t.dataList[t.activeName].total_page=e.data.last_page,t.dataList[t.activeName].page=1,t.$set(t.dataList[t.activeName],"list",e.data.data),t.isLoading=!1}else t.isLoading=!1,t.$toast(e.msg)}),(function(t){}))}},clickBtn:function(t){var e=t.value,i=t.tid,a=t.id,s=t.orderid,o=Number(e);switch(o){case 1:this.shareWeixin(t);break;case 2:s&&this.gotoUrl("orderdetail",{order_id:s,orderType:"ywmgroups"});break;case 3:this.gotoUrl("GroupDetail",{id:i},{plu:"ywm"});break;case 4:this.selectGroupId=a,this.getActiveList();break;case 5:this.gotoUrl("ywmGroupList",{id:a},{});break;default:break}},getActiveList:function(){var t=this;$http.get("plugin.ywm-fight-groups.frontend.controllers.fight-groups.index",{},"加载中").then((function(e){1==e.result?(t.groupList=e.data.data,t.showActivePop=!0):t.$toast(e.msg)})).catch((function(t){}))},openTeam:function(t){var e=this;this.$dialog.confirm({title:"提示",message:"是否确认选中【".concat(t.title,"】开团")}).then((function(){e.openTeamQuest(t)}))},openTeamQuest:function(t){var e=this;$http.get("plugin.ywm-fight-groups.frontend.controllers.fight-groups.auto-open-group",{team_member_id:this.selectGroupId,group_id:t.id},"加载中").then((function(t){e.$toast(t.msg),1==t.result&&(e.showActivePop=!1,e.initData())})).catch((function(t){}))},gotoUrl:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$router.push(this.fun.getUrl(t,e,i))},gotoGroup:function(t){var e={id:t.team_id};t.store_id&&(e.store_id=t.store_id),this.$router.push(this.fun.getUrl("GroupDetail",e))},getMoreData:function(){var t=this;this.isLoadMore=!1;var e=Object(o["a"])({},this.titleArr[this.activeName].param),i=this.titleArr[this.activeName].url,a=this.dataList[this.activeName],s=a.page,n=a.total_page;if(!(s>=n)){var l=s+1;e.page=l,$http.get(i,e,"加载中").then((function(e){if(t.isLoadMore=!0,1==e.result){var i=e.data.data;if(t.titleArr[t.activeName].callback)return t.titleArr[t.activeName].callback(e.data);t.dataList[t.activeName].page=l,t.dataList[t.activeName].list=t.dataList[t.activeName].list.concat(i)}else t.isLoadMore=!1,t.dataList[t.activeName].isLoadMore=!1})).catch((function(t){}))}},shareWeixin:function(t){var e=t.tid,i=t.good,a=window.localStorage.getItem("uid"),s=i.title,o=i.thumb,n="分享拼团活动",l="".concat(this.fun.getSiteRoot(),"/addons/yun_shop/?menu#/group_detail/").concat(e,"?i=").concat(this.fun.getKeyByI(),"&mid=").concat(a,"&plu=ywm"),r={title:s,desc:n,link:l,imgUrl:o};7==this.fun.getTyep()||this.fun.isCPS()?this.appShare(r):5!=this.fun.getTyep()&&(this.fun.wxShare("",{},{title:r.title,imgUrl:r.imgUrl,description:r.desc,link:r.link}),this.$dialog.alert({message:"请点击右上角微信分享"}))},appShare:function(t){this.fun.isCPS()?"ios"===this.fun.isIosOrAndroid()?shareByH5IOS({body:"shareByH5IOS",json:JSON.stringify(t)}):shareByH5Android(JSON.stringify(t)):YDB.Share(t.title,t.desc,t.imgUrl,t.link,"Sharesback")}},components:{yzBlank:n["default"],groupListCell:l["a"]},filters:{startTimes:function(t){var e=new Date(1e3*t),i=e.getFullYear()+"-",a=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",s=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",o=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",n=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",l=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return i+a+s+o+n+l}}},d=c,f=d,m=(i("ba8d"),i("2877")),p=Object(m["a"])(f,a,s,!1,null,"843f7f02",null);e["default"]=p.exports},f5a9:function(t,e,i){var a=i("b607");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("0eaf1ec8",a,!0,{sourceMap:!1,shadowMode:!1})}}]); |