bztang-admin/addons/yun_shop/static/app/js/chunk-e78f43ee.b3aa7ee3.js

1 line
12 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-e78f43ee"],{"01b8":function(e,t,a){e.exports=a.p+"static/app/img/success@2x.1e20eea3.png"},"2e45b":function(e,t,a){var s=a("bb2f3");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var o=a("499e").default;o("4fedd8f1",s,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var s=document.documentElement,o=document.body,i={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return s&&s.scrollTop?e=s.scrollTop:o&&(e=o.scrollTop),e},getClientHeight:function(){var e=0;return e=o.clientHeight&&s.clientHeight?Math.min(o.clientHeight,s.clientHeight):Math.max(o.clientHeight,s.clientHeight),e},getScrollHeight:function(){return Math.max(o.scrollHeight,s.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(){}}}},bb2f3:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,"#sppd_lease[data-v-b372a042]{height:100%;background-color:#fff}#sppd_lease .plus-ratio[data-v-b372a042]{color:#5c5c5c;padding-top:.5rem;font-size:.6rem}#sppd_lease .total_revenue[data-v-b372a042]{margin-bottom:.928rem;font-size:2rem;color:#f15353}#sppd_lease .speed-record[data-v-b372a042]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:0 1rem}#sppd_lease .speed-pool-wrapper[data-v-b372a042],#sppd_lease .speed-record[data-v-b372a042]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#sppd_lease .speed-pool-wrapper[data-v-b372a042]{width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding-top:.8rem;border-bottom:.1rem solid #ebebeb}#sppd_lease .speed-pool-order-sn[data-v-b372a042]{margin-bottom:.5rem}#sppd_lease .speed-pool-created-at[data-v-b372a042]{color:#5c5c5c;padding-bottom:.8rem;font-size:.6rem}#sppd_lease .speed-pool-left[data-v-b372a042]{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:baseline;-webkit-align-items:baseline;-ms-flex-align:baseline;align-items:baseline}#sppd_lease .wrapper[data-v-b372a042]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:100%}#sppd_lease .draw[data-v-b372a042],#sppd_lease .wrapper[data-v-b372a042]{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}#sppd_lease .draw[data-v-b372a042]{color:#f41100;position:absolute;left:0;right:0;top:19%;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}#sppd_lease .draw-price[data-v-b372a042]{font-size:2rem}#sppd_lease .draw-icon[data-v-b372a042]{position:relative;bottom:4px}#sppd_lease .block[data-v-b372a042]{position:relative;width:20rem;margin:0 2rem}#sppd_lease .block .success-img[data-v-b372a042]{width:100%}#sppd_lease .block .success-btn[data-v-b372a042]{width:9rem;height:2rem;position:absolute;left:0;right:0;top:75%;margin:0 auto;text-align:center;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}#sppd_lease .block-confirm[data-v-b372a042]{position:absolute;top:59%;right:0;left:0;text-align:center;color:#fff}#sppd_lease .lease-wrapper[data-v-b372a042]{padding-top:1rem;padding-bottom:1.2rem;border-bottom:.825rem solid #ebebeb}#sppd_lease .C-6A6A6A[data-v-b372a042]{color:#6a6a6a}#sppd_lease .sucess[data-v-b372a042]{color:#478c57}#sppd_lease .lease-record-header[data-v-b372a042]{border-bottom:1px solid #eaeaea;padding:.1428rem 1.285rem .5rem}#sppd_lease .lease-record-bootm[data-v-b372a042],#sppd_lease .lease-record-header[data-v-b372a042]{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}#sppd_lease .lease-record-bootm[data-v-b372a042]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.392rem 1.285rem 0;text-align:left}#sppd_lease .lease-record-bootm-left p[data-v-b372a042]{margin:.2785rem 0;color:#414141}#sppd_lease .play-shop[data-v-b372a042]{padding-top:.908rem}#sppd_lease .time[data-v-b372a042]{color:#6a6a6a;font-size:.807rem}#sppd_lease .header[data-v-b372a042]{border-bottom:.825rem solid #ebebeb}#sppd_lease .title[data-v-b372a042]{padding-top:1.5rem;padding-bottom:1.2142rem}#sppd_lease .amount[data-v-b372a042]{font-size:2rem;color:#f15353}#sppd_lease .van-button[data-v-b372a042]{margin-top:.928rem;width:12.357rem;height:2.928rem;border-radius:.35rem}#sppd_lease .main-c[data-v-b372a042]{color:#f65958}#sppd_lease .w-9[data-v-b372a042]{width:9rem}#sppd_lease .header-btn[data-v-b372a042]{padding-bottom:2.428rem}#sppd_lease .lease-record-wrapper[data-v-b372a042]{background-color:#fff;padding-top:1rem}#sppd_lease .success[data-v-b372a042]{color:#f15353}#sppd_lease .spending[data-v-b372a042]{color:#18873f}#sppd_lease .speed-record-line[data-v-b372a042],#sppd_lease[data-v-b372a042] .van-tabs{border-bottom:1px solid #ececec}#sppd_lease .speed-plus-right[data-v-b372a042]{text-align:right}",""]),e.exports=t},bc86:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{attrs:{id:"sppd_lease"}},[s("c-title",{attrs:{hide:!1,text:e.love_name+"加速池释放"}}),s("div",{staticClass:"speed-record-line"},[s("van-tabs",{on:{click:e.handleClick},model:{value:e.speed_type,callback:function(t){e.speed_type=t},expression:"speed_type"}},[s("van-tab",{attrs:{title:"加速池",name:"speed_pool"}})],1)],1),"speed_pool"==e.speed_type?s("header",{staticClass:"header"},[s("div",{staticClass:"title"},[e._v("待释放"+e._s(e.love_name))]),s("div",{staticClass:"amount "},[e._v(e._s(e.member_surplus?e.member_surplus.toFixed(2):0))]),s("div",{staticClass:"header-btn"},[s("van-button",{attrs:{color:"#F65958"},on:{click:e.draw}},[e._v("领取释放"+e._s(e.love_name)+" ")]),0==e.member_surplus?s("div",{staticClass:"play-shop main-c",on:{click:e.go_to_pay}},[e._v("购买商品保留权益>")]):e._e()],1)]):e._e(),s("div",{staticClass:"main"},[s("van-tabs",{on:{change:e.changeHandle},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},["speed_pool"==e.speed_type?s("van-tab",{attrs:{title:"加速池记录",name:"speed_pool_record"}}):e._e(),"speed_pool"==e.speed_type?s("van-tab",{attrs:{title:"释放记录",name:"released_rocord"}}):e._e()],1),"speed_pool"==e.speed_type&&"speed_pool_record"==e.active?s("div",{staticClass:"speed-record-wrapper"},[s("ul",{staticClass:"speed-record"},e._l(e.speed_pool_record,(function(t,a){return s("li",{key:a,staticClass:"speed-pool-wrapper"},[s("div",{staticClass:"speed-pool-left"},[s("span",{staticClass:"speed-pool-order-sn"},[e._v(e._s(t.remark))]),s("span",{staticClass:"speed-pool-created-at"},[e._v(e._s(t.created_at))])]),s("div",{staticClass:"speed-pool-right",class:t.value.includes("-")?"spending":"success"},[e._v(e._s(t.value.includes("-")?"":"+")+e._s(t.value))])])})),0)]):e._e(),"speed_pool"==e.speed_type&&"released_rocord"==e.active?s("div",[s("ul",{staticClass:"lease-record-wrapper "},e._l(e.released_rocord.data,(function(t,a){return s("li",{key:a,staticClass:"lease-wrapper"},[s("div",{staticClass:"lease-record-header"},[s("p",{staticClass:"C-6A6A6A"},[e._v(e._s(t.created_at))]),s("p",{class:0==t.status?"main-c":"sucess"},[e._v(e._s(t.status_name))])]),s("ul",{staticClass:"lease-record-bootm"},[s("li",{staticClass:"lease-record-bootm-left"},[s("p",[e._v(e._s(t.love_name)+""+e._s(t.speed_pool_total))]),s("p",[e._v("激活比例:"+e._s(t.ratio))]),s("p",[e._v("通证单价:"+e._s(t.api_value))]),0!==t.fee_ratio?s("p",[e._v("手续费比例:"+e._s(t.fee_ratio)+"%")]):e._e()]),s("li",[s("p",{staticClass:"main-c"},[e._v("+"+e._s(t.usable_love))])])])])})),0)]):e._e()],1),s("van-overlay",{attrs:{show:e.show}},[s("div",{staticClass:"wrapper",on:{click:e.close}},[s("div",{staticClass:"block"},[s("div",{staticClass:"draw"},[s("span",{staticClass:"draw-icon"},[e._v("¥")]),s("span",{staticClass:"draw-price"},[e._v(" "+e._s(e.amount))])]),s("img",{staticClass:"success-img",attrs:{src:a("01b8")}}),s("div",{staticClass:"block-confirm"},[e._v("请点击确定领取释放的"+e._s(e.love_name))]),s("div",{staticClass:"success-btn",on:{click:function(t){return t.stopPropagation(),e.ToAdvertising.apply(null,arguments)}}},[e._v("确认")])])])])],1)},o=[],i=(a("e7e5"),a("d399")),l=(a("d3b7"),a("159b"),a("99af"),a("ac0d")),d={mixins:[l["a"]],data:function(){return{show:!1,love_name:"",active:"speed_pool_record",amount:0,member_surplus:0,isLoadMore:!1,ad_link:"",amount_total:0,speed_pool_record:{},released_rocord:{},account_balance:{},speed_type:"speed_pool",total_revenue:0,income:0,highlight:""}},activated:function(){this.initData(),this.getData()},methods:{draw:function(){0==this.member_surplus?Object(i["a"])("暂无释放的爱心值可领取"):this.show=!0},handleClick:function(){var e=this;"speed_pool"==this.speed_type?this.$nextTick((function(){e.active=e.highlight})):"speed_plus_pool"==this.speed_type&&(this.highlight=this.active)},initData:function(){this.isLoadMore=!1,this.show=!1,this.ad_link="",this.amount=0,this.member_surplus=0},close:function(){this.show=!1},getData:function(){var e=this;$http.get("plugin.love-speed-pool.frontend.home.index",{page:1},"加载中").then((function(t){e.isLoadMore=!0,1==t.result?(e.speed_pool_record=t.data.speed_pool_record,e.released_rocord=t.data.released_rocord,e.member_surplus=parseFloat(t.data.member_surplus),e.released_rocord.data.forEach((function(e){e.love_name=t.data.love_name}))):Object(i["a"])(t.msg)})),$http.get("plugin.love-speed-pool.frontend.receive.index",{},"").then((function(t){1==t.result?(e.amount=parseFloat(t.data.amount),e.love_name=t.data.love_name,e.ad_link=t.data.ad_link):Object(i["a"])(t.msg)})),$http.get("plugin.love-speed-pool.frontend.plus.index",{page:1},"加载中").then((function(t){1==t.result?(e.account_balance=t.data.list,e.amount_total=parseFloat(t.data.amount_total)):Object(i["a"])(t.msg)}))},ToAdvertising:function(){var e=this;$http.get("plugin.love-speed-pool.frontend.receive.handle",{},"加载中").then((function(t){Object(i["a"])(t.msg),window.location.href=e.ad_link}))},go_to_pay:function(){this.$router.push(this.fun.getUrl("search",{},{CommodityRights:"CommodityRights"}))},getMoreData:function(){var e=this;if(this.isLoadMore=!1,!(this[this.active].current_page>=this[this.active].last_page)){var t="";t="speed_plus_pool"==this.speed_type?"plugin.love-speed-pool.frontend.plus.index":"plugin.love-speed-pool.frontend.home.index",$http.get(t,{page:this[this.active].current_page+1},"加载中").then((function(t){e.isLoadMore=!0,1==t.result?"account_balance"==e.active?(e.account_balance.data=e.account_balance.data.concat(t.data.list.data),e[e.active].current_page=t.data.list.current_page):(e[e.active].data=e[e.active].data.concat(t.data[e.active].data),e[e.active].current_page=t.data[e.active].current_page,"released_rocord"==e.active&&e[e.active].data.forEach((function(e){return e.love_name=t.data.love_name}))):Object(i["a"])(t.msg)}))}}}},r=d,n=(a("c1cf"),a("2877")),p=Object(n["a"])(r,s,o,!1,null,"b372a042",null);t["default"]=p.exports},c1cf:function(e,t,a){"use strict";a("2e45b")}}]);