bztang-admin/addons/yun_shop/static/app/js/chunk-310c51ec.bb3256db.js

1 line
14 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-310c51ec"],{"4b79":function(e,t,a){"use strict";a("7274")},7274:function(e,t,a){var r=a("b665");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=a("499e").default;i("a50310ae",r,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var r=document.documentElement,i=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return r&&r.scrollTop?e=r.scrollTop:i&&(e=i.scrollTop),e},getClientHeight:function(){var e=0;return e=i.clientHeight&&r.clientHeight?Math.min(i.clientHeight,r.clientHeight):Math.max(i.clientHeight,r.clientHeight),e},getScrollHeight:function(){return Math.max(i.scrollHeight,r.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(){}}}},b665:function(e,t,a){var r=a("24fb");t=r(!1),t.push([e.i,'p[data-v-f75bbe2e]{margin:0;padding:0}#shareholderCenter .m_header[data-v-f75bbe2e]{width:100%;height:2.8125rem;line-height:2.8125rem;font-size:15px;font-weight:700;background:#fff}#shareholderCenter .m_header span[data-v-f75bbe2e]{display:inline-block;width:1rem;height:1.5rem;float:left;margin-left:.625rem;font-size:30px}#shareholderCenter .share_holder[data-v-f75bbe2e]{padding:1rem .75rem;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#f15353}#shareholderCenter .share_holder .left[data-v-f75bbe2e]{width:55%;text-align:left;color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}#shareholderCenter .share_holder .left span[data-v-f75bbe2e]:first-child{font-weight:700;font-size:20px}#shareholderCenter .share_holder .left span[data-v-f75bbe2e]{line-height:1.5rem;font-size:14px}#shareholderCenter .share_holder .right[data-v-f75bbe2e]{width:45%;padding:2rem .9375rem 0 0;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;text-align:right;line-height:1.625rem;font-size:12px}#shareholderCenter .share_info[data-v-f75bbe2e]{width:100%;padding:1rem 0;background-color:#fff;margin-bottom:.625rem;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}#shareholderCenter .share_info div[data-v-f75bbe2e]:first-child{border-right:.0625rem solid #ebebeb}#shareholderCenter .share_info div[data-v-f75bbe2e]{font-size:12px;line-height:1.25rem;width:50%;-webkit-box-sizing:border-box;box-sizing:border-box}#shareholderCenter .share_info div span[data-v-f75bbe2e]{color:#e84f40;font-size:16px;font-weight:700}#shareholderCenter .share_info .icon-course_goon[data-v-f75bbe2e]{font-size:14px}#shareholderCenter .shareholder-order #tabs .rationList .list[data-v-f75bbe2e]{margin:.375rem 0;background-color:#fff}#shareholderCenter .shareholder-order #tabs .rationList .list h4[data-v-f75bbe2e]{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 .875rem;line-height:2.5rem;height:2.5rem;text-align:left;color:#333;font-size:14px;border-bottom:.0625rem solid #ebebeb}#shareholderCenter .shareholder-order #tabs .rationList .list h4 span[data-v-f75bbe2e]{display:inline-block;font-size:14px;font-weight:400;color:#f15353;float:right}#shareholderCenter .shareholder-order #tabs .rationList .list ul[data-v-f75bbe2e]:after{content:"";display:block;clear:both}#shareholderCenter .shareholder-order #tabs .rationList .list ul[data-v-f75bbe2e]{width:100%;padding:.625rem 0}#shareholderCenter .shareholder-order #tabs .rationList .list ul li[data-v-f75bbe2e]{width:33%;float:left;font-size:12px;color:#8c9295;line-height:1.375rem}#shareholderCenter .shareholder-order #tabs .rationList .list ul li span[data-v-f75bbe2e]{color:#333;font-size:14px}#shareholderCenter .shareholder-order #tabs .rationList .list p[data-v-f75bbe2e]{color:#aab2b9;text-align:left;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 1.25rem .9375rem}#shareholderCenter .shareholder-order #tabs .rationList .list p span[data-v-f75bbe2e]{color:#728ae3;float:right}#shareholderCenter .shareholder-order #tabs .rationList .recordList[data-v-f75bbe2e]{padding:.9375rem;font-size:14px;line-height:1.125rem;color:#333;text-align:left;background-color:#fff;margin:.125rem}#shareholderCenter .shareholder-order #tabs .rationList .recordList span[data-v-f75bbe2e]{font-size:14px;float:right}#shareholderCenter .shareholder-order #tabs .rationList[data-v-f75bbe2e]:after{content:"";display:block;clear:both}#shareholderCenter .shareholder-order #tabs .one[data-v-f75bbe2e]{padding:0 .875rem}#shareholderCenter .shareholder-order #tabs .one .time[data-v-f75bbe2e]{line-height:1.625rem;margin-top:.625rem}#shareholderCenter .shareholder-order #tabs .one .Record[data-v-f75bbe2e],#shareholderCenter .shareholder-order #tabs .one .time[data-v-f75bbe2e]{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}#shareholderCenter .shareholder-order #tabs .one .Record[data-v-f75bbe2e]{line-height:2.75rem}#shareholderCenter .shareholder-order #tabs .one .Record i[data-v-f75bbe2e]{font-size:20px;color:#929292;line-height:2.75rem}#shareholderCenter .shareholder-order #tabs .one .left[data-v-f75bbe2e]{color:#8c8c8c;font-size:14px}#shareholderCenter .shareholder-order #tabs .one .look[data-v-f75bbe2e]{color:#333}#shareholderCenter .shareholder-order #tabs .one .right[data-v-f75bbe2e]{color:#8c8c8c;font-size:14px}',""]),e.exports=t},ba6f:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"shareholderCenter"}},[a("c-title",{attrs:{hide:!1,text:e.mailFullReturnTitle}}),a("div",{staticClass:"share_holder"},[a("div",{staticClass:"left"},[a("span",[e._v(e._s(e.$i18n.t("money"))+e._s(e.returnAmountTotal?e.returnAmountTotal.toFixed(2):0)+" ")]),a("br"),a("span",[e._v(e._s(e.mailFullReturnName)+"总额(元)")])])]),a("div",{staticClass:"share_info"},[a("div",[a("span",[e._v(e._s(e.$i18n.t("money"))+e._s(e.alreadyReturn))]),a("br"),e._v(" 已"+e._s(e.mailFullReturnName)+"总额(元) ")]),a("div",[a("span",[e._v(e._s(e.$i18n.t("money"))+e._s(e.notReturn))]),a("br"),e._v(" 未"+e._s(e.mailFullReturnName)+"总额(元) ")])]),e.newis?[a("div",{staticClass:"share_info"},[a("div",[e._v(" 权益补贴进度 ")]),a("div",{on:{click:e.toRecord}},[e._v(" 查看明细 "),a("i",{staticClass:"iconfont icon-course_goon"})])]),a("div",{staticClass:"share_info"},[a("div",[a("span",[e._v(e._s(e.rest_performance))]),a("br"),e._v(" 剩余销售业绩 ")]),a("div",[a("span",[e._v(e._s(e.rest_consume))]),a("br"),e._v(" 剩余自购业绩 ")])])]:e._e(),e.isShow?a("div",{staticClass:"shareholder-order"},[a("div",{attrs:{id:"tabs"}},[a("van-tabs",{on:{change:e.tabChange},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("van-tab",{attrs:{name:"first"}},[a("span",{attrs:{slot:"title"},on:{click:function(t){return e.handleClick("0")}},slot:"title"},[e._v(e._s(e.mailFullReturnLog))])]),e.newis?a("van-tab",{attrs:{name:"two"}},[a("span",{attrs:{slot:"title"},on:{click:function(t){return e.handleClick("1")}},slot:"title"},[e._v("业绩扣除记录")])]):e._e()],1),a("div",[a("div",{directives:[{name:"show",rawName:"v-show",value:"first"==e.activeName,expression:"activeName == 'first'"}]},[a("ul",{staticClass:"rationList"},e._l(e.record,(function(t,r){return a("li",{key:r,staticClass:"list"},[a("h4",[e._v(" "+e._s(e.mailFullReturnLog)+"ID:"+e._s(t.id)+" "),a("span",[e._v(e._s(t.amount))])]),a("div",{staticClass:"one"},[a("div",{staticClass:"time"},[a("span",{staticClass:"left"},[e._v(e._s(e.mailSingleReturnName)+"时间ID:"+e._s(t.id))]),a("span",{staticClass:"right"},[e._v(e._s(t.created_at))])]),e.newis?e._e():a("div",{staticClass:"Record",on:{click:function(a){return e.toReturnInfo(t.id)}}},[a("span",{staticClass:"left look"},[e._v("查看记录")]),a("i",{staticClass:"fa fa-angle-right"})])])])})),0)]),a("div",{directives:[{name:"show",rawName:"v-show",value:"two"==e.activeName&&e.newis,expression:"activeName == 'two' && newis"}]},[a("ul",{staticClass:"rationList"},e._l(e.record,(function(t,r){return a("li",{key:r,staticClass:"list"},[a("h4",[e._v(" 队列ID:"+e._s(t.queue_id)+" "),a("span",{staticStyle:{color:"#8c8c8c","font-size":"0.625rem"}},[e._v(e._s(t.created_at))])]),a("div",{staticClass:"one",staticStyle:{"padding-bottom":"0.625rem"}},[a("div",{staticClass:"time"},[a("span",{staticClass:"left"},[e._v("扣除的自购业绩:"+e._s(t.consume))])]),a("div",{staticClass:"time"},[a("span",{staticClass:"left"},[e._v("扣除的销售业绩:"+e._s(t.performance))])]),a("div",{staticClass:"time"},[a("span",{staticClass:"left"},[e._v("权益积分个数:"+e._s(t.total))])])])])})),0)])])],1)]):e._e()],2)},i=[],n=(a("e7e5"),a("d399")),s=(a("b0c0"),a("14d9"),a("ac1f"),a("5319"),a("99af"),a("6968")),o=a("ac0d"),l="0",d=!1,h=!1,u={mixins:[o["a"]],data:function(){return{page:1,record:[],isLoadMore:!0,last_page:0,mailLanguage:"",mailFullReturnTitle:"",mailFullReturnName:"",activeName:"first",first_content:[],second_content:[],alreadyReturn:0,each_return_rate:0,order_return_rate:0,returnAmountTotal:0,notReturn:0,fullReturnName:"",isShow:!1,return_list_name:"",newis:!1,need_consume:"",rest_consume:"",need_performance:"",rest_performance:""}},mounted:function(){},activated:function(){"full_return_center_new"==this.$route.name&&(this.newis=!0),this.initMailLanguage(),this.initData(),this.getData()},methods:{initMailLanguage:function(){var e,t,a,r,i,n,s,o;this.mailLanguage=this.fun.initMailLanguage()||{full_return:{}},this.fun.setWXTitle(this.fun.setMailLanguage("消费满额赠送",this.newis?null===(e=this.mailLanguage)||void 0===e||null===(e=e.full_reward)||void 0===e?void 0:e.full_reward:null===(t=this.mailLanguage)||void 0===t||null===(t=t.full_return)||void 0===t?void 0:t.full_return)),this.mailFullReturnTitle=this.fun.setMailLanguage("消费满额赠送",this.newis?null===(a=this.mailLanguage)||void 0===a||null===(a=a.full_reward)||void 0===a?void 0:a.full_reward:null===(r=this.mailLanguage)||void 0===r||null===(r=r.full_return)||void 0===r?void 0:r.full_return),this.mailFullReturnName=this.fun.setMailLanguage("赠送",this.newis?null===(i=this.mailLanguage)||void 0===i||null===(i=i.full_reward)||void 0===i?void 0:i.return_name:null===(n=this.mailLanguage)||void 0===n||null===(n=n.full_return)||void 0===n?void 0:n.return_name),this.mailFullReturnLog=this.fun.setMailLanguage("满额返现记录",this.newis?null===(s=this.mailLanguage)||void 0===s||null===(s=s.full_reward)||void 0===s?void 0:s.full_reward_log:null===(o=this.mailLanguage)||void 0===o||null===(o=o.full_return)||void 0===o?void 0:o.full_return_log)},initData:function(){this.page=1,this.record=[],this.isLoadMore=!0,this.last_page=0,l="0",d=!1,h=!1,this.activeName="first",this.first_content=[],this.second_content=[],this.alreadyReturn=0,this.each_return_rate=0,this.order_return_rate=0,this.returnAmountTotal=0,this.notReturn=0,this.fullReturnName="满额返现",this.isShow=!1,this.return_list_name="返现记录"},toRecord:function(){this.$router.push(this.fun.getUrl("full_return_center_new_record",{}))},getData:function(){var e={page:1},t=this;$http.get(this.newis?"plugin.full-return.frontend.list.index".replace(/full-return/g,"full-reward"):"plugin.full-return.frontend.list.index",e,"加载中").then((function(e){1==e.result?(t.isLoadMore=!0,t.last_page=e.data.list.last_page,t.alreadyReturn=e.data.finish,t.returnAmountTotal=e.data.total,t.notReturn=e.data.surplus,t.first_content=e.data.list,t.fullReturnName=e.data.full_return_name,t.isShow="0"!=e.data.is_show_return_list,t.return_list_name=e.data.return_list_name,t.last_page||(t.last_page=0),e.data.list.data.length>0&&(t.record=e.data.list.data),t.newis&&(t.need_consume=e.data.need_consume,t.rest_consume=e.data.rest_consume,t.need_performance=e.data.need_performance,t.rest_performance=e.data.rest_performance)):Object(n["a"])(e.msg)}),(function(e){Object(n["a"])(e.msg)}))},getMoreData:function(){var e=this;this.isLoadMore=!1;var t={page:this.page};if(!(this.page>=this.last_page)){this.page=this.page+1,t.page=this.page;var a=this.newis?"plugin.full-return.frontend.list.index".replace(/full-return/g,"full-reward"):"plugin.full-return.frontend.list.index";"two"==this.activeName&&(a="plugin.full-reward.frontend.list.queueLog"),$http.get(a,t,"加载中").then((function(t){if(e.isLoadMore=!0,1!==t.result)return e.page=e.page-1,void(e.isLoadMore=!1);"two"==e.activeName?e.record=e.record.concat(t.data.data):e.record=e.record.concat(t.data.list.data)})).catch((function(e){}))}},toReturnInfo:function(e){this.newis?this.$router.push(this.fun.getUrl("full_return_list_info",{id:e,new:1})):this.$router.push(this.fun.getUrl("full_return_list_info",{id:e}))},getReturnListInfo:function(){var e=this;$http.get(this.new?"plugin.full-return.frontend.detail.index".replace(/full-return/g,"full-reward"):"plugin.full-return.frontend.detail.index",{},"").then((function(t){1==t.result?e.second_content=t.data:Object(n["a"])(t.msg)}),(function(e){Object(n["a"])(e.msg)}))},setDataByTabIndex:function(){"0"!=l||d?"1"!=l||h||(h=!0,this.getReturnListInfo()):(d=!0,this.getReturnList())},handleClick:function(e,t){l!=e&&(l=e)},tabChange:function(){this.page=1,this.last_page=0,this.record=[],this.isLoadMore=!0,"first"==this.activeName?this.getData():this.getQueueLog()},getQueueLog:function(){var e=this,t=this,a={page:1};$http.get("plugin.full-reward.frontend.list.queueLog",a,"加载中").then((function(a){if(e.isLoadMore=!0,1!==a.result)return e.page=e.page-1,void(e.isLoadMore=!1);t.isLoadMore=!0,t.last_page=a.data.last_page,t.last_page||(t.last_page=0),t.record=a.data.data})).catch((function(e){}))}},components:{cTitle:s["a"]}},c=u,f=c,b=(a("4b79"),a("2877")),g=Object(b["a"])(f,r,i,!1,null,"f75bbe2e",null);t["default"]=g.exports}}]);