bztang-admin/addons/yun_shop/static/app/js/chunk-a7cc60ac.3e4e1127.js

1 line
16 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-a7cc60ac"],{"1de9":function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"buying_record"}},[i("c-title",{attrs:{hide:!1,text:e.title+"记录"}}),i("div",{attrs:{id:"content"}},[i("div",{staticClass:"nav_box"},[i("ul",{staticClass:"nav"},e._l(e.Record,(function(t,s){return i("li",{key:s,class:e.chooseItem===s?"current":"",on:{click:function(i){return i.stopPropagation(),e.chooseRecord(s,t)}}},[e._v(" "+e._s(t)+"记录 ")])})),0)]),i("van-pull-refresh",{on:{refresh:e.loadTop},model:{value:e.isLoading,callback:function(t){e.isLoading=t},expression:"isLoading"}},[i("transition",{attrs:{name:"fadeLeft"}},[0===e.chooseItem?i("div",{staticClass:"buy_info"},[i("div",{staticClass:"info_a"},[i("div",{staticClass:"classify"},[i("h1",[e._v("转让记录")]),i("span",{on:{click:e.showClassify1}},[e._v(e._s(e.chooseClassifyName)),i("i",{staticClass:"iconfont icon-down"})]),i("div",{staticClass:"info_time"},[e.chooseDate?i("i",{staticClass:"iconfont icon-guanbi",on:{click:e.clearPicker}}):e._e(),e.chooseDate?i("span",[e._v("时间:"+e._s(e.showChooseDate))]):e._e(),i("i",{staticClass:"iconfont icon-record_time",on:{click:e.openPicker}})])]),i("ul",{staticClass:"number"},[i("li",[e._v("累计转入:"+e._s(e.recordData.transfer_into_sum))]),i("li",[e._v("累计转出:"+e._s(e.recordData.transfer_out_sum))])])]),i("div",{staticClass:"info_b"},e._l(e.recordList,(function(t,s){return i("ul",{key:s,staticClass:"list"},[i("li",[i("span",[e._v(e._s(t.nickname)+"【ID"+e._s(t.id)+"】")]),i("span",[e._v(e._s(t.change))])]),i("li",[i("span",[e._v(e._s(t.created_at))]),i("span",[e._v(e._s(t.category)+"(含手续费:"+e._s(e.$i18n.t("money"))+e._s(t.poundage)+"")])])])})),0)]):e._e()]),i("transition",{attrs:{name:"fadeLeft"}},[1===e.chooseItem?i("div",{staticClass:"buy_info"},[i("div",{staticClass:"info_a"},[i("div",{staticClass:"classify"},[i("h1",[e._v("奖励记录")]),i("span",{on:{click:e.showClassify1}},[e._v(e._s(e.chooseClassifyName)),i("i",{staticClass:"iconfont icon-down"})]),i("div",{staticClass:"info_time"},[e.chooseDate?i("i",{staticClass:"iconfont icon-guanbi",on:{click:e.clearPicker}}):e._e(),e.chooseDate?i("span",[e._v("时间:"+e._s(e.showChooseDate))]):e._e(),i("i",{staticClass:"iconfont icon-record_time",on:{click:e.openPicker}})])]),i("ul",{staticClass:"number"},[i("li",[e._v("累计奖励可用数量:"+e._s(e.recordData.usable_sum||0))]),i("li",[e._v("累计奖励冻结数量:"+e._s(e.recordData.froze_sum||0))])])]),i("div",{staticClass:"info_b"},e._l(e.recordList,(function(t,s){return i("ul",{key:s,staticClass:"list"},[i("li",[i("span",[e._v("激活ID"+e._s(t.id))]),i("span",[e._v(e._s(t.amount))])]),i("li",[i("span",[e._v(e._s(t.created_at))]),i("span",[e._v(e._s(t.type_name))])])])})),0)]):e._e()]),i("transition",{attrs:{name:"fadeLeft"}},[2===e.chooseItem?i("div",{staticClass:"buy_info"},[i("div",{staticClass:"info_a"},[i("div",{staticClass:"classify"},[i("h1",[e._v("激活记录")]),i("span",{on:{click:e.showClassify1}},[e._v(e._s(e.chooseClassifyName)),i("i",{staticClass:"iconfont icon-down"})]),i("div",{staticClass:"info_time"},[e.chooseDate?i("i",{staticClass:"iconfont icon-guanbi",on:{click:e.clearPicker}}):e._e(),e.chooseDate?i("span",[e._v("时间:"+e._s(e.showChooseDate))]):e._e(),i("i",{staticClass:"iconfont icon-record_time",on:{click:e.openPicker}})])]),i("ul",{staticClass:"number"},[i("li",[e._v("累计激活数量:"+e._s(e.recordData.amount_sum))])])]),i("div",{staticClass:"info_b"},e._l(e.recordList,(function(t,s){return i("ul",{key:s,staticClass:"list"},[i("li",[i("span",[e._v("激活ID"+e._s(t.id))]),i("span",[e._v(e._s(t.amount))])]),i("li",[i("span",[e._v(e._s(t.created_at))]),i("span",[e._v(e._s(t.type_name))])])])})),0)]):e._e()]),i("transition",{attrs:{name:"fadeLeft"}},[3===e.chooseItem?i("div",{staticClass:"buy_info"},[i("div",{staticClass:"info_a"},[i("div",{staticClass:"classify"},[i("h1",[e._v(e._s(e.lang.bonus_name)+"记录")]),i("div",{staticClass:"info_time"},[e.chooseDate?i("i",{staticClass:"iconfont icon-guanbi",on:{click:e.clearPicker}}):e._e(),e.chooseDate?i("span",[e._v("时间:"+e._s(e.showChooseDate))]):e._e(),i("i",{staticClass:"iconfont icon-record_time",on:{click:e.openPicker}})])]),e.recordData.statistics?i("ul",{staticClass:"number"},[i("li",[e._v(e._s(e.lang.capital_name)+"总"+e._s(e.lang.bonus_name)+"金额:"+e._s(e.recordData.statistics.bonus_amount))]),i("li",[e._v("累计获得"+e._s(e.lang.bonus_name)+"金额:"+e._s(e.recordData.statistics.member_bonus))])]):e._e()]),i("div",{staticClass:"info_b"},e._l(e.recordList,(function(t,s){return i("ul",{key:s,staticClass:"list"},[i("li",[i("span",[e._v("总额:"+e._s(t.pool_amount))]),i("span",[e._v(e._s(t.amount))])]),i("li",{staticClass:"last"},[i("span",[e._v(e._s(e.lang.capital_name)+"总量:"+e._s(t.publish))]),i("span",[e._v("可用"+e._s(e.lang.capital_name)+""+e._s(t.usable))])]),i("li",[i("span",[e._v(e._s(e.lang.capital_name)+"价值:"+e._s(t.unit_bonus))]),i("span",[e._v(e._s(t.created_at))])])])})),0)]):e._e()])],1),i("span",{directives:[{name:"show",rawName:"v-show",value:e.recordList.length<=0,expression:"recordList.length <=0"}]},[e._v("暂无记录")])],1),i("van-popup",{attrs:{position:"bottom",overlay:!0},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[i("van-datetime-picker",{attrs:{"min-date":e.minDate,type:"year-month",formatter:e.formatter},on:{cancel:e.handleCancel,confirm:e.handleConfirm},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}})],1),i("transition",{attrs:{name:"fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopup,expression:"showPopup"}],staticClass:"popup-bg",on:{click:function(t){t.stopPropagation(),e.showPopup=!1},touchmove:function(e){e.preventDefault()}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopup,expression:"showPopup"}],ref:"cartWrapper",staticClass:"popup_box",staticStyle:{"max-height":"18rem",overflow:"hidden","border-top":"solid 0.0625rem #ebebeb"}},[i("ul",{staticClass:"box"},[1===Number(e.chooseItem)||5===Number(e.chooseItem)||4===Number(e.chooseItem)?i("li",{class:"a"===e.chooseClassifyIndex?"cur":"",on:{click:function(t){return e.chooseClassify("a","全部")}}},[e._v(" 全部 "),i("i",{directives:[{name:"show",rawName:"v-show",value:"a"===e.chooseClassifyIndex,expression:"chooseClassifyIndex === 'a'"}],staticClass:"iconfont icon-record_go"})]):e._e(),e._l(e.classify,(function(t,s){return i("li",{key:s,class:e.chooseClassifyIndex===s?"cur":"",on:{click:function(i){return e.chooseClassify(s,t)}}},[e._v(e._s(t)+" "),i("i",{directives:[{name:"show",rawName:"v-show",value:e.chooseClassifyIndex===s,expression:"chooseClassifyIndex === index"}],staticClass:"iconfont icon-record_go"})])}))],2)])])])],1)},a=[],o=(i("e7e5"),i("d399")),n=(i("14d9"),i("a9e3"),i("99af"),i("6968")),c=i("1fba"),r=i("ac0d"),l={},d={mixins:[r["a"]],data:function(){return{title:"认购",date:new Date,chooseDate:"",showChooseDate:"",minDate:new Date(2021,1,1),Record:["转让","奖励","激活","分红"],showPopup:!1,chooseItem:0,chooseClassifyID:"",chooseClassifyIndex:0,chooseClassifyName:"全部",recordData:{},recordList:[],classify:[],recordApi:"",lang:{asset_name:"",bonus_name:"",buy_name:"",capital_name:"",digitization_name:"",sell_name:"",subscription_name:""},show:!1,isLoadMore:!0,page:1,total_page:0,isLoading:!1}},activated:function(){l={},this.initData(),this.asset_id=this.$route.params.asset_id,this.getLang(),this.chooseRecord(this.chooseItem,this.Record[this.chooseItem])},methods:{getLang:function(){var e=this;$http.get("plugin.asset.Frontend.Controllers.Lang.index",{},"加载中...").then((function(t){1===t.result?(e.lang=t.data,e.fun.setWXTitle(e.lang.capital_name+"记录"),e.Record[3]=e.lang.bonus_name):Object(o["a"])(t.msg)})).catch((function(e){}))},formatter:function(e,t){return"year"===e?"".concat(t,"年"):"month"===e?"".concat(t,"月"):t},_initScrollCart:function(){this.cartScroll=new c["a"](this.$refs.cartWrapper,{click:!0})},showClassify1:function(){var e=this;this.showPopup=!0,this.$nextTick((function(){e.cartScroll?e.cartScroll.refresh():e._initScrollCart()}))},chooseClassify:function(e,t){this.chooseClassifyIndex=e,this.chooseClassifyName=t,this.chooseClassifyID="a"===e?"":e,this.getData(this.recordApi)},toDetail:function(e,t){this.$router.push(this.fun.getUrl("TransactionDetails",{id:e.id},{name:t}))},openPicker:function(){this.show=!0},handleCancel:function(){this.show=!1},clearPicker:function(){this.showChooseDate="",this.chooseDate="",this.getData(this.recordApi)},handleConfirm:function(e){this.show=!1,this.showChooseDate=e.getFullYear()+"-"+(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1),this.chooseDate=e.getTime()/1e3,this.getData(this.recordApi)},chooseRecord:function(e,t){switch(this.title=t,this.chooseItem=e||0,this.initData(),Number(e)){case 0:this.recordApi="plugin.asset.Frontend.Modules.Digitization.Controllers.Transfer-records.index",this.classify=["全部","转出","转入"];break;case 1:this.recordApi="plugin.asset.Frontend.Modules.Digitization.Controllers.reward-records.index",this.classify=[],this.chooseClassifyIndex="a";break;case 2:this.recordApi="plugin.asset.Frontend.Modules.Digitization.Controllers.activation-records.index",this.classify=[],this.chooseClassifyIndex="a";break;case 3:this.recordApi="plugin.asset.Frontend.Modules.Digitization.Controllers.bonus-records.index";break;default:this.recordApi="record-buying";break}this.getData(this.recordApi)},loadTop:function(){this.initData(),this.chooseRecord(this.chooseItem,this.Record[this.chooseItem])},setJSON:function(){switch(Number(this.chooseItem)){case 0:l={state:this.chooseClassifyID,asset_id:this.asset_id,time:this.chooseDate};break;case 1:l={asset_id:this.asset_id,time:this.chooseDate,reward_type:this.chooseClassifyID};break;case 2:l={asset_id:this.asset_id,time:this.chooseDate,type:this.chooseClassifyID};break;case 3:l={asset_id:this.asset_id,time:this.chooseDate};break;default:l={state:this.chooseClassifyID,asset_id:this.asset_id};break}},getData:function(e){var t=this;this.isLoadMore=!1,this.page=1,this.setJSON(),$http.get(e,l,"加载中").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.recordData=e.data,1!==t.chooseItem&&2!==t.chooseItem||(t.classify=e.data.type_list),t.isLoading=!1):(Object(o["a"])(e.msg),t.isLoading=!1)})).catch((function(e){}))},getMoreData:function(){var e=this;this.isLoadMore=!1,this.setJSON(),this.page>=this.total_page||(this.page=this.page+1,l.page=this.page,$http.get(this.recordApi,l,"加载中").then((function(t){if(e.isLoadMore=!0,1===t.result){var i=t.data.page_list.data;e.recordList=e.recordList.concat(i)}else e.page=e.page-1,e.isLoadMore=!1}),(function(e){})))},initData:function(){this.date=new Date,this.chooseDate="",this.showChooseDate="",this.showPopup=!1,this.chooseClassifyID="",this.chooseClassifyIndex=0,this.chooseClassifyName="全部",this.recordData={},this.recordList=[],this.classify=[],this.recordApi="",this.isLoadMore=!0,this.page=1,this.total_page=0}},components:{cTitle:n["a"]}},h=d,f=h,_=(i("97a8"),i("2877")),u=Object(_["a"])(f,s,a,!1,null,"509cf4ed",null);t["default"]=u.exports},"97a8":function(e,t,i){"use strict";i("9ab5")},"9ab5":function(e,t,i){var s=i("c3c0");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var a=i("499e").default;a("5c7033ea",s,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var s=document.documentElement,a=document.body,o={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:a&&(e=a.scrollTop),e},getClientHeight:function(){var e=0;return e=a.clientHeight&&s.clientHeight?Math.min(a.clientHeight,s.clientHeight):Math.max(a.clientHeight,s.clientHeight),e},getScrollHeight:function(){return Math.max(a.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(){}}}},c3c0:function(e,t,i){var s=i("24fb");t=s(!1),t.push([e.i,"#buying_record .popup-bg[data-v-509cf4ed]{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.3);z-index:10}#buying_record .popup_box[data-v-509cf4ed]{position:absolute;bottom:0;width:100%;background:#fff}#buying_record .popup_box .box .cur[data-v-509cf4ed]{color:#f7a145}#buying_record .popup_box .box li[data-v-509cf4ed]{line-height:2.25rem;padding:0 1.25rem;font-weight:700;position:relative;text-align:left;font-size:16px}#buying_record .popup_box .box li i[data-v-509cf4ed]{font-size:1.125rem;color:#f7a145;line-height:2.5rem;position:absolute;right:.625rem}#buying_record #content .nav_box[data-v-509cf4ed]{background:#fff;border-bottom:.0625rem solid #ebebeb;white-space:nowrap;position:relative}#buying_record #content .nav_box[data-v-509cf4ed],#buying_record #content .nav_box .nav[data-v-509cf4ed]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#buying_record #content .nav_box .nav[data-v-509cf4ed]{overflow-x:scroll;padding:0 .625rem 0 .625rem}#buying_record #content .nav_box .nav li[data-v-509cf4ed]{height:2.5rem;line-height:2.5rem;padding:0 .625rem;font-weight:700;font-size:16px}#buying_record #content .nav_box .nav .current[data-v-509cf4ed]{color:#f7a145;border-bottom:.1875rem solid #f7a145}#buying_record .buy_info[data-v-509cf4ed]{margin-top:.625rem}#buying_record .buy_info .info_a[data-v-509cf4ed]{background:#fff;padding:0 .875rem}#buying_record .buy_info .info_a .classify[data-v-509cf4ed]{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}#buying_record .buy_info .info_a .classify h1[data-v-509cf4ed]{font-size:16px;margin-right:1.25rem}#buying_record .buy_info .info_a .classify span[data-v-509cf4ed]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:14px;color:#8c8c8c}#buying_record .buy_info .info_a .classify span i[data-v-509cf4ed]{color:#c9c9c9;font-size:1rem;line-height:2.75rem}#buying_record .buy_info .info_a .classify .info_time[data-v-509cf4ed]{position:absolute;right:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#buying_record .buy_info .info_a .classify .icon-guanbi[data-v-509cf4ed]{font-size:14px}#buying_record .buy_info .info_a .classify .icon-record_time[data-v-509cf4ed]{margin-left:1rem;font-size:1.5rem;color:#666;line-height:2.75rem}#buying_record .buy_info .info_a .number[data-v-509cf4ed]{padding:.625rem 0}#buying_record .buy_info .info_a .number li[data-v-509cf4ed]{padding:0 .625rem;text-align:left;font-size:14px;line-height:1.5rem}#buying_record .buy_info .info_b[data-v-509cf4ed]{background:#fff;margin-top:.625rem}#buying_record .buy_info .info_b .list[data-v-509cf4ed]{padding:.625rem .875rem;border-bottom:.0625rem solid #ebebeb}#buying_record .buy_info .info_b .list li[data-v-509cf4ed]{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}#buying_record .buy_info .info_b .list .last[data-v-509cf4ed]{color:#8c8c8c}#buying_record .buy_info .info_b .list li[data-v-509cf4ed]:first-child{line-height:1.875rem;font-size:16px}#buying_record .buy_info .info_b .list li:first-child span[data-v-509cf4ed]:last-child{color:#f7a145}#buying_record .buy_info .info_b .list li[data-v-509cf4ed]:last-child{line-height:1.5rem;font-size:13px;color:#8c8c8c}#buying_record .fadeLeft-enter-active[data-v-509cf4ed],#buying_record .fadeLeft-leave-active[data-v-509cf4ed]{position:absolute;-webkit-transition:all .3s linear;transition:all .3s linear}#buying_record .fadeLeft-enter[data-v-509cf4ed],#buying_record .fadeLeft-leave-to[data-v-509cf4ed]{-webkit-transform:translate(100%);transform:translate(100%)}",""]),e.exports=t}}]);