|
@@ -1,8 +1,13 @@
|
|
import { Pen, FormItem } from '@meta2d/core';
|
|
import { Pen, FormItem } from '@meta2d/core';
|
|
import { cdn } from './api';
|
|
import { cdn } from './api';
|
|
-import { getRootDomain } from './common';
|
|
|
|
|
|
|
|
-const rootDomin = getRootDomain();
|
|
|
|
|
|
+const getRootDomain = ()=>{
|
|
|
|
+ const a =location.host.split('.');
|
|
|
|
+ return `.${a[a.length-2]}.${a[a.length-1]}`
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+export let rootDomain = getRootDomain().indexOf('localhost')!==-1?'.le5le.com':getRootDomain();
|
|
|
|
+
|
|
export const fromArrows = [
|
|
export const fromArrows = [
|
|
{ icon: '#l-line', value: '' },
|
|
{ icon: '#l-line', value: '' },
|
|
{ icon: '#l-from-triangle', value: 'triangle' },
|
|
{ icon: '#l-from-triangle', value: 'triangle' },
|
|
@@ -2182,7 +2187,7 @@ export const formComponents = [
|
|
width: 500,
|
|
width: 500,
|
|
height: 400,
|
|
height: 400,
|
|
externElement: true,
|
|
externElement: true,
|
|
- iframe: `https://${rootDomin.slice(1)}`,
|
|
|
|
|
|
+ iframe: `https://${rootDomain?.slice(1)}`,
|
|
props: {
|
|
props: {
|
|
custom: iframeCustom,
|
|
custom: iframeCustom,
|
|
},
|
|
},
|
|
@@ -2418,13 +2423,13 @@ export const formComponents = [
|
|
height: 300,
|
|
height: 300,
|
|
data: [
|
|
data: [
|
|
{
|
|
{
|
|
- src: `https://2ds${rootDomin}/img/banner1.bc890350.png`,
|
|
|
|
|
|
+ src: `https://2ds${rootDomain}/img/banner1.bc890350.png`,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- src: `https://2ds${rootDomin}/img/banner2.adab6a6e.png`,
|
|
|
|
|
|
+ src: `https://2ds${rootDomain}/img/banner2.adab6a6e.png`,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- src: `https://2ds${rootDomin}/img/banner3.86b53aed.png`,
|
|
|
|
|
|
+ src: `https://2ds${rootDomain}/img/banner3.86b53aed.png`,
|
|
},
|
|
},
|
|
],
|
|
],
|
|
hiddenText: true,
|
|
hiddenText: true,
|
|
@@ -2449,13 +2454,13 @@ export const formComponents = [
|
|
swiperType: 'iframe',
|
|
swiperType: 'iframe',
|
|
data: [
|
|
data: [
|
|
{
|
|
{
|
|
- src: `https://2d${rootDomin}/preview?id=6357a9e2d44b9402de84d2e8`,
|
|
|
|
|
|
+ src: `https://2d${rootDomain}/preview?id=6357a9e2d44b9402de84d2e8`,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- src: `https://2d${rootDomin}/preview?id=6357aec8d44b9402de84d2f1`,
|
|
|
|
|
|
+ src: `https://2d${rootDomain}/preview?id=6357aec8d44b9402de84d2f1`,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- src: `https://2d${rootDomin}/preview?id=641d524a8df2c654ea652d7e`,
|
|
|
|
|
|
+ src: `https://2d${rootDomain}/preview?id=641d524a8df2c654ea652d7e`,
|
|
},
|
|
},
|
|
],
|
|
],
|
|
hiddenText: true,
|
|
hiddenText: true,
|
|
@@ -2492,7 +2497,7 @@ export const formComponents = [
|
|
{
|
|
{
|
|
action: 0,
|
|
action: 0,
|
|
params: '_blank',
|
|
params: '_blank',
|
|
- value: `https://2d${rootDomin}`,
|
|
|
|
|
|
+ value: `https://2d${rootDomain}`,
|
|
},
|
|
},
|
|
],
|
|
],
|
|
},
|
|
},
|
|
@@ -2623,13 +2628,13 @@ context.meta2d.translate(
|
|
{
|
|
{
|
|
key: '2',
|
|
key: '2',
|
|
text: '页面2',
|
|
text: '页面2',
|
|
- to: `https://2d${rootDomin}/?id=641d524a8df2c654ea652d7e`,
|
|
|
|
|
|
+ to: `https://2d${rootDomain}/?id=641d524a8df2c654ea652d7e`,
|
|
target: '_blank',
|
|
target: '_blank',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
key: '3',
|
|
key: '3',
|
|
text: '页面3',
|
|
text: '页面3',
|
|
- to: `https://2d${rootDomin}/?id=6357a9e2d44b9402de84d2e8`,
|
|
|
|
|
|
+ to: `https://2d${rootDomain}/?id=6357a9e2d44b9402de84d2e8`,
|
|
target: '_self',
|
|
target: '_self',
|
|
},
|
|
},
|
|
],
|
|
],
|