1 line
9.0 KiB
JavaScript
1 line
9.0 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-32881de5"],{"5a08":function(e,t,o){var i=o("24fb");t=i(!1),t.push([e.i,".priceDifferencePool[data-v-b4086edc]{min-height:100vh}.popupBox .txt[data-v-b4086edc]{margin:1.13rem 0;font-size:1rem;font-weight:500}.popupBox .popupList[data-v-b4086edc]{margin-top:1.25rem;padding:0 .75rem;-webkit-box-sizing:border-box;box-sizing:border-box}.popupBox .popupList .list_t[data-v-b4086edc]{text-align:left;font-size:.81rem;color:#999}.popupBox .popupList .lis[data-v-b4086edc]{margin-top:.5rem;padding:.75rem;-webkit-box-sizing:border-box;box-sizing:border-box;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}.popupBox .popupList .lis .lis_l[data-v-b4086edc]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:4.38rem;height:4.38rem;border-radius:.31rem;margin-right:.38rem}.popupBox .popupList .lis .lis_l img[data-v-b4086edc]{width:100%;height:100%;border-radius:.31rem}.popupBox .popupList .lis .lis_r[data-v-b4086edc]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;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-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;overflow:hidden}.popupBox .popupList .lis .lis_r .title[data-v-b4086edc]{width:100%;font-weight:500;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.popupBox .popupList .lis .lis_r .des[data-v-b4086edc]{color:#999;margin-top:1rem}.popupBox .popupList .lis .lis_r .des .des_s[data-v-b4086edc]{color:#f15353}.headTop[data-v-b4086edc]{height:8.41rem}.headTop .background-box[data-v-b4086edc]{height:8.41rem;color:#382c0a;background-color:#fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#ffc11e),to(#f5f5f5));background-image:-webkit-linear-gradient(#ffc11e,#f5f5f5);background-image:linear-gradient(#ffc11e,#f5f5f5);background-image:var(--themeBgColor)}.headTop .recordBox[data-v-b4086edc]{border-radius:.63rem;padding:.75rem;padding-top:0;background:#fff;margin:0 .63rem}.headTop .recordBox .line[data-v-b4086edc]{padding:.75rem 0;border-bottom:1px solid #f0f0f1}.headTop .recordBox .line .dline[data-v-b4086edc]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.headTop .recordBox .line .dline[data-v-b4086edc],.headTop .recordBox .line .dline .right[data-v-b4086edc]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.headTop .recordBox .line .dline .right[data-v-b4086edc]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.headTop .recordBox .line .dline .time[data-v-b4086edc]{font-size:.69rem;color:#999}.headTop .recordBox .line .dline .iconS[data-v-b4086edc]{color:#f15353;font-size:.69rem}.headTop .recordBox .line .dline_m_t[data-v-b4086edc]{margin-top:.75rem}.headTop .recordBox .line[data-v-b4086edc]:last-child{border:none}.headTop .headTop_p[data-v-b4086edc]{padding:.94rem 0;margin:0 .63rem;border-radius:.63rem;background:#fff;margin-top:-6.88rem;margin-bottom:.5rem}.headTop .headTop_p .txt[data-v-b4086edc]{font-size:.75rem;color:#666}.headTop .headTop_p .txt_p[data-v-b4086edc]{font-size:1.38rem;line-height:1.5rem;font-weight:700;margin-top:1.25rem;margin-bottom:1.25rem}.headTop .headTop_p .headTop_p_btn[data-v-b4086edc]{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:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.headTop .headTop_p .headTop_p_btn .btn[data-v-b4086edc]{padding:.62rem 1.91rem;border-radius:.31rem}.headTop .headTop_p .headTop_p_btn .left_btn[data-v-b4086edc]{background:var(--color);color:#fff}.headTop .headTop_p .headTop_p_btn .right_btn[data-v-b4086edc]{background:#fff;color:var(--color);border:1px solid var(--color);margin-left:2.78rem}",""]),e.exports=t},"63cb1":function(e,t,o){var i=o("5a08");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=o("499e").default;a("72103d9e",i,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));var i=document.documentElement,a=document.body,l={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return i&&i.scrollTop?e=i.scrollTop:a&&(e=a.scrollTop),e},getClientHeight:function(){var e=0;return e=a.clientHeight&&i.clientHeight?Math.min(a.clientHeight,i.clientHeight):Math.max(a.clientHeight,i.clientHeight),e},getScrollHeight:function(){return Math.max(a.scrollHeight,i.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(){}}}},b779:function(e,t,o){"use strict";o("63cb1")},eaea7:function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"priceDifferencePool",style:{"--color":""+e.background_color}},[o("c-title",{attrs:{text:e.diyname}}),o("div",{staticClass:"headTop"},[o("div",{staticClass:"background-box"}),o("div",{staticClass:"headTop_p"},[o("div",{staticClass:"txt"},[e._v("当前"+e._s(e.diyname))]),o("div",{staticClass:"txt_p"},[e._v(e._s(e.info.pool))]),o("div",{staticClass:"headTop_p_btn"},[o("div",{staticClass:"btn left_btn",on:{click:function(t){return t.stopPropagation(),e.toBalance_recharge.apply(null,arguments)}}},[e._v("充值")]),o("div",{staticClass:"btn right_btn",on:{click:e.tobalance_withdrawalspdp}},[e._v("提现")])])]),o("div",{staticClass:"recordBox"},[o("van-tabs",{model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[o("van-tab",{attrs:{title:"明细记录"}})],1),e._l(e.pool_log,(function(t){return o("div",{key:t,staticClass:"line"},[o("div",{staticClass:"dline"},[o("div",{staticClass:"left"},[e._v(e._s(t.source_name))]),o("div",{staticClass:"right"},[e._v(e._s(t.amount))])]),o("div",{staticClass:"dline dline_m_t"},[o("div",{staticClass:"left time"},[e._v(e._s(t.created_at))]),t.detail?o("div",{staticClass:"right iconS",on:{click:function(o){return e.popupShow(t.detail)}}},[e._v(" 查看 "),o("van-icon",{attrs:{name:"arrow"}})],1):e._e()])])}))],2)]),o("van-popup",{style:{height:"30%"},attrs:{round:"",position:"bottom",closeable:"","close-on-click-overlay":""},on:{close:e.closePopup},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[o("div",{staticClass:"popupBox"},[o("div",{staticClass:"txt"},[e._v("查看")]),o("div",{staticClass:"popupList"},[o("div",{staticClass:"list_t"},[e._v(e._s(e.popupItem.order_sn))]),o("div",{staticClass:"lis"},[o("div",{staticClass:"lis_l"},[o("img",{attrs:{src:e.popupItem.thumb,alt:""}})]),o("div",{staticClass:"lis_r"},[o("div",{staticClass:"title"},[e._v(e._s(e.popupItem.title))]),e.popupItem.describe?o("div",{staticClass:"des"},[e._v(" "+e._s(e.popupItem.describe)+" ")]):e._e()])])])])])],1)},a=[],l=(o("b64b"),o("14d9"),o("99af"),o("ac0d")),n={mixins:[l["a"]],data:function(){return{background_color:"#ffc11e",active:0,show:!1,info:[],pool_log:[],popupItem:[],diyname:"资金池",isLoadMore:!0,page:1,totalPage:0}},activated:function(){this.getData();var e=JSON.parse(localStorage.getItem("yz_basic_info"));this.diyname=e.price_difference_pool_name?e.price_difference_pool_name:"资金池",this.fun.setWXTitle(this.diyname),this.background_color=e.theme_color},methods:{closePopup:function(){this.show=!1,this.popupItem=[]},popupShow:function(e){this.show=!0,this.popupItem=e},toBalance_recharge:function(){this.$router.push(this.fun.getUrl("balance_rechargepdp",{}))},tobalance_withdrawalspdp:function(){this.$router.push(this.fun.getUrl("balance_withdrawalspdp",{}))},getData:function(){var e=this;$http.get("plugin.price-difference-pool.frontend.controllers.page.index",{},"加载中").then((function(t){1===t.result?(e.info=t.data,e.pool_log=t.data.pool_log.data,e.isLoadMore=!0,e.totalPage=t.data.pool_log.last_page,e.totalPage||(e.totalPage=0)):Toast(t.msg)}),(function(e){}))},getMoreData:function(){var e=this;if(this.isLoadMore=!1,!(this.page>=this.totalPage)){this.page=this.page+1;var t={page:this.page};$http.post("plugin.price-difference-pool.frontend.controllers.page.index",t,"正在获取").then((function(t){if(1==t.result){var o=e.pool_log.concat(t.data.pool_log.data);e.pool_log=o,e.isLoadMore=!0}else e.page=e.page-1,e.isLoadMore=!1,e.$dialog.alert({message:t.msg})}))}}}},r=n,s=(o("b779"),o("2877")),d=Object(s["a"])(r,i,a,!1,null,"b4086edc",null);t["default"]=d.exports}}]); |