bztang-admin/addons/yun_shop/static/app/js/chunk-35bb4c01.0aff4cee.js

1 line
11 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35bb4c01"],{"0a3a":function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"income_record"}},[o("c-title",{attrs:{hide:!1,text:"进出明细"}}),o("div",{attrs:{id:"content"}},[o("div",{staticClass:"content_a"},[o("div",{staticClass:"top_a"},[o("ul",{staticClass:"name"},[o("li",[o("span",[t._v(t._s(t.recordData.digitization_name))])]),o("li",[o("span",[t._v("可用:"+t._s(t.recordData.member_usable))]),o("span",[t._v("冻结:"+t._s(t.recordData.member_froze))])])])])]),o("div",{staticClass:"content_b"},[o("div",{staticClass:"info_a"},[o("div",{staticClass:"classify"},[o("h1",[t._v("进出明细")]),o("span",{on:{click:t.showClassify}},[t._v(t._s(t.chooseClassifyName)),o("i",{staticClass:"iconfont icon-down"})]),o("div",{staticClass:"info_time"},[t.chooseDate?o("i",{staticClass:"iconfont icon-guanbi",on:{click:t.clearPicker}}):t._e(),t.chooseDate?o("span",[t._v("时间:"+t._s(t.showChooseDate))]):t._e(),o("i",{staticClass:"iconfont icon-record_time",on:{click:t.openPicker}})])])]),o("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[o("div",{staticClass:"info_b"},t._l(t.recordList,(function(e,i){return o("ul",{key:i,staticClass:"list"},[o("li",[o("span",[t._v(t._s(e.source_type_name))]),o("span",[t._v(t._s(e.change))])]),o("li",{staticClass:"last"},[o("span",[t._v(t._s(1===e.value_type?"可用":"冻结"))]),o("span",[t._v(t._s(e.created_at))])])])})),0)]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.recordList.length<=0,expression:"recordList.length <=0"}]},[t._v("暂无记录")])],1)]),o("van-popup",{attrs:{position:"bottom",overlay:!0},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("van-datetime-picker",{attrs:{"min-date":t.minDate,type:"year-month",formatter:t.formatter},on:{cancel:t.handleCancel,confirm:t.handleConfirm},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})],1),o("transition",{attrs:{name:"fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopup,expression:"showPopup"}],staticClass:"popup-bg",on:{click:function(e){e.stopPropagation(),t.showPopup=!1},touchmove:function(t){t.preventDefault()}}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopup,expression:"showPopup"}],ref:"cartWrapper",staticClass:"popup_box",staticStyle:{"max-height":"18rem",overflow:"hidden","border-top":"solid 0.0625rem #ebebeb"}},[o("ul",{staticClass:"box"},[o("li",{class:"-1"===t.chooseClassifyIndex?"cur":"",on:{click:function(e){return t.chooseClassify("-1","全部")}}},[t._v(" 全部 "),o("i",{directives:[{name:"show",rawName:"v-show",value:"-1"===t.chooseClassifyIndex,expression:"chooseClassifyIndex === '-1'"}],staticClass:"iconfont icon-record_go"})]),t._l(t.classify,(function(e,i){return o("li",{key:i,class:t.chooseClassifyIndex===i?"cur":"",on:{click:function(o){return t.chooseClassify(i,e)}}},[t._v(t._s(e)+" "),o("i",{directives:[{name:"show",rawName:"v-show",value:t.chooseClassifyIndex===i,expression:"chooseClassifyIndex === index"}],staticClass:"iconfont icon-record_go"})])}))],2)])])])],1)},a=[],s=(o("e7e5"),o("d399")),c=(o("99af"),o("6968")),n=o("1fba"),r=o("ac0d"),l={mixins:[r["a"]],data:function(){return{date:new Date,chooseDate:"",showChooseDate:"",minDate:new Date(2017,1,1),show:!1,showPopup:!1,chooseClassifyIndex:"-1",chooseClassifyID:"",recordData:{},recordList:[],classify:["全部","后台配发","认购","转让-转出","转让-转入","冻结激活","出售","奖励","购买"],lang:{},asset_id:"",chooseClassifyName:"全部",isLoadMore:!0,page:1,total_page:0,isLoading:!1}},activated:function(){this.asset_id=this.$route.params.asset_id,this.initData(),this.getLang(),this.getData()},methods:{getLang:function(){var t=this;$http.get("plugin.asset.Frontend.Controllers.Lang.index",{},"加载中...").then((function(e){1===e.result?t.lang=e.data:Object(s["a"])(e.msg)})).catch((function(t){}))},_initScrollCart:function(){this.cartScroll=new n["a"](this.$refs.cartWrapper,{click:!0})},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):e},showClassify:function(){var t=this;this.showPopup=!0,this.$nextTick((function(){t.cartScroll?t.cartScroll.refresh():t._initScrollCart()}))},chooseClassify:function(t,e){this.chooseClassifyIndex=t,this.chooseClassifyName=e,this.chooseClassifyID="-1"===t?"":t,this.getData()},openPicker:function(){this.show=!0},handleCancel:function(){this.show=!1},clearPicker:function(){this.showChooseDate="",this.chooseDate="",this.getData(this.recordApi)},handleConfirm:function(t){this.show=!1,this.showChooseDate=t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1),this.chooseDate=t.getTime()/1e3,this.getData()},loadTop:function(){this.initData(),this.getData()},getData:function(){var t=this;this.isLoadMore=!1,this.page=1;var e={source_type:this.chooseClassifyID,time:this.chooseDate,asset_id:this.asset_id};$http.get("plugin.asset.Frontend.Modules.Digitization.Controllers.change-records.index",e,"加载中").then((function(e){1===e.result?(t.isLoadMore=!0,t.total_page=e.data.page_list.last_page,t.total_page||(t.total_page=0),t.recordList=e.data.page_list.data,t.classify=e.data.source_type,t.recordData=e.data.asset_member,t.isLoading=!1):(Object(s["a"])(e.msg),t.isLoading=!1)})).catch((function(t){}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this.page>=this.total_page)){var e={source_type:this.chooseClassifyID,time:this.chooseDate,asset_id:this.asset_id};this.page=this.page+1,e.page=this.page,$http.get("plugin.asset.Frontend.Modules.Digitization.Controllers.change-records.index",e,"加载中").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var o=e.data.page_list.data;t.recordList=t.recordList.concat(o)}),(function(t){}))}},initData:function(){this.date=new Date,this.chooseDate="",this.showChooseDate="",this.show=!1,this.showPopup=!1,this.chooseClassifyID="",this.chooseClassifyIndex="-1",this.chooseClassifyName="全部",this.recordData={},this.recordList=[],this.isLoadMore=!0,this.page=1,this.total_page=0}},components:{cTitle:c["a"]}},d=l,h=d,f=(o("da9f"),o("2877")),p=Object(f["a"])(h,i,a,!1,null,"15cd60c5",null);e["default"]=p.exports},"17d7":function(t,e,o){var i=o("c644");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=o("499e").default;a("e81d77ae",i,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,o){"use strict";o.d(e,"a",(function(){return s}));var i=document.documentElement,a=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:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&i.clientHeight?Math.min(a.clientHeight,i.clientHeight):Math.max(a.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(a.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(){}}}},c644:function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,"#income_record .content_a[data-v-15cd60c5]{background-color:#f7a145}#income_record .content_a .top_a[data-v-15cd60c5]{padding:.625rem .875rem}#income_record .content_a .top_a .name li[data-v-15cd60c5]:first-child{line-height:2.25rem;font-size:18px}#income_record .content_a .top_a .name li[data-v-15cd60c5]:first-child,#income_record .content_a .top_a .name li[data-v-15cd60c5]:last-child{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;color:#fff}#income_record .content_a .top_a .name li[data-v-15cd60c5]:last-child{font-size:14px;line-height:1.5rem}#income_record .content_b[data-v-15cd60c5]{margin-top:.625rem}#income_record .content_b .info_a[data-v-15cd60c5]{background:#fff;padding:0 .875rem}#income_record .content_b .info_a .classify[data-v-15cd60c5]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.75rem;line-height:2.75rem;border-bottom:.0625rem solid #ebebeb;position:relative}#income_record .content_b .info_a .classify h1[data-v-15cd60c5]{font-size:16px;margin-right:1.25rem}#income_record .content_b .info_a .classify span[data-v-15cd60c5]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:14px;color:#8c8c8c}#income_record .content_b .info_a .classify span i[data-v-15cd60c5]{color:#c9c9c9;font-size:1rem;line-height:2.75rem}#income_record .content_b .info_a .classify .info_time[data-v-15cd60c5]{position:absolute;right:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#income_record .content_b .info_a .classify .icon-guanbi[data-v-15cd60c5]{font-size:14px}#income_record .content_b .info_a .classify .icon-record_time[data-v-15cd60c5]{margin-left:1rem;font-size:1.5rem;color:#666;line-height:2.75rem}#income_record .content_b .info_a .number[data-v-15cd60c5]{padding:.625rem 0}#income_record .content_b .info_a .number li[data-v-15cd60c5]{padding:0 .625rem;text-align:left;font-size:14px;line-height:1.5rem}#income_record .content_b .info_b[data-v-15cd60c5]{background:#fff;margin-top:.625rem}#income_record .content_b .info_b .list[data-v-15cd60c5]{padding:.625rem .875rem;border-bottom:.0625rem solid #ebebeb}#income_record .content_b .info_b .list li[data-v-15cd60c5]{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}#income_record .content_b .info_b .list .last[data-v-15cd60c5]{color:#8c8c8c}#income_record .content_b .info_b .list li[data-v-15cd60c5]:first-child{line-height:1.875rem;font-size:16px}#income_record .content_b .info_b .list li:first-child span[data-v-15cd60c5]:last-child{color:#f7a145}#income_record .content_b .info_b .list li[data-v-15cd60c5]:last-child{line-height:1.5rem;font-size:13px;color:#8c8c8c}#income_record .popup-bg[data-v-15cd60c5]{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.3);z-index:10}#income_record .popup_box[data-v-15cd60c5]{position:absolute;bottom:0;width:100%;background:#fff}#income_record .popup_box .box .cur[data-v-15cd60c5]{color:#f7a145}#income_record .popup_box .box li[data-v-15cd60c5]{line-height:2.25rem;padding:0 1.25rem;font-weight:700;position:relative;text-align:left;font-size:16px}#income_record .popup_box .box li i[data-v-15cd60c5]{font-size:1.125rem;color:#f7a145;line-height:2.5rem;position:absolute;right:.625rem}",""]),t.exports=e},da9f:function(t,e,o){"use strict";o("17d7")}}]);