bztang-admin/addons/yun_shop/static/app/js/chunk-e820a592.ce42ed74.js

1 line
19 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-e820a592"],{"13ae":function(t,e,i){var o=i("6d9d");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("7a33ff54",o,!0,{sourceMap:!1,shadowMode:!1})},"5d39":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,"#group_list[data-v-495abe60]{background:#fff}#group_list .content[data-v-495abe60]{padding-left:.625rem}#group_list .content .goods_box[data-v-495abe60]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.625rem .625rem .625rem 0;border-bottom:.0625rem solid #ebebeb}#group_list .content .goods_box .goods_img[data-v-495abe60]{width:7.5rem;height:7.5rem;background:#f2f2f2;overflow:hidden;border-radius:.25rem;margin-right:.625rem}#group_list .content .goods_box .goods_img img[data-v-495abe60]{width:100%}#group_list .content .goods_box .goods_info[data-v-495abe60]{width:14.0625rem;text-align:left}#group_list .content .goods_box .goods_info .name[data-v-495abe60]{font-size:14px;line-height:1.25rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}#group_list .content .goods_box .goods_info .price[data-v-495abe60]{font-size:16px;margin-top:.375rem;color:#f15353}#group_list .content .goods_box .goods_info .price span[data-v-495abe60]{font-size:12px}#group_list .content .goods_box .goods_info .price span[data-v-495abe60]:last-child{color:#8c8c8c;margin-left:.625rem}#group_list .content .goods_box .goods_info .number[data-v-495abe60]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#group_list .content .goods_box .goods_info .number[data-v-495abe60],#group_list .content .goods_box .goods_info .number .left[data-v-495abe60]{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}#group_list .content .goods_box .goods_info .number .left .iconfont[data-v-495abe60]{font-size:1.5rem;color:#f15353;margin-right:.375rem}#group_list .content .goods_box .goods_info .number .left span[data-v-495abe60]{color:#f15353;font-size:14px;border-left:.0625rem solid #ebebeb;padding-left:.375rem}#group_list .content .goods_box .goods_info .number .go_group[data-v-495abe60]{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}#group_list .content .goods_box .goods_info .number .go_group span[data-v-495abe60]{color:#fff;font-size:14px}#group_list .content .goods_box .goods_info .number .go_group .fa[data-v-495abe60]{color:#fff;font-size:1rem;margin-left:.625rem}#group_list .order-fixed-btn-cw[data-v-495abe60]{bottom:6rem}#group_list .order-fixed-btn[data-v-495abe60],#group_list .order-fixed-btn-cw[data-v-495abe60]{width:2.5rem;height:2.5rem;-webkit-box-shadow:.047rem .081rem .156rem 0 hsla(0,0%,82%,.36);box-shadow:.047rem .081rem .156rem 0 hsla(0,0%,82%,.36);background-image:-webkit-gradient(linear,left top,left bottom,from(#f14e4e),to(#f14e4e)),-webkit-gradient(linear,left top,left bottom,from(#fff),to(#fff));background-image:-webkit-linear-gradient(#f14e4e,#f14e4e),-webkit-linear-gradient(#fff,#fff);background-image:linear-gradient(#f14e4e,#f14e4e),linear-gradient(#fff,#fff);position:fixed;right:50%;-webkit-transform:translateX(10rem);transform:translateX(10rem);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-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;border-radius:50%;color:#fff;font-size:10px}#group_list .order-fixed-btn[data-v-495abe60]{bottom:3rem}.allteam[data-v-495abe60]{-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;height:100%;width:100%}.allteam[data-v-495abe60],.allteam .allLeft[data-v-495abe60]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.allteam .allLeft[data-v-495abe60]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.allteam .allLeft .teamNo[data-v-495abe60]{color:#f15353;max-width:55%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.allteam .allLeft .teamTwo[data-v-495abe60]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.allteam .allRight[data-v-495abe60]{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}.open_group[data-v-495abe60]{background:#fff;padding:.625rem;border-radius:.5rem}.open_group p[data-v-495abe60]{font-size:14px;margin-bottom:.625rem}.open_group .icon_close[data-v-495abe60]{position:absolute;top:.25rem;right:0;width:2.5rem;height:2.5rem}.open_group .icon_close .iconfont[data-v-495abe60]{line-height:2.5rem;font-size:.875rem;color:#999}",""]),t.exports=e},"6d9d":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".allteam[data-v-24c9f4bf]{-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}.allteam[data-v-24c9f4bf],.allteam .allLeft[data-v-24c9f4bf]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.allteam .allLeft[data-v-24c9f4bf]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;-ms-flex-align:center}.allteam .allLeft .teamNo[data-v-24c9f4bf]{color:#f15353;max-width:55%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:.35rem}.allteam .allLeft .teamTwo[data-v-24c9f4bf]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.allteam .allRight[data-v-24c9f4bf]{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}.open_group[data-v-24c9f4bf]{background:#fff;padding:.625rem;border-radius:.5rem}.open_group p[data-v-24c9f4bf]{font-size:14px;margin-bottom:.625rem}.open_group .icon_close[data-v-24c9f4bf]{position:absolute;top:.25rem;right:0;width:2.5rem;height:2.5rem}.open_group .icon_close .iconfont[data-v-24c9f4bf]{line-height:2.5rem;font-size:.875rem;color:#999}.open_group .setMaxH[data-v-24c9f4bf]{max-height:12rem;overflow:scroll}",""]),t.exports=e},"832e":function(t,e,i){"use strict";i("13ae")},"930c":function(t,e,i){var o=i("5d39");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("0c5e872e",o,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var o=document.documentElement,a=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return o&&o.scrollTop?t=o.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&o.clientHeight?Math.min(a.clientHeight,o.clientHeight):Math.max(a.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,o.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(){}}}},c221:function(t,e,i){"use strict";i("930c")},f5ca:function(t,e,i){"use strict";var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"group_listBox"}},[t.item.allTeamData?[i("van-swipe",{staticClass:"my-swipe",staticStyle:{height:"2rem"},attrs:{autoplay:3e3,touchable:!1,"show-indicators":!1,vertical:!0}},[t._l(t.item.allTeamData,(function(e,o){return[i("van-swipe-item",{key:o},[i("div",{staticClass:"allteam",on:{click:function(e){return e.stopPropagation(),t.getAllTeam(t.item)}}},[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("van-popup",{style:{width:3==this.fun.getPhoneEnv()?"375px":"88%"},attrs:{"get-container":"#group_listBox",position:"center",round:""},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[i("div",{staticClass:"open_group"},[i("p",[t._v("以下小伙伴拼团中,可直接参与")]),i("div",{staticClass:"icon_close",on:{click:function(e){e.stopPropagation(),t.show=!1}}},[i("i",{staticClass:"iconfont icon-close11"})]),i("div",{staticClass:"setMaxH"},[t._l(t.earliestData,(function(e,o){return i("group-list-cell",{key:o,attrs:{thumb:e.has_one_leader.avatar_image,username:e.has_one_leader.username,num:e.has_one_level.member_num,lack:e.has_one_level.member_num-e.has_many_success_member_count,isLeader:e.leader_id==t.uid,time:t.fun.getTimeDifference(e.end_time)},on:{finish:function(e){return t.finishTwo(o)},click:function(i){return t.clickAdd(i,e.id,e)}}})})),t.page<t.total_page?i("span",{on:{click:function(e){return t.getMoreData(t.item)}}},[t._v("点击加载更多")]):t._e()],2)])])],2)},a=[],n=(i("99af"),i("e9c4"),i("347e")),s={props:{item:{type:Object,default:function(){return{}}}},data:function(){return{earliestData:[],show:!1,uid:window.localStorage.getItem("uid"),page:1,isLoadMore:!0,total_page:0}},components:{groupListCell:n["a"]},computed:{},mounted:function(){},methods:{getAllTeam:function(t){var e=this,i="plugin.fight-groups.frontend.controllers.fight-groups-goods.all-team";$http.get(i,{id:t.id},"加载中").then((function(t){1===t.result?(e.isLoadMore=!0,e.total_page=t.data.last_page,e.total_page||(e.total_page=0),e.earliestData=t.data.data,e.isLoading=!1,e.show=!0):e.isLoading=!1}),(function(t){})).then((function(t){}))},getMoreData:function(t){var e=this;this.isLoadMore=!1;var i={};i.id=t.id;var o="plugin.fight-groups.frontend.controllers.fight-groups-goods.all-team";this.page>=this.total_page||(this.page=this.page+1,i.page=this.page,$http.get(o,i,"加载中").then((function(t){if(e.isLoadMore=!0,1==t.result){var i=t.data.data;e.total_page=t.data.last_page,e.earliestData=e.earliestData.concat(i)}else e.page=e.page-1,e.isLoadMore=!1})).catch((function(t){})))},clickAdd:function(t,e,i){if("share"!=t.tag){if("add"==t.tag){if("groupWorkGood"==this.goods_type)return void this.$router.push(this.fun.getUrl("groupWorkDetail",{aid:e,id:this.$route.params.id}));this.joinGroup(e)}}else{var o=i.has_one_group.desc_title,a=i.has_one_group.desc_content;this.shareWeixin(i.id,o,a)}},shareWeixin:function(t,e,i){if(5!=this.fun.getTyep())if(7==this.fun.getTyep()||this.fun.isCPS())this.appShare(t,e,i);else{var o=this;this.fun.wxShare("",{},{title:e,link:o.fun.getSiteRoot()+"/addons/yun_shop/?menu#/group_detail/"+t+"?i="+o.fun.getKeyByI()+"&mid="+o.fun.getKeyByMid(),description:i}),this.$dialog.alert({message:"请点击右上角微信分享"})}},appSharesinit:function(){var t=this;$http.post("member.member.wxJsSdkConfig",{url:document.location.href}).then((function(e){1==e.result&&t.appShare(e.data,_id,title,desc)}),(function(t){}))},appShare:function(t,e,i){var o,a,n=window.localStorage.getItem("uid"),s="",r=that.fun.getSiteRoot()+"/addons/yun_shop/?menu#/group_detail/"+t+"?i="+that.fun.getKeyByI()+"&mid="+that.fun.getKeyByMid();r=this.fun.isMid(r,n),o=e||this.goods_info.share_title,a=this.goodsInfo.thumb,s=i||this.goods_info.share_content;var l={title:o,desc:s,link:r,imgUrl:a};this.fun.isCPS()?"ios"===this.fun.isIosOrAndroid()?shareByH5IOS({body:"shareByH5IOS",json:JSON.stringify(l)}):shareByH5Android(JSON.stringify(l)):YDB.Share(o,s,a,r,"Sharesback")},joinGroup:function(t){var e=this,i=[];i.push(this.item.goods_id);var o={goods_ids:JSON.stringify(i)};$http.get("from.div-from.isDisplay",o,"加载中").then((function(i){if(1===i.result)if(i.data.status&&!i.data.member_status)e.$dialog.confirm({message:"购买跨境商品,请补充您的个人信息"}).then((function(){e.$router.push(e.fun.getUrl("myinfo",{tag:"",goodsId:e.item.goods_id,optionsId:optionsId,total:e.goodsCount}))})).catch((function(){}));else{var o={id:t};e.item.store_id&&(o.store_id=e.item.store_id),e.$router.push(e.fun.getUrl("GroupDetail",o))}}),(function(t){}))}}},r=s,l=(i("832e"),i("2877")),c=Object(l["a"])(r,o,a,!1,null,"24c9f4bf",null);e["a"]=c.exports},f70d:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"group_list"}},[i("c-title",{attrs:{hide:!1,text:t.diyTitle}}),i("div",{staticClass:"content"},[i("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},t._l(t.info,(function(e,o){return i("div",{key:o,staticClass:"goods_box"},["GroupList"==t.$route.name&&e.has_one_goods?[i("div",{staticClass:"goods_img"},[i("img",{attrs:{src:e.has_one_goods&&e.has_one_goods.thumb}})]),i("ul",{staticClass:"goods_info"},[i("li",{staticClass:"name",staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(" "+t._s(e.title)+" ")]),e.has_many_option_levels&&e.has_many_option_levels.length>0?i("li",{staticClass:"price"},[i("span",[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(e.has_many_option_levels[0].group_price)+" "),i("span",{staticStyle:{"text-decoration":"line-through"}},[t._v(t._s(t.$i18n.t("money"))+t._s(e.has_many_option_levels[0].has_one_fight_groups_option.option_price))])]):t._e(),i("group-list-popup",{attrs:{item:e}}),i("li",{staticClass:"number"},[e.has_many_option_levels&&e.has_many_option_levels.length>0?i("div",{staticClass:"left"},[i("i",{staticClass:"iconfont icon-group_list"}),i("span",[t._v(t._s(e.has_many_option_levels[0].member_num)+"人")])]):t._e(),i("div",{staticClass:"go_group",on:{click:function(i){return t.goGroup(e.id,e.store_id)}}},[i("span",[t._v("去开团")]),i("i",{staticClass:"fa fa-angle-right"})])])],1)]:t._e(),"zhpGroupList"==t.$route.name?[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"}},[t._v(" "+t._s(e.title)+" ")]),i("li",{staticClass:"price"},[i("span",[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(e.group_price)+" "),e.group_price<e.price?i("span",{staticStyle:{"text-decoration":"line-through"}},[t._v(t._s(t.$i18n.t("money"))+t._s(e.price))]):t._e()]),i("li",{staticClass:"number"},[i("div",{staticClass:"left"},[i("i",{staticClass:"iconfont icon-group_list"}),i("span",[t._v(t._s(e.member_count)+"人")])]),i("div",{staticClass:"go_group",on:{click:function(i){return t.goGroup(e.id)}}},[i("span",[t._v("去参团")]),i("i",{staticClass:"fa fa-angle-right"})])])])]:t._e()],2)})),0)],1),"zhpGroupList"==this.$route.name?i("router-link",{staticClass:"order-fixed-btn-cw",attrs:{tag:"div",to:t.fun.getUrl("zhpFinance",{})}},[i("van-icon",{attrs:{name:"after-sale",size:"20"}}),t._v("财务")],1):t._e(),"zhpGroupList"==this.$route.name?i("router-link",{staticClass:"order-fixed-btn",attrs:{tag:"div",to:t.fun.getUrl("zhpMyGroups",{})}},[i("i",{staticClass:"iconfont icon-dingdan1"}),t._v("订单")]):t._e(),this.info.length<1?i("p",{staticStyle:{padding:"1rem 0",color:"#f60"},on:{click:t.goHome}},[t._v("暂无拼团活动,去商城逛逛吧!")]):t._e()],1)},a=[],n=(i("e7e5"),i("d399")),s=(i("b0c0"),i("99af"),i("6968")),r=i("f5ca"),l=i("ac0d"),c={mixins:[l["a"]],data:function(){return{diyTitle:"拼团列表",isLoading:!1,info:{},shareInfo:{},page:1,isLoadMore:!0,total_page:0,earliestData:[],show:!1}},activated:function(){this.init(),this.getData()},methods:{init:function(){this.info={},this.shareInfo={},this.isLoadMore=!0,this.total_page=0,this.page=1,"zhpGroupList"==this.$route.name&&(this.diyTitle="拼团列表",this.fun.setWXTitle("拼团列表"))},getData:function(){var t=this,e=this,i="plugin.fight-groups.frontend.controllers.fight-groups.index";"zhpGroupList"==this.$route.name&&(i="plugin.zhp-group-lottery.frontend.activity.get-activity-list"),$http.get(i,{},"加载中").then((function(i){1===i.result?(t.isLoadMore=!0,t.total_page=i.data.last_page,t.total_page||(t.total_page=0),t.info=i.data.data,"zhpGroupList"!=t.$route.name&&(t.shareInfo=i.data.set,e.fun.wxShare("",{},{title:e.shareInfo.share_title,link:e.shareInfo.share_url,imgUrl:e.shareInfo.share_thumb,description:e.shareInfo.share_desc})),t.isLoading=!1):t.isLoading=!1}),(function(t){})).then((function(t){}))},initShare:function(){var t=this,e={url:"android"===this.fun.isIosOrAndroid()?window.location.href:window.initUrl};$http.post("member.member.wxJsSdkConfig",e).then((function(e){1===e.result&&e.data.config&&e.data.config.appId&&t.share(e.data)}),(function(t){}))},share:function(t){wx.config(t.config);var e,i,o,a,s=this,r="";try{e=document.location.href,i=this.fun.isTextEmpty(s.shareInfo.share_title)?t.shop.shop.name:s.shareInfo.share_title,o=this.fun.isTextEmpty(s.shareInfo.share_url)?e:s.shareInfo.share_url,a=this.fun.isTextEmpty(s.shareInfo.share_thumb)?t.shop.icon:s.shareInfo.share_thumb,r=this.fun.isTextEmpty(s.shareInfo.share_desc)?t.shop.shop.name:s.shareInfo.share_desc}catch(l){}wx.ready((function(){wx.showOptionMenu(),wx.onMenuShareTimeline({title:i,link:o,imgUrl:a,success:function(){Object(n["a"])("分享成功")},cancel:function(){Object(n["a"])("取消分享")}}),wx.onMenuShareAppMessage({title:i,desc:r,link:o,imgUrl:a,success:function(){Object(n["a"])("分享成功")},cancel:function(){Object(n["a"])("取消分享")}})}))},goGroup:function(t,e){if(e)this.$router.push(this.fun.getUrl("GroupGoods",{id:t,store_id:e}));else{var i="zhpGroupList"==this.$route.name?"zhpGroup":"GroupGoods";this.$router.push(this.fun.getUrl(i,{id:t}))}},goHome:function(){this.$router.push(this.fun.getUrl("home",{}))},getMoreData:function(){this.isLoadMore=!1;var t=this;if(!(t.page>=t.total_page)){t.page+=1;var e="plugin.fight-groups.frontend.controllers.fight-groups.index";"zhpGroupList"==this.$route.name&&(e="plugin.zhp-group-lottery.frontend.activity.get-activity-list"),$http.get(e,{page:t.page},"加载中").then((function(e){if(t.isLoadMore=!0,1!=e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.data;t.info=t.info.concat(i)})).catch((function(t){}))}},loadTop:function(){this.init(),this.getData()}},components:{cTitle:s["a"],groupListPopup:r["a"]}},d=c,f=d,u=(i("c221"),i("2877")),p=Object(u["a"])(f,o,a,!1,null,"495abe60",null);e["default"]=p.exports}}]);