ts-glitter 13.8.798 → 13.8.811
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 +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/backend-manager/bg-blog.js +134 -61
- package/lowcode/backend-manager/bg-blog.ts +141 -65
- package/lowcode/backend-manager/bg-guide.js +15 -5
- package/lowcode/backend-manager/bg-guide.ts +20 -7
- package/lowcode/cms-plugin/ai-generator/product-ai.js +8 -3
- package/lowcode/cms-plugin/ai-generator/product-ai.ts +11 -4
- package/lowcode/cms-plugin/shopping-finance-setting.js +2 -1
- package/lowcode/cms-plugin/shopping-finance-setting.ts +1 -1
- package/lowcode/cms-plugin/shopping-product-setting.js +1382 -1121
- package/lowcode/cms-plugin/shopping-product-setting.ts +3828 -3543
- package/lowcode/cms-plugin/shopping-product-stock.js +3 -0
- package/lowcode/cms-plugin/shopping-product-stock.ts +3 -0
- package/lowcode/editor/add-component.js +12 -0
- package/lowcode/editor/add-component.ts +13 -0
- package/lowcode/editor/basic-component.js +229 -25
- package/lowcode/editor/basic-component.ts +231 -59
- package/lowcode/form-view/e-commerce/product-select.js +37 -27
- package/lowcode/form-view/e-commerce/product-select.ts +118 -102
- package/lowcode/form-view/editor/color-theme-selector.js +7 -0
- package/lowcode/form-view/editor/color-theme-selector.ts +7 -0
- package/lowcode/glitter-base/route/shopping.js +2 -2
- package/lowcode/glitter-base/route/shopping.ts +2 -2
- package/lowcode/glitter-base/route/wallet.js +2 -2
- package/lowcode/glitter-base/route/wallet.ts +2 -2
- package/lowcode/glitterBundle/Glitter.js +3 -0
- package/lowcode/glitterBundle/Glitter.ts +3 -0
- package/lowcode/glitterBundle/api/base.js +5 -1
- package/lowcode/glitterBundle/api/base.ts +6 -1
- package/lowcode/glitterBundle/html-component/widget.js +11 -5
- package/lowcode/glitterBundle/html-component/widget.ts +12 -5
- package/lowcode/jspage/function-page/main_editor.js +1 -1
- package/lowcode/jspage/function-page/main_editor.ts +1 -1
- package/lowcode/jspage/main.js +1 -0
- package/lowcode/jspage/main.ts +1 -1
- package/lowcode/modules/image-library.js +1 -1
- package/lowcode/modules/image-library.ts +1 -1
- package/lowcode/official_event/api/api-file-upload.js +111 -25
- package/lowcode/official_event/api/api-file-upload.ts +128 -46
- package/lowcode/official_event/api/api-request.js +2 -1
- package/lowcode/official_event/api/api-request.ts +2 -1
- package/lowcode/official_event/wallet/get-sum.js +2 -1
- package/lowcode/official_event/wallet/get-sum.ts +2 -1
- package/lowcode/official_view_component/official/component.js +7 -2
- package/lowcode/official_view_component/official/component.ts +7 -2
- package/lowcode/public-components/user-manager/um-class.js +2 -2
- package/lowcode/public-components/user-manager/um-class.ts +2 -2
- package/lowcode/public-components/user-manager/um-info.js +0 -4
- package/lowcode/public-components/user-manager/um-info.ts +0 -3
- package/lowcode/public-components/user-manager/um-rebate.js +4 -0
- package/lowcode/public-components/user-manager/um-rebate.ts +4 -0
- package/lowcode/public-components/user-manager/um-voucher.js +1 -1
- package/lowcode/public-components/user-manager/um-voucher.ts +1 -1
- package/lowcode/view-model/saas-view-model.js +8 -3
- package/lowcode/view-model/saas-view-model.ts +9 -3
- package/package.json +1 -1
- package/src/api-public/controllers/ai-chat.js +6 -8
- package/src/api-public/controllers/ai-chat.js.map +1 -1
- package/src/api-public/controllers/ai-chat.ts +7 -8
- package/src/api-public/services/filter-protect-data.js +2 -0
- package/src/api-public/services/filter-protect-data.js.map +1 -1
- package/src/api-public/services/filter-protect-data.ts +2 -0
- package/src/api-public/services/shopping.d.ts +1 -1
- package/src/api-public/services/shopping.js +50 -24
- package/src/api-public/services/shopping.js.map +1 -1
- package/src/api-public/services/shopping.ts +50 -25
- package/src/modules/database.d.ts +1 -1
- package/src/modules/database.js +1 -1
- package/src/modules/database.ts +1 -1
- package/src/services/template.js +1 -1
- package/src/services/template.js.map +1 -1
- package/src/services/template.ts +1 -1
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_13.8.
|
|
73
|
+
glitter.share.editerVersion = 'V_13.8.811';
|
|
74
74
|
glitter.share.start = new Date();
|
|
75
75
|
const vm = {
|
|
76
76
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -71,7 +71,7 @@ export class Entry {
|
|
|
71
71
|
}
|
|
72
72
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
73
73
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
74
|
-
glitter.share.editerVersion = 'V_13.8.
|
|
74
|
+
glitter.share.editerVersion = 'V_13.8.811';
|
|
75
75
|
glitter.share.start = new Date();
|
|
76
76
|
const vm: {
|
|
77
77
|
appConfig: any;
|
|
@@ -11,6 +11,7 @@ import { EditorElem } from '../glitterBundle/plugins/editor-elem.js';
|
|
|
11
11
|
import { BgWidget } from './bg-widget.js';
|
|
12
12
|
import { ApiUser } from '../glitter-base/route/user.js';
|
|
13
13
|
import { ShareDialog } from '../glitterBundle/dialog/ShareDialog.js';
|
|
14
|
+
import { ApiPageConfig } from '../api/pageConfig.js';
|
|
14
15
|
import { Article } from '../glitter-base/route/article.js';
|
|
15
16
|
import { MenusSetting } from '../cms-plugin/menus-setting.js';
|
|
16
17
|
import { BaseApi } from '../glitterBundle/api/base.js';
|
|
@@ -277,69 +278,128 @@ export class BgBlog {
|
|
|
277
278
|
return gvc.bindView(() => {
|
|
278
279
|
let data = undefined;
|
|
279
280
|
const id = gvc.glitter.getUUID();
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
page_type: 'page',
|
|
299
|
-
preview_image: null,
|
|
300
|
-
appName: 'shop_template_black_style',
|
|
301
|
-
template_type: 2,
|
|
302
|
-
template_config: {
|
|
303
|
-
tag: ['頁面範例'],
|
|
304
|
-
desc: '',
|
|
281
|
+
if (page_tab === 'page') {
|
|
282
|
+
Article.get({
|
|
283
|
+
page: 0,
|
|
284
|
+
limit: 20,
|
|
285
|
+
search: ``,
|
|
286
|
+
for_index: `false`,
|
|
287
|
+
status: '0,1',
|
|
288
|
+
page_type: page_tab,
|
|
289
|
+
app_name: 't_1726217714800',
|
|
290
|
+
}).then((dd) => {
|
|
291
|
+
data = {
|
|
292
|
+
response: {
|
|
293
|
+
result: {
|
|
294
|
+
data: [
|
|
295
|
+
{
|
|
296
|
+
id: 20739,
|
|
297
|
+
userID: '234285319',
|
|
298
|
+
tag: 'empty',
|
|
305
299
|
name: '空白內容',
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
300
|
+
page_type: 'page',
|
|
301
|
+
preview_image: null,
|
|
302
|
+
appName: 'shop_template_black_style',
|
|
303
|
+
template_type: 2,
|
|
304
|
+
template_config: {
|
|
305
|
+
tag: ['頁面範例'],
|
|
306
|
+
desc: '',
|
|
307
|
+
name: '空白內容',
|
|
308
|
+
image: ['https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/1709282671899-BLANK PAGE.jpg'],
|
|
309
|
+
status: 'wait',
|
|
310
|
+
post_to: 'all',
|
|
311
|
+
version: '1.0',
|
|
312
|
+
created_by: 'liondesign.io',
|
|
313
|
+
preview_img: '',
|
|
314
|
+
},
|
|
312
315
|
},
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
tag: dd.content.tag,
|
|
319
|
-
name: dd.content.name,
|
|
320
|
-
page_type: 'page',
|
|
321
|
-
preview_image: null,
|
|
322
|
-
_config: dd.content.config,
|
|
323
|
-
appName: 't_1726217714800',
|
|
324
|
-
template_type: 2,
|
|
325
|
-
template_config: {
|
|
326
|
-
tag: [],
|
|
327
|
-
desc: '',
|
|
316
|
+
].concat(dd.response.data.map((dd) => {
|
|
317
|
+
return {
|
|
318
|
+
id: 20739,
|
|
319
|
+
userID: '234285319',
|
|
320
|
+
tag: dd.content.tag,
|
|
328
321
|
name: dd.content.name,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
322
|
+
page_type: 'page',
|
|
323
|
+
preview_image: null,
|
|
324
|
+
_config: dd.content.config,
|
|
325
|
+
appName: 't_1726217714800',
|
|
326
|
+
template_type: 2,
|
|
327
|
+
template_config: {
|
|
328
|
+
tag: [],
|
|
329
|
+
desc: '',
|
|
330
|
+
name: dd.content.name,
|
|
331
|
+
image: [dd.content.seo.image],
|
|
332
|
+
status: 'wait',
|
|
333
|
+
post_to: 'all',
|
|
334
|
+
version: '1.0',
|
|
335
|
+
created_by: 'liondesign.io',
|
|
336
|
+
preview_img: '',
|
|
337
|
+
},
|
|
338
|
+
};
|
|
339
|
+
})),
|
|
340
|
+
},
|
|
338
341
|
},
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
342
|
+
};
|
|
343
|
+
gvc.notifyDataChange(id);
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
ApiPageConfig.getTemplateList().then((res) => {
|
|
348
|
+
data = {
|
|
349
|
+
response: {
|
|
350
|
+
result: {
|
|
351
|
+
data: [
|
|
352
|
+
{
|
|
353
|
+
id: 20739,
|
|
354
|
+
userID: '234285319',
|
|
355
|
+
tag: 'empty',
|
|
356
|
+
name: '空白內容',
|
|
357
|
+
page_type: 'page',
|
|
358
|
+
preview_image: null,
|
|
359
|
+
appName: 'shop_template_black_style',
|
|
360
|
+
template_type: 2,
|
|
361
|
+
template_config: {
|
|
362
|
+
tag: ['頁面範例'],
|
|
363
|
+
desc: '',
|
|
364
|
+
name: '空白內容',
|
|
365
|
+
image: ['https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/1709282671899-BLANK PAGE.jpg'],
|
|
366
|
+
status: 'wait',
|
|
367
|
+
post_to: 'all',
|
|
368
|
+
version: '1.0',
|
|
369
|
+
created_by: 'liondesign.io',
|
|
370
|
+
preview_img: '',
|
|
371
|
+
},
|
|
372
|
+
},
|
|
373
|
+
].concat(res.response.result.map((dd) => {
|
|
374
|
+
return {
|
|
375
|
+
id: 20739,
|
|
376
|
+
userID: '234285319',
|
|
377
|
+
tag: 'index',
|
|
378
|
+
domain: dd.domain,
|
|
379
|
+
name: dd.template_config.name,
|
|
380
|
+
page_type: 'page',
|
|
381
|
+
preview_image: null,
|
|
382
|
+
appName: dd.appName,
|
|
383
|
+
template_type: 2,
|
|
384
|
+
template_config: {
|
|
385
|
+
tag: [],
|
|
386
|
+
desc: '',
|
|
387
|
+
name: dd.template_config.name,
|
|
388
|
+
image: [dd.template_config.image[0]],
|
|
389
|
+
status: 'wait',
|
|
390
|
+
post_to: 'all',
|
|
391
|
+
version: '1.0',
|
|
392
|
+
created_by: 'liondesign.io',
|
|
393
|
+
preview_img: '',
|
|
394
|
+
},
|
|
395
|
+
};
|
|
396
|
+
}).reverse()),
|
|
397
|
+
},
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
gvc.notifyDataChange(id);
|
|
401
|
+
});
|
|
402
|
+
}
|
|
343
403
|
return {
|
|
344
404
|
bind: id,
|
|
345
405
|
view: () => {
|
|
@@ -373,7 +433,12 @@ export class BgBlog {
|
|
|
373
433
|
return b.tag === 'empty' ? 1 : -1;
|
|
374
434
|
}
|
|
375
435
|
else {
|
|
376
|
-
|
|
436
|
+
if (page_tab === 'page') {
|
|
437
|
+
return a.template_config.name.localeCompare(b.template_config.name);
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
return 1;
|
|
441
|
+
}
|
|
377
442
|
}
|
|
378
443
|
})
|
|
379
444
|
.map((dd, index) => {
|
|
@@ -418,6 +483,9 @@ export class BgBlog {
|
|
|
418
483
|
type: 'get',
|
|
419
484
|
}).then((res) => {
|
|
420
485
|
res.response.result[0].config.name = dd.template_config.name;
|
|
486
|
+
res.response.result[0].config.splice(0, 1);
|
|
487
|
+
res.response.result[0].config.splice(res.response.result[0].config.length - 1, 1);
|
|
488
|
+
res.response.result[0].config.push({ "id": "sas5s2s0s1s6s1sf", "js": "./official_view_component/official.js", "css": { "class": {}, "style": {} }, "data": { "refer_app": "shop_template_black_style", "tag": "sy01_checkout_detail", "list": [], "carryData": {}, "refer_form_data": { "carry_info": [{ "index": 0, "title": "預購商品大約7~21個工作天", "c_v_id": "s1s9sds9s4s2s4sa", "toggle": false }, { "index": 1, "title": "現貨商品將於下單後隔天寄出(不包含例假日)", "c_v_id": "s7s9sbsas4s2s0sc", "toggle": false }, { "index": 2, "title": "如訂單量較大或是有缺貨狀況,寄出時間將不一定,敬請見諒", "c_v_id": "s9sbs4sasds6s7s9", "toggle": false }, { "index": 3, "title": "寄出後大概2至3天會送達指定地點(週末不配送)", "c_v_id": "s6s4s6s1s4s0s9s9", "toggle": false }] }, "_style_refer_global": { "index": "0" }, "_style_refer": "custom", "elem": "div", "inner": "", "attr": [], "_padding": {}, "_margin": {}, "_border": {}, "_max_width": "", "_gap": "", "_background": "", "_other": {}, "_radius": "", "_reverse": "false", "_hor_position": "center", "_background_setting": { "type": "none" } }, "type": "component", "class": "w-100", "index": 0, "label": "一頁購物", "style": "", "bundle": {}, "global": [], "toggle": false, "stylist": [], "dataType": "static", "style_from": "code", "classDataType": "static", "preloadEvenet": {}, "share": {}, "refreshAllParameter": {}, "editor_bridge": {}, "refreshComponentParameter": {}, "list": [], "version": "v2", "storage": {}, "mobile": { "id": "sas5s2s0s1s6s1sf", "js": "./official_view_component/official.js", "css": { "class": {}, "style": {} }, "data": { "refer_app": "shop_template_black_style" }, "type": "component", "class": "w-100", "index": 0, "label": "一頁購物", "style": "", "global": [], "toggle": false, "stylist": [], "dataType": "static", "style_from": "code", "classDataType": "static", "preloadEvenet": {}, "refreshAllParameter": {}, "editor_bridge": {}, "refreshComponentParameter": {}, "list": [], "version": "v2", "mobile_editable": [], "desktop_editable": [], "refer": "custom" }, "mobile_editable": [], "desktop": { "id": "sas5s2s0s1s6s1sf", "js": "./official_view_component/official.js", "css": { "class": {}, "style": {} }, "data": { "refer_app": "shop_template_black_style" }, "type": "component", "class": "w-100", "index": 0, "label": "一頁購物", "style": "", "global": [], "toggle": false, "stylist": [], "dataType": "static", "style_from": "code", "classDataType": "static", "preloadEvenet": {}, "refreshAllParameter": {}, "editor_bridge": {}, "refreshComponentParameter": {}, "list": [], "version": "v2", "mobile_editable": [], "desktop_editable": [], "refer": "custom" }, "desktop_editable": [], "container_fonts": 0 });
|
|
421
489
|
callback(res.response.result[0].config);
|
|
422
490
|
});
|
|
423
491
|
}
|
|
@@ -434,7 +502,12 @@ export class BgBlog {
|
|
|
434
502
|
class="fa-solid fa-eye ${dd.tag === 'empty' ? `d-none` : ``}"
|
|
435
503
|
style="cursor:pointer;"
|
|
436
504
|
onclick="${gvc.event(() => {
|
|
437
|
-
|
|
505
|
+
if (page_tab !== 'page') {
|
|
506
|
+
window.parent.glitter.openNewTab(`https://${dd.domain}/index`);
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
window.parent.glitter.openNewTab(`${gvc.glitter.root_path}pages/${dd.tag}?appName=${dd.appName}`);
|
|
510
|
+
}
|
|
438
511
|
})}"
|
|
439
512
|
></i>
|
|
440
513
|
</h3>
|
|
@@ -315,71 +315,132 @@ export class BgBlog {
|
|
|
315
315
|
return gvc.bindView(() => {
|
|
316
316
|
let data: any = undefined;
|
|
317
317
|
const id = gvc.glitter.getUUID();
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
page_type: 'page',
|
|
337
|
-
preview_image: null,
|
|
338
|
-
appName: 'shop_template_black_style',
|
|
339
|
-
template_type: 2,
|
|
340
|
-
template_config: {
|
|
341
|
-
tag: ['頁面範例'],
|
|
342
|
-
desc: '',
|
|
318
|
+
if(page_tab==='page'){
|
|
319
|
+
Article.get({
|
|
320
|
+
page: 0,
|
|
321
|
+
limit: 20,
|
|
322
|
+
search: ``,
|
|
323
|
+
for_index: `false`,
|
|
324
|
+
status: '0,1',
|
|
325
|
+
page_type: page_tab,
|
|
326
|
+
app_name: 't_1726217714800',
|
|
327
|
+
}).then((dd) => {
|
|
328
|
+
data = {
|
|
329
|
+
response: {
|
|
330
|
+
result: {
|
|
331
|
+
data: [
|
|
332
|
+
{
|
|
333
|
+
id: 20739,
|
|
334
|
+
userID: '234285319',
|
|
335
|
+
tag: 'empty',
|
|
343
336
|
name: '空白內容',
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
337
|
+
page_type: 'page',
|
|
338
|
+
preview_image: null,
|
|
339
|
+
appName: 'shop_template_black_style',
|
|
340
|
+
template_type: 2,
|
|
341
|
+
template_config: {
|
|
342
|
+
tag: ['頁面範例'],
|
|
343
|
+
desc: '',
|
|
344
|
+
name: '空白內容',
|
|
345
|
+
image: ['https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/1709282671899-BLANK PAGE.jpg'],
|
|
346
|
+
status: 'wait',
|
|
347
|
+
post_to: 'all',
|
|
348
|
+
version: '1.0',
|
|
349
|
+
created_by: 'liondesign.io',
|
|
350
|
+
preview_img: '',
|
|
351
|
+
},
|
|
350
352
|
},
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
tag: dd.content.tag,
|
|
358
|
-
name: dd.content.name,
|
|
359
|
-
page_type: 'page',
|
|
360
|
-
preview_image: null,
|
|
361
|
-
_config: dd.content.config,
|
|
362
|
-
appName: 't_1726217714800',
|
|
363
|
-
template_type: 2,
|
|
364
|
-
template_config: {
|
|
365
|
-
tag: [],
|
|
366
|
-
desc: '',
|
|
353
|
+
].concat(
|
|
354
|
+
dd.response.data.map((dd: any) => {
|
|
355
|
+
return {
|
|
356
|
+
id: 20739,
|
|
357
|
+
userID: '234285319',
|
|
358
|
+
tag: dd.content.tag,
|
|
367
359
|
name: dd.content.name,
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
360
|
+
page_type: 'page',
|
|
361
|
+
preview_image: null,
|
|
362
|
+
_config: dd.content.config,
|
|
363
|
+
appName: 't_1726217714800',
|
|
364
|
+
template_type: 2,
|
|
365
|
+
template_config: {
|
|
366
|
+
tag: [],
|
|
367
|
+
desc: '',
|
|
368
|
+
name: dd.content.name,
|
|
369
|
+
image: [dd.content.seo.image],
|
|
370
|
+
status: 'wait',
|
|
371
|
+
post_to: 'all',
|
|
372
|
+
version: '1.0',
|
|
373
|
+
created_by: 'liondesign.io',
|
|
374
|
+
preview_img: '',
|
|
375
|
+
},
|
|
376
|
+
};
|
|
377
|
+
})
|
|
378
|
+
),
|
|
379
|
+
},
|
|
378
380
|
},
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
}
|
|
381
|
+
};
|
|
382
|
+
gvc.notifyDataChange(id);
|
|
383
|
+
});
|
|
384
|
+
}else{
|
|
385
|
+
ApiPageConfig.getTemplateList().then((res) => {
|
|
386
|
+
data = {
|
|
387
|
+
response: {
|
|
388
|
+
result: {
|
|
389
|
+
data: [
|
|
390
|
+
{
|
|
391
|
+
id: 20739,
|
|
392
|
+
userID: '234285319',
|
|
393
|
+
tag: 'empty',
|
|
394
|
+
name: '空白內容',
|
|
395
|
+
page_type: 'page',
|
|
396
|
+
preview_image: null,
|
|
397
|
+
appName: 'shop_template_black_style',
|
|
398
|
+
template_type: 2,
|
|
399
|
+
template_config: {
|
|
400
|
+
tag: ['頁面範例'],
|
|
401
|
+
desc: '',
|
|
402
|
+
name: '空白內容',
|
|
403
|
+
image: ['https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/1709282671899-BLANK PAGE.jpg'],
|
|
404
|
+
status: 'wait',
|
|
405
|
+
post_to: 'all',
|
|
406
|
+
version: '1.0',
|
|
407
|
+
created_by: 'liondesign.io',
|
|
408
|
+
preview_img: '',
|
|
409
|
+
},
|
|
410
|
+
},
|
|
411
|
+
].concat(
|
|
412
|
+
res.response.result.map((dd: any) => {
|
|
413
|
+
return {
|
|
414
|
+
id: 20739,
|
|
415
|
+
userID: '234285319',
|
|
416
|
+
tag: 'index',
|
|
417
|
+
domain:dd.domain,
|
|
418
|
+
name: dd.template_config.name,
|
|
419
|
+
page_type: 'page',
|
|
420
|
+
preview_image: null,
|
|
421
|
+
appName: dd.appName,
|
|
422
|
+
template_type: 2,
|
|
423
|
+
template_config: {
|
|
424
|
+
tag: [],
|
|
425
|
+
desc: '',
|
|
426
|
+
name: dd.template_config.name,
|
|
427
|
+
image: [dd.template_config.image[0]],
|
|
428
|
+
status: 'wait',
|
|
429
|
+
post_to: 'all',
|
|
430
|
+
version: '1.0',
|
|
431
|
+
created_by: 'liondesign.io',
|
|
432
|
+
preview_img: '',
|
|
433
|
+
},
|
|
434
|
+
};
|
|
435
|
+
}).reverse()
|
|
436
|
+
),
|
|
437
|
+
},
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
gvc.notifyDataChange(id);
|
|
441
|
+
})
|
|
442
|
+
}
|
|
443
|
+
|
|
383
444
|
|
|
384
445
|
return {
|
|
385
446
|
bind: id,
|
|
@@ -411,7 +472,12 @@ export class BgBlog {
|
|
|
411
472
|
if (a.tag === 'empty' || b.tag === 'empty') {
|
|
412
473
|
return b.tag === 'empty' ? 1 : -1;
|
|
413
474
|
} else {
|
|
414
|
-
|
|
475
|
+
if(page_tab==='page'){
|
|
476
|
+
return a.template_config.name.localeCompare(b.template_config.name);
|
|
477
|
+
}else{
|
|
478
|
+
return 1
|
|
479
|
+
}
|
|
480
|
+
|
|
415
481
|
}
|
|
416
482
|
})
|
|
417
483
|
.map((dd: any, index: number) => {
|
|
@@ -456,6 +522,9 @@ export class BgBlog {
|
|
|
456
522
|
type: 'get',
|
|
457
523
|
}).then((res) => {
|
|
458
524
|
res.response.result[0].config.name = dd.template_config.name;
|
|
525
|
+
res.response.result[0].config.splice(0,1)
|
|
526
|
+
res.response.result[0].config.splice(res.response.result[0].config.length-1,1)
|
|
527
|
+
res.response.result[0].config.push({"id":"sas5s2s0s1s6s1sf","js":"./official_view_component/official.js","css":{"class":{},"style":{}},"data":{"refer_app":"shop_template_black_style","tag":"sy01_checkout_detail","list":[],"carryData":{},"refer_form_data":{"carry_info":[{"index":0,"title":"預購商品大約7~21個工作天","c_v_id":"s1s9sds9s4s2s4sa","toggle":false},{"index":1,"title":"現貨商品將於下單後隔天寄出(不包含例假日)","c_v_id":"s7s9sbsas4s2s0sc","toggle":false},{"index":2,"title":"如訂單量較大或是有缺貨狀況,寄出時間將不一定,敬請見諒","c_v_id":"s9sbs4sasds6s7s9","toggle":false},{"index":3,"title":"寄出後大概2至3天會送達指定地點(週末不配送)","c_v_id":"s6s4s6s1s4s0s9s9","toggle":false}]},"_style_refer_global":{"index":"0"},"_style_refer":"custom","elem":"div","inner":"","attr":[],"_padding":{},"_margin":{},"_border":{},"_max_width":"","_gap":"","_background":"","_other":{},"_radius":"","_reverse":"false","_hor_position":"center","_background_setting":{"type":"none"}},"type":"component","class":"w-100","index":0,"label":"一頁購物","style":"","bundle":{},"global":[],"toggle":false,"stylist":[],"dataType":"static","style_from":"code","classDataType":"static","preloadEvenet":{},"share":{},"refreshAllParameter":{},"editor_bridge":{},"refreshComponentParameter":{},"list":[],"version":"v2","storage":{},"mobile":{"id":"sas5s2s0s1s6s1sf","js":"./official_view_component/official.js","css":{"class":{},"style":{}},"data":{"refer_app":"shop_template_black_style"},"type":"component","class":"w-100","index":0,"label":"一頁購物","style":"","global":[],"toggle":false,"stylist":[],"dataType":"static","style_from":"code","classDataType":"static","preloadEvenet":{},"refreshAllParameter":{},"editor_bridge":{},"refreshComponentParameter":{},"list":[],"version":"v2","mobile_editable":[],"desktop_editable":[],"refer":"custom"},"mobile_editable":[],"desktop":{"id":"sas5s2s0s1s6s1sf","js":"./official_view_component/official.js","css":{"class":{},"style":{}},"data":{"refer_app":"shop_template_black_style"},"type":"component","class":"w-100","index":0,"label":"一頁購物","style":"","global":[],"toggle":false,"stylist":[],"dataType":"static","style_from":"code","classDataType":"static","preloadEvenet":{},"refreshAllParameter":{},"editor_bridge":{},"refreshComponentParameter":{},"list":[],"version":"v2","mobile_editable":[],"desktop_editable":[],"refer":"custom"},"desktop_editable":[],"container_fonts":0})
|
|
459
528
|
callback(res.response.result[0].config);
|
|
460
529
|
});
|
|
461
530
|
}
|
|
@@ -472,9 +541,16 @@ export class BgBlog {
|
|
|
472
541
|
class="fa-solid fa-eye ${dd.tag === 'empty' ? `d-none` : ``}"
|
|
473
542
|
style="cursor:pointer;"
|
|
474
543
|
onclick="${gvc.event(() => {
|
|
475
|
-
(
|
|
476
|
-
|
|
477
|
-
|
|
544
|
+
if(page_tab!=='page'){
|
|
545
|
+
|
|
546
|
+
(window.parent as any).glitter.openNewTab(
|
|
547
|
+
`https://${dd.domain}/index`
|
|
548
|
+
);
|
|
549
|
+
}else{
|
|
550
|
+
(window.parent as any).glitter.openNewTab(
|
|
551
|
+
`${gvc.glitter.root_path}pages/${dd.tag}?appName=${dd.appName}`
|
|
552
|
+
);
|
|
553
|
+
}
|
|
478
554
|
})}"
|
|
479
555
|
></i>
|
|
480
556
|
</h3>
|
|
@@ -136,9 +136,13 @@ export class BgGuide {
|
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
leaveGuide(vm, step) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
try {
|
|
140
|
+
const element = document.querySelector('.guide-BG');
|
|
141
|
+
this.clearEvent();
|
|
142
|
+
element.remove();
|
|
143
|
+
}
|
|
144
|
+
catch (e) {
|
|
145
|
+
}
|
|
142
146
|
this.step = step !== null && step !== void 0 ? step : -1;
|
|
143
147
|
if (!step) {
|
|
144
148
|
ApiShop.getFEGuideLeave().then(r => {
|
|
@@ -150,7 +154,13 @@ export class BgGuide {
|
|
|
150
154
|
});
|
|
151
155
|
}
|
|
152
156
|
else {
|
|
153
|
-
|
|
157
|
+
try {
|
|
158
|
+
document.querySelector(`.guide-BG`).remove();
|
|
159
|
+
}
|
|
160
|
+
catch (e) {
|
|
161
|
+
}
|
|
162
|
+
this.guide = 0;
|
|
163
|
+
this.drawBG();
|
|
154
164
|
}
|
|
155
165
|
});
|
|
156
166
|
}
|
|
@@ -275,7 +285,6 @@ export class BgGuide {
|
|
|
275
285
|
let target = document.querySelector(targetSelector);
|
|
276
286
|
let rect = target ? target.getBoundingClientRect() : '';
|
|
277
287
|
if (rect) {
|
|
278
|
-
target.scrollIntoView();
|
|
279
288
|
target = document.querySelector(targetSelector);
|
|
280
289
|
rect = target.getBoundingClientRect();
|
|
281
290
|
BG.style.clipPath = `polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 ${rect.bottom}px, ${rect.right}px ${rect.bottom}px, ${rect.right}px ${rect.top}px, 0 ${rect.top}px)`;
|
|
@@ -4535,6 +4544,7 @@ export class BgGuide {
|
|
|
4535
4544
|
document.querySelector('.guide-BG').innerHTML = innerHTML !== null && innerHTML !== void 0 ? innerHTML : ``;
|
|
4536
4545
|
}
|
|
4537
4546
|
else {
|
|
4547
|
+
document.querySelector('.scrollbar-hover').scrollTop = 0;
|
|
4538
4548
|
const innerHTML = this.guidePage[this.guide].innerHTML();
|
|
4539
4549
|
document.querySelector('.guide-BG').innerHTML = innerHTML !== null && innerHTML !== void 0 ? innerHTML : ``;
|
|
4540
4550
|
}
|