ts-glitter 13.8.7995 → 13.8.7997

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.
Files changed (29) hide show
  1. package/lowcode/Entry.js +1 -1
  2. package/lowcode/Entry.ts +1 -1
  3. package/lowcode/backend-manager/bg-blog.js +134 -61
  4. package/lowcode/backend-manager/bg-blog.ts +141 -65
  5. package/lowcode/cms-plugin/ai-generator/product-ai.js +2 -2
  6. package/lowcode/cms-plugin/ai-generator/product-ai.ts +2 -2
  7. package/lowcode/cms-plugin/shopping-product-stock.js +3 -0
  8. package/lowcode/cms-plugin/shopping-product-stock.ts +3 -0
  9. package/lowcode/editor/basic-component.js +10 -1
  10. package/lowcode/editor/basic-component.ts +10 -1
  11. package/lowcode/form-view/e-commerce/product-select.js +37 -27
  12. package/lowcode/form-view/e-commerce/product-select.ts +118 -102
  13. package/lowcode/glitter-base/route/shopping.js +2 -2
  14. package/lowcode/glitter-base/route/shopping.ts +2 -2
  15. package/lowcode/jspage/main.ts +0 -1
  16. package/lowcode/official_view_component/official/component.js +7 -2
  17. package/lowcode/official_view_component/official/component.ts +7 -2
  18. package/lowcode/public-components/user-manager/um-class.js +2 -2
  19. package/lowcode/public-components/user-manager/um-class.ts +2 -2
  20. package/lowcode/public-components/user-manager/um-info.js +0 -4
  21. package/lowcode/public-components/user-manager/um-info.ts +0 -3
  22. package/lowcode/public-components/user-manager/um-rebate.js +4 -0
  23. package/lowcode/public-components/user-manager/um-rebate.ts +4 -0
  24. package/lowcode/public-components/user-manager/um-voucher.js +1 -1
  25. package/lowcode/public-components/user-manager/um-voucher.ts +1 -1
  26. package/package.json +1 -1
  27. package/src/services/template.js +1 -1
  28. package/src/services/template.js.map +1 -1
  29. 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.7995';
