bztang-admin/addons/yun_shop/static/app/js/chunk-b62b93be.4df9387e.js

1 line
12 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b62b93be"],{"4fb4":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("c-title",{attrs:{hide:!1,text:t.diy_name||"资金池"}}),e("header",{staticClass:"header"},[e("van-tabs",{staticClass:"pool",model:{value:t.active,callback:function(a){t.active=a},expression:"active"}},[e("van-tab",{attrs:{title:"动静余额"+t.diy_name||!1,name:"capital_pool_records"}},[e("ul",{staticClass:"balance-wrapper"},[e("li",[e("i",{staticClass:"iconfont icon-fontclass-zhangdan"}),e("div",{staticClass:"price"},[e("span",{staticClass:"price-icon"},[t._v("¥")]),e("span",{staticClass:"total"},[t._v(t._s(t.performance_total))])]),e("span",{staticClass:"show_info"},[t._v("总业绩")])]),e("li",[e("i",{staticClass:"iconfont icon-fontclass-fanli"}),e("div",{staticClass:"price"},[e("span",{staticClass:"price-icon"},[t._v("¥")]),e("span",{staticClass:"total"},[t._v(t._s(t.finished_quota))])]),e("span",{staticClass:"show_info"},[t._v("已发广告红包")])]),e("li",[e("i",{staticClass:"iconfont icon-fontclass-fufeijilu"}),e("div",{staticClass:"price"},[e("span",{staticClass:"price-icon"},[t._v("¥")]),e("span",{staticClass:"total"},[t._v(t._s(t.waiting_quota))])]),e("span",{staticClass:"show_info"},[t._v("待发业绩")])]),e("li",[e("i",{staticClass:"iconfont icon-ht_content_tixian"}),e("div",{staticClass:"price"},[e("span",{staticClass:"price-icon"},[t._v("¥")]),e("span",{staticClass:"total"},[t._v(t._s(t.capital_pool))])]),e("span",{staticClass:"show_info"},[t._v("广告红包余额")])])]),e("van-button",{attrs:{color:"#ffec46"},on:{click:t.to}},[t._v("领取红包")])],1),e("van-tab",{attrs:{title:"直推奖金",name:"love_speed_pool"}},[e("div",{staticClass:"direct-drive"},[e("div",{staticClass:"price"},[e("span",{staticClass:"price-icon"},[t._v("¥")]),e("span",{staticClass:"total"},[t._v(t._s(t.amount_total))])]),e("div",{staticClass:"total-income"},[t._v("累计收入")])])])],1)],1),e("main",{staticClass:"main"},[e("van-tabs",{model:{value:t.main_price,callback:function(a){t.main_price=a},expression:"main_price"}},["capital_pool_records"==t.active?e("van-tab",{attrs:{title:"广告红包明细"}},[e("van-cell-group",t._l(t.capital_pool_records.data,(function(a){return e("van-cell",{key:a.id,scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"main-left"},[e("p",[t._v(t._s(a.type_name))]),e("p",{staticClass:"c-707070",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(a.created_at))])])]},proxy:!0},{key:"default",fn:function(){return[e("div",[e("p",{staticClass:"c-101010"},[t._v(t._s(a.op)+t._s(a.amount))]),e("p",[t._v("剩余:"+t._s(a.capital_pool_surplus))])])]},proxy:!0}],null,!0)})})),1)],1):e("van-tab",{attrs:{title:"收入明细"}},[e("van-cell-group",t._l(t.love_speed_pool.data,(function(a){return e("van-cell",{key:a.id,scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"main-left"},[e("p",[t._v(t._s(a.order_sn))]),e("p",{staticClass:"c-959595"},[t._v("订单金额:¥"+t._s(a.order_price))]),e("p",{staticClass:"c-959595"},[t._v("奖励比例:"+t._s(a.ratio)+"%")]),e("p",{staticClass:"c-6A6A6A"},[t._v(t._s(a.created_at))])])]},proxy:!0},{key:"default",fn:function(){return[e("p",{staticClass:"c-FB6B68"},[t._v("¥"+t._s(a.amount))])]},proxy:!0}],null,!0)})})),1)],1)],1)],1),e("div",{staticClass:"h-10"})],1)},o=[],n=(e("99af"),e("ac0d")),r={mixins:[n["a"]],data:function(){return{active:"capital_pool_records",amount_total:"",love_speed_pool:{},diy_name:"",balance_detail:0,ad_link:"",performance_total:"",finished_quota:"",waiting_quota:"",capital_pool:"",capital_pool_records:{},isLoadMore:!0}},activated:function(){this.getData()},methods:{to:function(){this.$router.push(this.fun.getUrl("redPacket"))},getData:function(){var t=this;$http.get("plugin.love-speed-pool.frontend.newHome.index").then((function(a){if(1==a.result){var e=a.data,i=e.performance_total,o=e.finished_quota,n=e.waiting_quota,r=e.capital_pool,l=e.capital_pool_records,c=e.diy_name;t.performance_total=i,t.finished_quota=o,t.waiting_quota=n,t.capital_pool=r,t.capital_pool_records=l,t.diy_name=c,window.document.title=t.diy_name}else t.$toast(a.msg)})),$http.get("plugin.love-speed-pool.frontend.plus.index").then((function(a){1==a.result?(t.amount_total=a.data.amount_total,t.love_speed_pool=a.data.list):t.$toast(a.msg)}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this[this.active].current_page>=this[this.active].last_page)){var a="";a="capital_pool_records"==this.active?"plugin.love-speed-pool.frontend.newHome.index":"plugin.love-speed-pool.frontend.plus.index",$http.get(a,{page:this[this.active].current_page+1},"加载中").then((function(a){t.isLoadMore=!0,1==a.result?"capital_pool_records"==t.active?(t.capital_pool_records.data=t.capital_pool_records.data.concat(a.data.capital_pool_records.data),t.capital_pool_records.current_page=a.data.capital_pool_records.current_page):(t.love_speed_pool.data=t[t.active].data.concat(a.data.list.data),t.love_speed_pool.current_page=a.data.list.current_page):(t.$toast(a.msg),t.isLoadMore=!1)}))}}}},l=r,c=(e("abf11"),e("2877")),s=Object(c["a"])(l,i,o,!1,null,"48f761a0",null);a["default"]=s.exports},"77d41":function(t,a,e){var i=e("d7bd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=e("499e").default;o("12079613",i,!0,{sourceMap:!1,shadowMode:!1})},abf11:function(t,a,e){"use strict";e("77d41")},ac0d:function(t,a,e){"use strict";e.d(a,"a",(function(){return n}));var i=document.documentElement,o=document.body,n={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(){}}}},d7bd:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".h-10[data-v-48f761a0]{height:.825rem}.pool[data-v-48f761a0] .van-tabs__nav{background-color:#ff851c!important}.pool[data-v-48f761a0] .van-tab{color:#fff}.pool[data-v-48f761a0] .van-tabs__line{background-color:#fff}.iconfont[data-v-48f761a0]{width:2.1875rem;height:2.1875rem;line-height:2.1875rem;border-radius:100px;color:#fff;font-size:1.25rem;margin-top:.8125rem}.icon-ht_content_tixian[data-v-48f761a0]{background-image:-webkit-gradient(linear,left bottom,left top,from(#99f470),color-stop(50%,#75e07e),to(#50cb8b)),-webkit-gradient(linear,left top,left bottom,from(#f7f7f7),to(#f7f7f7));background-image:-webkit-linear-gradient(bottom,#99f470,#75e07e 50%,#50cb8b),-webkit-linear-gradient(#f7f7f7,#f7f7f7);background-image:linear-gradient(0deg,#99f470,#75e07e 50%,#50cb8b),linear-gradient(#f7f7f7,#f7f7f7)}.icon-fontclass-fanli[data-v-48f761a0]{background-image:-webkit-gradient(linear,left bottom,left top,from(#69eacc),color-stop(50%,#47d9be),to(#24c7af)),-webkit-gradient(linear,left top,left bottom,from(#f7f7f7),to(#f7f7f7));background-image:-webkit-linear-gradient(bottom,#69eacc,#47d9be 50%,#24c7af),-webkit-linear-gradient(#f7f7f7,#f7f7f7);background-image:linear-gradient(0deg,#69eacc,#47d9be 50%,#24c7af),linear-gradient(#f7f7f7,#f7f7f7)}.icon-fontclass-fufeijilu[data-v-48f761a0]{background-image:-webkit-gradient(linear,left bottom,left top,from(#fad638),to(#f6b42c)),-webkit-gradient(linear,left top,left bottom,from(#f7f7f7),to(#f7f7f7));background-image:-webkit-linear-gradient(bottom,#fad638,#f6b42c),-webkit-linear-gradient(#f7f7f7,#f7f7f7);background-image:linear-gradient(0deg,#fad638,#f6b42c),linear-gradient(#f7f7f7,#f7f7f7)}.icon-fontclass-zhangdan[data-v-48f761a0]{background-image:-webkit-gradient(linear,left bottom,left top,from(#fda884),color-stop(50%,#fd9e75),to(#fd9365)),-webkit-gradient(linear,left top,left bottom,from(#f7f7f7),to(#f7f7f7));background-image:-webkit-linear-gradient(bottom,#fda884,#fd9e75 50%,#fd9365),-webkit-linear-gradient(#f7f7f7,#f7f7f7);background-image:linear-gradient(0deg,#fda884,#fd9e75 50%,#fd9365),linear-gradient(#f7f7f7,#f7f7f7)}.total[data-v-48f761a0]{font-size:2rem}.price-icon[data-v-48f761a0],.total[data-v-48f761a0]{color:#f15353;font-weight:600}.price-icon[data-v-48f761a0],.total-income[data-v-48f761a0]{font-size:1rem}.total-income[data-v-48f761a0]{color:#2c2c2c}.block[data-v-48f761a0]{position:relative;width:20rem;margin:0 2rem}.block .success-img[data-v-48f761a0]{width:100%}.block .success-btn[data-v-48f761a0]{width:9rem;height:2rem;top:75%;margin:0 auto;line-height:2rem;background:-webkit-gradient(linear,left top,left bottom,from(#ffe71f),to(#ffe71f));background:-webkit-linear-gradient(#ffe71f,#ffe71f);background:linear-gradient(#ffe71f,#ffe71f);-webkit-box-shadow:0 .3rem 0 0 rgba(255,148,8,.8);box-shadow:0 .3rem 0 0 rgba(255,148,8,.8);border-radius:1rem;color:#ff4e00}.block-confirm[data-v-48f761a0],.block .success-btn[data-v-48f761a0]{position:absolute;left:0;right:0;text-align:center}.block-confirm[data-v-48f761a0]{top:59%;color:#fff}.wrapper[data-v-48f761a0]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:100%}.direct-drive[data-v-48f761a0],.wrapper[data-v-48f761a0]{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}.direct-drive[data-v-48f761a0]{width:16rem;height:7rem;background-color:#fff;border-radius:1rem;opacity:.7;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin:1.875rem auto 0}.price[data-v-48f761a0]{font-size:1.75rem}.c-673000[data-v-48f761a0]{color:#673000}.c-FB6B68[data-v-48f761a0]{color:#fb6b68}.c-959595[data-v-48f761a0]{color:#959595}.c-101010[data-v-48f761a0]{color:#101010}.c-6A6A6A[data-v-48f761a0]{color:#6a6a6a}.c-707070[data-v-48f761a0]{color:#707070}.c-9C040A0D[data-v-48f761a0]{color:rgba(156,4,10,.0509803922)}.main[data-v-48f761a0]{margin:.625rem;background-color:#fff;border-radius:1rem}.main[data-v-48f761a0] .van-tab{color:#ff851c}.main[data-v-48f761a0] .van-cell{border-bottom-right-radius:2em;border-bottom-left-radius:2em}.main[data-v-48f761a0] .van-tabs__line{background-color:#ff851c}.main-left[data-v-48f761a0]{text-align:left}.main .van-cell-group[data-v-48f761a0],.main[data-v-48f761a0] .van-tabs__wrap{border-radius:1rem}.main[data-v-48f761a0] .van-cell-group{border-top-left-radius:2em;border-top-right-radius:2em}.header[data-v-48f761a0]{background-color:#ff851c;padding-bottom:1.3125rem}.header[data-v-48f761a0] .van-button{width:13.5rem;height:1.9375rem;margin-top:.3125rem;color:#673000!important;border-radius:2rem}.balance-wrapper[data-v-48f761a0]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly;margin-top:1.4375rem}.balance-wrapper[data-v-48f761a0],.balance-wrapper li[data-v-48f761a0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.balance-wrapper li[data-v-48f761a0]{width:10.25rem;height:6.875rem;-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-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-radius:8px;background-color:hsla(0,0%,100%,.6);margin-bottom:1rem;padding-bottom:.75rem}.balance-wrapper li .total[data-v-48f761a0]{font-size:1rem}.balance-wrapper li .price-icon[data-v-48f761a0]{font-size:.875rem}.balance-wrapper .show_info[data-v-48f761a0]{margin-top:.1875rem}.draw[data-v-48f761a0]{color:#f41100;position:absolute;left:0;right:0;top:19%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.draw-price[data-v-48f761a0]{font-size:2rem}.draw-icon[data-v-48f761a0]{position:relative;bottom:4px}",""]),t.exports=a}}]);