bztang-admin/addons/yun_shop/static/app/js/chunk-4b5a4880.fe44fc5c.js

1 line
16 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b5a4880"],{"1b4f":function(e,t,i){var o=i("31edc");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=i("499e").default;a("6f7c6f7e",o,!0,{sourceMap:!1,shadowMode:!1})},"31edc":function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".open_group[data-v-d4da3d7c]{background:#fff;padding:.625rem;border-radius:.5rem;width:19rem}.open_group p[data-v-d4da3d7c]{font-size:14px;margin-bottom:.625rem}.open_group .setMaxH[data-v-d4da3d7c]{max-height:12rem;overflow:scroll}.open_group #groupListCell[data-v-d4da3d7c]{margin:.5rem 0}.open_group #groupListCell .into_user[data-v-d4da3d7c]{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}.open_group #groupListCell .into_user .user[data-v-d4da3d7c]{width:2.25rem;height:2.25rem;background:#f2f2f2;border-radius:2rem;overflow:hidden;margin-right:.625rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.open_group #groupListCell .into_user .user img[data-v-d4da3d7c]{width:100%;height:100%}.open_group #groupListCell .into_user .time[data-v-d4da3d7c]{width:14.3125rem;text-align:left}.open_group #groupListCell .into_user .time .time_a[data-v-d4da3d7c]{font-size:14px}.open_group #groupListCell .into_user .time .time_b[data-v-d4da3d7c]{font-size:12px;color:#8c8c8c}.open_group #groupListCell .into_user .time .time_b span[data-v-d4da3d7c]{color:#f15353}.open_group #groupListCell .into_user .time .time_b .vanCount[data-v-d4da3d7c]{color:#f15353;font-size:12px}.open_group #groupListCell .into_user button[data-v-d4da3d7c]{border:none;background:#f15353;color:#fff;width:4.5rem;height:1.625rem;border-radius:.25rem;font-size:10px}",""]),e.exports=t},48756:function(e,t,i){var o=i("7374");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=i("499e").default;a("e395bcf8",o,!0,{sourceMap:!1,shadowMode:!1})},"5c4e":function(e,t,i){"use strict";i("48756")},7374:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,"#group_list[data-v-047ef612]{background:#f6f6f6}",""]),e.exports=t},7856:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"group_list"}},[i("c-title",{attrs:{hide:!1,text:e.diyTitle}}),i("div",{staticClass:"content"},[i("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:e.loadTop},model:{value:e.isLoading,callback:function(t){e.isLoading=t},expression:"isLoading"}},e._l(e.info,(function(t,o){return i("div",{key:o},[i("group-list-cell",{attrs:{thumb:t.has_one_goods&&t.has_one_goods.thumb,title:t.title,group_price:t.has_many_option_levels&&t.has_many_option_levels[0]&&t.has_many_option_levels[0].group_price,price:t.has_many_option_levels&&t.has_many_option_levels[0]&&t.has_many_option_levels[0].has_one_fight_groups_option.option_price,teamList:e.showNowGroup?t.allTeamData:[],num:t.has_many_option_levels[0]&&t.has_many_option_levels[0].member_num,id:t.id,storeid:t.store_id},on:{click:e.goGroup,openTeam:e.getAllTeam}})],1)})),0)],1),this.info.length<1?i("p",{staticStyle:{padding:"1rem 0",color:"#f60"},on:{click:e.goHome}},[e._v("暂无拼团活动,去商城逛逛吧!")]):e._e(),i("group-list-item",{attrs:{id:e.selectID},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}})],1)},a=[],s=(i("b0c0"),i("99af"),i("b351")),n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("van-popup",{style:{maxHeight:"70%"},attrs:{position:"center",closeable:"",round:""},on:{closed:e.closed},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[i("div",{staticClass:"open_group"},[i("p",[e._v("以下小伙伴拼团中,可直接参与")]),i("div",{staticClass:"setMaxH"},[e._l(e.list,(function(t){return i("div",{key:t.id,attrs:{id:"groupListCell"}},[i("div",{staticClass:"into_user"},[i("div",{staticClass:"user"},[i("img",{attrs:{src:t.has_one_leader.avatar_image}})]),i("ul",{staticClass:"time"},[i("li",{staticClass:"time_a"},[e._v(e._s(t.has_one_leader.username)+" 开"+e._s(t.has_one_level.member_num)+"人团")]),i("li",{staticClass:"time_b"},[e._v(" 剩余"),i("span",{staticStyle:{display:"inline-block"}},[i("van-count-down",{staticClass:"vanCount",attrs:{time:e.fun.getTimeDifference(t.end_time),format:"DD天HH时mm分ss秒"},on:{finish:e.finished}})],1),e._v(",仅差"),i("span",[e._v(e._s(t.has_one_level.member_num-t.has_many_success_member_count))]),e._v("人 ")])]),t.leader_id!=e.uid?i("button",{attrs:{type:"button"},on:{click:function(i){return i.stopPropagation(),e.clickAdd("add",t)}}},[e._v("加入该团")]):i("button",{attrs:{type:"button"},on:{click:function(i){return i.stopPropagation(),e.clickAdd("share",t)}}},[e._v("邀请好友")])])])})),e.page<e.total_page?i("span",{on:{click:function(t){return e.getList()}}},[e._v("点击加载更多")]):e._e()],2)])])],1)},l=[],r=(i("a9e3"),i("9911"),i("e9c4"),{props:{id:{type:[String,Number],default:""},value:{type:Boolean,default:!1}},watch:{value:function(e){e&&this.init()}},data:function(){return{uid:window.localStorage.getItem("uid"),show:!1,list:[],page:0,isLoadMore:!0,total_page:0}},methods:{init:function(){this.list=[],this.page=0,this.isLoadMore=!0,this.total_page=0,this.getList()},getList:function(){var e=this;if(0==this.page||this.total_page!=this.page){var t=this.page+1;$http.get("plugin.ywm-fight-groups.frontend.controllers.fight-groups-goods.all-team",{page:t,id:this.id},"加载中").then((function(t){if(1==t.result){e.total_page=t.data.last_page,e.page=t.data.current_page;var i=t.data.data;e.list=e.list.concat(i),e.show=!0}else e.$toast(t.msg)})).catch((function(e){}))}},closed:function(){this.show=!1,this.$emit("input",!1)},finished:function(){},clickAdd:function(e,t){if("share"!=e)"add"==e&&this.$router.push(this.fun.getUrl("GroupDetail",{id:t.has_one_group.id},{plu:"ywm"}));else{var i={title:t.has_one_group.desc_title,desc:t.has_one_group.desc_content,link:"".concat(this.fun.getSiteRoot(),"/addons/yun_shop/?menu#/group_detail/").concat(t.has_one_group.id,"?i=").concat(this.fun.getKeyByI(),"&mid=").concat(uid,"&plu=ywm")};this.shareWeixin(i)}},shareWeixin:function(e){7==this.fun.getTyep()||this.fun.isCPS()?this.appShare(e):5!=this.fun.getTyep()&&(this.fun.wxShare("",{},{title:e.title,imgUrl:e.imgUrl,description:e.desc,link:e.link}),this.$dialog.alert({message:"请点击右上角微信分享"}))},appShare:function(e){this.fun.isCPS()?"ios"===this.fun.isIosOrAndroid()?shareByH5IOS({body:"shareByH5IOS",json:JSON.stringify(e)}):shareByH5Android(JSON.stringify(e)):YDB.Share(e.title,e.desc,e.imgUrl,e.link,"Sharesback")}},components:{},computed:{}}),d=r,c=(i("9fd0"),i("2877")),u=Object(c["a"])(d,n,l,!1,null,"d4da3d7c",null),p=u.exports,f=i("ac0d"),g={mixins:[f["a"]],data:function(){return{ROUTERURL:"",diyTitle:"拼团列表",isLoading:!1,info:{},page:1,isLoadMore:!0,total_page:0,show:!1,selectID:0,showNowGroup:!1}},created:function(){this.init(),this.getData()},methods:{init:function(){switch(this.info={},this.isLoadMore=!0,this.total_page=0,this.page=1,this.$route.name){case"ywmGroupList":this.ROUTERURL="plugin.ywm-fight-groups.frontend.controllers.fight-groups.index";break;default:this.ROUTERURL="plugin.ywm-fight-groups.frontend.controllers.fight-groups.index";break}},getData:function(){var e=this;$http.get(this.ROUTERURL,{member_open_group_id:this.$route.params.id||0},"加载中").then((function(t){if(1===t.result){e.isLoadMore=!0,e.total_page=t.data.last_page,e.total_page||(e.total_page=0),e.showNowGroup=t.data.set.is_show_be_being_group||!1,e.info=t.data.data;var i=t.data.set,o=i.share_title,a=(i.share_url,i.share_thumb),s=i.share_desc;e.fun.wxShare("",{},{title:o,imgUrl:a,description:s}),e.isLoading=!1}else e.isLoading=!1}),(function(e){})).then((function(e){}))},goGroup:function(e){var t=e.id,i=e.storeid,o="ywmGroup",a={};this.$route.params.id&&(a.cid=this.$route.params.id),i?this.$router.push(this.fun.getUrl(o,{id:t,store_id:i})):this.$router.push(this.fun.getUrl(o,{id:t},a))},getAllTeam:function(e){var t=e.id;e.storeid;this.selectID=t,this.show=!0},getMoreData:function(){this.isLoadMore=!1;var e=this;e.page>=e.total_page||(e.page+=1,$http.get(this.ROUTERURL,{page:e.page,member_open_group_id:this.$route.params.id||0},"加载中").then((function(t){if(e.isLoadMore=!0,1!=t.result)return e.page=e.page-1,void(e.isLoadMore=!1);var i=t.data.data;e.info=e.info.concat(i)})).catch((function(e){})))},loadTop:function(){this.init(),this.getData()}},components:{groupListCell:s["a"],groupListItem:p}},m=g,h=m,b=(i("5c4e"),Object(c["a"])(h,o,a,!1,null,"047ef612",null));t["default"]=b.exports},"7f6e8":function(e,t,i){"use strict";i("f5a9")},"9fd0":function(e,t,i){"use strict";i("1b4f")},ac0d:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var o=document.documentElement,a=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return o&&o.scrollTop?e=o.scrollTop:a&&(e=a.scrollTop),e},getClientHeight:function(){var e=0;return e=a.clientHeight&&o.clientHeight?Math.min(a.clientHeight,o.clientHeight):Math.max(a.clientHeight,o.clientHeight),e},getScrollHeight:function(){return Math.max(a.scrollHeight,o.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b351:function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"groupListCell"}},[i("div",{staticClass:"goods_img"},[i("img",{attrs:{src:e.thumb}})]),i("ul",{staticClass:"goods_info"},[i("li",{staticClass:"name",staticStyle:{"-webkit-box-orient":"vertical"}},[e._v(" "+e._s(e.title)+" ")]),i("li",{staticClass:"price"},[i("span",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(e.group_price)+" "),i("span",{staticStyle:{"text-decoration":"line-through"}},[e._v(e._s(e.$i18n.t("money"))+e._s(e.price))])]),e.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}},[e._l(e.teamList,(function(t,o){return[i("van-swipe-item",{key:o},[i("div",{staticClass:"allteam",on:{click:function(t){return t.stopPropagation(),e.getAllTeam()}}},[i("div",{staticClass:"allLeft"},[t.has_one_leader?i("div",{staticClass:"teamNo"},[e._v(e._s(t.has_one_leader.username))]):e._e(),t.has_one_level?i("span",{staticClass:"teamTwo"},[e._v("已开团,差"+e._s(t.has_one_level.member_num-t.has_many_success_member_count)+"人")]):e._e()]),i("div",{staticClass:"allRight"},[i("van-icon",{attrs:{name:"arrow"}})],1)])])]}))],2)]:e._e(),i("li",{staticClass:"number"},[e.num?i("div",{staticClass:"left"},[i("i",{staticClass:"iconfont icon-group_list"}),i("span",[e._v(e._s(e.num)+"人")])]):e._e(),i("div",{staticClass:"go_group",on:{click:function(t){return e.goGroup(e.id,e.storeid)}}},[i("span",[e._v("去开团")]),i("i",{staticClass:"fa fa-angle-right"})])])],2)])},a=[],s=(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=s,l=(i("7f6e8"),i("2877")),r=Object(l["a"])(n,o,a,!1,null,"7a790beb",null);t["a"]=r.exports},b607:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.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}",""]),e.exports=t},f5a9:function(e,t,i){var o=i("b607");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=i("499e").default;a("0eaf1ec8",o,!0,{sourceMap:!1,shadowMode:!1})}}]);