unika-components 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/css/invite.css +712 -0
- package/dist/src/components/UniCountdown/UniCountdown.vue.d.ts +12 -1
- package/dist/src/components/UniFormInput/UniFormInput.vue.d.ts +13 -1
- package/dist/src/components/UniImage/UniImage.vue.d.ts +0 -3
- package/dist/src/index.d.ts +12 -0
- package/dist/src/utils/resolveInviteRender.d.ts +1 -0
- package/dist/unika-components.css +702 -680
- package/dist/unika-components.esm.js +753 -39
- package/dist/unika-components.umd.js +764 -38
- package/package.json +4 -3
|
@@ -205,9 +205,6 @@ var script$r = defineComponent({
|
|
|
205
205
|
color: css.value.color,
|
|
206
206
|
opacity: css.value.opacity,
|
|
207
207
|
borderRadius: px2rem(css.value.borderRadius || 0),
|
|
208
|
-
borderWidth: px2rem(css.value.borderWidth || 0),
|
|
209
|
-
borderStyle: css.value.borderStyle,
|
|
210
|
-
borderColor: css.value.borderColor,
|
|
211
208
|
boxShadow: properties.value.shadowSize
|
|
212
209
|
? `${px2rem(properties.value.shadowX)} ${px2rem(properties.value.shadowY)} ${px2rem(properties.value.shadowBlur)} ${properties.value.shadowColor}`
|
|
213
210
|
: 'none'
|
|
@@ -519,7 +516,7 @@ var script$q = defineComponent({
|
|
|
519
516
|
|
|
520
517
|
const _hoisted_1$l = ["data-id"];
|
|
521
518
|
const _hoisted_2$i = ["innerHTML"];
|
|
522
|
-
const _hoisted_3$
|
|
519
|
+
const _hoisted_3$h = /*#__PURE__*/createElementVNode("div", { class: "svg-loading" }, "Loading...", -1 /* HOISTED */);
|
|
523
520
|
const _hoisted_4$d = { class: "svg-error" };
|
|
524
521
|
|
|
525
522
|
function render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -551,7 +548,7 @@ function render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
551
548
|
: (_ctx.isLoading)
|
|
552
549
|
? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
553
550
|
createCommentVNode(" 加载状态 "),
|
|
554
|
-
_hoisted_3$
|
|
551
|
+
_hoisted_3$h
|
|
555
552
|
], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
|
|
556
553
|
: (_ctx.loadError)
|
|
557
554
|
? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
@@ -890,7 +887,7 @@ var script$p = defineComponent({
|
|
|
890
887
|
|
|
891
888
|
const _hoisted_1$k = { id: "audio" };
|
|
892
889
|
const _hoisted_2$h = ["src"];
|
|
893
|
-
const _hoisted_3$
|
|
890
|
+
const _hoisted_3$g = {
|
|
894
891
|
key: 1,
|
|
895
892
|
class: "iconfont"
|
|
896
893
|
};
|
|
@@ -915,7 +912,7 @@ function render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
915
912
|
class: "music-icon",
|
|
916
913
|
alt: "หยุดชั่วคราว"
|
|
917
914
|
}, null, 8 /* PROPS */, _hoisted_2$h))
|
|
918
|
-
: (openBlock(), createElementBlock("span", _hoisted_3$
|
|
915
|
+
: (openBlock(), createElementBlock("span", _hoisted_3$g, "❚❚"))
|
|
919
916
|
], 64 /* STABLE_FRAGMENT */))
|
|
920
917
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
921
918
|
(_ctx.playIconUrl)
|
|
@@ -1017,7 +1014,7 @@ const _hoisted_1$j = {
|
|
|
1017
1014
|
class: "video-container"
|
|
1018
1015
|
};
|
|
1019
1016
|
const _hoisted_2$g = ["src"];
|
|
1020
|
-
const _hoisted_3$
|
|
1017
|
+
const _hoisted_3$f = ["src"];
|
|
1021
1018
|
|
|
1022
1019
|
function render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1023
1020
|
return (openBlock(), createElementBlock("div", {
|
|
@@ -1052,7 +1049,7 @@ function render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1052
1049
|
src: _ctx.element.properties.src,
|
|
1053
1050
|
alt: "Play button",
|
|
1054
1051
|
class: "play-btn"
|
|
1055
|
-
}, null, 8 /* PROPS */, _hoisted_3$
|
|
1052
|
+
}, null, 8 /* PROPS */, _hoisted_3$f)
|
|
1056
1053
|
], 4 /* STYLE */))
|
|
1057
1054
|
], 4 /* STYLE */)
|
|
1058
1055
|
], 4 /* STYLE */))
|
|
@@ -1186,7 +1183,7 @@ const _hoisted_2$f = {
|
|
|
1186
1183
|
key: 0,
|
|
1187
1184
|
class: "can-wrap"
|
|
1188
1185
|
};
|
|
1189
|
-
const _hoisted_3$
|
|
1186
|
+
const _hoisted_3$e = { class: "can-top" };
|
|
1190
1187
|
const _hoisted_4$b = { class: "can-main" };
|
|
1191
1188
|
const _hoisted_5$a = { class: "can-date" };
|
|
1192
1189
|
const _hoisted_6$8 = {
|
|
@@ -1228,7 +1225,7 @@ function render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1228
1225
|
}, [
|
|
1229
1226
|
(_ctx.element.kind === 1)
|
|
1230
1227
|
? (openBlock(), createElementBlock("div", _hoisted_2$f, [
|
|
1231
|
-
createElementVNode("div", _hoisted_3$
|
|
1228
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
1232
1229
|
createElementVNode("div", {
|
|
1233
1230
|
class: "can-left",
|
|
1234
1231
|
style: normalizeStyle({ color: _ctx.element.themeColor || '#ed5566' })
|
|
@@ -1398,6 +1395,7 @@ script$n.install = (app) => {
|
|
|
1398
1395
|
app.component(script$n.name, script$n);
|
|
1399
1396
|
};
|
|
1400
1397
|
|
|
1398
|
+
// @ts-nocheck
|
|
1401
1399
|
var script$m = defineComponent({
|
|
1402
1400
|
name: 'uni-countdown',
|
|
1403
1401
|
props: {
|
|
@@ -1565,6 +1563,7 @@ var script$m = defineComponent({
|
|
|
1565
1563
|
onUnmounted(() => {
|
|
1566
1564
|
stopCountdown();
|
|
1567
1565
|
});
|
|
1566
|
+
const isVertical = computed(() => props.element.direction === 'vertical');
|
|
1568
1567
|
// 容器样式
|
|
1569
1568
|
const containerStyle = computed(() => ({
|
|
1570
1569
|
position: (props.element && props.element.css && props.element.css.position) || 'absolute',
|
|
@@ -1573,7 +1572,8 @@ var script$m = defineComponent({
|
|
|
1573
1572
|
width: px2rem(props.element.css.width),
|
|
1574
1573
|
height: px2rem(props.element.css.height),
|
|
1575
1574
|
transform: `rotate(${props.element.css.transform}deg)`,
|
|
1576
|
-
opacity: props.element.css.opacity
|
|
1575
|
+
opacity: props.element.css.opacity,
|
|
1576
|
+
overflow: 'visible',
|
|
1577
1577
|
}));
|
|
1578
1578
|
// 文本模式容器样式
|
|
1579
1579
|
const textContainerStyle = computed(() => ({
|
|
@@ -1582,6 +1582,10 @@ var script$m = defineComponent({
|
|
|
1582
1582
|
borderRadius: px2rem(props.element.css.borderRadius || 0),
|
|
1583
1583
|
borderStyle: props.element.css.borderStyle,
|
|
1584
1584
|
borderWidth: px2rem(props.element.css.borderWidth || 0),
|
|
1585
|
+
display: isVertical.value ? 'flex' : undefined,
|
|
1586
|
+
flexDirection: isVertical.value ? 'column' : undefined,
|
|
1587
|
+
alignItems: isVertical.value ? 'center' : undefined,
|
|
1588
|
+
justifyContent: isVertical.value ? 'center' : undefined,
|
|
1585
1589
|
}));
|
|
1586
1590
|
// 文本内容样式
|
|
1587
1591
|
const textContentStyle = computed(() => ({
|
|
@@ -1594,8 +1598,13 @@ var script$m = defineComponent({
|
|
|
1594
1598
|
const flipStyle = computed(() => ({
|
|
1595
1599
|
transform: getScaleValue(),
|
|
1596
1600
|
opacity: props.element.css.opacity,
|
|
1597
|
-
|
|
1598
|
-
|
|
1601
|
+
display: 'flex',
|
|
1602
|
+
flexDirection: isVertical.value ? 'column' : 'row',
|
|
1603
|
+
alignItems: 'center',
|
|
1604
|
+
justifyContent: 'center',
|
|
1605
|
+
width: '100%',
|
|
1606
|
+
height: isVertical.value ? 'auto' : '100%',
|
|
1607
|
+
minHeight: isVertical.value ? '100%' : undefined,
|
|
1599
1608
|
}));
|
|
1600
1609
|
// 获取缩放值
|
|
1601
1610
|
const getScaleValue = () => {
|
|
@@ -1612,7 +1621,8 @@ var script$m = defineComponent({
|
|
|
1612
1621
|
borderWidth: px2rem(props.element.css.borderWidth || 0),
|
|
1613
1622
|
borderRadius: px2rem(props.element.css.borderRadius || 0),
|
|
1614
1623
|
backgroundColor: props.element.css.backgroundColor,
|
|
1615
|
-
margin:
|
|
1624
|
+
margin: isVertical.value ? `${px2rem(6)} 0` : `0 ${px2rem(6)}`,
|
|
1625
|
+
flexShrink: 0,
|
|
1616
1626
|
}));
|
|
1617
1627
|
// 数字样式
|
|
1618
1628
|
const numStyle = computed(() => ({
|
|
@@ -1679,7 +1689,7 @@ var script$m = defineComponent({
|
|
|
1679
1689
|
|
|
1680
1690
|
const _hoisted_1$h = ["data-id", "data-pid", "data-type", "data-show", "pid", "type", "layername", "sign", "signsort"];
|
|
1681
1691
|
const _hoisted_2$e = ["data-direction"];
|
|
1682
|
-
const _hoisted_3$
|
|
1692
|
+
const _hoisted_3$d = { class: "c-wrap" };
|
|
1683
1693
|
const _hoisted_4$a = { class: "c-num c-left" };
|
|
1684
1694
|
const _hoisted_5$9 = { class: "flex-wrap" };
|
|
1685
1695
|
const _hoisted_6$7 = { class: "c-num c-right" };
|
|
@@ -1742,7 +1752,7 @@ function render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1742
1752
|
class: "c-com c-day",
|
|
1743
1753
|
style: normalizeStyle(_ctx.comStyle)
|
|
1744
1754
|
}, [
|
|
1745
|
-
createElementVNode("div", _hoisted_3$
|
|
1755
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
1746
1756
|
createElementVNode("div", _hoisted_4$a, [
|
|
1747
1757
|
createElementVNode("div", _hoisted_5$9, [
|
|
1748
1758
|
(_ctx.days >= 100)
|
|
@@ -1974,7 +1984,7 @@ var script$l = defineComponent({
|
|
|
1974
1984
|
|
|
1975
1985
|
const _hoisted_1$g = ["data-id", "data-pid", "data-type", "data-show", "pid", "type", "layername", "sign", "signsort"];
|
|
1976
1986
|
const _hoisted_2$d = ["innerHTML"];
|
|
1977
|
-
const _hoisted_3$
|
|
1987
|
+
const _hoisted_3$c = /*#__PURE__*/createElementVNode("div", { class: "mask-map" }, null, -1 /* HOISTED */);
|
|
1978
1988
|
|
|
1979
1989
|
function render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1980
1990
|
return (openBlock(), createElementBlock("div", {
|
|
@@ -2011,7 +2021,7 @@ function render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2011
2021
|
}, null, 8 /* PROPS */, _hoisted_2$d),
|
|
2012
2022
|
createCommentVNode(" 隐藏的辅助元素 "),
|
|
2013
2023
|
createCommentVNode(" <div :id=\"'teng_' + element.id + Date.now()\" class=\"center-map\" style=\"display: none;\"></div>\n <div :id=\"'bai_' + element.id + Date.now()\" class=\"center-map\" style=\"display: none;\"></div> "),
|
|
2014
|
-
_hoisted_3$
|
|
2024
|
+
_hoisted_3$c
|
|
2015
2025
|
], 4 /* STYLE */))
|
|
2016
2026
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2017
2027
|
createCommentVNode(" 导航按钮 "),
|
|
@@ -23049,13 +23059,13 @@ var DataView = getNative(root$1, "DataView");
|
|
|
23049
23059
|
var DataView$1 = DataView;
|
|
23050
23060
|
var Promise$1 = getNative(root$1, "Promise");
|
|
23051
23061
|
var Promise$2 = Promise$1;
|
|
23052
|
-
var Set = getNative(root$1, "Set");
|
|
23053
|
-
var Set$1 = Set;
|
|
23062
|
+
var Set$1 = getNative(root$1, "Set");
|
|
23063
|
+
var Set$1$1 = Set$1;
|
|
23054
23064
|
var mapTag$4 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$4 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
23055
23065
|
var dataViewTag$3 = "[object DataView]";
|
|
23056
|
-
var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$2), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1);
|
|
23066
|
+
var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$2), setCtorString = toSource(Set$1$1), weakMapCtorString = toSource(WeakMap$1);
|
|
23057
23067
|
var getTag = baseGetTag;
|
|
23058
|
-
if (DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3 || Map$1 && getTag(new Map$1()) != mapTag$4 || Promise$2 && getTag(Promise$2.resolve()) != promiseTag || Set$1 && getTag(new Set$1()) != setTag$4 || WeakMap$1 && getTag(new WeakMap$1()) != weakMapTag$1) {
|
|
23068
|
+
if (DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3 || Map$1 && getTag(new Map$1()) != mapTag$4 || Promise$2 && getTag(Promise$2.resolve()) != promiseTag || Set$1$1 && getTag(new Set$1$1()) != setTag$4 || WeakMap$1 && getTag(new WeakMap$1()) != weakMapTag$1) {
|
|
23059
23069
|
getTag = function(value) {
|
|
23060
23070
|
var result = baseGetTag(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
23061
23071
|
if (ctorString) {
|
|
@@ -27988,7 +27998,7 @@ const _hoisted_1$b = {
|
|
|
27988
27998
|
ref: "toolbar"
|
|
27989
27999
|
};
|
|
27990
28000
|
const _hoisted_2$b = { class: "toolbar" };
|
|
27991
|
-
const _hoisted_3$
|
|
28001
|
+
const _hoisted_3$b = { class: "bar-left" };
|
|
27992
28002
|
const _hoisted_4$9 = /*#__PURE__*/createElementVNode("img", { src: "https://h5cdn.unika.cc/static/img/uniComponents/hide.png" }, null, -1 /* HOISTED */);
|
|
27993
28003
|
const _hoisted_5$8 = [
|
|
27994
28004
|
_hoisted_4$9
|
|
@@ -28094,7 +28104,7 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28094
28104
|
createCommentVNode(" 底部工具栏 "),
|
|
28095
28105
|
createElementVNode("div", _hoisted_1$b, [
|
|
28096
28106
|
createElementVNode("div", _hoisted_2$b, [
|
|
28097
|
-
withDirectives(createElementVNode("div", _hoisted_3$
|
|
28107
|
+
withDirectives(createElementVNode("div", _hoisted_3$b, [
|
|
28098
28108
|
createElementVNode("input", {
|
|
28099
28109
|
type: "text",
|
|
28100
28110
|
placeholder: "ข้อความอวยพร..",
|
|
@@ -28644,6 +28654,10 @@ var script$f = defineComponent({
|
|
|
28644
28654
|
type: Object,
|
|
28645
28655
|
required: true
|
|
28646
28656
|
},
|
|
28657
|
+
isEditing: {
|
|
28658
|
+
type: Boolean,
|
|
28659
|
+
default: false,
|
|
28660
|
+
},
|
|
28647
28661
|
},
|
|
28648
28662
|
setup(props) {
|
|
28649
28663
|
const inputValue = ref('');
|
|
@@ -28683,9 +28697,16 @@ var script$f = defineComponent({
|
|
|
28683
28697
|
});
|
|
28684
28698
|
// 失去焦点时验证
|
|
28685
28699
|
const handleBlur = () => {
|
|
28700
|
+
if (props.isEditing)
|
|
28701
|
+
return;
|
|
28686
28702
|
isTouched.value = true;
|
|
28687
28703
|
validate();
|
|
28688
28704
|
};
|
|
28705
|
+
const onInputPointerDown = (e) => {
|
|
28706
|
+
if (!props.isEditing)
|
|
28707
|
+
return;
|
|
28708
|
+
e.preventDefault();
|
|
28709
|
+
};
|
|
28689
28710
|
// 值变化时验证(如果已经触摸过)
|
|
28690
28711
|
watch(inputValue, () => {
|
|
28691
28712
|
if (isTouched.value) {
|
|
@@ -28728,20 +28749,24 @@ var script$f = defineComponent({
|
|
|
28728
28749
|
containerStyles,
|
|
28729
28750
|
wrapperStyles,
|
|
28730
28751
|
inputStyles,
|
|
28731
|
-
handleBlur
|
|
28752
|
+
handleBlur,
|
|
28753
|
+
onInputPointerDown,
|
|
28754
|
+
isEditing: computed(() => props.isEditing),
|
|
28732
28755
|
};
|
|
28733
28756
|
}
|
|
28734
28757
|
});
|
|
28735
28758
|
|
|
28736
|
-
const _hoisted_1$a =
|
|
28759
|
+
const _hoisted_1$a = ["data-id"];
|
|
28760
|
+
const _hoisted_2$a = {
|
|
28737
28761
|
key: 0,
|
|
28738
28762
|
class: "required-marker"
|
|
28739
28763
|
};
|
|
28740
|
-
const
|
|
28764
|
+
const _hoisted_3$a = ["type", "placeholder", "readonly", "tabindex"];
|
|
28741
28765
|
|
|
28742
28766
|
function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
28743
28767
|
return (openBlock(), createElementBlock("div", {
|
|
28744
|
-
class: "ele-form form-input eles",
|
|
28768
|
+
class: normalizeClass(["ele-form form-input eles", { 'form-input--editing': _ctx.isEditing }]),
|
|
28769
|
+
"data-id": _ctx.element.id,
|
|
28745
28770
|
style: normalizeStyle(_ctx.containerStyles)
|
|
28746
28771
|
}, [
|
|
28747
28772
|
createElementVNode("div", {
|
|
@@ -28752,20 +28777,24 @@ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28752
28777
|
})
|
|
28753
28778
|
}, [
|
|
28754
28779
|
(_ctx.required)
|
|
28755
|
-
? (openBlock(), createElementBlock("span",
|
|
28780
|
+
? (openBlock(), createElementBlock("span", _hoisted_2$a, "*"))
|
|
28756
28781
|
: createCommentVNode("v-if", true),
|
|
28757
28782
|
withDirectives(createElementVNode("input", {
|
|
28758
28783
|
type: _ctx.inputType,
|
|
28759
28784
|
placeholder: _ctx.title,
|
|
28760
28785
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((_ctx.inputValue) = $event)),
|
|
28761
28786
|
style: normalizeStyle(_ctx.inputStyles),
|
|
28762
|
-
|
|
28763
|
-
|
|
28764
|
-
|
|
28787
|
+
readonly: _ctx.isEditing,
|
|
28788
|
+
tabindex: _ctx.isEditing ? -1 : undefined,
|
|
28789
|
+
class: "dynamic-placeholder-input",
|
|
28790
|
+
onMousedown: _cache[1] || (_cache[1] = (...args) => (_ctx.onInputPointerDown && _ctx.onInputPointerDown(...args))),
|
|
28791
|
+
onTouchstart: _cache[2] || (_cache[2] = (...args) => (_ctx.onInputPointerDown && _ctx.onInputPointerDown(...args))),
|
|
28792
|
+
onBlur: _cache[3] || (_cache[3] = (...args) => (_ctx.handleBlur && _ctx.handleBlur(...args)))
|
|
28793
|
+
}, null, 44 /* STYLE, PROPS, NEED_HYDRATION */, _hoisted_3$a), [
|
|
28765
28794
|
[vModelDynamic, _ctx.inputValue]
|
|
28766
28795
|
])
|
|
28767
28796
|
], 4 /* STYLE */)
|
|
28768
|
-
],
|
|
28797
|
+
], 14 /* CLASS, STYLE, PROPS */, _hoisted_1$a))
|
|
28769
28798
|
}
|
|
28770
28799
|
|
|
28771
28800
|
script$f.render = render$b;
|
|
@@ -31211,15 +31240,33 @@ script$2.install = (app) => {
|
|
|
31211
31240
|
app.component(script$2.name, script$2);
|
|
31212
31241
|
};
|
|
31213
31242
|
|
|
31243
|
+
const PLACEHOLDER_INVITE_STATE_IDS = new Set(['invite-default-1']);
|
|
31244
|
+
function isPlaceholderInviteStateId(stateId) {
|
|
31245
|
+
if (!stateId)
|
|
31246
|
+
return false;
|
|
31247
|
+
if (PLACEHOLDER_INVITE_STATE_IDS.has(stateId))
|
|
31248
|
+
return true;
|
|
31249
|
+
return stateId.startsWith('invite-default-');
|
|
31250
|
+
}
|
|
31214
31251
|
function isValidInviteItem(item) {
|
|
31215
31252
|
return !!(item && item.img1 && item.name);
|
|
31216
31253
|
}
|
|
31254
|
+
function pickInviteItemByState(invite, stateId) {
|
|
31255
|
+
const items = invite.items || [];
|
|
31256
|
+
const direct = items.find((i) => i.id === stateId);
|
|
31257
|
+
if (direct)
|
|
31258
|
+
return direct;
|
|
31259
|
+
// 兼容模板占位 id:条目已迁移为随机 id 时,旧链接仍只有一条送呈
|
|
31260
|
+
if (isPlaceholderInviteStateId(stateId) && items.length === 1) {
|
|
31261
|
+
return items[0];
|
|
31262
|
+
}
|
|
31263
|
+
return undefined;
|
|
31264
|
+
}
|
|
31217
31265
|
/** 根据 URL state 从 global.invite 解析单条送呈渲染数据 */
|
|
31218
31266
|
function resolveInviteRenderData(invite, stateId) {
|
|
31219
31267
|
if (!stateId || !invite || !invite.open)
|
|
31220
31268
|
return null;
|
|
31221
|
-
const
|
|
31222
|
-
const item = items.find((i) => i.id === stateId);
|
|
31269
|
+
const item = pickInviteItemByState(invite, stateId);
|
|
31223
31270
|
if (!isValidInviteItem(item))
|
|
31224
31271
|
return null;
|
|
31225
31272
|
return {
|
|
@@ -31355,6 +31402,11 @@ var script$1 = defineComponent({
|
|
|
31355
31402
|
emit('dismiss');
|
|
31356
31403
|
}, delay);
|
|
31357
31404
|
};
|
|
31405
|
+
onMounted(() => {
|
|
31406
|
+
// #region agent log
|
|
31407
|
+
fetch('http://127.0.0.1:7825/ingest/b036d6f9-5c3e-4f40-bb7d-3367a145a4d2', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Debug-Session-Id': '6d48a4' }, body: JSON.stringify({ sessionId: '6d48a4', runId: 'pre-fix', hypothesisId: 'H4', location: 'UniInvite.vue:onMounted', message: 'invite visibility', data: { visible: visible.value, itemId: item.value ? item.value.id : null, hasImg1: !!(item.value && item.value.img1), shouldShow: shouldShow.value }, timestamp: Date.now() }) }).catch(() => { });
|
|
31408
|
+
// #endregion
|
|
31409
|
+
});
|
|
31358
31410
|
return {
|
|
31359
31411
|
visible,
|
|
31360
31412
|
isOpening,
|
|
@@ -31576,7 +31628,18 @@ var script = defineComponent({
|
|
|
31576
31628
|
const personalData = computed(() => workData.value.personalData || {});
|
|
31577
31629
|
const global = computed(() => workData.value.global || {});
|
|
31578
31630
|
const pages = computed(() => workData.value.pages || []);
|
|
31579
|
-
const inviteRender = computed(() =>
|
|
31631
|
+
const inviteRender = computed(() => {
|
|
31632
|
+
const invite = global.value.invite;
|
|
31633
|
+
const fromRenderItem = getInviteRenderFromGlobal(invite);
|
|
31634
|
+
if (fromRenderItem)
|
|
31635
|
+
return fromRenderItem;
|
|
31636
|
+
if (typeof window !== 'undefined' && invite) {
|
|
31637
|
+
const stateId = new URLSearchParams(window.location.search).get('state');
|
|
31638
|
+
if (stateId)
|
|
31639
|
+
return resolveInviteRenderData(invite, stateId);
|
|
31640
|
+
}
|
|
31641
|
+
return null;
|
|
31642
|
+
});
|
|
31580
31643
|
/** 仅 member_level === 1 显示水印;2、3 及缺省等均不显示 */
|
|
31581
31644
|
const shouldShowWatermark = computed(() => Number(global.value.member_level) === 1);
|
|
31582
31645
|
// 长页模式
|
|
@@ -31799,6 +31862,9 @@ var script = defineComponent({
|
|
|
31799
31862
|
nextTick(() => {
|
|
31800
31863
|
setTimeout(runTextAnimationsForCurrentPage, 150);
|
|
31801
31864
|
});
|
|
31865
|
+
// #region agent log
|
|
31866
|
+
fetch('http://127.0.0.1:7825/ingest/b036d6f9-5c3e-4f40-bb7d-3367a145a4d2', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Debug-Session-Id': '6d48a4' }, body: JSON.stringify({ sessionId: '6d48a4', runId: 'pre-fix', hypothesisId: 'H2', location: 'WorkRender.vue:onMounted', message: 'invite render computed', data: { hasInviteRender: !!inviteRender.value, renderItemId: global.value.invite && global.value.invite.renderItem ? global.value.invite.renderItem.id : null, urlState: typeof window !== 'undefined' ? new URLSearchParams(window.location.search).get('state') : null }, timestamp: Date.now() }) }).catch(() => { });
|
|
31867
|
+
// #endregion
|
|
31802
31868
|
});
|
|
31803
31869
|
onBeforeUnmount(() => {
|
|
31804
31870
|
if (global.value.cat === 'long_page') {
|
|
@@ -32674,7 +32740,7 @@ function getInviteTemplateById(id) {
|
|
|
32674
32740
|
return INVITE_COVER_TEMPLATES.find(t => t.id === id);
|
|
32675
32741
|
}
|
|
32676
32742
|
|
|
32677
|
-
const defaultItemId = 'invite-default-1';
|
|
32743
|
+
const defaultItemId = 'invite-default-1'; // template placeholder — replace with random id at runtime
|
|
32678
32744
|
const defaultTpl = INVITE_COVER_TEMPLATES[0];
|
|
32679
32745
|
/** global.invite 默认结构 — 仅含渲染字段,不含 templates/phrases */
|
|
32680
32746
|
const inviteDefaultProps = {
|
|
@@ -32697,6 +32763,654 @@ const inviteDefaultProps = {
|
|
|
32697
32763
|
],
|
|
32698
32764
|
};
|
|
32699
32765
|
|
|
32766
|
+
const musicDefaultProps = {
|
|
32767
|
+
// url: "https://h5cdn.unika.cc/static/img/uniComponents/MarryMe.mp3",
|
|
32768
|
+
url: "",
|
|
32769
|
+
name: "Love Paradise",
|
|
32770
|
+
music_id: '2302',
|
|
32771
|
+
bgcolor: "rgba(128, 90, 218, 0.19)",
|
|
32772
|
+
iconUrl: "https://h5cdn.unika.cc/static/assets/musicBackground/musicBackground-1.png",
|
|
32773
|
+
isGlobal: false,
|
|
32774
|
+
};
|
|
32775
|
+
|
|
32776
|
+
const calendarDefaultProps = {
|
|
32777
|
+
id: '1748877692931',
|
|
32778
|
+
pid: '',
|
|
32779
|
+
type: 'calendar',
|
|
32780
|
+
layerName: '日历14',
|
|
32781
|
+
endTime: '2025/05/22',
|
|
32782
|
+
language: 'Chinese',
|
|
32783
|
+
kind: 1,
|
|
32784
|
+
sign: true,
|
|
32785
|
+
signSort: 4,
|
|
32786
|
+
showSize: 'middle',
|
|
32787
|
+
themeColor: '#ed5566',
|
|
32788
|
+
heartColor: 'rgba(151, 237, 85, 1)',
|
|
32789
|
+
heartAni: true,
|
|
32790
|
+
dateColor: '#666',
|
|
32791
|
+
css: {
|
|
32792
|
+
borderWidth: 2,
|
|
32793
|
+
borderStyle: 'solid',
|
|
32794
|
+
borderColor: '#ed5566',
|
|
32795
|
+
opacity: 0.98,
|
|
32796
|
+
backgroundColor: '#fff',
|
|
32797
|
+
width: 325,
|
|
32798
|
+
height: 325,
|
|
32799
|
+
borderRadius: 0,
|
|
32800
|
+
top: 148.5625,
|
|
32801
|
+
left: 28.4375,
|
|
32802
|
+
transform: 0,
|
|
32803
|
+
animation2: 'fadeInDown 1.5s ease 0.0s 1 normal backwards running',
|
|
32804
|
+
animation: 'fadeInDown 1.5s ease 0.0s 1 normal backwards running'
|
|
32805
|
+
},
|
|
32806
|
+
properties: {
|
|
32807
|
+
visible: true,
|
|
32808
|
+
isLock: false,
|
|
32809
|
+
required: true,
|
|
32810
|
+
musicName: '',
|
|
32811
|
+
musicLink: '',
|
|
32812
|
+
musicHash: '',
|
|
32813
|
+
shadowSize: 0,
|
|
32814
|
+
shadowColor: '#999999',
|
|
32815
|
+
shadowX: 0,
|
|
32816
|
+
shadowY: 0,
|
|
32817
|
+
shadowBlur: 0,
|
|
32818
|
+
shadowPoint: 270,
|
|
32819
|
+
aniOrigin: 'default',
|
|
32820
|
+
animations: [
|
|
32821
|
+
{
|
|
32822
|
+
animate: 'fadeInDown',
|
|
32823
|
+
count: 1,
|
|
32824
|
+
timing: 'ease',
|
|
32825
|
+
loop: false,
|
|
32826
|
+
delay: 0,
|
|
32827
|
+
duration: 1.5,
|
|
32828
|
+
name: '从上淡入',
|
|
32829
|
+
order: 'normal',
|
|
32830
|
+
type: 'normal',
|
|
32831
|
+
aniType: 'entry',
|
|
32832
|
+
allDelay: '0.0',
|
|
32833
|
+
id: 80102
|
|
32834
|
+
}
|
|
32835
|
+
],
|
|
32836
|
+
textAni: []
|
|
32837
|
+
},
|
|
32838
|
+
triggers: {
|
|
32839
|
+
event: 'music',
|
|
32840
|
+
link: 'http://www.baidu.com',
|
|
32841
|
+
go: 4,
|
|
32842
|
+
phone: '0622222222',
|
|
32843
|
+
musicName: '告白气球',
|
|
32844
|
+
musicLink: 'https://amp3.hunbei.com/mp3/qiniu/gaobaiqiqiu.mp3',
|
|
32845
|
+
musicHash: '',
|
|
32846
|
+
music_id: 2247,
|
|
32847
|
+
cat: 'sys',
|
|
32848
|
+
originalUrl: '',
|
|
32849
|
+
crop: null,
|
|
32850
|
+
},
|
|
32851
|
+
signType: 'time'
|
|
32852
|
+
};
|
|
32853
|
+
|
|
32854
|
+
const mapDefaultProps =
|
|
32855
|
+
// {
|
|
32856
|
+
// "id": '1714374739136',
|
|
32857
|
+
// "pid": "",
|
|
32858
|
+
// "type": "map",
|
|
32859
|
+
// "textContent": "",
|
|
32860
|
+
// "layerName": "地图20",
|
|
32861
|
+
// "btnName": "导航",
|
|
32862
|
+
// "sign": true,
|
|
32863
|
+
// "signSort": 4,
|
|
32864
|
+
// "mapStyle": "按钮",
|
|
32865
|
+
// "css": {
|
|
32866
|
+
// "borderWidth": 0,
|
|
32867
|
+
// "borderStyle": "solid",
|
|
32868
|
+
// "borderColor": "rgba(153, 153, 153, 1)",
|
|
32869
|
+
// "opacity": 1,
|
|
32870
|
+
// "fontSize": 30,
|
|
32871
|
+
// "color": "rgba(255, 255, 255, 1)",
|
|
32872
|
+
// "backgroundColor": "rgba(52, 68, 244, 1)",
|
|
32873
|
+
// "width": 220,
|
|
32874
|
+
// "height": 40,
|
|
32875
|
+
// "top": 378,
|
|
32876
|
+
// "left": 127.5,
|
|
32877
|
+
// "transform": 0,
|
|
32878
|
+
// "borderRadius": 0,
|
|
32879
|
+
// "animation2": "fadeIn 1.5s ease 1.0s 1 normal backwards running",
|
|
32880
|
+
// "animation": "fadeIn 1.5s ease 1.0s 1 normal backwards running"
|
|
32881
|
+
// },
|
|
32882
|
+
// "properties": {
|
|
32883
|
+
// "visible": true,
|
|
32884
|
+
// "isLock": false,
|
|
32885
|
+
// "required": true,
|
|
32886
|
+
// "musicName": "",
|
|
32887
|
+
// "musicLink": "",
|
|
32888
|
+
// "musicHash": "",
|
|
32889
|
+
// "shadowSize": 0,
|
|
32890
|
+
// "shadowColor": "#999999",
|
|
32891
|
+
// "shadowX": 0,
|
|
32892
|
+
// "shadowY": 0,
|
|
32893
|
+
// "shadowBlur": 0,
|
|
32894
|
+
// "shadowPoint": 270,
|
|
32895
|
+
// "aniOrigin": "default",
|
|
32896
|
+
// "animations": [
|
|
32897
|
+
// {
|
|
32898
|
+
// "animate": "fadeIn",
|
|
32899
|
+
// "count": 1,
|
|
32900
|
+
// "timing": "ease",
|
|
32901
|
+
// "loop": false,
|
|
32902
|
+
// "delay": 1,
|
|
32903
|
+
// "duration": 1.5,
|
|
32904
|
+
// "name": "淡入",
|
|
32905
|
+
// "order": "normal",
|
|
32906
|
+
// "type": "normal",
|
|
32907
|
+
// "aniType": "entry",
|
|
32908
|
+
// "allDelay": "1.0",
|
|
32909
|
+
// "id": 40976
|
|
32910
|
+
// }
|
|
32911
|
+
// ],
|
|
32912
|
+
// "lng": 120.298935,
|
|
32913
|
+
// "lat": 35.972687,
|
|
32914
|
+
// "location": "涵碧楼酒店",
|
|
32915
|
+
// "zoom": 15,
|
|
32916
|
+
// "type": "gaode",
|
|
32917
|
+
// "isMapEdit": 1,
|
|
32918
|
+
// "textAni": [],
|
|
32919
|
+
// "mapImg": "",
|
|
32920
|
+
// "mapChange": "120.298935|35.972687|15|205|205"
|
|
32921
|
+
// },
|
|
32922
|
+
// "signType": "ditu"
|
|
32923
|
+
// }
|
|
32924
|
+
{
|
|
32925
|
+
id: '',
|
|
32926
|
+
pid: '',
|
|
32927
|
+
type: 'map',
|
|
32928
|
+
textContent: '',
|
|
32929
|
+
layerName: 'map',
|
|
32930
|
+
btnName: 'Google Map',
|
|
32931
|
+
sign: true,
|
|
32932
|
+
signSort: 6,
|
|
32933
|
+
mapStyle: 'default',
|
|
32934
|
+
iframeUrl: '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3875.8578774438038!2d100.54467957597053!3d13.72705308666229!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x30e29f2476aee2a3%3A0x6e91389d33667ab8!2sOne%20Bangkok!5e0!3m2!1szh-CN!2sth!4v1746974818429!5m2!1szh-CN!2sth" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>',
|
|
32935
|
+
url: 'https://maps.app.goo.gl/DbrLnbiWJt9DQa3y6',
|
|
32936
|
+
css: {
|
|
32937
|
+
borderWidth: 0,
|
|
32938
|
+
borderStyle: 'solid',
|
|
32939
|
+
borderColor: 'rgba(153, 153, 153, 1)',
|
|
32940
|
+
opacity: 1,
|
|
32941
|
+
fontSize: 30,
|
|
32942
|
+
color: 'rgba(255, 255, 255, 1)',
|
|
32943
|
+
backgroundColor: 'rgba(52, 68, 244, 1)',
|
|
32944
|
+
width: 220,
|
|
32945
|
+
height: 220,
|
|
32946
|
+
top: 196,
|
|
32947
|
+
left: 77,
|
|
32948
|
+
transform: 0,
|
|
32949
|
+
borderRadius: 0
|
|
32950
|
+
},
|
|
32951
|
+
properties: {
|
|
32952
|
+
visible: true,
|
|
32953
|
+
isLock: false,
|
|
32954
|
+
required: true,
|
|
32955
|
+
musicName: '',
|
|
32956
|
+
musicLink: '',
|
|
32957
|
+
musicHash: '',
|
|
32958
|
+
shadowSize: 0,
|
|
32959
|
+
shadowColor: '#999999',
|
|
32960
|
+
shadowX: 0,
|
|
32961
|
+
shadowY: 0,
|
|
32962
|
+
shadowBlur: 0,
|
|
32963
|
+
shadowPoint: 270,
|
|
32964
|
+
aniOrigin: 'default',
|
|
32965
|
+
animations: [],
|
|
32966
|
+
lng: 120.298935,
|
|
32967
|
+
lat: 35.972687,
|
|
32968
|
+
location: 'One Bangkok',
|
|
32969
|
+
zoom: 15,
|
|
32970
|
+
type: 'google',
|
|
32971
|
+
isMapEdit: 0
|
|
32972
|
+
},
|
|
32973
|
+
signType: 'map'
|
|
32974
|
+
};
|
|
32975
|
+
|
|
32976
|
+
const countdownDefaultProps = {
|
|
32977
|
+
id: '1749545996934',
|
|
32978
|
+
pid: '',
|
|
32979
|
+
type: 'countdown',
|
|
32980
|
+
layerName: 'countdown',
|
|
32981
|
+
deadline: '2025-11-15 13:00:00',
|
|
32982
|
+
endOption: 'zero',
|
|
32983
|
+
endText: '',
|
|
32984
|
+
sign: true,
|
|
32985
|
+
language: 'th',
|
|
32986
|
+
direction: 'across',
|
|
32987
|
+
signSort: 7,
|
|
32988
|
+
showType: 'flip',
|
|
32989
|
+
showSize: 'middle',
|
|
32990
|
+
css: {
|
|
32991
|
+
borderWidth: 0,
|
|
32992
|
+
borderStyle: 'solid',
|
|
32993
|
+
borderColor: 'rgba(153, 153, 153, 1)',
|
|
32994
|
+
opacity: 1,
|
|
32995
|
+
fontSize: 20,
|
|
32996
|
+
color: 'rgba(255, 255, 255, 1)',
|
|
32997
|
+
backgroundColor: '#000000',
|
|
32998
|
+
width: 375,
|
|
32999
|
+
height: 85,
|
|
33000
|
+
borderRadius: 5,
|
|
33001
|
+
top: 214.5,
|
|
33002
|
+
left: 35,
|
|
33003
|
+
transform: 0,
|
|
33004
|
+
textAlign: 'center',
|
|
33005
|
+
animation2: 'fadeInLeft 1.5s ease 0.0s 1 normal backwards running',
|
|
33006
|
+
animation: 'fadeInLeft 1.5s ease 0.0s 1 normal backwards running'
|
|
33007
|
+
},
|
|
33008
|
+
properties: {
|
|
33009
|
+
visible: true,
|
|
33010
|
+
isLock: false,
|
|
33011
|
+
required: true,
|
|
33012
|
+
musicName: '',
|
|
33013
|
+
musicLink: '',
|
|
33014
|
+
musicHash: '',
|
|
33015
|
+
shadowSize: 0,
|
|
33016
|
+
shadowColor: '#999999',
|
|
33017
|
+
shadowX: 0,
|
|
33018
|
+
shadowY: 0,
|
|
33019
|
+
shadowBlur: 0,
|
|
33020
|
+
shadowPoint: 270,
|
|
33021
|
+
aniOrigin: 'default',
|
|
33022
|
+
animations: [
|
|
33023
|
+
{
|
|
33024
|
+
animate: 'fadeInLeft',
|
|
33025
|
+
count: 1,
|
|
33026
|
+
timing: 'ease',
|
|
33027
|
+
loop: false,
|
|
33028
|
+
delay: 0,
|
|
33029
|
+
duration: 1.5,
|
|
33030
|
+
name: '从左淡入',
|
|
33031
|
+
order: 'normal',
|
|
33032
|
+
type: 'normal',
|
|
33033
|
+
aniType: 'entry',
|
|
33034
|
+
allDelay: '0.0',
|
|
33035
|
+
id: 9504
|
|
33036
|
+
}
|
|
33037
|
+
],
|
|
33038
|
+
textAni: []
|
|
33039
|
+
},
|
|
33040
|
+
signType: 'time'
|
|
33041
|
+
};
|
|
33042
|
+
|
|
33043
|
+
const effectDefaultProps = {
|
|
33044
|
+
id: '1749564784798',
|
|
33045
|
+
pid: '',
|
|
33046
|
+
type: 'effect',
|
|
33047
|
+
layerName: 'effect',
|
|
33048
|
+
sign: false,
|
|
33049
|
+
signSort: 1,
|
|
33050
|
+
css: {
|
|
33051
|
+
width: 375,
|
|
33052
|
+
height: 595,
|
|
33053
|
+
left: 0,
|
|
33054
|
+
top: 52.5,
|
|
33055
|
+
opacity: 1,
|
|
33056
|
+
transform: 0
|
|
33057
|
+
},
|
|
33058
|
+
properties: {
|
|
33059
|
+
type: 'petal',
|
|
33060
|
+
speed: 'middle',
|
|
33061
|
+
count: 'middle',
|
|
33062
|
+
visible: true,
|
|
33063
|
+
isLock: false,
|
|
33064
|
+
animations: []
|
|
33065
|
+
}
|
|
33066
|
+
};
|
|
33067
|
+
|
|
33068
|
+
const shapeDefaultProps = {
|
|
33069
|
+
id: "1722563395007",
|
|
33070
|
+
pid: "",
|
|
33071
|
+
type: "shape",
|
|
33072
|
+
layerName: "形状3",
|
|
33073
|
+
sign: false,
|
|
33074
|
+
signSort: 1,
|
|
33075
|
+
overturnType: 0,
|
|
33076
|
+
css: {
|
|
33077
|
+
fontFamily: "kanit",
|
|
33078
|
+
fontSize: 12,
|
|
33079
|
+
opacity: 0.35,
|
|
33080
|
+
width: 303,
|
|
33081
|
+
height: 525,
|
|
33082
|
+
left: 35.632000000000005,
|
|
33083
|
+
top: 60,
|
|
33084
|
+
transform: 0,
|
|
33085
|
+
borderRadius: 0,
|
|
33086
|
+
borderWidth: 0,
|
|
33087
|
+
borderColor: "rgba(153, 153, 153, 1)",
|
|
33088
|
+
borderStyle: "solid",
|
|
33089
|
+
svgPathColor: ["rgba(255, 255, 255, 1)"],
|
|
33090
|
+
animation2: "fadeIn 3s ease 2.4s 1 normal backwards running",
|
|
33091
|
+
animation: "fadeIn 3s ease 2.4s 1 normal backwards running"
|
|
33092
|
+
},
|
|
33093
|
+
triggers: {
|
|
33094
|
+
event: "",
|
|
33095
|
+
link: "",
|
|
33096
|
+
go: "",
|
|
33097
|
+
phone: "",
|
|
33098
|
+
musicName: "",
|
|
33099
|
+
musicLink: "",
|
|
33100
|
+
musicHash: ""
|
|
33101
|
+
},
|
|
33102
|
+
properties: {
|
|
33103
|
+
visible: true,
|
|
33104
|
+
isLock: false,
|
|
33105
|
+
required: true,
|
|
33106
|
+
musicName: "",
|
|
33107
|
+
musicLink: "",
|
|
33108
|
+
musicHash: "",
|
|
33109
|
+
shadowSize: 0,
|
|
33110
|
+
shadowColor: "#999999",
|
|
33111
|
+
shadowX: 0,
|
|
33112
|
+
shadowY: 0,
|
|
33113
|
+
shadowBlur: 0,
|
|
33114
|
+
shadowPoint: 270,
|
|
33115
|
+
aniOrigin: "default",
|
|
33116
|
+
animations: [
|
|
33117
|
+
{
|
|
33118
|
+
animate: "fadeIn",
|
|
33119
|
+
count: 1,
|
|
33120
|
+
timing: "ease",
|
|
33121
|
+
loop: false,
|
|
33122
|
+
delay: 2.4,
|
|
33123
|
+
duration: 3,
|
|
33124
|
+
name: "淡入",
|
|
33125
|
+
order: "normal",
|
|
33126
|
+
type: "normal",
|
|
33127
|
+
aniType: "entry",
|
|
33128
|
+
allDelay: "2.4",
|
|
33129
|
+
id: 68742
|
|
33130
|
+
}
|
|
33131
|
+
],
|
|
33132
|
+
src: "https://h5cdn.unika.cc/static/assets/shape/shape-1.svg",
|
|
33133
|
+
textAni: []
|
|
33134
|
+
}
|
|
33135
|
+
};
|
|
33136
|
+
|
|
33137
|
+
const lottieDefaultProps = {
|
|
33138
|
+
id: '1640154752919',
|
|
33139
|
+
pid: '',
|
|
33140
|
+
type: 'lottie',
|
|
33141
|
+
layerName: 'lottie动画11',
|
|
33142
|
+
sign: false,
|
|
33143
|
+
loop: false,
|
|
33144
|
+
delay: 2,
|
|
33145
|
+
aniPath: 'https://h5cdn.unika.cc/static/lotties/wedding.json',
|
|
33146
|
+
css: {
|
|
33147
|
+
left: 35.5,
|
|
33148
|
+
top: 105,
|
|
33149
|
+
width: 305,
|
|
33150
|
+
height: 305,
|
|
33151
|
+
opacity: 1,
|
|
33152
|
+
transform: 0
|
|
33153
|
+
},
|
|
33154
|
+
properties: {
|
|
33155
|
+
visible: true,
|
|
33156
|
+
isLock: false
|
|
33157
|
+
}
|
|
33158
|
+
};
|
|
33159
|
+
|
|
33160
|
+
const videoDefaultProps = {
|
|
33161
|
+
id: '',
|
|
33162
|
+
pid: '',
|
|
33163
|
+
type: 'video',
|
|
33164
|
+
videoCodeOri: '',
|
|
33165
|
+
videoCode: 'https://youtu.be/ER1R3lFOQFg',
|
|
33166
|
+
layerName: 'video',
|
|
33167
|
+
sign: true,
|
|
33168
|
+
signSort: 5,
|
|
33169
|
+
videoStyle: '固定播放',
|
|
33170
|
+
videoUrl: '',
|
|
33171
|
+
imgUrl: '',
|
|
33172
|
+
playMode: 'click',
|
|
33173
|
+
playLoop: true,
|
|
33174
|
+
playControls: true,
|
|
33175
|
+
videoType: 1,
|
|
33176
|
+
fullScreen: false,
|
|
33177
|
+
overturnType: 0,
|
|
33178
|
+
css: {
|
|
33179
|
+
width: 350,
|
|
33180
|
+
height: 197,
|
|
33181
|
+
left: 12,
|
|
33182
|
+
top: 268.5,
|
|
33183
|
+
opacity: 1,
|
|
33184
|
+
borderRadius: 0,
|
|
33185
|
+
borderWidth: 0,
|
|
33186
|
+
borderStyle: 'solid',
|
|
33187
|
+
borderColor: 'rgba(153, 153, 153, 1)',
|
|
33188
|
+
transform: 0,
|
|
33189
|
+
recordImgWidth: 350,
|
|
33190
|
+
recordImgHeight: 197,
|
|
33191
|
+
recordBtnWidth: 60,
|
|
33192
|
+
recordBtnHeight: 60
|
|
33193
|
+
},
|
|
33194
|
+
triggers: {
|
|
33195
|
+
event: '',
|
|
33196
|
+
link: '',
|
|
33197
|
+
go: null,
|
|
33198
|
+
phone: '',
|
|
33199
|
+
musicName: '',
|
|
33200
|
+
musicLink: '',
|
|
33201
|
+
musicHash: ''
|
|
33202
|
+
},
|
|
33203
|
+
properties: {
|
|
33204
|
+
visible: true,
|
|
33205
|
+
isLock: false,
|
|
33206
|
+
required: true,
|
|
33207
|
+
musicName: '',
|
|
33208
|
+
musicLink: '',
|
|
33209
|
+
musicHash: '',
|
|
33210
|
+
shadowSize: 0,
|
|
33211
|
+
shadowColor: '#999999',
|
|
33212
|
+
shadowX: 0,
|
|
33213
|
+
shadowY: 0,
|
|
33214
|
+
shadowBlur: 0,
|
|
33215
|
+
shadowPoint: 270,
|
|
33216
|
+
aniOrigin: 'default',
|
|
33217
|
+
animations: [],
|
|
33218
|
+
src: 'https://h5cdn.unika.cc/static/img/uniComponents/video_button1.png',
|
|
33219
|
+
cover: 'https://h5cdn.unika.cc/static/img/uniComponents/logo.png',
|
|
33220
|
+
realW: 0,
|
|
33221
|
+
realH: 0,
|
|
33222
|
+
maskId: ''
|
|
33223
|
+
},
|
|
33224
|
+
originalUrl: '',
|
|
33225
|
+
crop: ''
|
|
33226
|
+
};
|
|
33227
|
+
|
|
33228
|
+
const callDefaultProps = {
|
|
33229
|
+
id: '1749136706168',
|
|
33230
|
+
pid: '',
|
|
33231
|
+
type: 'call',
|
|
33232
|
+
tel: '18888888888',
|
|
33233
|
+
btnText: '一键拨号',
|
|
33234
|
+
layerName: '拨号16',
|
|
33235
|
+
sign: true,
|
|
33236
|
+
signSort: 6,
|
|
33237
|
+
css: {
|
|
33238
|
+
borderWidth: 0,
|
|
33239
|
+
borderStyle: 'solid',
|
|
33240
|
+
borderColor: 'rgba(153, 153, 153, 1)',
|
|
33241
|
+
opacity: 1,
|
|
33242
|
+
fontSize: 16,
|
|
33243
|
+
color: 'rgba(255, 255, 255, 1)',
|
|
33244
|
+
backgroundColor: 'rgb(33, 147, 255)',
|
|
33245
|
+
width: 120,
|
|
33246
|
+
height: 40,
|
|
33247
|
+
borderRadius: 10,
|
|
33248
|
+
top: 122,
|
|
33249
|
+
left: 155,
|
|
33250
|
+
transform: 0,
|
|
33251
|
+
},
|
|
33252
|
+
properties: {
|
|
33253
|
+
visible: true,
|
|
33254
|
+
isLock: false,
|
|
33255
|
+
required: true,
|
|
33256
|
+
musicName: '',
|
|
33257
|
+
musicLink: '',
|
|
33258
|
+
musicHash: '',
|
|
33259
|
+
shadowSize: 0,
|
|
33260
|
+
shadowColor: '#999999',
|
|
33261
|
+
shadowX: 0,
|
|
33262
|
+
shadowY: 0,
|
|
33263
|
+
shadowBlur: 0,
|
|
33264
|
+
shadowPoint: 270,
|
|
33265
|
+
aniOrigin: 'default',
|
|
33266
|
+
animations: [],
|
|
33267
|
+
}
|
|
33268
|
+
};
|
|
33269
|
+
|
|
33270
|
+
const buttonDefaultProps = {
|
|
33271
|
+
id: '1749136706168',
|
|
33272
|
+
pid: '',
|
|
33273
|
+
type: 'button',
|
|
33274
|
+
btnText: 'Button',
|
|
33275
|
+
layerName: 'button',
|
|
33276
|
+
sign: true,
|
|
33277
|
+
signSort: 6,
|
|
33278
|
+
css: {
|
|
33279
|
+
borderWidth: 0,
|
|
33280
|
+
borderStyle: 'solid',
|
|
33281
|
+
borderColor: 'rgba(153, 153, 153, 1)',
|
|
33282
|
+
opacity: 1,
|
|
33283
|
+
fontSize: 16,
|
|
33284
|
+
color: 'rgba(255, 255, 255, 1)',
|
|
33285
|
+
backgroundColor: 'rgb(33, 147, 255)',
|
|
33286
|
+
width: 120,
|
|
33287
|
+
height: 40,
|
|
33288
|
+
borderRadius: 10,
|
|
33289
|
+
top: 122,
|
|
33290
|
+
left: 155,
|
|
33291
|
+
transform: 0
|
|
33292
|
+
},
|
|
33293
|
+
triggers: {
|
|
33294
|
+
event: 'link',
|
|
33295
|
+
link: 'http://www.baidu.com',
|
|
33296
|
+
go: 4,
|
|
33297
|
+
phone: '0622222222',
|
|
33298
|
+
musicName: '告白气球',
|
|
33299
|
+
musicLink: 'https://amp3.hunbei.com/mp3/qiniu/gaobaiqiqiu.mp3',
|
|
33300
|
+
musicHash: '',
|
|
33301
|
+
music_id: 2247,
|
|
33302
|
+
cat: 'sys',
|
|
33303
|
+
originalUrl: '',
|
|
33304
|
+
crop: null,
|
|
33305
|
+
},
|
|
33306
|
+
properties: {
|
|
33307
|
+
visible: true,
|
|
33308
|
+
isLock: false,
|
|
33309
|
+
required: true,
|
|
33310
|
+
musicName: '',
|
|
33311
|
+
musicLink: '',
|
|
33312
|
+
musicHash: '',
|
|
33313
|
+
shadowSize: 0,
|
|
33314
|
+
shadowColor: '#999999',
|
|
33315
|
+
shadowX: 0,
|
|
33316
|
+
shadowY: 0,
|
|
33317
|
+
shadowBlur: 0,
|
|
33318
|
+
shadowPoint: 270,
|
|
33319
|
+
aniOrigin: 'default',
|
|
33320
|
+
animations: [],
|
|
33321
|
+
},
|
|
33322
|
+
};
|
|
33323
|
+
|
|
33324
|
+
const formInputDefaultProps = {
|
|
33325
|
+
id: 'id1',
|
|
33326
|
+
pid: '',
|
|
33327
|
+
type: 'form-input',
|
|
33328
|
+
title: '姓名',
|
|
33329
|
+
inputType: 'text',
|
|
33330
|
+
layerName: '输入框',
|
|
33331
|
+
sign: false,
|
|
33332
|
+
signSort: 1,
|
|
33333
|
+
css: {
|
|
33334
|
+
fontFamily: '微软雅黑',
|
|
33335
|
+
fontSize: 14,
|
|
33336
|
+
color: '#6e6e6e',
|
|
33337
|
+
width: 235,
|
|
33338
|
+
height: 40,
|
|
33339
|
+
left: 70,
|
|
33340
|
+
top: 330,
|
|
33341
|
+
backgroundColor: '#fff',
|
|
33342
|
+
borderRadius: 2,
|
|
33343
|
+
borderColor: 'rgba(153, 153, 153, 1)',
|
|
33344
|
+
borderWidth: 1,
|
|
33345
|
+
borderStyle: 'solid',
|
|
33346
|
+
transform: 0,
|
|
33347
|
+
opacity: 1
|
|
33348
|
+
},
|
|
33349
|
+
properties: {
|
|
33350
|
+
visible: true,
|
|
33351
|
+
isLock: false,
|
|
33352
|
+
required: true,
|
|
33353
|
+
musicName: '',
|
|
33354
|
+
musicLink: '',
|
|
33355
|
+
musicHash: '',
|
|
33356
|
+
shadowSize: 0,
|
|
33357
|
+
shadowColor: '#999999',
|
|
33358
|
+
shadowX: 0,
|
|
33359
|
+
shadowY: 0,
|
|
33360
|
+
shadowBlur: 0,
|
|
33361
|
+
shadowPoint: 270,
|
|
33362
|
+
aniOrigin: 'default',
|
|
33363
|
+
animations: []
|
|
33364
|
+
}
|
|
33365
|
+
};
|
|
33366
|
+
|
|
33367
|
+
const formSubmitDefaultProps = {
|
|
33368
|
+
id: 'id4',
|
|
33369
|
+
pid: '',
|
|
33370
|
+
btName: '提交',
|
|
33371
|
+
type: 'form-submit',
|
|
33372
|
+
layerName: 'submitFormButton',
|
|
33373
|
+
sign: false,
|
|
33374
|
+
signSort: 1,
|
|
33375
|
+
subType: 'allPage',
|
|
33376
|
+
succEvent: 'alert',
|
|
33377
|
+
succAlert: '提交成功,感谢您的参与!',
|
|
33378
|
+
succUrl: '',
|
|
33379
|
+
css: {
|
|
33380
|
+
width: 235,
|
|
33381
|
+
height: 40,
|
|
33382
|
+
lineHeight: 1,
|
|
33383
|
+
color: '#fff',
|
|
33384
|
+
fontSize: 16,
|
|
33385
|
+
left: 70,
|
|
33386
|
+
top: 480,
|
|
33387
|
+
borderRadius: 4,
|
|
33388
|
+
borderColor: 'rgba(153, 153, 153, 1)',
|
|
33389
|
+
borderWidth: 0,
|
|
33390
|
+
borderStyle: 'solid',
|
|
33391
|
+
backgroundColor: '#2687f1',
|
|
33392
|
+
textAlign: 'center',
|
|
33393
|
+
transform: 0,
|
|
33394
|
+
opacity: 1
|
|
33395
|
+
},
|
|
33396
|
+
properties: {
|
|
33397
|
+
visible: true,
|
|
33398
|
+
isLock: false,
|
|
33399
|
+
required: true,
|
|
33400
|
+
musicName: '',
|
|
33401
|
+
musicLink: '',
|
|
33402
|
+
musicHash: '',
|
|
33403
|
+
shadowSize: 0,
|
|
33404
|
+
shadowColor: '#999999',
|
|
33405
|
+
shadowX: 0,
|
|
33406
|
+
shadowY: 0,
|
|
33407
|
+
shadowBlur: 0,
|
|
33408
|
+
shadowPoint: 270,
|
|
33409
|
+
aniOrigin: 'default',
|
|
33410
|
+
animations: []
|
|
33411
|
+
}
|
|
33412
|
+
};
|
|
33413
|
+
|
|
32700
33414
|
/** 送呈快捷短语 — 开发/编辑器 fallback;生产环境由 biz-editor-server API 提供 */
|
|
32701
33415
|
const INVITE_QUICK_PHRASES = [
|
|
32702
33416
|
'邀请您一道分享我们的喜悦',
|
|
@@ -32766,4 +33480,4 @@ var index = {
|
|
|
32766
33480
|
install
|
|
32767
33481
|
};
|
|
32768
33482
|
|
|
32769
|
-
export { INVITE_COVER_TEMPLATES, INVITE_QUICK_PHRASES, script$g as UniBarrage, script$h as UniButton, script$n as UniCalendar, script$k as UniCall, script$m as UniCountdown, script$j as UniEffect, script$a as UniFormContainer, script$f as UniFormInput, script$b as UniFormMultiple, script$d as UniFormSelect, script$c as UniFormSingle, script$e as UniFormSubmit, script$r as UniImage, script$1 as UniInvite, script$i as UniLottie, script$l as UniMap, script$5 as UniMenu, script$6 as UniMenuMap, script$9 as UniMenuReceipt, script$7 as UniMenuTel, script$8 as UniMenuVideo, script$p as UniMusic, script$q as UniShape, script$s as UniText, script$o as UniVideo, script$4 as UniWatermark, script as WorkRender, script$3 as WorkRenderH5, script$2 as WorkRenderLong, applyInviteStateToGlobal, applyTemplateToInviteItem, applyTextAnimation, applyTextAnimationsForPage, index as default, getInviteDismissDelay, getInviteRenderFromGlobal, getInviteTemplateById, install, inviteDefaultProps, isValidInviteItem, resolveInviteRenderData, restoreTextAnimation, useInviteManager };
|
|
33483
|
+
export { INVITE_COVER_TEMPLATES, INVITE_QUICK_PHRASES, script$g as UniBarrage, script$h as UniButton, script$n as UniCalendar, script$k as UniCall, script$m as UniCountdown, script$j as UniEffect, script$a as UniFormContainer, script$f as UniFormInput, script$b as UniFormMultiple, script$d as UniFormSelect, script$c as UniFormSingle, script$e as UniFormSubmit, script$r as UniImage, script$1 as UniInvite, script$i as UniLottie, script$l as UniMap, script$5 as UniMenu, script$6 as UniMenuMap, script$9 as UniMenuReceipt, script$7 as UniMenuTel, script$8 as UniMenuVideo, script$p as UniMusic, script$q as UniShape, script$s as UniText, script$o as UniVideo, script$4 as UniWatermark, script as WorkRender, script$3 as WorkRenderH5, script$2 as WorkRenderLong, applyInviteStateToGlobal, applyTemplateToInviteItem, applyTextAnimation, applyTextAnimationsForPage, buttonDefaultProps, calendarDefaultProps, callDefaultProps, countdownDefaultProps, index as default, effectDefaultProps, formInputDefaultProps, formSubmitDefaultProps, getInviteDismissDelay, getInviteRenderFromGlobal, getInviteTemplateById, install, inviteDefaultProps, isValidInviteItem, lottieDefaultProps, mapDefaultProps, musicDefaultProps, resolveInviteRenderData, restoreTextAnimation, shapeDefaultProps, useInviteManager, videoDefaultProps };
|