1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-945629be"],{"32aa":function(e,t,r){"use strict";r("b4a1")},"97b3":function(e,t,r){var a=r("24fb");t=a(!1),t.push([e.i,'p[data-v-d9f7296c]{margin:0;padding:0}#shareholderCenter .m_header[data-v-d9f7296c]{width:100%;height:2.8125rem;line-height:2.8125rem;font-size:15px;font-weight:700;background:#fff}#shareholderCenter .m_header span[data-v-d9f7296c]{display:inline-block;width:1rem;height:1.5rem;float:left;margin-left:.625rem;font-size:30px}#shareholderCenter .share_holder[data-v-d9f7296c]{padding:1rem .75rem;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#f15353}#shareholderCenter .share_holder .left[data-v-d9f7296c]{width:55%;text-align:left;color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}#shareholderCenter .share_holder .left span[data-v-d9f7296c]:first-child{font-weight:700;font-size:20px}#shareholderCenter .share_holder .left span[data-v-d9f7296c]{line-height:1.5rem;font-size:14px}#shareholderCenter .share_holder .right[data-v-d9f7296c]{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-d9f7296c]{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-d9f7296c]:first-child{border-right:.0625rem solid #ebebeb}#shareholderCenter .share_info div[data-v-d9f7296c]{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-d9f7296c]{color:#e84f40;font-size:16px;font-weight:700}#shareholderCenter .shareholder-order #tabs .rationList .list[data-v-d9f7296c]{margin:.375rem 0;background-color:#fff}#shareholderCenter .shareholder-order #tabs .rationList .list h4[data-v-d9f7296c]{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-d9f7296c]{display:inline-block;font-size:14px;font-weight:400;color:#f15353;float:right}#shareholderCenter .shareholder-order #tabs .rationList .list ul[data-v-d9f7296c]:after{content:"";display:block;clear:both}#shareholderCenter .shareholder-order #tabs .rationList .list ul[data-v-d9f7296c]{width:100%;padding:.625rem 0}#shareholderCenter .shareholder-order #tabs .rationList .list ul li[data-v-d9f7296c]{width:33%;float:left;font-size:12px;color:#8c9295;line-height:1.375rem}#shareholderCenter .shareholder-order #tabs .rationList .list ul li span[data-v-d9f7296c]{color:#333;font-size:14px}#shareholderCenter .shareholder-order #tabs .rationList .list p[data-v-d9f7296c]{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-d9f7296c]{color:#728ae3;float:right}#shareholderCenter .shareholder-order #tabs .rationList .recordList[data-v-d9f7296c]{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-d9f7296c]{font-size:14px;float:right}#shareholderCenter .shareholder-order #tabs .rationList[data-v-d9f7296c]:after{content:"";display:block;clear:both}#shareholderCenter .shareholder-order #tabs .one[data-v-d9f7296c]{padding:0 .875rem}#shareholderCenter .shareholder-order #tabs .one .time[data-v-d9f7296c]{line-height:1.625rem;margin-top:.625rem}#shareholderCenter .shareholder-order #tabs .one .Record[data-v-d9f7296c],#shareholderCenter .shareholder-order #tabs .one .time[data-v-d9f7296c]{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-d9f7296c]{line-height:2.75rem}#shareholderCenter .shareholder-order #tabs .one .Record i[data-v-d9f7296c]{font-size:20px;color:#929292;line-height:2.75rem}#shareholderCenter .shareholder-order #tabs .one .left[data-v-d9f7296c]{color:#8c8c8c;font-size:14px}#shareholderCenter .shareholder-order #tabs .one .look[data-v-d9f7296c]{color:#333}#shareholderCenter .shareholder-order #tabs .one .right[data-v-d9f7296c]{color:#8c8c8c;font-size:14px}',""]),e.exports=t},ac0d:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var a=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 a&&a.scrollTop?e=a.scrollTop:i&&(e=i.scrollTop),e},getClientHeight:function(){var e=0;return e=i.clientHeight&&a.clientHeight?Math.min(i.clientHeight,a.clientHeight):Math.max(i.clientHeight,a.clientHeight),e},getScrollHeight:function(){return Math.max(i.scrollHeight,a.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(){}}}},b4a1:function(e,t,r){var a=r("97b3");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=r("499e").default;i("776ea42f",a,!0,{sourceMap:!1,shadowMode:!1})},ba6f:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"shareholderCenter"}},[r("c-title",{attrs:{hide:!1,text:e.mailFullReturnTitle}}),r("div",{staticClass:"share_holder"},[r("div",{staticClass:"left"},[r("span",[e._v(e._s(e.$i18n.t("money"))+e._s(e.returnAmountTotal?e.returnAmountTotal.toFixed(2):0)+" ")]),r("br"),r("span",[e._v(e._s(e.mailFullReturnName)+"总额(元)")])])]),r("div",{staticClass:"share_info"},[r("div",[r("span",[e._v(e._s(e.$i18n.t("money"))+e._s(e.alreadyReturn))]),r("br"),e._v(" 已"+e._s(e.mailFullReturnName)+"总额(元) ")]),r("div",[r("span",[e._v(e._s(e.$i18n.t("money"))+e._s(e.notReturn))]),r("br"),e._v(" 未"+e._s(e.mailFullReturnName)+"总额(元) ")])]),e.isShow?r("div",{staticClass:"shareholder-order"},[r("div",{attrs:{id:"tabs"}},[r("van-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[r("van-tab",{attrs:{name:"first"}},[r("span",{attrs:{slot:"title"},on:{click:function(t){return e.handleClick("0")}},slot:"title"},[e._v(e._s(e.mailFullReturnLog))])])],1),r("div",[r("div",{directives:[{name:"show",rawName:"v-show",value:"first"==e.activeName,expression:"activeName=='first'"}]},[r("ul",{staticClass:"rationList"},e._l(e.record,(function(t,a){return r("li",{key:a,staticClass:"list"},[r("h4",[e._v(" "+e._s(e.mailFullReturnLog)+"ID:"+e._s(t.id)+" "),r("span",[e._v(e._s(t.amount))])]),r("div",{staticClass:"one"},[r("div",{staticClass:"time"},[r("span",{staticClass:"left"},[e._v(e._s(e.mailSingleReturnName)+"时间ID:"+e._s(t.id))]),r("span",{staticClass:"right"},[e._v(e._s(t.created_at))])]),r("div",{staticClass:"Record",on:{click:function(r){return e.toReturnInfo(t.id)}}},[r("span",{staticClass:"left look"},[e._v("查看记录")]),r("i",{staticClass:"fa fa-angle-right"})])])])})),0)])])],1)]):e._e()],1)},i=[],n=(r("e7e5"),r("d399")),o=(r("99af"),r("6968")),s=r("ac0d"),l="0",d=!1,h=!1,c={mixins:[s["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:""}},mounted:function(){},activated:function(){this.initMailLanguage(),this.initData(),this.getData()},methods:{initMailLanguage:function(){this.mailLanguage=this.fun.initMailLanguage()||{full_return:{}},this.fun.setWXTitle(this.fun.setMailLanguage("消费满额赠送",this.mailLanguage.full_return.full_return)),this.mailFullReturnTitle=this.fun.setMailLanguage("消费满额赠送",this.mailLanguage.full_return.full_return),this.mailFullReturnName=this.fun.setMailLanguage("赠送",this.mailLanguage.full_return.return_name),this.mailFullReturnLog=this.fun.setMailLanguage("满额返现记录",this.mailLanguage.full_return.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="返现记录"},getData:function(){var e={page:1},t=this;$http.get("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)):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};this.page>=this.last_page||(this.page=this.page+1,t.page=this.page,$http.get("plugin.full-return.frontend.list.index",t,"加载中").then((function(t){if(e.isLoadMore=!0,1!==t.result)return e.page=e.page-1,void(e.isLoadMore=!1);e.record=e.record.concat(t.data.list.data)})).catch((function(e){})))},toReturnInfo:function(e){this.$router.push(this.fun.getUrl("full_return_list_info",{id:e}))},getReturnListInfo:function(){var e=this;$http.get("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)}},components:{cTitle:o["a"]}},f=c,u=f,g=(r("32aa"),r("2877")),b=Object(g["a"])(u,a,i,!1,null,"d9f7296c",null);t["default"]=b.exports}}]); |