73
+ glitter.share.editerVersion = 'V_13.8.7997';
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.7995';
74
+ glitter.share.editerVersion = 'V_13.8.7997';
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
- Article.get({
281
- page: 0,
282
- limit: 20,
283
- search: ``,
284
- for_index: `false`,
285
- status: '0,1',
286
- page_type: page_tab,
287
- app_name: 't_1726217714800',
288
- }).then((dd) => {
289
- data = {
290
- response: {
291
- result: {
292
- data: [
293
- {
294
- id: 20739,
295
- userID: '234285319',
296
- tag: 'empty',
297
- name: '空白內容',
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
- image: ['https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/1709282671899-BLANK PAGE.jpg'],
307
- status: 'wait',
308
- post_to: 'all',
309
- version: '1.0',
310
- created_by: 'liondesign.io',
311
- preview_img: '',
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
- ].concat(dd.response.data.map((dd) => {
315
- return {
316
- id: 20739,
317
- userID: '234285319',
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
- image: [dd.content.seo.image],
330
- status: 'wait',
331
- post_to: 'all',
332
- version: '1.0',
333
- created_by: 'liondesign.io',
334
- preview_img: '',
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
- gvc.notifyDataChange(id);
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
- return a.template_config.name.localeCompare(b.template_config.name);
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
- window.parent.glitter.openNewTab(`${gvc.glitter.root_path}pages/${dd.tag}?appName=${dd.appName}`);
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
- Article.get({
319
- page: 0,
320
- limit: 20,
321
- search: ``,
322
- for_index: `false`,
323
- status: '0,1',
324
- page_type: page_tab,
325
- app_name: 't_1726217714800',
326
- }).then((dd) => {
327
- data = {
328
- response: {
329
- result: {
330
- data: [
331
- {
332
- id: 20739,
333
- userID: '234285319',
334
- tag: 'empty',
335
- name: '空白內容',
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
- image: ['https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/1709282671899-BLANK PAGE.jpg'],
345
- status: 'wait',
346
- post_to: 'all',
347
- version: '1.0',
348
- created_by: 'liondesign.io',
349
- preview_img: '',
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
- ].concat(
353
- dd.response.data.map((dd: any) => {
354
- return {
355
- id: 20739,
356
- userID: '234285319',
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
- image: [dd.content.seo.image],
369
- status: 'wait',
370
- post_to: 'all',
371
- version: '1.0',
372
- created_by: 'liondesign.io',
373
- preview_img: '',
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
- gvc.notifyDataChange(id);
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
- return a.template_config.name.localeCompare(b.template_config.name);
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
- (window.parent as any).glitter.openNewTab(
476
- `${gvc.glitter.root_path}pages/${dd.tag}?appName=${dd.appName}`
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>
@@ -9,7 +9,7 @@ export class ProductAi {
9
9
  title: 'AI 商品生成',
10
10
  innerHTML: (gvc) => {
11
11
  const html = String.raw;
12
- let message = '';
12
+ let message = '商品標題為Adidas衣服,規格有顏色和尺寸,其中有紅藍黃三種顏色,尺寸有S,M,L三種尺寸,紅色S號的販售價格為2000,紅色M號的價格為1500,其餘販售價格為1000元。';
13
13
  return html `
14
14
  <div class="">
15
15
  ${[
@@ -24,7 +24,7 @@ export class ProductAi {
24
24
  ${BgWidget.textArea({
25
25
  gvc: gvc,
26
26
  title: '',
27
- default: '商品標題為Adidas衣服,規格有顏色和尺寸,其中有紅藍黃三種顏色,尺寸有S,M,L三種尺寸,紅色S號的販售價格為2000,紅色M號的價格為1500,其餘販售價格為1000元。',
27
+ default: message,
28
28
  placeHolder: `商品標題為Adidas衣服,規格有顏色和尺寸,其中有紅藍黃三種顏色,尺寸有S,M,L三種尺寸,紅色S號的販售價格為2000,紅色M號的價格為1500,其餘販售價格為1000元。`,
29
29
  callback: (text) => {
30
30
  message = text;
@@ -122,7 +122,7 @@ export class ProductAi {
122
122
  title: 'AI 商品生成',
123
123
  innerHTML: (gvc: GVC) => {
124
124
  const html = String.raw
125
- let message = ''
125
+ let message = '商品標題為Adidas衣服,規格有顏色和尺寸,其中有紅藍黃三種顏色,尺寸有S,M,L三種尺寸,紅色S號的販售價格為2000,紅色M號的價格為1500,其餘販售價格為1000元。'
126
126
  return html`
127
127
  <div class="">
128
128
  ${[
@@ -137,7 +137,7 @@ export class ProductAi {
137
137
  ${BgWidget.textArea({
138
138
  gvc: gvc,
139
139
  title: '',
140
- default: '商品標題為Adidas衣服,規格有顏色和尺寸,其中有紅藍黃三種顏色,尺寸有S,M,L三種尺寸,紅色S號的販售價格為2000,紅色M號的價格為1500,其餘販售價格為1000元。',
140
+ default: message,
141
141
  placeHolder: `商品標題為Adidas衣服,規格有顏色和尺寸,其中有紅藍黃三種顏色,尺寸有S,M,L三種尺寸,紅色S號的販售價格為2000,紅色M號的價格為1500,其餘販售價格為1000元。`,
142
142
  callback: (text) => {
143
143
  message = text;
@@ -262,6 +262,9 @@ export class StockList {
262
262
  }
263
263
  },
264
264
  rowClick: (data, index) => {
265
+ if (option.select_mode) {
266
+ return;
267
+ }
265
268
  const product = vm.dataList[index].product_content;
266
269
  const variant = vm.dataList[index].variant_content;
267
270
  product.variants.map((dd) => {
@@ -327,6 +327,9 @@ export class StockList {
327
327
  // gvc.notifyDataChange(vm.filterId);
328
328
  },
329
329
  rowClick: (data, index) => {
330
+ if(option.select_mode){
331
+ return
332
+ }
330
333
  const product = vm.dataList[index].product_content;
331
334
  const variant = vm.dataList[index].variant_content;
332
335
  product.variants.map((dd: any) => {