bztang-admin/addons/yun_shop/static/app/js/chunk-045aadf4.ad7251f6.js

1 line
11 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. 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-045aadf4"],{"4f58":function(t,e,a){"use strict";a("eb28c")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var i=document.documentElement,n=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:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&i.clientHeight?Math.min(n.clientHeight,i.clientHeight):Math.max(n.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(n.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(){}}}},bf95:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".consensus-activity-integrate[data-v-712935f8]{padding:.625rem .75rem}.consensus-activity-integrate .evenly[data-v-712935f8]{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:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}.consensus-activity-integrate .hidden[data-v-712935f8]{overflow-x:scroll;white-space:nowrap;margin-right:.625rem}.consensus-activity-integrate .hidden[data-v-712935f8]::-webkit-scrollbar{display:none}.consensus-activity-integrate .plus[data-v-712935f8]{font-weight:700;color:#f15353}.consensus-activity-integrate .minus[data-v-712935f8]{font-weight:700;color:#00001c}.consensus-activity-integrate .c-F15353[data-v-712935f8]{color:#f15353}.consensus-activity-integrate .c-00001c[data-v-712935f8]{color:#00001c!important}.consensus-activity-integrate .mt-26[data-v-712935f8]{margin-top:.8125rem}.consensus-activity-integrate .c-AAAAB3[data-v-712935f8]{color:#aaaab3}.consensus-activity-integrate .right[data-v-712935f8]{text-align:right}.consensus-activity-integrate .head-yuan[data-v-712935f8],.consensus-activity-integrate .list[data-v-712935f8]{background:#fff;padding:.9375rem .75rem;border-radius:.625rem}.consensus-activity-integrate .center[data-v-712935f8]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.consensus-activity-integrate .between[data-v-712935f8],.consensus-activity-integrate .center[data-v-712935f8]{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}.consensus-activity-integrate .between[data-v-712935f8]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.consensus-activity-integrate .fz28[data-v-712935f8]{font-size:.875rem}.consensus-activity-integrate .bold[data-v-712935f8]{font-weight:700}.consensus-activity-integrate .line[data-v-712935f8]{width:100%;height:1px;background:#ccc;margin:1.0625rem 0 .9375rem}.consensus-activity-integrate .box-bottom[data-v-712935f8]{margin-top:.5rem;color:#aaaab3;font-size:.75rem}.consensus-activity-integrate .tips[data-v-712935f8]{margin:.875rem .75rem;font-weight:700;font-size:.9375rem;text-align:left}.consensus-activity-integrate .left[data-v-712935f8]{text-align:left}.consensus-activity-integrate .count[data-v-712935f8]{font-weight:700;font-size:1.5rem}.consensus-activity-integrate .head[data-v-712935f8]{padding:.9375rem .75rem;background:#fff;border-radius:.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;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}",""]),t.exports=e},e950: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",{staticClass:"consensus-activity-integrate"},[a("c-title",{attrs:{text:t.text}}),3==t.type||1==t.type?a("div",{staticClass:"head-yuan",class:{between:1==t.type&&0==t.yuan_withdraw_open}},[a("div",{staticStyle:{"margin-bottom":"1.25rem"}},[a("p",{staticClass:"left"},[t._v("当前"+t._s(t.text))]),a("p",{staticClass:"left count"},[t._v(t._s(t.count))])]),1==t.type&&1==t.yuan_withdraw_open||3==t.type?a("div",{class:3==t.type?"evenly":"center"},[a("router-link",{staticStyle:{"min-width":"4.625rem"},attrs:{tag:"div",to:t.fun.getUrl("consensus_activity_withdraw",{num:t.type})}},[a("van-button",{attrs:{round:"",size:"small",block:"",color:"#F15353"}},[t._v(t._s(1==t.type?"提现":"转入"+t.yuan_name))])],1),a("router-link",{staticStyle:{margin:"0 0.9375rem","min-width":"4.625rem"},attrs:{tag:"div",to:t.fun.getUrl("consensus_activity_withdraw",{num:3==t.type?4:5,open:t.yuan_to_income_deduct_open})}},[a("van-button",{attrs:{round:"",size:"small",plain:"",block:"",color:"#F15353"}},[t._v(t._s(3==t.type?"会员转让":"转入"+t.income_name))])],1),3==t.type?[a("router-link",{staticStyle:{"min-width":"4.625rem"},attrs:{tag:"div",to:t.fun.getUrl("consensus_activity_withdraw",{num:6})}},[a("van-button",{attrs:{round:"",size:"small",plain:"",block:"",color:"#F15353"}},[t._v("提现")])],1)]:t._e()],2):1==t.type&&0==t.yuan_withdraw_open?a("div",[a("router-link",{staticStyle:{"min-width":"4.625rem"},attrs:{tag:"div",to:t.fun.getUrl("consensus_activity_withdraw",{num:5,open:t.yuan_to_income_deduct_open})}},[a("van-button",{attrs:{round:"",size:"small",block:"",color:"#F15353"}},[t._v(t._s("转入"+t.income_name))])],1)],1):t._e()]):a("div",{staticClass:"head"},[a("div",[6==t.type||5==t.type||4==t.type?[6==t.type?a("p",[t._v("奖励总额:"+t._s(t.count))]):5==t.type?a("p",[t._v("当前加权分红额度:"+t._s(t.count))]):a("p",[t._v("当前"+t._s(t.text)+""+t._s(t.count))])]:[a("p",{staticClass:"left"},[t._v("当前"+t._s(t.text))]),a("p",{staticClass:"left count"},[t._v(t._s(t.count))])]],2),1==t.type||2==t.type?a("router-link",{staticStyle:{"min-width":"4.625rem"},attrs:{tag:"div",to:t.fun.getUrl("consensus_activity_withdraw",{num:t.type})}},[a("van-button",{attrs:{color:"#F15353",round:"",size:"small",block:""}},[t._v(t._s(1==t.type?"提现":2==t.type?"会员转让":"转入元积分"))])],1):t._e()],1),a("p",{staticClass:"tips"},[t._v("明细记录")]),t.list&&0!==t.list.length?a("div",{staticClass:"list"},t._l(t.list,(function(e,i){return a("div",{key:i,staticClass:"box"},[a("div",{staticClass:"between"},[6!==t.type?a("span",{staticClass:"bold fz28"},[t._v(" "+t._s(e.source_name)+" ")]):t._e(),6==t.type?[a("p",{staticClass:"c-AAAAB3",staticStyle:{"text-align":"left"}},[t._v(t._s(e.created_at))])]:a("span",{class:e.change_value>0?"plus":"minus"},[t._v(t._s(e.change_value))])],2),6==t.type?a("div",{staticClass:"between c-00001c mt-26"},[a("div",[a("p",{staticStyle:{"text-align":"left"}},[t._v("个人额度:"+t._s(e.user_weight_quota))]),a("p",{staticStyle:{"text-align":"left"}},[t._v("奖励比例:"+t._s(e.rate)+"%")])]),a("div",{staticClass:"right"},[a("p",[t._v("加权分红总额度:"+t._s(e.total_weight_quota))]),a("p",{staticClass:"c-F15353"},[t._v("奖励数量:"+t._s(e.reward_value))])])]):1==t.type?a("div",{staticClass:"box-bottom between"},[e.has_one_order||e.has_one_activity?[e.has_one_order?a("span",[t._v(t._s(e.has_one_order&&e.has_one_order.order_sn))]):t._e(),e.has_one_activity?a("span",[t._v(" "+t._s(e.has_one_activity&&e.has_one_activity.activity_name)+" 【"+t._s(e.has_one_activity&&e.has_one_activity.activity_sn)+"】 ")]):t._e()]:t._e(),a("span",[t._v(t._s(e.created_at))])],2):3==t.type?a("div",{staticClass:"box-bottom between"},[a("div",{staticClass:"hidden"},[a("span",[t._v(t._s(e.mark))])]),a("span",{staticStyle:{"flex-shrink":"0"}},[t._v(t._s(e.created_at))])]):a("div",{staticClass:"box-bottom between"},[a("span",[t._v(t._s(e.created_at))])]),i+1!==t.list.length?a("div",{staticClass:"line"}):t._e()])})),0):t._e()],1)},n=[],s=(a("a9e3"),a("99af"),a("ac0d")),o={mixins:[s["a"]],data:function(){return{page:1,total_page:1,list:[],isLoadMore:!0,yuan_name:"收益积分",count:0,text:"",yuan_withdraw_open:null,yuan_to_income_deduct_open:0,type:null}},activated:function(){this.type=Number(this.$route.params.num),this.$route.params.count&&(this.count=this.$route.params.count),this.isLoadMore=!0,5==this.type?(this.text="加权分红额度",this.fun.setWXTitle("加权分红额度"),this.get_dividend_log()):6==this.type?(this.get_dividend_log(),this.text="加权分红",this.fun.setWXTitle("加权分红")):this.getData()},methods:{get_dividend_log:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a="plugin.wise-yuan-trade.frontend.my.add-weighted-dividend-log";5==this.type&&(a="plugin.wise-yuan-trade.frontend.my.add-weighted-dividend-limit-log"),$http.get(a,{page:e},"").then((function(a){if(t.isLoadMore=!0,a.result){var i=a.data;t.page=i.current_page,t.total_page=i.last_page,1==e?t.list=i.data:t.list.concat(i.data),6==t.type&&(t.count=i.total_reward_value)}else t.$toast(a.msg)}))},getMoreData:function(){if(this.isLoadMore=!1,!(this.page>=this.total_page)){var t=this.page+1;6==this.type?this.get_dividend_log(t):this.get_point_record(t)}},getData:function(){var t=this,e="plugin.wise-yuan-trade.frontend.my.custom-name";4==this.type&&(e="plugin.wise-yuan-trade.frontend.quality.index"),$http.get(e,"","").then((function(e){if(e.result){var a=e.data,i=Number(t.$route.params.num),n="";1==i?(n=a.yuan_name,t.income_name=a.income_name):2==i?n=a.yuan_withdraw_limit_name:3==i?n=a.income_name:4==i&&(n=a.quality_name,t.count=a.quality),t.text=n,t.fun.setWXTitle(n),4==t.type?t.get_point_record():t.get_detail()}else t.$toast(e.msg)}))},get_point_record:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a="plugin.wise-yuan-trade.frontend.yuan-point.record";2==this.type?a="plugin.wise-yuan-trade.frontend.yuan-point.quota-record":3==this.type?a="plugin.wise-yuan-trade.frontend.income-point.record":4==this.type&&(a="plugin.wise-yuan-trade.frontend.quality.record"),$http.get(a,{page:e},"").then((function(a){if(t.isLoadMore=!0,a.result){var i=a.data;t.list=1==e?i.data:t.list.concat(i.data),t.page=i.current_page,t.total_page=i.last_page}else t.$toast(a.msg)}))},get_detail:function(){var t=this,e="";1==this.type||2==this.type?e="plugin.wise-yuan-trade.frontend.yuan-point.index":3==this.type&&(e="plugin.wise-yuan-trade.frontend.income-point.index"),$http.get(e,"","").then((function(e){if(e.result){var a=e.data;1==t.type||2==t.type?1==t.type?(t.count=a.usable_yuan,t.yuan_withdraw_open=a.yuan_withdraw_open,t.yuan_to_income_deduct_open=a.yuan_to_income_deduct_open):t.count=a.yuan_withdraw_quota:3==t.type&&(t.yuan_name=a.yuan_name,t.count=a.income),t.get_point_record()}else t.$toast(e.msg)}))}}},c=o,r=(a("4f58"),a("2877")),l=Object(r["a"])(c,i,n,!1,null,"712935f8",null);e["default"]=l.exports},eb28c:function(t,e,a){var i=a("bf95");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("322339fc",i,!0,{sourceMap:!1,shadowMode:!1})}}]);