|
@@ -186,13 +186,21 @@ const saveEdit = (row: CatalogTreeOri) => {
|
|
|
const copyCode = (row: CatalogTreeOri) => {
|
|
|
const slots = row.slots || []
|
|
|
const ele = document.createElement('script')
|
|
|
- ele.src = `http://cxzx.smcic.net/ad/catalog/${row.catalogId}.js`
|
|
|
+ ele.src = `http://cxzx.smcic.net/ad/config/adList.min.js`
|
|
|
+ ele.setAttribute('ad_id', row.catalogId + '')
|
|
|
+ ele.id = 'sxtv-ad-id'
|
|
|
+ const elehttps = document.createElement('script')
|
|
|
+ elehttps.setAttribute('ad_id', row.catalogId + '')
|
|
|
+ elehttps.src = `https://cxzx.smcic.net/ad/config/adList.min.js`
|
|
|
+ elehttps.id = 'sxtv-ad-id'
|
|
|
ElMessageBox({
|
|
|
title: row.catalogName,
|
|
|
message: h('div', null, [
|
|
|
- h('h3', null, '代码'),
|
|
|
+ h('h3', { style: { 'font-weight': 'bold', padding: '5px 0' } }, '代码(http)'),
|
|
|
h('div', null, ele.outerHTML),
|
|
|
- h('h3', null, 'id:'),
|
|
|
+ h('h3', { style: { 'font-weight': 'bold', padding: '5px 0' } }, '代码(https)'),
|
|
|
+ h('div', null, elehttps.outerHTML),
|
|
|
+ h('h3', { style: { 'font-weight': 'bold', padding: '5px 0' } }, 'id:'),
|
|
|
h('div', null, slots.map((v) => '#sxtv-ad-' + v.slotId).join(',')),
|
|
|
]),
|
|
|
})
|