1 |
- /* empty css *//* empty css *//* empty css *//* empty css */import{_ as e}from"./index-c4e71a7b.js";/* empty css *//* empty css */import{_ as t}from"./index.vue_vue_type_script_setup_true_lang-c568e1a1.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{bh as n,bi as a,d as o,o as r,c as l,J as i,b as s,a5 as u,m as c,x as p,ax as d,p as f,y as m,C as v,ao as y,a as b,w as _,f as h,a7 as g,e as w,X as k,l as x,t as j,aE as C,A as S,F as T,z as E,I as V,aB as A,B as O,aD as L,a3 as I,a4 as q,aF as M,a8 as R,L as P,ak as D,bb as N,aj as z,U,au as Y,a9 as F,ay as B,az as H,aA as X,v as J,a0 as Q,av as W,aw as $,_ as G}from"./index-ca84c486.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as K}from"./search.vue_vue_type_script_setup_true_lang-8942fbf3.js";import"./moment-19b77ecd.js";/* empty css *//* empty css */import{_ as Z}from"./pay-config-bg-9b53e063.js";import{s as ee}from"./shortcuts-45ce8eab.js";import{_ as te}from"./create.vue_vue_type_script_setup_true_lang-b2846328.js";import{_ as ne}from"./backConfig.vue_vue_type_script_setup_true_lang-9d62b038.js";import{u as ae}from"./useGetList-780f6f66.js";import{b as oe}from"./index-4dbc2d2f.js";import{c as re}from"./index-0a15b378.js";import"./http-dd1071de.js";import"./index-9fa91d40.js";/* empty css *//* empty css */import"./index-48c75301.js";import"./index-20a7cd2a.js";import"./index-f3a5b4b0.js";var le,ie={};le=function(){return function(){var e={686:function(e,t,n){n.d(t,{default:function(){return k}});var a=n(279),o=n.n(a),r=n(370),l=n.n(r),i=n(817),s=n.n(i);function u(e){try{return document.execCommand(e)}catch(t){return!1}}var c=function(e){var t=s()(e);return u("cut"),t},p=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var a=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(a,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var a=s()(n);return u("copy"),n.remove(),a},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=p(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=p(e.value,t):(n=s()(e),u("copy")),n};function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,a=e.container,o=e.target,r=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==f(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return r?d(r,{container:a}):o?"cut"===n?c(o):d(o,{container:a}):void 0};function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a,o,r=h(e);if(t){var l=h(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return a=this,!(o=n)||"object"!==v(o)&&"function"!=typeof o?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(a):o}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(r,e);var t,n,a,o=_(r);function r(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(n=o.call(this)).resolveOptions(t),n.listenClick(e),n}return t=r,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===v(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=l()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",a=m({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(a?"success":"error",{action:n,text:a,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return g("action",e)}},{key:"defaultTarget",value:function(e){var t=g("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return g("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],a=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return d(e,t)}},{key:"cut",value:function(e){return c(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&y(t.prototype,n),a&&y(t,a),r}(o()),k=w},828:function(e){var t=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,n){for(;e&&e.nodeType!==t;){if("function"==typeof e.matches&&e.matches(n))return e;e=e.parentNode}}},438:function(e,t,n){var a=n(828);function o(e,t,n,a,o){var l=r.apply(this,arguments);return e.addEventListener(n,l,o),{destroy:function(){e.removeEventListener(n,l,o)}}}function r(e,t,n,o){return function(n){n.delegateTarget=a(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,a,r){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,a,r)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var a=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!a.string(t))throw new TypeError("Second argument must be a String");if(!a.fn(n))throw new TypeError("Third argument must be a Function");if(a.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(a.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(a.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var a=window.getSelection(),o=document.createRange();o.selectNodeContents(e),a.removeAllRanges(),a.addRange(o),t=a.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var a=this.e||(this.e={});return(a[e]||(a[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var a=this;function o(){a.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),a=0,o=n.length;a<o;a++)n[a].fn.apply(n[a].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),a=n[e],o=[];if(a&&t)for(var r=0,l=a.length;r<l;r++)a[r].fn!==t&&a[r].fn._!==t&&o.push(a[r]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},{get exports(){return ie},set exports(e){ie=e}}.exports=le();const se=a(ie),ue=o({__name:"index",props:{text:{type:String,required:!0}},emits:["copy"],setup(e,{emit:t}){const n=e,{toClipboard:a}=(e=>{const t=void 0===(null==e?void 0:e.appendToBody)||e.appendToBody;return{toClipboard:(e,n)=>new Promise(((a,o)=>{const r=document.createElement("button"),l=new se(r,{text:()=>e,action:()=>"copy",container:void 0!==n?n:document.body});l.on("success",(e=>{l.destroy(),a(e)})),l.on("error",(e=>{l.destroy(),o(e)})),t&&document.body.appendChild(r),r.click(),t&&document.body.removeChild(r)}))}})(),o=async()=>{try{await a(n.text),u.success("复制成功"),t("copy")}catch(e){u.error("复制失败"),console.error(e)}};return(e,t)=>(r(),l("button",{ref:"copyButton",onClick:o},[i(e.$slots,"default",{},(()=>[s("复制链接")]))],512))}}),ce=e=>(W("data-v-d51f1de1"),e=e(),$(),e),pe={class:"table-default"},de={class:"wrapper"},fe={class:"text-lg content"},me={class:"wrapper"},ve=ce((()=>w("span",{class:"label"},"创建时间:",-1))),ye={class:"content"},be={class:"wrapper"},_e={class:"text-lg content"},he={class:"wrapper"},ge={class:"content"},we={class:"flex items-center"},ke=ce((()=>w("span",null,"复制链接",-1))),xe={key:0,class:"wrapper"},je={class:"flex items-center"},Ce=ce((()=>w("span",null,"状态",-1))),Se=ce((()=>w("br",null,null,-1))),Te=ce((()=>w("br",null,null,-1))),Ee={class:"wrapper"},Ve={class:"text-lg font-bold content"},Ae={class:"wrapper"},Oe={class:"content"},Le=ce((()=>w("br",null,null,-1))),Ie=ce((()=>w("br",null,null,-1))),qe={class:"table-default"},Me={class:"wrapper"},Re={class:"content"},Pe={class:"wrapper"},De=ce((()=>w("span",{class:"label"},"创建时间:",-1))),Ne={class:"content"},ze={class:"wrapper"},Ue={class:"content"},Ye={class:"wrapper"},Fe={class:"content"},Be=ce((()=>w("br",null,null,-1))),He=ce((()=>w("br",null,null,-1))),Xe={class:"flex items-center justify-center"},Je=ce((()=>w("div",{class:"card-header"},[w("span",null,"首充模板")],-1))),Qe={class:"w-full device-wrap",style:{margin:"0 auto"}},We={class:"md-iphone-5 md-white-device"},$e={class:"md-body"},Ge=ce((()=>w("div",{class:"md-buttons"},null,-1))),Ke=ce((()=>w("div",{class:"md-front-camera"},null,-1))),Ze=ce((()=>w("div",{class:"md-top-speaker"},null,-1))),et={class:"md-screen"},tt=ce((()=>w("img",{src:Z,alt:""},null,-1))),nt={class:"preview-list"},at={class:"tipss"},ot=ce((()=>w("button",{class:"md-home-button"},null,-1))),rt=ce((()=>w("div",{class:"card-header"},[w("span",null,"非首充模板")],-1))),lt={class:"w-full device-wrap",style:{margin:"0 auto"}},it={class:"md-iphone-5 md-white-device"},st={class:"md-body"},ut=ce((()=>w("div",{class:"md-buttons"},null,-1))),ct=ce((()=>w("div",{class:"md-front-camera"},null,-1))),pt=ce((()=>w("div",{class:"md-top-speaker"},null,-1))),dt={class:"md-screen"},ft=ce((()=>w("img",{src:Z,alt:""},null,-1))),mt={class:"preview-list"},vt={class:"tipss"},yt=ce((()=>w("button",{class:"md-home-button"},null,-1))),bt=G(o({__name:"index",setup(n){const a=c(1),o=p(),i=d(),{data:W,query:$,search:G,reset:Z,loading:le}=ae("tuiguang/promotion/list"),ie=c(!1),se=c({}),ce=c(!1),bt=c({}),_t=c({}),ht=c(!1),gt=c({firstTemplate:[],notFirstTemplate:[]}),wt=f((()=>a.value?"更新回传配置":"回传配置")),kt=c({FIRST_COIN:"首充",COIN:"普通充值",YEAR:"包年",QUARTER:"包季",MONTH:"包月"}),xt=e=>{switch(e.status){case 1:return"success";case 0:return"danger"}},jt=e=>{if($.value.time){const t=O(e);$.value.start_time=t[0],$.value.end_time=t[1]}else delete $.value.start_time,delete $.value.end_time},Ct=e=>{_t.value=e,re(e.first_charge_template_id).then((e=>{ht.value=!0,gt.value.firstTemplate=e.data.template_item_list})),re(e.not_first_charge_template_id).then((e=>{ht.value=!0,gt.value.notFirstTemplate=e.data.template_item_list})),gt.value},St=(e,t)=>{o.push({path:"/promotion/promotionList",query:{tab:e}}),a.value=e,$.value.is_config=e,$.value.is_config||($.value=Object.assign({})),G()},Tt=e=>{L.confirm(`确定要删除 ${e.name} 吗?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{oe({id:e.id}).then((e=>{u.success(e.message),G()}))})).catch((()=>{}))},Et=()=>{$.value=Object.assign({page:$.value.page,limit:$.value.limit,miniprogram_id:$.value.miniprogram_id,is_config:$.value.is_config}),G()},Vt=(e,t)=>{switch(_t.value=t,e){case"promotionVisible":ie.value=!0,se.value=t;break;case"backConfigVisible":ce.value=!0,bt.value=t}},At=f((()=>{var e;return null==(e=W.value)?void 0:e.data})),Ot=e=>{switch(e){case"promotionVisible":ie.value=!1;break;case"backConfigVisible":ce.value=!1,L.alert("去复制推广链接","配置完成",{draggable:!0,confirmButtonText:"确认",closeOnClickModal:!0,callback:e=>{"confirm"==e&&(o.push({path:"/promotion/promotionList",query:{tab:1}}),a.value=1)}})}G()};return m((()=>{var e,t;a.value=Number(i.query.tab||1),$.value.is_config=a.value,$.value.id=i.query.id,(null==(e=JSON.parse(v.get("nav_data")))?void 0:e.app.id)&&($.value.miniprogram_id=null==(t=JSON.parse(v.get("nav_data")))?void 0:t.app.id),G()})),(n,i)=>{const u=I,c=q,p=M,d=K,f=R,m=P,v=D,O=N,L=ue,W=z,Z=U,ae=Y,oe=F,re=t,_t=B,Lt=H,It=X,qt=e,Mt=J,Rt=y("action"),Pt=Q;return r(),l("div",null,[b(It,{shadow:"always","body-style":{padding:"20px"}},{default:_((()=>[b(Lt,{modelValue:h(a),"onUpdate:modelValue":i[4]||(i[4]=e=>g(a)?a.value=e:null),class:"demo-tabs",onTabChange:St},{default:_((()=>[b(_t,{label:"已配置回传",name:1},{default:_((()=>[b(d,{search:h(G),reset:Et},{body:_((()=>[b(c,{label:"推广名称",prop:"name"},{default:_((()=>[b(u,{modelValue:h($).name,"onUpdate:modelValue":i[0]||(i[0]=e=>h($).name=e),placeholder:"请输入推广名称",clearable:""},null,8,["modelValue"])])),_:1}),b(c,{label:"推广短剧名称",prop:"video_name"},{default:_((()=>[b(u,{modelValue:h($).video_name,"onUpdate:modelValue":i[1]||(i[1]=e=>h($).video_name=e),placeholder:"请输入推广短剧名称",clearable:""},null,8,["modelValue"])])),_:1}),b(c,{label:"推广ID",prop:"id"},{default:_((()=>[b(u,{modelValue:h($).id,"onUpdate:modelValue":i[2]||(i[2]=e=>h($).id=e),placeholder:"请输入推广ID",clearable:""},null,8,["modelValue"])])),_:1}),b(c,{label:"创建时间"},{default:_((()=>[b(p,{"unlink-panels":"",clearable:"",onChange:jt,format:"YYYY/MM/DD","value-format":"YYYY-MM-DD",modelValue:h($).time,"onUpdate:modelValue":i[3]||(i[3]=e=>h($).time=e),type:"daterange",shortcuts:h(ee),"range-separator":"To","start-placeholder":"开始时间","end-placeholder":"结束时间"},null,8,["modelValue","shortcuts"])])),_:1})])),_:1},8,["search"]),w("div",pe,[k((r(),x(oe,{data:h(At),class:"mt-3"},{default:_((()=>[b(f,{prop:"id",label:"推广ID"}),b(f,{label:"推广名称","show-overflow-tooltip":"","min-width":"200px"},{default:_((e=>[w("div",de,[w("span",fe,j(e.row.name),1)]),w("div",me,[ve,w("span",ye,j(e.row.created_at),1)])])),_:1}),b(f,{prop:"miniprogram_name",label:"小程序名称","min-width":"200px"}),b(f,{prop:"total_episode_num",label:"入口剧集","min-width":"200px"},{default:_((e=>[w("div",be,[w("span",_e,j(e.row.video_name),1)]),w("div",he,[w("span",ge,j(e.row.series_sequence_name),1)])])),_:1}),b(f,{prop:"total_episode_num",label:"复制链接","min-width":"200px"},{header:_((()=>[w("div",we,[ke,b(v,{placement:"top"},{content:_((()=>[s("鼠标移动到【点击复制】文字,进行查看链接,点击,进行复制链接")])),default:_((()=>[b(m,null,{default:_((()=>[b(h(C))])),_:1})])),_:1})])])),default:_((e=>[e.row.status?(r(),l("div",xe,[w("div",null,[e.row.promotion_path?(r(),x(W,{key:0,placement:"top",title:"推广链接",width:500,trigger:"hover",content:e.row.promotion_path},{reference:_((()=>[b(L,{text:e.row.promotion_path,class:"mb-6"},{default:_((()=>[b(O,{type:"primary",underline:!1},{default:_((()=>[s("点击复制推广链接")])),_:1})])),_:2},1032,["text"])])),_:2},1032,["content"])):S("",!0)]),w("div",null,[e.row.track_url?(r(),x(W,{key:0,placement:"top",title:"监测链接",width:500,trigger:"hover",content:e.row.track_url},{reference:_((()=>[b(L,{text:e.row.track_url},{default:_((()=>[b(O,{type:"primary",underline:!1},{default:_((()=>[s("点击复制监测链接")])),_:1})])),_:2},1032,["text"])])),_:2},1032,["content"])):S("",!0)])])):S("",!0)])),_:1}),b(f,{prop:"callback_type_str",label:"回传类型","min-width":"130px"}),b(f,{prop:"callback_config_id",label:"回传配置ID","min-width":"100px"},{default:_((e=>[b(Z,{link:"",type:"primary",size:"default",onClick:t=>(e=>{switch(e.callback_type){case 1:o.push({path:"/payback/juliangAccount",query:{id:e.callback_config_id}});break;case 2:o.push({path:"/payback/jlEvent",query:{id:e.callback_config_id}})}})(e.row)},{default:_((()=>[s(j(e.row.callback_config_id),1)])),_:2},1032,["onClick"])])),_:1}),b(f,{prop:"status_str",label:"状态"},{header:_((()=>[w("div",je,[Ce,b(v,{placement:"top"},{content:_((()=>[s(" 当前推广链接的状态"),Se,s(" 启用:当前推广ID已绑定回传配置"),Te,s(" 禁用:当前推广ID未绑定回传配置 ")])),default:_((()=>[b(m,null,{default:_((()=>[b(h(C))])),_:1})])),_:1})])])),default:_((e=>[w("div",Ee,[w("span",Ve,[b(ae,{class:"mx-1",type:xt(e.row)},{default:_((()=>[s(j(e.row.status_str),1)])),_:2},1032,["type"])])])])),_:1}),b(f,{prop:"total_episode_num",label:"充值模板","min-width":"130px"},{default:_((e=>[e.row.first_charge_template_str||e.row.not_first_charge_template_str?(r(),x(Z,{key:0,link:"",type:"primary",size:"default",onClick:t=>Ct(e.row)},{default:_((()=>[s("充值模板详情")])),_:2},1032,["onClick"])):S("",!0)])),_:1}),b(f,{prop:"callback_config_id",label:"备注"},{default:_((e=>[w("div",Ae,[w("span",Oe,j(e.row.remark),1)])])),_:1}),b(f,{label:"操作",fixed:"right"},{default:_((e=>[k((r(),x(Z,{onClick:t=>Vt("promotionVisible",e.row),link:"",type:"primary",size:"small"},{default:_((()=>[s("编辑")])),_:2},1032,["onClick"])),[[Rt,"tuiguang.Promotion.updateSeriesSequence"]]),Le,k((r(),x(Z,{link:"",type:"primary",size:"small",onClick:t=>Tt(e.row)},{default:_((()=>[s("删除")])),_:2},1032,["onClick"])),[[Rt,"tuiguang.Promotion.delete"]]),Ie])),_:1})])),_:1},8,["data"])),[[Pt,h(le)]]),b(re)])])),_:1}),b(_t,{label:"未配置回传",name:0},{default:_((()=>[w("div",qe,[k((r(),x(oe,{data:h(At),class:"mt-3"},{default:_((()=>[b(f,{prop:"id",label:"推广ID"}),b(f,{label:"推广名称","show-overflow-tooltip":""},{default:_((e=>[w("div",Me,[w("span",Re,j(e.row.name),1)]),w("div",Pe,[De,w("span",Ne,j(e.row.created_at),1)])])),_:1}),b(f,{prop:"total_episode_num",label:"入口剧集"},{default:_((e=>[w("div",ze,[w("span",Ue,j(e.row.video_name),1)]),w("div",Ye,[w("span",Fe,"第"+j(e.row.series_sequence)+"集",1)])])),_:1}),b(f,{prop:"total_episode_num",label:"充值模板","min-width":"130px"},{default:_((e=>[e.row.first_charge_template_str||e.row.not_first_charge_template_str?(r(),x(Z,{key:0,link:"",type:"primary",size:"default",onClick:t=>Ct(e.row)},{default:_((()=>[s("充值模板详情")])),_:2},1032,["onClick"])):S("",!0)])),_:1}),b(f,{label:"操作"},{default:_((e=>[k((r(),x(Z,{onClick:t=>Vt("promotionVisible",e.row),link:"",type:"primary",size:"small"},{default:_((()=>[s("编辑")])),_:2},1032,["onClick"])),[[Rt,"tuiguang.Promotion.updateSeriesSequence"]]),Be,k((r(),x(Z,{link:"",type:"primary",size:"small",onClick:t=>Tt(e.row)},{default:_((()=>[s("删除")])),_:2},1032,["onClick"])),[[Rt,"tuiguang.Promotion.delete"]]),He,k((r(),x(Z,{link:"",type:"primary",size:"small",onClick:t=>Vt("backConfigVisible",e.row)},{default:_((()=>[s("回传配置")])),_:2},1032,["onClick"])),[[Rt,"tuiguang.Promotion.updateCallbackConfig"]])])),_:1})])),_:1},8,["data"])),[[Pt,h(le)]]),b(re)])])),_:1})])),_:1},8,["modelValue"])])),_:1}),b(qt,{modelValue:h(ie),"onUpdate:modelValue":i[6]||(i[6]=e=>g(ie)?ie.value=e:null),title:"编辑推广链接","destroy-on-close":""},{default:_((()=>[b(te,{onClose:i[5]||(i[5]=e=>Ot("promotionVisible")),primary:h(se)},null,8,["primary"])])),_:1},8,["modelValue"]),b(qt,{modelValue:h(ce),"onUpdate:modelValue":i[8]||(i[8]=e=>g(ce)?ce.value=e:null),width:"50%",title:h(wt),"destroy-on-close":""},{default:_((()=>[b(ne,{onClose:i[7]||(i[7]=e=>Ot("backConfigVisible")),primary:h(bt)},null,8,["primary"])])),_:1},8,["modelValue","title"]),b(Mt,{modelValue:h(ht),"onUpdate:modelValue":i[9]||(i[9]=e=>g(ht)?ht.value=e:null),title:"充值模板详情",width:"85%"},{default:_((()=>[w("div",Xe,[b(It,{class:"w-full mr-16 box-card",shadow:"never"},{header:_((()=>[Je])),default:_((()=>{var e;return[w("div",Qe,[w("div",We,[w("div",$e,[Ge,Ke,Ze,w("div",et,[tt,w("div",nt,[(r(!0),l(T,null,E(null==(e=h(gt))?void 0:e.firstTemplate,((e,t)=>(r(),l("div",{class:V(["pay-item",[1==e.is_default?"defalut":""]]),key:t},[w("p",null,j(e.price)+"元",1),k(w("p",null,"多送"+j(e.given)+"看币",513),[[A,e.given]]),w("div",at,j(h(kt)[e.type]),1)],2)))),128))])]),ot])])])]})),_:1}),b(It,{class:"w-full box-card",shadow:"never"},{header:_((()=>[rt])),default:_((()=>{var e;return[w("div",lt,[w("div",it,[w("div",st,[ut,ct,pt,w("div",dt,[ft,w("div",mt,[(r(!0),l(T,null,E(null==(e=h(gt))?void 0:e.notFirstTemplate,((e,t)=>(r(),l("div",{class:V(["pay-item",[1==e.is_default?"defalut":""]]),key:t},[w("p",null,j(e.price)+"元",1),k(w("p",null,"多送"+j(e.given)+"看币",513),[[A,e.given]]),w("div",vt,j(h(kt)[e.type]),1)],2)))),128))])]),yt])])])]})),_:1})])])),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-d51f1de1"]]);export{bt as default};
|