bztang-admin/addons/yun_shop/static/app/js/chunk-60faa860.1aaf4d07.js

1 line
19 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60faa860","chunk-2d0d83d6"],{"3b75f":function(t,e,a){"use strict";a("6a2a")},6369:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'#mygroups .content .headTop[data-v-db262a5a]{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:1rem 1.3rem;background-color:#fff}#mygroups .content .headTop .imgbox[data-v-db262a5a]{width:3rem;height:3rem;border-radius:100%;background-color:#d2691e}#mygroups .content .headTop .imgbox img[data-v-db262a5a]{width:100%;height:100%;border-radius:100%}#mygroups .content .headTop .rightBox[data-v-db262a5a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;margin-left:.4rem;margin-bottom:.6rem}#mygroups .content .list_box[data-v-db262a5a]{min-height:100vh}#mygroups .content .list_box .list[data-v-db262a5a]{background:#fff;margin-top:.625rem}#mygroups .content .list_box .list .store-box[data-v-db262a5a]{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-db262a5a]{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-db262a5a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.75rem}#mygroups .content .list_box .list .time_state[data-v-db262a5a]{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-db262a5a]{color:#f15353}#mygroups .content .list_box .list .goods_box[data-v-db262a5a]{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-db262a5a]{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-db262a5a]{width:100%}#mygroups .content .list_box .list .goods_box .goods_name[data-v-db262a5a]{width:15.4375rem;position:relative}#mygroups .content .list_box .list .goods_box .goods_name .name_price[data-v-db262a5a]{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-db262a5a]{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-db262a5a]{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-db262a5a]{color:#8c8c8c}#mygroups .content .list_box .list .goods_box .goods_name .option[data-v-db262a5a]{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 .all_price[data-v-db262a5a]{height:2.5rem;line-height:2.5rem;padding:0 .875rem;text-align:right;font-size:14px;font-weight:400}#mygroups .content .list_box .list .all_price span[data-v-db262a5a]{font-weight:700;font-size:18px}#mygroups .content .list_box .list .allbt[data-v-db262a5a]{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 .botton-Popover[data-v-db262a5a],#mygroups .content .list_box .list .allbt button[data-v-db262a5a]{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 .list .allbt .botton-Popover[data-v-db262a5a]{position:relative}#mygroups .content .list_box .list .allbt .botton-Popover .botton-Popover-main[data-v-db262a5a]{position:absolute;width:80px;height:auto;border:1px solid #e2e2e2;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;bottom:32px;background:#fff;border-radius:4px;-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%}#mygroups .content .list_box .list .allbt .botton-Popover .botton-Popover-main button[data-v-db262a5a]{margin:0 auto;border:none;border-bottom:1px solid #e2e2e2;width:80%;padding:.25rem 0}#mygroups .content .list_box .list .allbt .botton-Popover .botton-Popover-main button[data-v-db262a5a]:last-child{border:none}#mygroups .content .list_box .list .allbt .botton-Popover .botton-Popover-main[data-v-db262a5a]:before{content:"";width:0;height:0;bottom:0;left:50%;margin-bottom:-12px;margin-left:-6px;position:absolute;border:6px solid;border-color:#e2e2e2 transparent transparent}.boxYh[data-v-db262a5a]{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-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;width:100%;border-radius:1rem;padding:1rem 0}.boxYh .boxYhbtn[data-v-db262a5a],.boxYh .boxYhbtn .cancelBtn[data-v-db262a5a]{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}.boxYh .boxYhbtn .cancelBtn[data-v-db262a5a]{color:#f15353;padding:.25rem 1rem;border-radius:.3rem;border:1px solid #f15353;margin-right:1rem}.boxYh .boxYhbtn .submitBtn[data-v-db262a5a]{margin-left:1rem;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;background-color:#f15353;color:#fff;padding:.25rem 1rem;border-radius:.3rem}',""]),t.exports=e},"6a2a":function(t,e,a){var i=a("6369");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("d52ea93a",i,!0,{sourceMap:!1,shadowMode:!1})},"79db":function(t,e,a){t.exports=a.p+"static/app/img/empty-image-search.ef236a93.png"},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var i=document.documentElement,o=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&i.clientHeight?Math.min(o.clientHeight,i.clientHeight):Math.max(o.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,i.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(){}}}},d85a:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"mygroups"}},[a("c-title",{attrs:{hide:!1,text:t.customTitle}}),a("div",{staticClass:"content"},[1==t.is_frequency?a("div",{staticClass:"headTop"},[a("div",{staticClass:"imgbox"},[a("img",{attrs:{src:t.member.avatar_image,alt:""}})]),a("div",{staticClass:"rightBox"},[a("div",[t._v(t._s(t.member.nickname))]),a("div",[t._v("剩余开团次数:"+t._s(t.frequency?t.frequency:0))])])]):t._e(),a("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,i){return a("van-tab",{key:i,attrs:{title:e}},[a("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[t.dataList[i]&&!t.fun.isTextEmpty(t.dataList[i].list)?a("div",{staticClass:"list_box"},t._l(t.dataList[i].list,(function(e,o){return a("div",{key:o,staticClass:"list"},["MyGroups"==t.pluginName?[e.has_one_store&&e.has_one_store.id?a("div",{staticClass:"store-box",on:{click:function(a){return a.stopPropagation(),t.gotoUrl("o2oStore_v2",{store_id:e.has_one_store.id,fromHome:1})}}},[a("img",{attrs:{src:e.has_one_store.thumb,alt:""}}),a("div",{staticClass:"store-name"},[t._v(t._s(e.has_one_store.store_name))]),a("i",{staticClass:"iconfont icon-advertise-next"})]):t._e(),a("div",{staticClass:"time_state"},[a("span",{staticClass:"time"},[t._v("开团:"+t._s(t._f("startTimes")(e.has_one_team.start_time)))]),0==t.activeName?a("span",{staticClass:"state"},[t._v("拼单中,还差"+t._s(e.has_one_level.member_num-e.has_one_team.has_many_success_member_count)+"人")]):t._e(),1==t.activeName?a("span",{staticClass:"state"},[t._v("拼团成功 "),e.is_win?a("em",[t._v("("+t._s(1==e.is_win?"抽中":"未抽中")+")")]):t._e()]):t._e(),2==t.activeName?a("span",{staticClass:"state"},[t._v("拼团失败")]):t._e()]),a("div",{staticClass:"goods_box"},[a("div",{staticClass:"goods_img"},[a("img",{attrs:{src:t.fun.isTextEmpty(e.has_one_goods)?"":e.has_one_goods.thumb}})]),a("ul",{staticClass:"goods_name"},[a("li",{staticClass:"name_price"},[a("h2",{staticClass:"name",staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(" "+t._s(e.has_one_goods?e.has_one_goods.title:"")+" ")])]),a("li",{staticClass:"option"},[a("span",[t._v(t._s(t.$i18n.t("money"))+t._s(e.total_price))]),a("span",{staticStyle:{color:"#000"}},[a("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)])])]),a("div",{staticClass:"allbt"},[a("button",{attrs:{type:"button"},on:{click:function(a){return t.gotoUrl("groupDetail",{order_id:e.order_id,orderType:"groups"})}}},[t._v(" 订单详情 ")]),a("button",{attrs:{type:"button"},on:{click:function(a){return t.gotoGroup(e)}}},[t._v(" 拼团详情 ")])])]:t._e(),"zhpMyGroups"==t.pluginName?[a("div",{staticClass:"time_state"},[a("span",{staticClass:"time"},[t._v("参团:"+t._s(e.created_at))]),0!=t.activeName?a("span",{staticClass:"state"},[t._v(t._s(t.titleArr[i]))]):t._e()]),a("div",{staticClass:"goods_box"},[a("div",{staticClass:"goods_img"},[a("img",{attrs:{src:e.thumb||""}})]),a("ul",{staticClass:"goods_name"},[a("li",{staticClass:"name_price"},[a("h2",{staticClass:"name",staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(" "+t._s(e.goods_title||"")+" ")])]),a("li",{staticClass:"option"},[a("span",[t._v(t._s(t.$i18n.t("money"))+t._s(e.order_price))]),0==t.activeName?a("span",{staticStyle:{color:"#000"}},[a("van-count-down",{staticClass:"bottom_time",attrs:{time:t.fun.getTimeDifference(e.lottery_time),format:"DD天HH时mm分ss秒"},on:{finish:t.groupEnd}})],1):t._e()])])]),a("div",{staticClass:"allbt"},[1==t.activeName?[0==e.nex_lottery?a("button",{attrs:{type:"button"},on:{click:function(a){return t.groupBtn(0,e.id)}}},[t._v(" 继续参团 ")]):t._e(),0==e.nex_lottery?a("button",{attrs:{type:"button"},on:{click:function(a){return t.groupBtn(1,e.id)}}},[t._v(" 退出参团 ")]):t._e(),1==e.barter_status?a("button",{attrs:{type:"button"}},[t._v(" 已易兑 ")]):t._e(),0==e.barter_status?a("button",{attrs:{type:"button"},on:{click:function(a){return t.zhpYh(e.id)}}},[t._v(" 易兑 ")]):t._e(),0==e.barter_status?a("button",{attrs:{type:"button"},on:{click:function(a){return t.zhpSendAction(e.id)}}},[t._v(" 发货 ")]):t._e()]:t._e(),a("button",{attrs:{type:"button"},on:{click:function(a){return t.gotoUrl("orderdetail",{order_id:e.order_id,orderType:"zhpGroup"})}}},[t._v(" 订单详情 ")]),e.refund_button?a("button",{attrs:{type:"button"},on:{click:function(a){return t.cancelTap(e.id)}}},[t._v(" 退出拼团 ")]):t._e()],2)]:t._e()],2)})),0):t._e(),a("yz-blank",{attrs:{datas:t.dataList[i]&&t.dataList[i].list}})],1)],1)})),1)],1),a("van-popup",{staticStyle:{width:"80%"},attrs:{round:"",position:"center"},model:{value:t.yhShow,callback:function(e){t.yhShow=e},expression:"yhShow"}},[a("div",{staticClass:"boxYh"},[a("div",{staticStyle:{"margin-bottom":"1rem"}},[t._v("易货兑换")]),a("div",{staticStyle:{"margin-bottom":"0.5rem"}},[t._v("是否确认易货兑换")]),a("span",{staticStyle:{"margin-bottom":"0.5rem"}},[t._v("订单编号:"+t._s(t.barter_order_sn))]),a("span",{staticStyle:{"margin-bottom":"0.5rem"}},[t._v("可易货兑换"+t._s(t.barter_value)+t._s(t.barter_plugin_name))]),a("div",{staticClass:"boxYhbtn"},[a("div",{staticClass:"cancelBtn",on:{click:t.cancelyh}},[t._v("取消")]),a("div",{staticClass:"submitBtn",on:{click:function(e){return t.submityh(0)}}},[t._v("兑换")])])])])],1)},o=[],s=(a("e7e5"),a("d399")),n=(a("b0c0"),a("d3b7"),a("159b"),a("14d9"),a("99af"),a("6968")),r=a("eb17"),l=a("ac0d"),c={mixins:[l["a"]],data:function(){return{customTitle:"",pluginName:"",activeName:0,dataList:[],titleArr:[],isLoading:!1,isLoadMore:!0,is_frequency:0,member:[],frequency:0,yhShow:!1,barter_order_sn:"",barter_plugin_name:"",barter_value:"",group_member_id:null}},activated:function(){this.init()},methods:{init:function(){var t=this;this.dataList=[],this.titleArr=["正在拼团","拼团成功","拼团失败"],"MyGroups"==this.$route.name?this.customTitle="我的拼团":this.customTitle="我的珍惠拼",this.fun.setWXTitle(this.customTitle),this.pluginName=this.$route.name,this.isLoadMore=!0,this.titleArr.forEach((function(e,a){t.dataList.push({isLoadMore:!0,page:1,total_page:0,list:[]})})),this.activeName=this.$route.params.status||0,this.$nextTick((function(){t.$refs.tabs.resize()})),this.getData()},getData:function(){var t=this,e=this,a={},i="";"MyGroups"==this.$route.name?(a.team_status=this.activeName+1,i="plugin.fight-groups.frontend.controllers.fight-groups.get-member-join-teams"):(a.is_win=this.activeName,i="plugin.zhp-group-lottery.frontend.group-member.get-group-member-list"),$http.get(i,a,"").then((function(a){1===a.result?("MyGroups"==e.$route.name&&(e.is_frequency=a.data.is_frequency,e.member=a.data.member,e.frequency=a.data.frequency),e.isLoadMore=!0,e.$set(t.dataList[e.activeName],"isLoadMore",!0),e.$set(t.dataList[e.activeName],"total_page",a.data.last_page),t.dataList[e.activeName].total_page||(e.$set(t.dataList[e.activeName],"total_page",0),t.dataList[e.activeName].total_page=0),e.$set(t.dataList[e.activeName],"list",a.data.data),e.$set(t.dataList[e.activeName],"page",1),e.isLoading=!1):(e.isLoading=!1,Object(s["a"])(a.msg))}),(function(t){}))},cancelTap:function(t){var e=this,a=this;$http.post("plugin.zhp-group-lottery.frontend.group-member.quit-msg",{id:t},"加载中").then((function(i){if(1===i.result){var o=i.data.refund_poundage_amount;0==o?e.$dialog.confirm({message:"退出该团"}).then((function(){$http.post("plugin.zhp-group-lottery.frontend.group-member.quit-group",{id:t},"加载中").then((function(t){1===t.result?(Object(s["a"])(t.msg),a.getData()):Object(s["a"])(t.msg)})).catch((function(t){}))})).catch((function(){})):e.$dialog.confirm({message:"退团需要扣除退团手续费¥".concat(o,",退出该团?")}).then((function(){$http.post("plugin.zhp-group-lottery.frontend.group-member.quit-group",{id:t},"加载中").then((function(t){1===t.result?(Object(s["a"])(t.msg),a.getData()):Object(s["a"])(t.msg)})).catch((function(t){}))})).catch((function(){}))}else Object(s["a"])(i.msg)})).catch((function(t){}))},gotoUrl:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$router.push(this.fun.getUrl(t,e,a))},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))},groupBtn:function(t,e){var a=this,i=0==t?"plugin.zhp-group-lottery.frontend.order.participate-group":"plugin.zhp-group-lottery.frontend.group-member.cancel-group-member",o={};o.group_member_id=e,$http.post(i,o,"加载中").then((function(t){1===t.result?(Object(s["a"])(t.msg),a.init()):Object(s["a"])(t.msg)})).catch((function(t){}))},getMoreData:function(){this.isLoadMore=!1;var t=this,e={},a="";"MyGroups"==this.$route.name?(e.team_status=this.activeName+1,a="plugin.fight-groups.frontend.controllers.fight-groups.get-member-join-teams"):(e.is_win=this.activeName,a="plugin.zhp-group-lottery.frontend.group-member.get-group-member-list"),t.dataList[t.activeName].page>=t.dataList[t.activeName].total_page||(t.dataList[t.activeName].page=t.dataList[t.activeName].page+1,e.page=t.dataList[t.activeName].page,$http.get(a,e,"加载中").then((function(e){if(t.isLoadMore=!0,1==e.result){var a=e.data.data;t.dataList[t.activeName].list=t.dataList[t.activeName].list.concat(a)}else t.dataList[t.activeName].page=t.dataList[t.activeName].page-1,t.dataList[t.activeName].isLoadMore=!1,t.isLoadMore=!1})).catch((function(t){})))},loadTop:function(){this.init(),this.getData(this.active)},zhpYh:function(t){var e=this;this.group_member_id=t,$http.get("plugin.zhp-group-lottery.frontend.goods.validate-barter",{group_member_id:t},".").then((function(t){1==t.result?(e.yhShow=!0,e.barter_order_sn=t.data.barter_order_sn,e.barter_plugin_name=t.data.barter_plugin_name,e.barter_value=t.data.barter_value):Object(s["a"])(t.msg)}),(function(t){}))},cancelyh:function(){this.yhShow=!1},submityh:function(t){var e=this,a=0==t?"plugin.zhp-group-lottery.frontend.goods.barter-action":"plugin.zhp-group-lottery.frontend.goods.sendAction";$http.get(a,{group_member_id:this.group_member_id},".").then((function(t){1==t.result?(e.yhShow=!1,e.$dialog.alert({title:"",message:t.msg}).then((function(){e.getData()}))):Object(s["a"])(t.msg)}),(function(t){}))},zhpSendAction:function(t){var e=this;this.group_member_id=t,this.$dialog.confirm({title:"",message:"订单选择发货"}).then((function(){e.submityh(1)})).catch((function(){}))},showPopover:function(t){var e=this.dataList[this.activeName].list[t].showPopover;this.$set(this.dataList[this.activeName].list[t],"showPopover",!e)}},components:{cTitle:n["a"],yzBlank:r["default"]},filters:{startTimes:function(t){var e=new Date(1e3*t),a=e.getFullYear()+"-",i=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",o=e.getDate()+" ",s=e.getHours()+":",n=e.getMinutes()+":",r=e.getSeconds();return a+i+o+s+n+r}}},d=c,m=d,b=(a("3b75f"),a("2877")),u=Object(b["a"])(m,i,o,!1,null,"db262a5a",null);e["default"]=u.exports}}]);