ts-glitter 14.0.4 → 14.0.5

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/lowcode/Entry.js CHANGED
@@ -70,7 +70,7 @@ export class Entry {
70
70
  }
71
71
  window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
72
72
  console.log(`Entry-time:`, window.renderClock.stop());
73
- glitter.share.editerVersion = 'V_14.0.4';
73
+ glitter.share.editerVersion = 'V_14.0.5';
74
74
  glitter.share.start = new Date();
75
75
  const vm = {
76
76
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -72,7 +72,7 @@ export class Entry {
72
72
  }
73
73
  (window as any).renderClock = (window as any).renderClock ?? clockF();
74
74
  console.log(`Entry-time:`, (window as any).renderClock.stop());
75
- glitter.share.editerVersion = 'V_14.0.4';
75
+ glitter.share.editerVersion = 'V_14.0.5';
76
76
  glitter.share.start = new Date();
77
77
  const vm: {
78
78
  appConfig: any;
@@ -17,6 +17,7 @@ import { MenusSetting } from '../cms-plugin/menus-setting.js';
17
17
  import { BaseApi } from '../glitterBundle/api/base.js';
18
18
  import { BgProduct } from './bg-product.js';
19
19
  import { CheckInput } from '../modules/checkInput.js';
20
+ import { Template_refer } from "../cms-plugin/template_refer.js";
20
21
  const html = String.raw;
21
22
  export class BgBlog {
22
23
  static contentManager(gvc, type = 'list', callback = () => {
@@ -475,8 +476,12 @@ export class BgBlog {
475
476
  style="height: 28px;width: 75px;gap:5px;"
476
477
  onclick="${gvc.event(() => {
477
478
  if (dd.tag === 'empty') {
478
- const a = [];
479
- a.name = '空白頁面';
479
+ const a = [
480
+ Template_refer.bigTitle(page_tab === 'hidden' ? `隱形賣場` : `一頁商店`),
481
+ Template_refer.productList(),
482
+ Template_refer.checkoutPage()
483
+ ];
484
+ a.name = page_tab === 'hidden' ? `隱形賣場` : `一頁商店`;
480
485
  callback(a);
481
486
  }
482
487
  else {
@@ -492,140 +497,7 @@ export class BgBlog {
492
497
  res.response.result[0].config.name = dd.template_config.name;
493
498
  res.response.result[0].config.splice(0, 1);
494
499
  res.response.result[0].config.splice(res.response.result[0].config.length - 1, 1);
495
- res.response.result[0].config.push({
496
- "id": "sas5s2s0s1s6s1sf",
497
- "js": "./official_view_component/official.js",
498
- "css": {
499
- "class": {},
500
- "style": {}
501
- },
502
- "data": {
503
- "refer_app": "shop_template_black_style",
504
- "tag": "sy01_checkout_detail",
505
- "list": [],
506
- "carryData": {},
507
- "refer_form_data": {
508
- "carry_info": [{
509
- "index": 0,
510
- "title": "預購商品大約7~21個工作天",
511
- "c_v_id": "s1s9sds9s4s2s4sa",
512
- "toggle": false
513
- }, {
514
- "index": 1,
515
- "title": "現貨商品將於下單後隔天寄出(不包含例假日)",
516
- "c_v_id": "s7s9sbsas4s2s0sc",
517
- "toggle": false
518
- }, {
519
- "index": 2,
520
- "title": "如訂單量較大或是有缺貨狀況,寄出時間將不一定,敬請見諒",
521
- "c_v_id": "s9sbs4sasds6s7s9",
522
- "toggle": false
523
- }, {
524
- "index": 3,
525
- "title": "寄出後大概2至3天會送達指定地點(週末不配送)",
526
- "c_v_id": "s6s4s6s1s4s0s9s9",
527
- "toggle": false
528
- }]
529
- },
530
- "_style_refer_global": { "index": "0" },
531
- "_style_refer": "custom",
532
- "elem": "div",
533
- "inner": "",
534
- "attr": [],
535
- "_padding": {},
536
- "_margin": {},
537
- "_border": {},
538
- "_max_width": "",
539
- "_gap": "",
540
- "_background": "",
541
- "_other": {},
542
- "_radius": "",
543
- "_reverse": "false",
544
- "_hor_position": "center",
545
- "_background_setting": { "type": "none" }
546
- },
547
- "type": "component",
548
- "class": "w-100",
549
- "index": 0,
550
- "label": "一頁購物",
551
- "style": "",
552
- "bundle": {},
553
- "global": [],
554
- "toggle": false,
555
- "stylist": [],
556
- "dataType": "static",
557
- "style_from": "code",
558
- "classDataType": "static",
559
- "preloadEvenet": {},
560
- "share": {},
561
- "refreshAllParameter": {},
562
- "editor_bridge": {},
563
- "refreshComponentParameter": {},
564
- "list": [],
565
- "version": "v2",
566
- "storage": {},
567
- "mobile": {
568
- "id": "sas5s2s0s1s6s1sf",
569
- "js": "./official_view_component/official.js",
570
- "css": {
571
- "class": {},
572
- "style": {}
573
- },
574
- "data": { "refer_app": "shop_template_black_style" },
575
- "type": "component",
576
- "class": "w-100",
577
- "index": 0,
578
- "label": "一頁購物",
579
- "style": "",
580
- "global": [],
581
- "toggle": false,
582
- "stylist": [],
583
- "dataType": "static",
584
- "style_from": "code",
585
- "classDataType": "static",
586
- "preloadEvenet": {},
587
- "refreshAllParameter": {},
588
- "editor_bridge": {},
589
- "refreshComponentParameter": {},
590
- "list": [],
591
- "version": "v2",
592
- "mobile_editable": [],
593
- "desktop_editable": [],
594
- "refer": "custom"
595
- },
596
- "mobile_editable": [],
597
- "desktop": {
598
- "id": "sas5s2s0s1s6s1sf",
599
- "js": "./official_view_component/official.js",
600
- "css": {
601
- "class": {},
602
- "style": {}
603
- },
604
- "data": { "refer_app": "shop_template_black_style" },
605
- "type": "component",
606
- "class": "w-100",
607
- "index": 0,
608
- "label": "一頁購物",
609
- "style": "",
610
- "global": [],
611
- "toggle": false,
612
- "stylist": [],
613
- "dataType": "static",
614
- "style_from": "code",
615
- "classDataType": "static",
616
- "preloadEvenet": {},
617
- "refreshAllParameter": {},
618
- "editor_bridge": {},
619
- "refreshComponentParameter": {},
620
- "list": [],
621
- "version": "v2",
622
- "mobile_editable": [],
623
- "desktop_editable": [],
624
- "refer": "custom"
625
- },
626
- "desktop_editable": [],
627
- "container_fonts": 0
628
- });
500
+ res.response.result[0].config.push(Template_refer.checkoutPage());
629
501
  callback(res.response.result[0].config);
630
502
  });
631
503
  }
@@ -9,6 +9,7 @@ import {MenusSetting} from '../cms-plugin/menus-setting.js';
9
9
  import {BaseApi} from '../glitterBundle/api/base.js';
10
10
  import {BgProduct, OptionsItem} from './bg-product.js';
11
11
  import {CheckInput} from '../modules/checkInput.js';
12
+ import {Template_refer} from "../cms-plugin/template_refer.js";
12
13
 
13
14
  interface MenuItem {
14
15
  link: string;
@@ -515,8 +516,12 @@ export class BgBlog {
515
516
  style="height: 28px;width: 75px;gap:5px;"
516
517
  onclick="${gvc.event(() => {
517
518
  if (dd.tag === 'empty') {
518
- const a: any = [];
519
- (a as any).name = '空白頁面';
519
+ const a: any = [
520
+ Template_refer.bigTitle(page_tab==='hidden' ? `隱形賣場`:`一頁商店`),
521
+ Template_refer.productList(),
522
+ Template_refer.checkoutPage()
523
+ ];
524
+ (a as any).name = page_tab==='hidden' ? `隱形賣場`:`一頁商店`;
520
525
  callback(a);
521
526
  } else {
522
527
  if (dd._config) {
@@ -532,140 +537,7 @@ export class BgBlog {
532
537
  res.response.result[0].config.name = dd.template_config.name;
533
538
  res.response.result[0].config.splice(0, 1)
534
539
  res.response.result[0].config.splice(res.response.result[0].config.length - 1, 1)
535
- res.response.result[0].config.push({
536
- "id": "sas5s2s0s1s6s1sf",
537
- "js": "./official_view_component/official.js",
538
- "css": {
539
- "class": {},
540
- "style": {}
541
- },
542
- "data": {
543
- "refer_app": "shop_template_black_style",
544
- "tag": "sy01_checkout_detail",
545
- "list": [],
546
- "carryData": {},
547
- "refer_form_data": {
548
- "carry_info": [{
549
- "index": 0,
550
- "title": "預購商品大約7~21個工作天",
551
- "c_v_id": "s1s9sds9s4s2s4sa",
552
- "toggle": false
553
- }, {
554
- "index": 1,
555
- "title": "現貨商品將於下單後隔天寄出(不包含例假日)",
556
- "c_v_id": "s7s9sbsas4s2s0sc",
557
- "toggle": false
558
- }, {
559
- "index": 2,
560
- "title": "如訂單量較大或是有缺貨狀況,寄出時間將不一定,敬請見諒",
561
- "c_v_id": "s9sbs4sasds6s7s9",
562
- "toggle": false
563
- }, {
564
- "index": 3,
565
- "title": "寄出後大概2至3天會送達指定地點(週末不配送)",
566
- "c_v_id": "s6s4s6s1s4s0s9s9",
567
- "toggle": false
568
- }]
569
- },
570
- "_style_refer_global": {"index": "0"},
571
- "_style_refer": "custom",
572
- "elem": "div",
573
- "inner": "",
574
- "attr": [],
575
- "_padding": {},
576
- "_margin": {},
577
- "_border": {},
578
- "_max_width": "",
579
- "_gap": "",
580
- "_background": "",
581
- "_other": {},
582
- "_radius": "",
583
- "_reverse": "false",
584
- "_hor_position": "center",
585
- "_background_setting": {"type": "none"}
586
- },
587
- "type": "component",
588
- "class": "w-100",
589
- "index": 0,
590
- "label": "一頁購物",
591
- "style": "",
592
- "bundle": {},
593
- "global": [],
594
- "toggle": false,
595
- "stylist": [],
596
- "dataType": "static",
597
- "style_from": "code",
598
- "classDataType": "static",
599
- "preloadEvenet": {},
600
- "share": {},
601
- "refreshAllParameter": {},
602
- "editor_bridge": {},
603
- "refreshComponentParameter": {},
604
- "list": [],
605
- "version": "v2",
606
- "storage": {},
607
- "mobile": {
608
- "id": "sas5s2s0s1s6s1sf",
609
- "js": "./official_view_component/official.js",
610
- "css": {
611
- "class": {},
612
- "style": {}
613
- },
614
- "data": {"refer_app": "shop_template_black_style"},
615
- "type": "component",
616
- "class": "w-100",
617
- "index": 0,
618
- "label": "一頁購物",
619
- "style": "",
620
- "global": [],
621
- "toggle": false,
622
- "stylist": [],
623
- "dataType": "static",
624
- "style_from": "code",
625
- "classDataType": "static",
626
- "preloadEvenet": {},
627
- "refreshAllParameter": {},
628
- "editor_bridge": {},
629
- "refreshComponentParameter": {},
630
- "list": [],
631
- "version": "v2",
632
- "mobile_editable": [],
633
- "desktop_editable": [],
634
- "refer": "custom"
635
- },
636
- "mobile_editable": [],
637
- "desktop": {
638
- "id": "sas5s2s0s1s6s1sf",
639
- "js": "./official_view_component/official.js",
640
- "css": {
641
- "class": {},
642
- "style": {}
643
- },
644
- "data": {"refer_app": "shop_template_black_style"},
645
- "type": "component",
646
- "class": "w-100",
647
- "index": 0,
648
- "label": "一頁購物",
649
- "style": "",
650
- "global": [],
651
- "toggle": false,
652
- "stylist": [],
653
- "dataType": "static",
654
- "style_from": "code",
655
- "classDataType": "static",
656
- "preloadEvenet": {},
657
- "refreshAllParameter": {},
658
- "editor_bridge": {},
659
- "refreshComponentParameter": {},
660
- "list": [],
661
- "version": "v2",
662
- "mobile_editable": [],
663
- "desktop_editable": [],
664
- "refer": "custom"
665
- },
666
- "desktop_editable": [],
667
- "container_fonts": 0
668
- })
540
+ res.response.result[0].config.push(Template_refer.checkoutPage())
669
541
  callback(res.response.result[0].config);
670
542
  });
671
543
  }
@@ -0,0 +1,398 @@
1
+ export class Template_refer {
2
+ static checkoutPage() {
3
+ return {
4
+ "id": "sas5s2s0s1s6s1sf",
5
+ "js": "./official_view_component/official.js",
6
+ "css": {
7
+ "class": {},
8
+ "style": {}
9
+ },
10
+ "data": {
11
+ "refer_app": "shop_template_black_style",
12
+ "tag": "sy01_checkout_detail",
13
+ "list": [],
14
+ "carryData": {},
15
+ "refer_form_data": {
16
+ "carry_info": [{
17
+ "index": 0,
18
+ "title": "預購商品大約7~21個工作天",
19
+ "c_v_id": "s1s9sds9s4s2s4sa",
20
+ "toggle": false
21
+ }, {
22
+ "index": 1,
23
+ "title": "現貨商品將於下單後隔天寄出(不包含例假日)",
24
+ "c_v_id": "s7s9sbsas4s2s0sc",
25
+ "toggle": false
26
+ }, {
27
+ "index": 2,
28
+ "title": "如訂單量較大或是有缺貨狀況,寄出時間將不一定,敬請見諒",
29
+ "c_v_id": "s9sbs4sasds6s7s9",
30
+ "toggle": false
31
+ }, {
32
+ "index": 3,
33
+ "title": "寄出後大概2至3天會送達指定地點(週末不配送)",
34
+ "c_v_id": "s6s4s6s1s4s0s9s9",
35
+ "toggle": false
36
+ }]
37
+ },
38
+ "_style_refer_global": { "index": "0" },
39
+ "_style_refer": "custom",
40
+ "elem": "div",
41
+ "inner": "",
42
+ "attr": [],
43
+ "_padding": {},
44
+ "_margin": {},
45
+ "_border": {},
46
+ "_max_width": "",
47
+ "_gap": "",
48
+ "_background": "",
49
+ "_other": {},
50
+ "_radius": "",
51
+ "_reverse": "false",
52
+ "_hor_position": "center",
53
+ "_background_setting": { "type": "none" }
54
+ },
55
+ "type": "component",
56
+ "class": "w-100",
57
+ "index": 0,
58
+ "label": "一頁購物",
59
+ "style": "",
60
+ "bundle": {},
61
+ "global": [],
62
+ "toggle": false,
63
+ "stylist": [],
64
+ "dataType": "static",
65
+ "style_from": "code",
66
+ "classDataType": "static",
67
+ "preloadEvenet": {},
68
+ "share": {},
69
+ "refreshAllParameter": {},
70
+ "editor_bridge": {},
71
+ "refreshComponentParameter": {},
72
+ "list": [],
73
+ "version": "v2",
74
+ "storage": {},
75
+ "mobile": {
76
+ "id": "sas5s2s0s1s6s1sf",
77
+ "js": "./official_view_component/official.js",
78
+ "css": {
79
+ "class": {},
80
+ "style": {}
81
+ },
82
+ "data": { "refer_app": "shop_template_black_style" },
83
+ "type": "component",
84
+ "class": "w-100",
85
+ "index": 0,
86
+ "label": "一頁購物",
87
+ "style": "",
88
+ "global": [],
89
+ "toggle": false,
90
+ "stylist": [],
91
+ "dataType": "static",
92
+ "style_from": "code",
93
+ "classDataType": "static",
94
+ "preloadEvenet": {},
95
+ "refreshAllParameter": {},
96
+ "editor_bridge": {},
97
+ "refreshComponentParameter": {},
98
+ "list": [],
99
+ "version": "v2",
100
+ "mobile_editable": [],
101
+ "desktop_editable": [],
102
+ "refer": "custom"
103
+ },
104
+ "mobile_editable": [],
105
+ "desktop": {
106
+ "id": "sas5s2s0s1s6s1sf",
107
+ "js": "./official_view_component/official.js",
108
+ "css": {
109
+ "class": {},
110
+ "style": {}
111
+ },
112
+ "data": { "refer_app": "shop_template_black_style" },
113
+ "type": "component",
114
+ "class": "w-100",
115
+ "index": 0,
116
+ "label": "一頁購物",
117
+ "style": "",
118
+ "global": [],
119
+ "toggle": false,
120
+ "stylist": [],
121
+ "dataType": "static",
122
+ "style_from": "code",
123
+ "classDataType": "static",
124
+ "preloadEvenet": {},
125
+ "refreshAllParameter": {},
126
+ "editor_bridge": {},
127
+ "refreshComponentParameter": {},
128
+ "list": [],
129
+ "version": "v2",
130
+ "mobile_editable": [],
131
+ "desktop_editable": [],
132
+ "refer": "custom"
133
+ },
134
+ "desktop_editable": [],
135
+ "container_fonts": 0
136
+ };
137
+ }
138
+ static productList() {
139
+ return {
140
+ "id": "s1scs1s7sfses4s9",
141
+ "js": "./official_view_component/official.js",
142
+ "css": { "class": {}, "style": {} },
143
+ "data": {
144
+ "tag": "SY00-normal-products",
145
+ "_gap": "",
146
+ "attr": [],
147
+ "elem": "div",
148
+ "list": [],
149
+ "inner": "",
150
+ "_other": {},
151
+ "_border": {},
152
+ "_margin": {},
153
+ "_radius": "",
154
+ "_padding": { "top": "0", "left": "10", "right": "10", "bottom": "0" },
155
+ "_reverse": "false",
156
+ "carryData": {},
157
+ "refer_app": "shop_template_black_style",
158
+ "_max_width": "1200",
159
+ "_background": "",
160
+ "_style_refer": "custom",
161
+ "_hor_position": "center",
162
+ "refer_form_data": {
163
+ "list": [],
164
+ "more": "./?page=all_product",
165
+ "count": "50",
166
+ "list2": [{ "toggle": true, "product2dds": 301 }, { "toggle": true, "product2dds": 294 }],
167
+ "title": "本週熱門銷售排行",
168
+ "distance": {
169
+ "toggle": true,
170
+ "margin_pc": { "top": "0", "left": "0", "right": "0", "bottom": "0", "toggle": true },
171
+ "padding_pc": { "toggle": false },
172
+ "margin_phone": { "toggle": false },
173
+ "padding_phone": {}
174
+ },
175
+ "font_size": "24",
176
+ "font_color": "#000000",
177
+ "more_title": "查看更多",
178
+ "button_color": "#ffffff",
179
+ "mobile_count": "2",
180
+ "desktop_count": "4",
181
+ "product_select": { "value": [], "select": "product" },
182
+ "button_bg_color": "#000000",
183
+ "r_1714145557038": []
184
+ },
185
+ "_background_setting": { "type": "none" },
186
+ "_style_refer_global": { "index": "0" }
187
+ },
188
+ "list": [],
189
+ "type": "component",
190
+ "class": "w-100",
191
+ "index": 4,
192
+ "label": "商品列表",
193
+ "style": "",
194
+ "global": [],
195
+ "mobile": {
196
+ "data": { "refer_app": "shop_template_black_style", "refer_form_data": { "desktop_count": "2" } },
197
+ "refer": "custom"
198
+ },
199
+ "toggle": true,
200
+ "desktop": {
201
+ "id": "s1scs1s7sfses4s9",
202
+ "js": "./official_view_component/official.js",
203
+ "css": { "class": {}, "style": {} },
204
+ "data": { "refer_app": "shop_template_black_style", "refer_form_data": {} },
205
+ "list": [],
206
+ "type": "component",
207
+ "class": "w-100",
208
+ "index": 4,
209
+ "label": "商品列表",
210
+ "style": "",
211
+ "global": [],
212
+ "toggle": true,
213
+ "stylist": [],
214
+ "version": "v2",
215
+ "visible": true,
216
+ "dataType": "static",
217
+ "style_from": "code",
218
+ "classDataType": "static",
219
+ "editor_bridge": {},
220
+ "preloadEvenet": {},
221
+ "container_fonts": 0,
222
+ "mobile_editable": ["desktop_count"],
223
+ "desktop_editable": [],
224
+ "refreshAllParameter": {},
225
+ "refreshComponentParameter": {},
226
+ "refer": "custom"
227
+ },
228
+ "stylist": [],
229
+ "version": "v2",
230
+ "visible": true,
231
+ "dataType": "static",
232
+ "style_from": "code",
233
+ "classDataType": "static",
234
+ "editor_bridge": {},
235
+ "preloadEvenet": {},
236
+ "container_fonts": 0,
237
+ "mobile_editable": ["desktop_count"],
238
+ "desktop_editable": [],
239
+ "refreshAllParameter": {},
240
+ "refreshComponentParameter": {},
241
+ "formData": {}
242
+ };
243
+ }
244
+ static bigTitle(title) {
245
+ return {
246
+ "id": "s4s1s2s2s9s6s7sd",
247
+ "js": "./official_view_component/official.js",
248
+ "css": { "class": {}, "style": {} },
249
+ "data": {
250
+ "refer_app": "shop_template_black_style",
251
+ "tag": "basic-title",
252
+ "list": [],
253
+ "carryData": {},
254
+ "refer_form_data": {
255
+ "kkw": "./?page=index",
256
+ "size": "40",
257
+ "color": {
258
+ "id": "0",
259
+ "title": "@{{theme_color.0.title}}",
260
+ "content": "@{{theme_color.0.content}}",
261
+ "background": "@{{theme_color.0.background}}",
262
+ "solid-button-bg": "@{{theme_color.0.solid-button-bg}}",
263
+ "border-button-bg": "@{{theme_color.0.border-button-bg}}",
264
+ "solid-button-text": "@{{theme_color.0.solid-button-text}}",
265
+ "border-button-text": "@{{theme_color.0.border-button-text}}"
266
+ },
267
+ "title": title,
268
+ "margin": { "top": "10", "left": "7", "right": "9", "bottom": "8", "toggle": true },
269
+ "weight": "700",
270
+ "import_": "false",
271
+ "justify": "center",
272
+ "padding": { "top": "20", "left": "14", "right": "18", "bottom": "16", "toggle": true },
273
+ "size_pc": "40",
274
+ "distance": {
275
+ "toggle": true,
276
+ "margin_pc": { "toggle": true },
277
+ "padding_pc": { "toggle": true },
278
+ "margin_phone": { "toggle": true },
279
+ "padding_phone": { "toggle": true }
280
+ },
281
+ "margin_pc": { "top": "50", "left": "0", "right": "0", "bottom": "50", "toggle": false },
282
+ "padding_pc": { "top": "0", "left": "0", "right": "0", "bottom": "0", "toggle": false },
283
+ "size_phone": "28",
284
+ "theme_color": {
285
+ "id": "0",
286
+ "title": "@{{theme_color.0.title}}",
287
+ "content": "@{{theme_color.0.content}}",
288
+ "background": "@{{theme_color.0.background}}",
289
+ "solid-button-bg": "@{{theme_color.0.solid-button-bg}}",
290
+ "border-button-bg": "@{{theme_color.0.border-button-bg}}",
291
+ "solid-button-text": "@{{theme_color.0.solid-button-text}}",
292
+ "border-button-text": "@{{theme_color.0.border-button-text}}"
293
+ },
294
+ "margin_phone": { "top": "40", "left": "0", "right": "0", "bottom": "40", "toggle": false },
295
+ "padding_phone": { "top": "-27", "left": "0", "right": "0", "bottom": "0", "toggle": false },
296
+ "r_1716801819158": {},
297
+ "r_1718616868830": { "type": "image", "value": "" },
298
+ "r_1718616877262": { "type": "image", "value": "" },
299
+ "r_1718616885960": { "type": "image", "value": "" }
300
+ },
301
+ "_style_refer_global": { "index": "0" },
302
+ "_style_refer": "custom",
303
+ "elem": "div",
304
+ "inner": "",
305
+ "attr": [],
306
+ "_padding": { "top": "50", "right": "0", "bottom": "50", "left": "0" },
307
+ "_margin": {},
308
+ "_border": {},
309
+ "_max_width": "",
310
+ "_gap": "",
311
+ "_background": "",
312
+ "_other": {},
313
+ "_radius": "",
314
+ "_reverse": "false",
315
+ "_hor_position": "center",
316
+ "_background_setting": { "type": "none" }
317
+ },
318
+ "type": "component",
319
+ "class": "w-100",
320
+ "index": 0,
321
+ "label": "標題",
322
+ "style": "",
323
+ "bundle": {},
324
+ "global": [],
325
+ "toggle": false,
326
+ "stylist": [],
327
+ "dataType": "static",
328
+ "style_from": "code",
329
+ "classDataType": "static",
330
+ "preloadEvenet": {},
331
+ "share": {},
332
+ "formData": {},
333
+ "refreshAllParameter": {},
334
+ "editor_bridge": {},
335
+ "refreshComponentParameter": {},
336
+ "list": [],
337
+ "version": "v2",
338
+ "storage": {},
339
+ "mobile": {
340
+ "id": "s4s1s2s2s9s6s7sd",
341
+ "js": "./official_view_component/official.js",
342
+ "css": { "class": {}, "style": {} },
343
+ "data": { "refer_app": "shop_template_black_style", "refer_form_data": {} },
344
+ "type": "component",
345
+ "class": "w-100",
346
+ "index": 0,
347
+ "label": "標題",
348
+ "style": "",
349
+ "global": [],
350
+ "toggle": false,
351
+ "stylist": [],
352
+ "dataType": "static",
353
+ "style_from": "code",
354
+ "classDataType": "static",
355
+ "preloadEvenet": {},
356
+ "refreshAllParameter": {},
357
+ "editor_bridge": {},
358
+ "refreshComponentParameter": {},
359
+ "list": [],
360
+ "version": "v2",
361
+ "mobile_editable": [],
362
+ "desktop_editable": [],
363
+ "container_fonts": 0,
364
+ "refer": "custom"
365
+ },
366
+ "mobile_editable": [],
367
+ "desktop": {
368
+ "id": "s4s1s2s2s9s6s7sd",
369
+ "js": "./official_view_component/official.js",
370
+ "css": { "class": {}, "style": {} },
371
+ "data": { "refer_app": "shop_template_black_style" },
372
+ "type": "component",
373
+ "class": "w-100",
374
+ "index": 0,
375
+ "label": "標題",
376
+ "style": "",
377
+ "global": [],
378
+ "toggle": false,
379
+ "stylist": [],
380
+ "dataType": "static",
381
+ "style_from": "code",
382
+ "classDataType": "static",
383
+ "preloadEvenet": {},
384
+ "refreshAllParameter": {},
385
+ "editor_bridge": {},
386
+ "refreshComponentParameter": {},
387
+ "list": [],
388
+ "version": "v2",
389
+ "mobile_editable": [],
390
+ "desktop_editable": [],
391
+ "container_fonts": 0,
392
+ "refer": "custom"
393
+ },
394
+ "desktop_editable": [],
395
+ "container_fonts": 0
396
+ };
397
+ }
398
+ }
@@ -0,0 +1,401 @@
1
+ export class Template_refer {
2
+
3
+ public static checkoutPage() {
4
+ return {
5
+ "id": "sas5s2s0s1s6s1sf",
6
+ "js": "./official_view_component/official.js",
7
+ "css": {
8
+ "class": {},
9
+ "style": {}
10
+ },
11
+ "data": {
12
+ "refer_app": "shop_template_black_style",
13
+ "tag": "sy01_checkout_detail",
14
+ "list": [],
15
+ "carryData": {},
16
+ "refer_form_data": {
17
+ "carry_info": [{
18
+ "index": 0,
19
+ "title": "預購商品大約7~21個工作天",
20
+ "c_v_id": "s1s9sds9s4s2s4sa",
21
+ "toggle": false
22
+ }, {
23
+ "index": 1,
24
+ "title": "現貨商品將於下單後隔天寄出(不包含例假日)",
25
+ "c_v_id": "s7s9sbsas4s2s0sc",
26
+ "toggle": false
27
+ }, {
28
+ "index": 2,
29
+ "title": "如訂單量較大或是有缺貨狀況,寄出時間將不一定,敬請見諒",
30
+ "c_v_id": "s9sbs4sasds6s7s9",
31
+ "toggle": false
32
+ }, {
33
+ "index": 3,
34
+ "title": "寄出後大概2至3天會送達指定地點(週末不配送)",
35
+ "c_v_id": "s6s4s6s1s4s0s9s9",
36
+ "toggle": false
37
+ }]
38
+ },
39
+ "_style_refer_global": {"index": "0"},
40
+ "_style_refer": "custom",
41
+ "elem": "div",
42
+ "inner": "",
43
+ "attr": [],
44
+ "_padding": {},
45
+ "_margin": {},
46
+ "_border": {},
47
+ "_max_width": "",
48
+ "_gap": "",
49
+ "_background": "",
50
+ "_other": {},
51
+ "_radius": "",
52
+ "_reverse": "false",
53
+ "_hor_position": "center",
54
+ "_background_setting": {"type": "none"}
55
+ },
56
+ "type": "component",
57
+ "class": "w-100",
58
+ "index": 0,
59
+ "label": "一頁購物",
60
+ "style": "",
61
+ "bundle": {},
62
+ "global": [],
63
+ "toggle": false,
64
+ "stylist": [],
65
+ "dataType": "static",
66
+ "style_from": "code",
67
+ "classDataType": "static",
68
+ "preloadEvenet": {},
69
+ "share": {},
70
+ "refreshAllParameter": {},
71
+ "editor_bridge": {},
72
+ "refreshComponentParameter": {},
73
+ "list": [],
74
+ "version": "v2",
75
+ "storage": {},
76
+ "mobile": {
77
+ "id": "sas5s2s0s1s6s1sf",
78
+ "js": "./official_view_component/official.js",
79
+ "css": {
80
+ "class": {},
81
+ "style": {}
82
+ },
83
+ "data": {"refer_app": "shop_template_black_style"},
84
+ "type": "component",
85
+ "class": "w-100",
86
+ "index": 0,
87
+ "label": "一頁購物",
88
+ "style": "",
89
+ "global": [],
90
+ "toggle": false,
91
+ "stylist": [],
92
+ "dataType": "static",
93
+ "style_from": "code",
94
+ "classDataType": "static",
95
+ "preloadEvenet": {},
96
+ "refreshAllParameter": {},
97
+ "editor_bridge": {},
98
+ "refreshComponentParameter": {},
99
+ "list": [],
100
+ "version": "v2",
101
+ "mobile_editable": [],
102
+ "desktop_editable": [],
103
+ "refer": "custom"
104
+ },
105
+ "mobile_editable": [],
106
+ "desktop": {
107
+ "id": "sas5s2s0s1s6s1sf",
108
+ "js": "./official_view_component/official.js",
109
+ "css": {
110
+ "class": {},
111
+ "style": {}
112
+ },
113
+ "data": {"refer_app": "shop_template_black_style"},
114
+ "type": "component",
115
+ "class": "w-100",
116
+ "index": 0,
117
+ "label": "一頁購物",
118
+ "style": "",
119
+ "global": [],
120
+ "toggle": false,
121
+ "stylist": [],
122
+ "dataType": "static",
123
+ "style_from": "code",
124
+ "classDataType": "static",
125
+ "preloadEvenet": {},
126
+ "refreshAllParameter": {},
127
+ "editor_bridge": {},
128
+ "refreshComponentParameter": {},
129
+ "list": [],
130
+ "version": "v2",
131
+ "mobile_editable": [],
132
+ "desktop_editable": [],
133
+ "refer": "custom"
134
+ },
135
+ "desktop_editable": [],
136
+ "container_fonts": 0
137
+ }
138
+ }
139
+
140
+ public static productList() {
141
+ return {
142
+ "id": "s1scs1s7sfses4s9",
143
+ "js": "./official_view_component/official.js",
144
+ "css": {"class": {}, "style": {}},
145
+ "data": {
146
+ "tag": "SY00-normal-products",
147
+ "_gap": "",
148
+ "attr": [],
149
+ "elem": "div",
150
+ "list": [],
151
+ "inner": "",
152
+ "_other": {},
153
+ "_border": {},
154
+ "_margin": {},
155
+ "_radius": "",
156
+ "_padding": {"top": "0", "left": "10", "right": "10", "bottom": "0"},
157
+ "_reverse": "false",
158
+ "carryData": {},
159
+ "refer_app": "shop_template_black_style",
160
+ "_max_width": "1200",
161
+ "_background": "",
162
+ "_style_refer": "custom",
163
+ "_hor_position": "center",
164
+ "refer_form_data": {
165
+ "list": [],
166
+ "more": "./?page=all_product",
167
+ "count": "50",
168
+ "list2": [{"toggle": true, "product2dds": 301}, {"toggle": true, "product2dds": 294}],
169
+ "title": "本週熱門銷售排行",
170
+ "distance": {
171
+ "toggle": true,
172
+ "margin_pc": {"top": "0", "left": "0", "right": "0", "bottom": "0", "toggle": true},
173
+ "padding_pc": {"toggle": false},
174
+ "margin_phone": {"toggle": false},
175
+ "padding_phone": {}
176
+ },
177
+ "font_size": "24",
178
+ "font_color": "#000000",
179
+ "more_title": "查看更多",
180
+ "button_color": "#ffffff",
181
+ "mobile_count": "2",
182
+ "desktop_count": "4",
183
+ "product_select": {"value": [], "select": "product"},
184
+ "button_bg_color": "#000000",
185
+ "r_1714145557038": []
186
+ },
187
+ "_background_setting": {"type": "none"},
188
+ "_style_refer_global": {"index": "0"}
189
+ },
190
+ "list": [],
191
+ "type": "component",
192
+ "class": "w-100",
193
+ "index": 4,
194
+ "label": "商品列表",
195
+ "style": "",
196
+ "global": [],
197
+ "mobile": {
198
+ "data": {"refer_app": "shop_template_black_style", "refer_form_data": {"desktop_count": "2"}},
199
+ "refer": "custom"
200
+ },
201
+ "toggle": true,
202
+ "desktop": {
203
+ "id": "s1scs1s7sfses4s9",
204
+ "js": "./official_view_component/official.js",
205
+ "css": {"class": {}, "style": {}},
206
+ "data": {"refer_app": "shop_template_black_style", "refer_form_data": {}},
207
+ "list": [],
208
+ "type": "component",
209
+ "class": "w-100",
210
+ "index": 4,
211
+ "label": "商品列表",
212
+ "style": "",
213
+ "global": [],
214
+ "toggle": true,
215
+ "stylist": [],
216
+ "version": "v2",
217
+ "visible": true,
218
+ "dataType": "static",
219
+ "style_from": "code",
220
+ "classDataType": "static",
221
+ "editor_bridge": {},
222
+ "preloadEvenet": {},
223
+ "container_fonts": 0,
224
+ "mobile_editable": ["desktop_count"],
225
+ "desktop_editable": [],
226
+ "refreshAllParameter": {},
227
+ "refreshComponentParameter": {},
228
+ "refer": "custom"
229
+ },
230
+ "stylist": [],
231
+ "version": "v2",
232
+ "visible": true,
233
+ "dataType": "static",
234
+ "style_from": "code",
235
+ "classDataType": "static",
236
+ "editor_bridge": {},
237
+ "preloadEvenet": {},
238
+ "container_fonts": 0,
239
+ "mobile_editable": ["desktop_count"],
240
+ "desktop_editable": [],
241
+ "refreshAllParameter": {},
242
+ "refreshComponentParameter": {},
243
+ "formData": {}
244
+ }
245
+ }
246
+
247
+ public static bigTitle(title: string) {
248
+ return {
249
+ "id": "s4s1s2s2s9s6s7sd",
250
+ "js": "./official_view_component/official.js",
251
+ "css": {"class": {}, "style": {}},
252
+ "data": {
253
+ "refer_app": "shop_template_black_style",
254
+ "tag": "basic-title",
255
+ "list": [],
256
+ "carryData": {},
257
+ "refer_form_data": {
258
+ "kkw": "./?page=index",
259
+ "size": "40",
260
+ "color": {
261
+ "id": "0",
262
+ "title": "@{{theme_color.0.title}}",
263
+ "content": "@{{theme_color.0.content}}",
264
+ "background": "@{{theme_color.0.background}}",
265
+ "solid-button-bg": "@{{theme_color.0.solid-button-bg}}",
266
+ "border-button-bg": "@{{theme_color.0.border-button-bg}}",
267
+ "solid-button-text": "@{{theme_color.0.solid-button-text}}",
268
+ "border-button-text": "@{{theme_color.0.border-button-text}}"
269
+ },
270
+ "title": title,
271
+ "margin": {"top": "10", "left": "7", "right": "9", "bottom": "8", "toggle": true},
272
+ "weight": "700",
273
+ "import_": "false",
274
+ "justify": "center",
275
+ "padding": {"top": "20", "left": "14", "right": "18", "bottom": "16", "toggle": true},
276
+ "size_pc": "40",
277
+ "distance": {
278
+ "toggle": true,
279
+ "margin_pc": {"toggle": true},
280
+ "padding_pc": {"toggle": true},
281
+ "margin_phone": {"toggle": true},
282
+ "padding_phone": {"toggle": true}
283
+ },
284
+ "margin_pc": {"top": "50", "left": "0", "right": "0", "bottom": "50", "toggle": false},
285
+ "padding_pc": {"top": "0", "left": "0", "right": "0", "bottom": "0", "toggle": false},
286
+ "size_phone": "28",
287
+ "theme_color": {
288
+ "id": "0",
289
+ "title": "@{{theme_color.0.title}}",
290
+ "content": "@{{theme_color.0.content}}",
291
+ "background": "@{{theme_color.0.background}}",
292
+ "solid-button-bg": "@{{theme_color.0.solid-button-bg}}",
293
+ "border-button-bg": "@{{theme_color.0.border-button-bg}}",
294
+ "solid-button-text": "@{{theme_color.0.solid-button-text}}",
295
+ "border-button-text": "@{{theme_color.0.border-button-text}}"
296
+ },
297
+ "margin_phone": {"top": "40", "left": "0", "right": "0", "bottom": "40", "toggle": false},
298
+ "padding_phone": {"top": "-27", "left": "0", "right": "0", "bottom": "0", "toggle": false},
299
+ "r_1716801819158": {},
300
+ "r_1718616868830": {"type": "image", "value": ""},
301
+ "r_1718616877262": {"type": "image", "value": ""},
302
+ "r_1718616885960": {"type": "image", "value": ""}
303
+ },
304
+ "_style_refer_global": {"index": "0"},
305
+ "_style_refer": "custom",
306
+ "elem": "div",
307
+ "inner": "",
308
+ "attr": [],
309
+ "_padding": {"top": "50", "right": "0", "bottom": "50", "left": "0"},
310
+ "_margin": {},
311
+ "_border": {},
312
+ "_max_width": "",
313
+ "_gap": "",
314
+ "_background": "",
315
+ "_other": {},
316
+ "_radius": "",
317
+ "_reverse": "false",
318
+ "_hor_position": "center",
319
+ "_background_setting": {"type": "none"}
320
+ },
321
+ "type": "component",
322
+ "class": "w-100",
323
+ "index": 0,
324
+ "label": "標題",
325
+ "style": "",
326
+ "bundle": {},
327
+ "global": [],
328
+ "toggle": false,
329
+ "stylist": [],
330
+ "dataType": "static",
331
+ "style_from": "code",
332
+ "classDataType": "static",
333
+ "preloadEvenet": {},
334
+ "share": {},
335
+ "formData": {},
336
+ "refreshAllParameter": {},
337
+ "editor_bridge": {},
338
+ "refreshComponentParameter": {},
339
+ "list": [],
340
+ "version": "v2",
341
+ "storage": {},
342
+ "mobile": {
343
+ "id": "s4s1s2s2s9s6s7sd",
344
+ "js": "./official_view_component/official.js",
345
+ "css": {"class": {}, "style": {}},
346
+ "data": {"refer_app": "shop_template_black_style", "refer_form_data": {}},
347
+ "type": "component",
348
+ "class": "w-100",
349
+ "index": 0,
350
+ "label": "標題",
351
+ "style": "",
352
+ "global": [],
353
+ "toggle": false,
354
+ "stylist": [],
355
+ "dataType": "static",
356
+ "style_from": "code",
357
+ "classDataType": "static",
358
+ "preloadEvenet": {},
359
+ "refreshAllParameter": {},
360
+ "editor_bridge": {},
361
+ "refreshComponentParameter": {},
362
+ "list": [],
363
+ "version": "v2",
364
+ "mobile_editable": [],
365
+ "desktop_editable": [],
366
+ "container_fonts": 0,
367
+ "refer": "custom"
368
+ },
369
+ "mobile_editable": [],
370
+ "desktop": {
371
+ "id": "s4s1s2s2s9s6s7sd",
372
+ "js": "./official_view_component/official.js",
373
+ "css": {"class": {}, "style": {}},
374
+ "data": {"refer_app": "shop_template_black_style"},
375
+ "type": "component",
376
+ "class": "w-100",
377
+ "index": 0,
378
+ "label": "標題",
379
+ "style": "",
380
+ "global": [],
381
+ "toggle": false,
382
+ "stylist": [],
383
+ "dataType": "static",
384
+ "style_from": "code",
385
+ "classDataType": "static",
386
+ "preloadEvenet": {},
387
+ "refreshAllParameter": {},
388
+ "editor_bridge": {},
389
+ "refreshComponentParameter": {},
390
+ "list": [],
391
+ "version": "v2",
392
+ "mobile_editable": [],
393
+ "desktop_editable": [],
394
+ "container_fonts": 0,
395
+ "refer": "custom"
396
+ },
397
+ "desktop_editable": [],
398
+ "container_fonts": 0
399
+ }
400
+ }
401
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "14.0.4",
3
+ "version": "14.0.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {