bztang-admin/addons/yun_shop/static/app/js/chunk-b4789048.78f19320.js

1 line
6.5 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-b4789048"],{"2a67":function(t,e,i){"use strict";i("cb9f")},"51a6":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"deviceDetail"}},[i("c-title",{attrs:{hide:!1,text:"我的设备"}}),i("div",{staticClass:"top"},[i("div",{staticClass:"SN-num"},[t._v("设备SN码"+t._s(t.equipment.sn))]),i("div",{staticClass:"top-main"},[t._m(0),i("div",{staticClass:"right"},[i("div",[t._v(t._s(t.equipment.time_total))]),i("div",[t._v(t._s(t.equipment.show_total))]),i("div",[t._v(t._s(t.equipment.amount_total))]),i("div",[t._v(t._s(t.equipment.sellte_total))]),i("div",[t._v(t._s(t.equipment.sellte_total))])])])]),i("div",{staticClass:"titles"},[t._v(" 广告收入记录 ")]),i("div",{staticClass:"ul"},t._l(t.logs,(function(e){return i("div",{key:e.id,staticClass:"li"},[i("div",{staticClass:"mDetail"},[i("div",{staticClass:"id"},[t._v("ID:"+t._s(e.id))]),i("div",{staticClass:"money"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.amount))]),i("div",{staticClass:"type"},[t._v(" "+t._s(e.code_name)+":"+t._s(e.view_count)+t._s(e.unit_code_name)+" ")]),i("div",{staticClass:"time"},[t._v(t._s(e.created_at))])]),i("div",{staticClass:"btn",on:{click:function(i){return t.gotoLog(e.id)}}},[t._v("查看记录")])])})),0)],1)},l=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"left"},[i("div",[t._v("累计时长(min)")]),i("div",[t._v("支付展示次数(次)")]),i("div",[t._v("累计广告收入(元)")]),i("div",[t._v("累计结算广告收入(元)")]),i("div",[t._v("累计结算店长提成(元)")])])}],o=(i("e7e5"),i("d399")),n=(i("99af"),i("6968")),c=i("ac0d"),s={mixins:[c["a"]],data:function(){return{equipment:{},logs:[],page:1,isLoadMore:!0,total_page:0}},activated:function(){this.init(),this.getEquipmentDetail()},components:{cTitle:n["a"]},computed:{},methods:{init:function(){this.equipment={id:null,sn:"",time_total:"",show_total:null,amount_total:"",sellte_total:""},this.logs=[],this.isLoadMore=!0,this.total_page=0,this.page=1},getEquipmentDetail:function(){var t=this;$http.get("plugin.advert-market.frontend.center.getEquipmentDetail",{sn:this.$route.params.sn},"").then((function(e){1==e.result?(t.equipment=e.data.equipment,t.isLoadMore=!0,t.total_page=e.data.logs.last_page,t.total_page||(t.total_page=0),t.logs=e.data.logs.data):(Object(o["a"])(e.msg),t.logs=e.data.logs.data)})).catch((function(t){}))},gotoLog:function(t){this.$router.push(this.fun.getUrl("managerCommission",{log_id:t}))},getMoreData:function(){this.isLoadMore=!1;var t=this;t.page>=t.total_page||(t.page+=1,$http.get("plugin.advert-market.frontend.center.getEquipmentDetail",{page:t.page,sn:this.$route.params.sn},"").then((function(e){if(t.isLoadMore=!0,1!=e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.logs.data;t.logs=t.logs.concat(i)})).catch((function(t){})))}}},d=s,r=(i("2a67"),i("2877")),m=Object(r["a"])(d,a,l,!1,null,"29c3c2aa",null);e["default"]=m.exports},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var a=document.documentElement,l=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:l&&(t=l.scrollTop),t},getClientHeight:function(){var t=0;return t=l.clientHeight&&a.clientHeight?Math.min(l.clientHeight,a.clientHeight):Math.max(l.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(l.scrollHeight,a.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(){}}}},cb9f:function(t,e,i){var a=i("d2ab");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var l=i("499e").default;l("9591f38c",a,!0,{sourceMap:!1,shadowMode:!1})},d2ab:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#deviceDetail[data-v-29c3c2aa]{text-align:left;background:#fff}#deviceDetail .top[data-v-29c3c2aa]{background:#f15353;padding:0 .938rem;margin-bottom:4.25rem;height:8.625rem}#deviceDetail .top .SN-num[data-v-29c3c2aa]{height:2.875rem;line-height:2.875rem;color:#fff;font-size:.875rem}#deviceDetail .top .top-main[data-v-29c3c2aa]{background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.25rem .875rem;-webkit-box-shadow:0 0 .313rem 0 rgba(255,73,73,.2);box-shadow:0 0 .313rem 0 rgba(255,73,73,.2);border-radius:.563rem}#deviceDetail .top .top-main .left[data-v-29c3c2aa],#deviceDetail .top .top-main .right[data-v-29c3c2aa]{width:50%;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;color:#999}#deviceDetail .top .top-main .left div[data-v-29c3c2aa],#deviceDetail .top .top-main .right div[data-v-29c3c2aa]{height:1.825rem;line-height:1.825rem;font-size:.75rem}#deviceDetail .top .top-main .right[data-v-29c3c2aa]{color:#333;text-align:right}#deviceDetail .titles[data-v-29c3c2aa]{font-size:1rem;font-weight:700;color:#333;height:3rem;line-height:3rem;padding:0 .938rem}#deviceDetail .ul[data-v-29c3c2aa]{padding:0 .938rem}#deviceDetail .ul .li[data-v-29c3c2aa]{padding:1rem .531rem .625rem;border-bottom:.0625rem solid #f0f6fb;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:1.5rem}#deviceDetail .ul .li[data-v-29c3c2aa],#deviceDetail .ul .li .mDetail[data-v-29c3c2aa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#deviceDetail .ul .li .mDetail[data-v-29c3c2aa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-right:1.75rem}#deviceDetail .ul .li .mDetail div[data-v-29c3c2aa]{width:50%;font-size:1rem;color:#333}#deviceDetail .ul .li .mDetail .money[data-v-29c3c2aa]{color:#f15353;text-align:right}#deviceDetail .ul .li .mDetail .type[data-v-29c3c2aa]{color:#999;font-size:.75rem}#deviceDetail .ul .li .mDetail .time[data-v-29c3c2aa]{color:#999;text-align:right;font-size:.75rem}#deviceDetail .ul .li .btn[data-v-29c3c2aa]{font-size:.75rem;height:1.188rem;line-height:1.188rem;background:#feeded;color:#f15353;padding:0 .425rem;border-radius:.578rem}",""]),t.exports=e}}]);