bztang-admin/addons/yun_shop/static/app/js/chunk-4a70e884.4a28ef2f.js

1 line
20 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a70e884"],{"279d":function(t,e,o){var i=o("7c372");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=o("499e").default;a("5fa993d0",i,!0,{sourceMap:!1,shadowMode:!1})},3589:function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"group_buy_detail"}},[o("c-title",{attrs:{hide:!1,text:"拼购详情"}}),o("div",{staticClass:"content"},[o("div",{staticClass:"goods_list"},[o("div",{staticClass:"top_box"},[o("div",{staticClass:"member_num"},[t._v(" 成团人数 "),o("em",{staticStyle:{color:"#ff2c29"}},[t._v(t._s(t.info.buy_number)+"人")])]),o("div",{staticClass:"status"},[t._v(t._s(t._f("setStateName")(t.info.state)))])]),o("div",{staticClass:"goods_box"},[o("div",{staticClass:"goods_img"},[o("img",{attrs:{src:t.info.thumb},on:{click:t.gotoGoods}})]),o("ul",{staticClass:"goods_info"},[o("li",{staticClass:"name",staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(" "+t._s(t.info.title)+" ")]),o("li",{staticClass:"number"},[o("div",{staticClass:"left"},[o("span",[t._v(t._s(t.info.pay_num)+"人付款")])])]),o("li",{staticClass:"price"},[o("span",[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(t.info.price)),o("span",{staticStyle:{"text-decoration":"line-through"}},[t._v(t._s(t.$i18n.t("money"))+t._s(t.info.market_price))])])])])]),o("div",{staticClass:"group_user"},[1==t.info.state||2==t.info.state?o("div",{staticClass:"user_box"},[t._l(t.info.staff_member,(function(e,i){return o("div",{key:i,staticClass:"user"},[o("div",{staticClass:"img",class:{current:1==e.is_leader}},[o("img",{attrs:{src:e.avatar}})]),"1"==e.is_leader?o("span",[t._v("团长")]):t._e()])})),t._l(t.info.buy_number-t.info.pay_num,(function(e,i){return o("div",{key:i,staticClass:"user"},[t._m(0,!0),o("i",{staticClass:"iconfont icon-group_wenhao"})])}))],2):t._e(),o("div",{staticClass:"text_state"},[1==t.info.state||4==t.info.state?o("div",[t._v(" 离成团还差"+t._s(t.info.buy_number-t.info.pay_num)+"人, "),o("van-count-down",{staticClass:"bottom_time",attrs:{time:t.fun.getTimeDifference(t.info.end_time),format:"DD天HH时mm分ss秒"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("em",[t._v(t._s(e.days<10?"0"+e.days:e.days))]),t._v("天 "),o("em",[t._v(t._s(e.hours<10?"0"+e.hours:e.hours))]),o("b",[t._v(":")]),o("em",[t._v(t._s(e.minutes<10?"0"+e.minutes:e.minutes))]),o("b",[t._v(":")]),o("em",[t._v(t._s(e.seconds<10?"0"+e.seconds:e.seconds))])]}}],null,!1,3739092948)}),t._v(" 后结束 ")],1):2==t.info.state?o("div",[t._v("该团已拼购成功")]):0==t.info.status?o("div",[t._v("很抱歉,该活动已结束")]):0==t.info.state?o("div",[t._v("待支付,请尽快支付!")]):o("div",[t._v("未达到拼购人数,拼购失败!")])]),1!=t.info.status||1!=t.info.is_self||1!=t.info.state&&4!=t.info.state?t._e():o("div",{staticClass:"look_btn",on:{click:t.joinshareWeixinTeam}},[o("button",{attrs:{type:"button"}},[t._v("邀请好友")])]),1==t.info.status&&5==t.info.state||6==t.info.state||3==t.info.state?o("div",{staticClass:"look_btn",on:{click:t.openGroup}},[o("button",{attrs:{type:"button"}},[t._v("我要开团")])]):t._e(),t.isCheckActivity&&0!=t.info.status&&7!=t.info.state?t._e():o("div",{staticClass:"look_btn"},[o("button",{staticStyle:{background:"#999"},attrs:{type:"button"}},[t._v("更多拼购进行中")])]),1!=t.info.status||0!=t.info.is_self||4!=t.info.state&&1!=t.info.state?t._e():o("div",{staticClass:"look_btn",on:{click:t.joinTeam}},[o("button",{attrs:{type:"button"}},[t._v("我要参团")])]),0==t.info.state?o("div",{staticClass:"look_btn",on:{click:t.gotoOrderDetail}},[o("button",{attrs:{type:"button"}},[t._v("去支付")])]):t._e()])])],1)},a=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"img"},[o("img",{attrs:{src:""}})])}],n=(o("e7e5"),o("d399")),r=(o("e9c4"),o("6968")),s={data:function(){return{info:{},isCheckActivity:!0}},activated:function(){this.init(),this.id=this.$route.params.id,this.getData()},methods:{init:function(){this.info={},this.isCheckActivity=!0},getData:function(){var t=this;$http.get("plugin.together-purchase.api.index.getTogetherData",{art:"purchaseDetail",o_id:t.id},"").then((function(e){1===e.result?(t.info=e.data.purchaseDetail,t.checkActivity(),t.fun.wxShare("",{mid:t.fun.getKeyByMid(),goods_id:t.info.goods_id},{title:t.info.title,imgUrl:t.info.thumb,description:"向您分享一个拼购商品"})):Object(n["a"])(e.msg)}),(function(t){}))},checkActivity:function(){var t=this;$http.get("plugin.together-purchase.api.index.getTogetherData",{art:"checkActivity",at_id:t.info.activity_id}).then((function(e){1===e.result?t.isCheckActivity=!0:(t.isCheckActivity=!1,Object(n["a"])(e.msg))}),(function(t){}))},joinTeam:function(){var t=this;if(this.isCheckActivity)if(0!=this.info.status){var e=[];e.push(t.info.goods_id),$http.get("from.div-from.isDisplay",{goods_ids:JSON.stringify(e)},"加载中").then((function(e){1===e.result&&(e.data.status&&!e.data.member_status?t.$dialog.confirm({message:"购买跨境商品,请补充您的个人信息"}).then((function(){t.$router.push(t.fun.getUrl("myinfo",{tag:"groupBuy_join",goodsId:t.goods_id,at_id:t.activity,optionsId:0,total:1}))})).catch((function(){})):t.$router.push(t.fun.getUrl("goodsorder",{},{tag:"-2",orderType:"groupBuy_join",goodsId:t.info.goods_id,total:1,at_id:t.info.activity_id,leader_id:t.info.leader_id})))}),(function(t){}))}else Object(n["a"])("很抱歉,该活动已结束");else Object(n["a"])("抱歉,您已超出限制条件")},openGroup:function(){if(this.isCheckActivity)if(0!=this.info.status){var t=this,e=[];e.push(t.info.goods_id),$http.get("from.div-from.isDisplay",{goods_ids:JSON.stringify(e)},"加载中").then((function(e){1===e.result&&(e.data.status&&!e.data.member_status?t.$dialog.confirm({message:"购买跨境商品,请补充您的个人信息"}).then((function(){t.$router.push(t.fun.getUrl("myinfo",{tag:"groupBuy_open",goodsId:t.info.goods_id,at_id:t.info.activity_id,optionsId:0,total:1}))})).catch((function(){})):t.$router.push(t.fun.getUrl("goodsorder",{},{tag:"-2",orderType:"groupBuy_open",goodsId:t.info.goods_id,at_id:t.info.activity_id,total:1})))}),(function(t){}))}else Object(n["a"])("很抱歉,该活动已结束");else Object(n["a"])("抱歉,您已超出限制条件")},shareWeixin:function(){5!=this.fun.getTyep()&&(7!=this.fun.getTyep()?this.$dialog.alert({message:"请点击右上角微信分享"}):this.appShare())},initShare:function(){var t=this,e={url:"android"===this.fun.isIosOrAndroid()?window.location.href:window.initUrl,mid:this.fun.getKeyByMid(),goods_id:this.info.goods_id};$http.post("member.member.wxJsSdkConfig",e).then((function(e){1===e.result&&e.data.config&&t.share(e.data)}),(function(t){}))},appShare:function(){var t=this,e=t.info.title,o=t.info.thumb,i="向您分享一个拼购商品",a=document.location.href;a=t.fun.isMid(a,t.fun.getKeyByMid()),YDB.Share(e,i,o,a,"Sharesback")},share:function(t){var e=this,o=e.info.title,i=e.info.thumb,a="向您分享一个拼购商品",r=document.location.href;_link=e.fun.isMid(r,t.info.uid),wx.config(t.config),wx.ready((function(){wx.showOptionMenu(),wx.onMenuShareTimeline({title:o,link:_links,imgUrl:i,success:function(){Object(n["a"])("分享成功")},cancel:function(){Object(n["a"])("取消分享")}}),wx.onMenuShareAppMessage({title:o,desc:a,link:_links,imgUrl:i,success:function(){Object(n["a"])("分享成功")},cancel:function(){Object(n["a"])("取消分享")}})}))},gotoGoods:function(){this.$router.push(this.fun.getUrl("groupBuy",{id:this.info.goods_id,aid:this.info.activity_id}))},gotoOrderDetail:function(){var t=this;this.$router.push(this.fun.getUrl("orderdetail",{order_id:t.$route.params.id,orderType:"groupsBuy"}))}},filters:{setStateName:function(t){if(!t)return"";var e="";switch(t){case 0:e="待支付";break;case 1:e="拼购中";break;case 2:e="拼购成功";break;case 3:e="拼购失败";break;case 4:e="成团中";break;case 5:e="已退款";break;case 6:e="已返还爱心值";break;case 7:e="无效";break}return e}},computed:{},components:{cTitle:r["a"]}},d=s,l=d,c=(o("ee6d"),o("2877")),f=Object(c["a"])(l,i,a,!1,null,"761afb9c",null);e["default"]=f.exports},"7c372":function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,"#group_buy_detail[data-v-761afb9c]{padding-bottom:60px}#group_buy_detail .content .goods_list[data-v-761afb9c]{background:#fff;margin:.75rem;border-radius:.375rem;overflow:hidden}#group_buy_detail .content .goods_list .top_box[data-v-761afb9c]{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;height:2.125rem;line-height:2.125rem;padding:0 .625rem}#group_buy_detail .content .goods_list .goods_box[data-v-761afb9c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.625rem;border-bottom:.0625rem solid #ebebeb}#group_buy_detail .content .goods_list .goods_box .goods_img[data-v-761afb9c]{width:7.875rem;height:7.875rem;background:#f2f2f2;overflow:hidden;border-radius:.25rem;margin-right:.625rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}#group_buy_detail .content .goods_list .goods_box .goods_img img[data-v-761afb9c]{width:100%}#group_buy_detail .content .goods_list .goods_box .goods_info[data-v-761afb9c]{width:14.0625rem;text-align:left;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#group_buy_detail .content .goods_list .goods_box .goods_info .name[data-v-761afb9c]{font-size:.875rem;line-height:1.125rem;height:4.5rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}#group_buy_detail .content .goods_list .goods_box .goods_info .price[data-v-761afb9c]{font-size:16px;margin-top:.375rem;color:#ff2c29}#group_buy_detail .content .goods_list .goods_box .goods_info .price span[data-v-761afb9c]{font-size:12px}#group_buy_detail .content .goods_list .goods_box .goods_info .price span[data-v-761afb9c]:last-child{color:#8c8c8c;margin-left:.625rem}#group_buy_detail .content .goods_list .goods_box .goods_info .number[data-v-761afb9c]{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;margin-top:.375rem;color:#666}#group_buy_detail .content .goods_list .goods_box .goods_info .number[data-v-761afb9c],#group_buy_detail .content .goods_list .goods_box .goods_info .number .left[data-v-761afb9c]{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_buy_detail .content .goods_list .goods_box .goods_info .number .left .iconfont[data-v-761afb9c]{font-size:1.5rem;color:#ff2c29;margin-right:.375rem}#group_buy_detail .content .goods_list .goods_box .goods_info .number .left span[data-v-761afb9c]{font-size:14px;padding-left:.375rem}#group_buy_detail .content .goods_list .goods_box .goods_info .number .go_group[data-v-761afb9c]{height:1.75rem;border-radius:.25rem;border:.0625rem solid #ff2c29;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;margin-left:.625rem;color:#ff2c29;padding:0 .85rem}#group_buy_detail .content .goods_list .goods_box[data-v-761afb9c]:last-child{border:none}#group_buy_detail .content .into_group[data-v-761afb9c]{margin-top:.625rem;background:#fff;padding:.875rem}#group_buy_detail .content .into_group .title[data-v-761afb9c]{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;margin-bottom:.625rem}#group_buy_detail .content .into_group .title .line_left[data-v-761afb9c],#group_buy_detail .content .into_group .title .line_right[data-v-761afb9c]{border:.0625rem solid #ff2c29;width:3.75rem}#group_buy_detail .content .into_group .title span[data-v-761afb9c]{margin:0 1.25rem;font-size:16px;color:#ff2c29}#group_buy_detail .content .into_group .time em[data-v-761afb9c]{background-color:#ff2c29;color:#fff}#group_buy_detail .content .into_group p[data-v-761afb9c]{margin-top:.875rem;font-size:14px}#group_buy_detail .content .into_group p span[data-v-761afb9c]{color:#ff2c29}#group_buy_detail .content .into_group .btn[data-v-761afb9c]{margin-top:1.25rem;width:18.75rem;height:2.5rem;border-radius:.375rem;color:#fff;font-size:16px;background:#ff2c29;border:none}#group_buy_detail .content .into_group .endClass[data-v-761afb9c]{background-color:#969799}#group_buy_detail .content .group_user[data-v-761afb9c]{background:#fff;margin-top:.625rem;padding:.875rem}#group_buy_detail .content .group_user h2[data-v-761afb9c]{font-weight:400;font-size:15px;margin-bottom:.625rem;text-align:left}#group_buy_detail .content .group_user .user_box[data-v-761afb9c]{padding:1.25rem 0;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-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-height:8.5rem;overflow:scroll}#group_buy_detail .content .group_user .user_box .user[data-v-761afb9c]{position:relative;margin:0 .375rem .85rem}#group_buy_detail .content .group_user .user_box .user .img[data-v-761afb9c]{width:3rem;height:3rem;background:#fafafa;border-radius:2rem;border:.0625rem dashed #ff8340;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#group_buy_detail .content .group_user .user_box .user .img img[data-v-761afb9c]{width:100%}#group_buy_detail .content .group_user .user_box .user .iconfont[data-v-761afb9c]{width:3rem;height:3rem;font-size:1.5rem;color:#ebebeb;position:absolute;line-height:3rem;top:0;left:0}#group_buy_detail .content .group_user .user_box .user span[data-v-761afb9c]{width:2.125rem;height:1.125rem;line-height:1.125rem;border-radius:2rem;background:#ff8340;font-size:10px;color:#fff;display:block;position:absolute;top:-.5rem;right:-.875rem}#group_buy_detail .content .group_user .user_box .user .current[data-v-761afb9c]{border:.0625rem dashed #ff8340}#group_buy_detail .content .group_user .text_state[data-v-761afb9c]{color:#ff2c29;text-align:center;font-size:1rem;padding:1rem 0 1.5rem}#group_buy_detail .content .group_user .text_state .bottom_time[data-v-761afb9c]{display:inline-block;color:#ff2c29;font-size:1rem}#group_buy_detail .content .look_btn[data-v-761afb9c]{background:#fff;width:100%}#group_buy_detail .content .look_btn button[data-v-761afb9c]{border:none;background:#ff2c29;font-size:16px;color:#fff;width:16.25rem;height:2.5rem;border-radius:1.375rem}#group_buy_detail .mint-popup-4[data-v-761afb9c]{width:100%}#group_buy_detail .one_open[data-v-761afb9c]{padding-bottom:3.75rem}#group_buy_detail .one_open .img_price[data-v-761afb9c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.875rem}#group_buy_detail .one_open .img_price .goods[data-v-761afb9c]{width:5.875rem;height:5.875rem;background:#f2f2f2;border:.0625rem solid #ebebeb;overflow:hidden;border-radius:.1875rem;position:absolute;top:-1.875rem}#group_buy_detail .one_open .img_price .goods img[data-v-761afb9c]{width:100%}#group_buy_detail .one_open .img_price .price[data-v-761afb9c]{margin-left:6.875rem;text-align:left}#group_buy_detail .one_open .img_price .price .price_a[data-v-761afb9c]{color:#ff2c29;font-size:18px}#group_buy_detail .one_open .img_price .price .price_b[data-v-761afb9c]{color:#8c8c8c;font-size:12px}#group_buy_detail .one_open .icon_close[data-v-761afb9c]{position:absolute;top:.25rem;right:0;width:2.5rem;height:2.5rem}#group_buy_detail .one_open .icon_close .iconfont[data-v-761afb9c]{line-height:2.5rem;font-size:1.125rem;color:#999}#group_buy_detail .one_open .select_box[data-v-761afb9c]{padding:.875rem .875rem 0 .875rem}#group_buy_detail .one_open .select_box .select[data-v-761afb9c]{border-top:.0625rem solid #ebebeb;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:.875rem 0}#group_buy_detail .one_open .select_box .select li[data-v-761afb9c]{width:6.75rem;padding:.625rem 0;border:.0625rem solid #ebebeb;border-radius:.25rem;margin-right:.625rem;margin-bottom:.625rem}#group_buy_detail .one_open .select_box .select li span[data-v-761afb9c]{display:block;font-size:14px}#group_buy_detail .one_open .select_box .select li span font[data-v-761afb9c]{font-size:18px}#group_buy_detail .one_open .select_box .select li[data-v-761afb9c]:nth-child(3n){margin-right:0}#group_buy_detail .one_open .select_box .select .current[data-v-761afb9c]{border:.0625rem solid #ff2c29;color:#ff2c29}#group_buy_detail .one_open .select_box .van-radio-group[data-v-761afb9c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#group_buy_detail .one_open .select_box .van-radio-group .van-radio[data-v-761afb9c]{margin-right:.3125rem;margin-bottom:.3125rem;background:#fff;border:1px solid #bfcbd9;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:.25rem}#group_buy_detail .one_open .select_box .van-radio-group .vantRadioshow[data-v-761afb9c]{background-color:#f15353;border-color:#f15353;-webkit-box-shadow:#f15353 -1px 0 0 0;box-shadow:-1px 0 0 0 #f15353}#group_buy_detail .one_open .noVantRadio[data-v-761afb9c]{padding:0 1.25rem}#group_buy_detail .one_open .noVantRadio .van-radio-group .van-radio__label[data-v-761afb9c]{padding:2rem!important}#group_buy_detail .one_open .noVantRadio dl[data-v-761afb9c]{margin-bottom:.8rem;text-align:left}#group_buy_detail .one_open .noVantRadio dl dt[data-v-761afb9c]{margin-bottom:.5rem}#group_buy_detail .one_open .noVantRadio dl .van-radio-group[data-v-761afb9c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#group_buy_detail .one_open .noVantRadio dl .van-radio-group .van-radio[data-v-761afb9c]{margin-right:.3125rem;margin-bottom:.3125rem;background:#fff;border:1px solid #bfcbd9;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:.25rem}#group_buy_detail .one_open .noVantRadio dl .van-radio-group .vantRadioshow[data-v-761afb9c]{background-color:#f15353;border-color:#f15353;-webkit-box-shadow:#f15353 -1px 0 0 0;box-shadow:-1px 0 0 0 #f15353}#group_buy_detail .one_open .buy_number[data-v-761afb9c]{margin:0 .875rem;height:3.75rem;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;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-top:.0625rem solid #ebebeb;border-bottom:.0625rem solid #ebebeb}#group_buy_detail .one_open .buy_number .num[data-v-761afb9c]{border-radius:.1875rem;float:right;background-color:#fff}#group_buy_detail .one_open .buy_number .num .leftnav[data-v-761afb9c]{height:1.75rem;width:1.75rem;float:left;background-color:#f2f2f2;color:#999;text-align:center;border-radius:.1875rem;line-height:1.75rem;font-size:18px;font-weight:700}#group_buy_detail .one_open .buy_number .num .shownum[data-v-761afb9c]{height:1.75rem;width:2.25rem;float:left;border:0;margin:0;padding:0;text-align:center;color:#333}#group_buy_detail .one_open .buy_number .num .rightnav[data-v-761afb9c]{height:1.75rem;width:1.75rem;float:right;background-color:#f2f2f2;color:#999;text-align:center;border-radius:.1875rem;line-height:1.75rem;font-size:18px;font-weight:700}#group_buy_detail .one_open .btn[data-v-761afb9c]{background:#ff2c29;height:3.125rem;width:100%;color:#fff;font-size:16px;position:fixed;bottom:0;left:0;border:none}",""]),t.exports=e},ee6d:function(t,e,o){"use strict";o("279d")}}]);