23.664a0dd802da3ce0409c.js 7.5 KB

1
  1. webpackJsonp([23],{"1JwW":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("woOf"),n=a.n(s),l=a("Dd8w"),o=a.n(l),i=a("NYxO"),r=a("7biW"),c=a("spLH"),_=a("mtWM"),v=a.n(_),d={components:{Search:r.a,Pagination:c.a},name:"game-my",data:function(){return{pageConf:{page:1,offset:10},TabData:[{name:"IOS游戏",val:4},{name:"安卓游戏",val:3},{name:"H5游戏",val:5}],TabDefault:4,clipboard:null}},watch:{myGamelist:function(){this.$store.state.TableLoading=!1}},computed:o()({},Object(i.c)(["myGamelist"])),methods:o()({},Object(i.b)(["getMygamelist"]),{tabToggle:function(t){this.pageConf={classify:t,page:1,offset:10},this.getMygamelist(this.pageConf)},updatePack:function(t){var e=this;v.a.post("/game/pack",{ag_id:t}).then(function(t){200===t.data.code?(e.getMygamelist(e.pageConf),e.showNotify("成功",t.data.msg)):e.showNotify("失败",t.data.msg,"error")}).catch(function(t){console.log(t)})},search:function(t){this.$store.state.TableLoading=!0;var e=this.delObjnull(n()(this.pageConf,t));this.getMygamelist(e)},sizesChange:function(t){this.pageConf.offset=t,this.search()},sizeChange:function(t){this.pageConf.page=t,this.search()}}),created:function(){this.getMygamelist(this.pageConf)}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"panel"},[a("div",{staticClass:"panel_body"},[a("search",{attrs:{game:"",gametypes:""},on:{getFormData:t.search}}),t._v(" "),a("div",{staticClass:"tooltipBox"},[a("el-tooltip",{attrs:{placement:"bottom-end"}},[a("div",{attrs:{slot:"content"},slot:"content"},["q1"===t.$store.state.channelLevel?a("div",[a("p",[t._v("发币说明:")]),t._v(" "),a("p",[t._v("1、本级渠道给玩家发币折扣为正常收益折扣。")]),t._v(" "),a("p",[t._v("2、下级渠道给玩家发币,本级收益=(二级代充折扣-一级代充折扣)*充值金额")]),t._v(" "),a("br"),t._v(" "),a("p",[t._v("返利说明:")]),t._v(" "),a("p",[t._v("1、本级玩家自然充值收益=(本级返利*充值金额)-(1-玩家折扣)*充值金额")]),t._v(" "),a("p",[t._v("2、二级玩家自然充值,本级收益=(本级返利*充值金额)-(二级返利*充值金额)")]),t._v(" "),a("p",[t._v("PS:首充可能会出现玩家折扣低于渠道返利的情况,渠道收益最低收益≥0")])]):t._e(),t._v(" "),"q2"===t.$store.state.channelLevel?a("div",[a("p",[t._v("发币说明:")]),t._v(" "),a("p",[t._v("本级渠道给玩家发币折扣为正常收益折扣。")]),t._v(" "),a("br"),t._v(" "),a("p",[t._v("返利说明:")]),t._v(" "),a("p",[t._v("本级玩家自然充值收益=(本级返利*充值金额)-(1-玩家折扣)*充值金额")]),t._v(" "),a("p",[t._v("PS:首充可能会出现玩家折扣低于渠道返利的情况,渠道收益最低收益≥0")])]):t._e()]),t._v(" "),a("i",{staticClass:"icon-help el-icon-info"})])],1),t._v(" "),t.myGamelist?a("div",{staticClass:"myGamelist"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.$store.state.TableLoading,expression:"$store.state.TableLoading"}],staticStyle:{width:"100%"},attrs:{"header-align":"center",data:t.myGamelist.list}},[a("el-table-column",{attrs:{type:"expand",width:"20"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form",{staticClass:"table-expand",attrs:{"label-position":"left",inline:""}},[a("el-form-item",{attrs:{label:"玩家优惠"}},[a("span",[t._v(t._s(t.$store.state.benefitTypeCheck[e.row.benefit_type]))])]),t._v(" "),a("el-form-item",{attrs:{label:"首充折扣"}},[a("span",[t._v(t._s(e.row.first_mem_rate))])]),t._v(" "),a("el-form-item",{attrs:{label:"续充折扣"}},[a("span",[t._v(t._s(e.row.mem_rate))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"游戏名称",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"table_icon"},[a("img",{attrs:{src:e.row.icon,width:"40",height:"40"}}),t._v(" "),e.row.gamename.replace(/[^x00-xFF]/g,"**").length>20?a("el-tooltip",{attrs:{placement:"bottom-end"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(e.row.gamename)+"\n ")]),t._v(" "),a("p",{staticClass:"textOver"},[t._v("\n "+t._s(e.row.gamename)+"\n ")])]):a("p",{staticClass:"textOver",attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(e.row.gamename)+"\n ")])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",width:"q1"===t.$store.state.channelLevel?"80":"",label:"发币折扣",prop:"agent_rate"}}),t._v(" "),"q1"===t.$store.state.channelLevel?a("el-table-column",{attrs:{align:"center",label:"下级发币折扣",prop:"sub_agent_rate"}}):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",width:"q1"===t.$store.state.channelLevel?"80":"",label:"返利比例",prop:"agent_rebate"}}),t._v(" "),"q1"===t.$store.state.channelLevel?a("el-table-column",{attrs:{align:"center",label:"下级返利比例",prop:"sub_agent_rebate"}}):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",width:"80",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[1!==e.row.promote_switch?a("div",["安卓"!==e.row.classify_label?a("div",[t._v("\n "+t._s(t.$store.state.PackH5andIOSStatus[e.row.status]||"--")+"\n ")]):a("div",[t._v("\n "+t._s(t.$store.state.PackStatus[e.row.status]||"--")+"\n ")])]):a("div",[t._v("\n "+t._s(e.row.promote_switch_label)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",width:"140",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[1!==e.row.promote_switch?a("div",["安卓"===e.row.classify_label?a("div",[2===e.row.status?a("div",[a("a",{staticClass:"btn btn-sm btn-default",on:{click:function(a){t.updatePack(e.row.ag_id)}}},[t._v("更新")]),t._v(" "),a("a",{staticClass:"btn btn-sm btn-default copy",attrs:{"data-clipboard-text":e.row.down_url||"复制内容测试"},on:{click:t.copy}},[t._v("复制链接")])]):1===e.row.status?a("div",[a("a",{staticClass:"btn btn-sm btn-default",on:{click:function(a){t.updatePack(e.row.ag_id)}}},[t._v("生成")])]):a("div",[t._v("--")])]):a("div",[t._v("--")])]):a("div",[t._v("--")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"推广链接",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[1!==e.row.promote_switch?a("div",["安卓"===e.row.classify_label?a("div",[2===e.row.status?a("div",[a("a",{staticClass:"btn btn-sm btn-default copy",attrs:{"data-clipboard-text":e.row.url||"复制内容测试"},on:{click:t.copy}},[t._v("复制推广链接")]),t._v(" "),a("a",{staticClass:"btn btn-sm btn-secondary",attrs:{href:e.row.url,target:"_blank"}},[t._v("打开")])]):a("div",[t._v("--")])]):a("div",[0!==e.row.status?a("div",[a("a",{staticClass:"btn btn-sm btn-default copy",attrs:{"data-clipboard-text":e.row.url||"复制内容测试"},on:{click:t.copy}},[t._v("复制推广链接")]),t._v(" "),a("a",{staticClass:"btn btn-sm btn-secondary",attrs:{href:e.row.url,target:"_blank"}},[t._v("打开")])]):a("div",[t._v("--")])])]):a("div",[t._v("--")])]}}])})],1)],1):t._e(),t._v(" "),t.myGamelist?a("Pagination",{attrs:{offset:t.pageConf.offset,count:t.myGamelist.count},on:{sizesChange:t.sizesChange,sizeChange:t.sizeChange}}):t._e(),t._v(" "),a("p",{staticClass:"remark"},[t._v("注:游戏包有更新的时候,已经出包的游戏提示已更新")])],1)])},staticRenderFns:[]};var m=a("VU/8")(d,p,!1,function(t){a("8r+z")},"data-v-4c102e50",null);e.default=m.exports},"8r+z":function(t,e){}});