1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0f0b2108","chunk-2d0d83d6"],{"02c0":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:"advertisers"}},[i("c-title",{attrs:{hide:!1,text:"广告主"}}),i("div",{staticClass:"top-box"},[t.info.has_one_member?i("div",{staticClass:"member-info"},[i("img",{attrs:{src:t.info.has_one_member.avatar_image,alt:""}}),i("div",{staticClass:"member-name"},[t._v(t._s(t.info.has_one_member.nickname))])]):t._e(),i("div",{staticClass:"release-btn",on:{click:function(e){return t.gotoUrl("advertisingRelease")}}},[i("div",{staticClass:"iconfont icon-life-game-plus"}),t._v(" 发布广告 ")])]),i("div",{staticClass:"main"},[i("van-tabs",{attrs:{sticky:"","offset-top":"40",ellipsis:!1},on:{click:t.onClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.titleArr,(function(e,a){return i("van-tab",{key:a,attrs:{title:e.name}},[i("div",{directives:[{name:"show",rawName:"v-show",value:"video"==t.titleArr[a].code||"live"==t.titleArr[a].code,expression:"titleArr[ind].code == 'video' || titleArr[ind].code == 'live'"}],staticClass:"statistics-table"},[i("div",{staticClass:"table-num"},[i("div",{staticClass:"nums"},[t._v(t._s(t.statistical.browse_total||"--"))]),i("div",[t._v("累计总播放量")])]),i("div",{staticClass:"table-num"},[i("div",{staticClass:"nums"},[t._v(t._s(t.statistical.share_total||"--"))]),i("div",[t._v("累计总分享量")])]),i("div",{staticClass:"table-num"},[i("div",{staticClass:"nums"},[t._v(t._s(t.statistical.reward_amount_total||"--"))]),i("div",[t._v("累计广告金额")])]),i("div",{staticClass:"table-num"},[i("div",{staticClass:"nums"},[t._v(t._s(t.statistical.reward_amount||"--"))]),i("div",[t._v("累计已奖励金额")])])]),i("van-sticky",{attrs:{"offset-top":"84"}},[i("div",{staticClass:"content-title"},[i("div",[t._v(t._s("audit"==t.titleArr[a].code?"我的广告":"video"==t.titleArr[a].code?"我的视频订单":"我的直播订单"))]),i("van-popover",{attrs:{trigger:"click",actions:t.actions,"get-container":"#advertisers"},on:{select:t.onSelect},scopedSlots:t._u([{key:"reference",fn:function(){return[t._v(" "+t._s(t.popover_text)),i("i",{staticClass:"iconfont icon-member-bottom"})]},proxy:!0}],null,!0),model:{value:t.titleArr[a].isPopover,callback:function(e){t.$set(t.titleArr[a],"isPopover",e)},expression:"titleArr[ind].isPopover"}})],1)]),i("div",{staticClass:"content"},["audit"==t.titleArr[a].code?t._l(t.dataList[0].list,(function(e,a){return i("div",{key:a,staticClass:"li audit-class"},[i("div",{staticClass:"li-img"},[i("img",{attrs:{src:e.video_cover,alt:""}})]),i("div",{staticClass:"ad-li-right has-turn-down-box"},[i("div",{staticClass:"advertisers-title audit-class-title"},[i("div",{staticClass:"advertisers-status"},[t._v(t._s(e.status_text))]),i("div",{staticStyle:{display:"inline-block"}},[t._v(t._s(e.title))])]),-1==e.status?i("div",{staticClass:"turn-down-box"},[t._v("驳回原因:"+t._s(e.rejection_details))]):t._e()])])})):t._e(),"video"==t.titleArr[a].code||"live"==t.titleArr[a].code?t._l(t.dataList[a].list,(function(e,a){return i("div",{key:a,staticClass:"li video-class"},[i("div",{staticClass:"li-img"},[i("img",{attrs:{src:e.video_cover,alt:""}})]),i("div",{staticClass:"ad-li-right"},[i("div",{staticClass:"advertisers-title"},[i("div",{staticClass:"advertisers-status"},[t._v(t._s(e.status_text))]),i("div",{staticStyle:{display:"inline-block"}},[t._v(t._s(e.title))])]),i("div",{staticClass:"other"},[t._v(" 广告金额: "),i("div",{staticClass:"size-color1"},[t._v("¥"+t._s(e.reward_amount_total))])]),i("div",{staticClass:"other"},[t._v(" 已奖励金额: "),i("div",{staticClass:"size-color1"},[t._v("¥"+t._s(e.reward_amount))])]),i("div",{staticClass:"other"},[t._v(" 播放量: "),i("div",{staticClass:"size-color2"},[t._v(t._s(e.browse_total))])]),i("div",{staticClass:"other"},[t._v(" 分享量: "),i("div",{staticClass:"size-color2"},[t._v(t._s(e.share_total))]),i("div",{staticClass:"btn-detail size-color1",on:{click:function(i){return t.gotoUrl("advertisingAdDetails",{id:e.id})}}},[t._v("查看详情 "),i("i",{staticClass:"iconfont icon-member_right"})])])])])})):t._e()],2),i("yz-blank",{attrs:{datas:t.dataList[a]&&t.dataList[a].list}})],1)})),1)],1)],1)},s=[],r=(i("e7e5"),i("d399")),o=(i("d82d"),i("7278")),l=(i("14d9"),i("a9e3"),i("99af"),i("ac0d")),d=i("eb17"),n={mixins:[l["a"]],data:function(){return{statistical:{},popover_text:"全部",actions:[{text:"全部"}],info:{},status:0,activeName:0,dataList:[],titleArr:[{name:"广告审核",code:"audit",isPopover:!1}],isLoadMore:!0}},components:{"van-popover":o["a"],"yz-blank":d["default"]},computed:{},created:function(){this.init(),this.getData()},methods:{gotoUrl:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$router.push(this.fun.getUrl(t,e))},getData:function(){var t=this;$http.get("plugin.ad-serving.frontend.advertisers.index.memberInfo",{},"").then((function(e){if(1===e.result){t.info=e.data.info;var i=e.data.plugins_status;i.video_share&&(t.titleArr.push({name:"视频订单",code:"video",isPopover:!1}),t.dataList.push({isLoadMore:!0,page:1,total_page:0,list:[],url:"plugin.ad-serving.frontend.advertisers.index.getOrderInfo"})),i.room&&(t.titleArr.push({name:"直播订单",code:"live",isPopover:!1}),t.dataList.push({isLoadMore:!0,page:1,total_page:0,list:[],url:"plugin.ad-serving.frontend.advertisers.index.getOrderInfo"}))}else Object(r["a"])(e.msg)})).catch((function(t){}))},init:function(){this.activeName=0,this.dataList=[{isLoadMore:!0,page:1,total_page:0,url:"plugin.ad-serving.frontend.advertisers.index.advertisingCheck",list:[]}],this.isLoadMore=!0,this.handleClick()},changeActions:function(){0==this.activeName?this.actions=[{text:"全部",className:"Popover-self-style"},{text:"待审核",className:"Popover-self-style"},{text:"通过",className:"Popover-self-style"},{text:"驳回",className:"Popover-self-style"}]:this.actions=[{text:"全部",className:"Popover-self-style"},{text:"投放中",className:"Popover-self-style"},{text:"下架",className:"Popover-self-style"}]},onClick:function(){this.popover_text="全部",this.handleClick()},handleClick:function(t){var e=this;this.changeActions();var i={};t?(i.status=Number(t),this.status=t):this.status=0,"video"==this.titleArr[this.activeName].code&&(i.put_in_type=2),$http.post(this.dataList[this.activeName].url,i,"...").then((function(t){1===t.result?(t.data.statistical&&(e.statistical=t.data.statistical),e.isLoadMore=!0,e.$set(e.dataList[e.activeName],"isLoadMore",!0),e.$set(e.dataList[e.activeName],"total_page",t.data.list.last_page),e.dataList[e.activeName].total_page||(e.$set(e.dataList[e.activeName],"total_page",0),e.dataList[e.activeName].total_page=0),e.$set(e.dataList[e.activeName],"list",t.data.list.data)):e.$dialog.alert({message:t.msg})})).catch((function(t){}))},getMoreData:function(){var t=this;if(t.dataList[t.activeName].isLoadMore=!1,t.isLoadMore=!1,!(t.dataList[t.activeName].page>=t.dataList[t.activeName].total_page)){var e={};e.status=this.status,"video"==this.titleArr[this.activeName].code&&(e.put_in_type=2),t.dataList[t.activeName].page=t.dataList[t.activeName].page+1,e.page=t.dataList[t.activeName].page,$http.get(t.dataList[t.activeName].url,e,"加载中").then((function(e){if(t.isLoadMore=!0,t.dataList[t.activeName].isLoadMore=!0,1===e.result){var i=e.data.list.data;t.dataList[t.activeName].list=t.dataList[t.activeName].list.concat(i)}else t.dataList[t.activeName].page=t.dataList[t.activeName].page-1,t.dataList[t.activeName].isLoadMore=!1,t.isLoadMore=!1}),(function(t){}))}},onSelect:function(t,e){switch(this.popover_text=t.text,e){case 0:this.handleClick();break;case 1:"audit"!=this.titleArr[this.activeName].code?this.handleClick("1"):this.handleClick("0");break;case 2:"audit"!=this.titleArr[this.activeName].code?this.handleClick("0"):this.handleClick("1");break;case 3:this.handleClick("-1");break;default:this.handleClick()}}}},c=n,v=(i("ebbd"),i("2877")),m=Object(v["a"])(c,a,s,!1,null,"7b3d0de6",null);e["default"]=m.exports},"43a1":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'#advertisers .top-box[data-v-7b3d0de6]{height:11.375rem;padding:1.406rem 0 1.656rem;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;background-image:url(https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/ad-serving/ad-serving-bg1.png);background-size:100% 100%}#advertisers .top-box[data-v-7b3d0de6],#advertisers .top-box .member-info[data-v-7b3d0de6]{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:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#advertisers .top-box .member-info[data-v-7b3d0de6]{overflow:hidden;width:80%;text-align:center}#advertisers .top-box .member-info img[data-v-7b3d0de6]{width:2.5rem;height:2.5rem;background-color:#bbb;border:1px solid #fff;overflow:hidden;border-radius:50%}#advertisers .top-box .member-info .member-name[data-v-7b3d0de6]{font-size:1.125rem;line-height:1.5rem;color:#fff;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#advertisers .top-box .release-btn[data-v-7b3d0de6]{color:#fff;width:9.375rem;height:2.188rem;line-height:2.188rem;background-color:#ee2e2b;border-radius:.188rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#advertisers .top-box .release-btn .iconfont[data-v-7b3d0de6]{padding-right:.5rem}#advertisers .main[data-v-7b3d0de6]{background:#fff}#advertisers .main .statistics-table[data-v-7b3d0de6]{display:grid;grid-template-columns:1fr 1fr;width:90%;height:8.75rem;background-image:url(https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/ad-serving/ad-serving-bg2.png);background-size:100% 100%;margin:1rem auto 0;border-radius:.75rem;overflow:hidden;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#75562b}#advertisers .main .statistics-table .nums[data-v-7b3d0de6]{font-size:20px;font-weight:600}#advertisers .main .content-title[data-v-7b3d0de6]{height:3rem;line-height:3rem;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;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#fff;padding:0 1rem 0 .875rem}#advertisers .main .content[data-v-7b3d0de6]{padding:0 .875rem}#advertisers .main .li[data-v-7b3d0de6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-bottom:.75rem}#advertisers .main .li .li-img[data-v-7b3d0de6]{width:5rem;height:5.938rem;background-color:#a6a6a6;border-radius:.313rem;overflow:hidden;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-right:.625rem}#advertisers .main .li .li-img img[data-v-7b3d0de6]{width:100%;height:100%;-o-object-fit:fill;object-fit:fill;display:block}#advertisers .main .li .ad-li-right[data-v-7b3d0de6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;padding-top:.375rem;text-align:left}#advertisers .main .li .ad-li-right .advertisers-title[data-v-7b3d0de6]{width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-align:left}#advertisers .main .li .ad-li-right .advertisers-title .advertisers-status[data-v-7b3d0de6]{font-size:11px;display:inline-grid;width:2.813rem;text-align:center;line-height:1.156rem;height:1.156rem;background-color:#ee2e2b;border-radius:.125rem;margin:0;color:#fff;margin-right:.5rem}#advertisers .main .li .ad-li-right .audit-class-title[data-v-7b3d0de6]{-webkit-line-clamp:2}#advertisers .main .li .ad-li-right .other[data-v-7b3d0de6]{width:100%;margin-top:.625rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#666;font-size:12px;line-height:12px}#advertisers .main .li .ad-li-right .other .size-color1[data-v-7b3d0de6]{color:#ee2e2b}#advertisers .main .li .ad-li-right .other .size-color2[data-v-7b3d0de6]{color:#da9114}#advertisers .main .li .ad-li-right .other .btn-detail[data-v-7b3d0de6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right}#advertisers .main .li .has-turn-down-box[data-v-7b3d0de6]{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:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;color:#666;overflow:hidden}#advertisers .main .li .has-turn-down-box .turn-down-box[data-v-7b3d0de6]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:10px}#advertisers .clearfix[data-v-7b3d0de6]:after{content:".";display:block;height:0;clear:both;visibility:hidden}#advertisers .clearfix[data-v-7b3d0de6]{zoom:1}#advertisers[data-v-7b3d0de6] .Popover-self-style{width:74px;height:34px;font-size:12px;padding:0 8px}',""]),t.exports=e},"79db":function(t,e,i){t.exports=i.p+"static/app/img/empty-image-search.ef236a93.png"},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var a=document.documentElement,s=document.body,r={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:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&a.clientHeight?Math.min(s.clientHeight,a.clientHeight):Math.max(s.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}},e69b:function(t,e,i){var a=i("43a1");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("1f5403d0",a,!0,{sourceMap:!1,shadowMode:!1})},ebbd:function(t,e,i){"use strict";i("e69b")}}]); |