ts-glitter 21.5.3 → 21.5.4

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 (79) hide show
  1. package/lowcode/Entry.js +1 -1
  2. package/lowcode/Entry.ts +1 -1
  3. package/lowcode/cms-plugin/account-info.js +79 -67
  4. package/lowcode/cms-plugin/account-info.ts +327 -311
  5. package/lowcode/cms-plugin/information/information-module.ts +3 -1
  6. package/lowcode/cms-plugin/list-header-option.js +1 -0
  7. package/lowcode/cms-plugin/list-header-option.ts +1 -0
  8. package/lowcode/cms-plugin/shopping-information.js +468 -0
  9. package/lowcode/cms-plugin/shopping-information.ts +557 -0
  10. package/lowcode/cms-plugin/shopping-market-shopee.js +283 -231
  11. package/lowcode/cms-plugin/shopping-market-shopee.ts +401 -361
  12. package/lowcode/cms-plugin/shopping-order-manager.js +16 -4
  13. package/lowcode/cms-plugin/shopping-order-manager.ts +18 -3
  14. package/lowcode/glitter-base/global/language.js +4 -1
  15. package/lowcode/glitter-base/global/language.ts +4 -2
  16. package/lowcode/glitter-base/route/shopee.js +48 -11
  17. package/lowcode/glitter-base/route/shopee.ts +119 -80
  18. package/lowcode/glitterBundle/plugins/html-render.js +121 -90
  19. package/lowcode/glitterBundle/plugins/html-render.ts +367 -318
  20. package/lowcode/modules/image-library.js +2 -3
  21. package/lowcode/modules/image-library.ts +21 -7
  22. package/lowcode/public-components/checkout/index.js +90 -41
  23. package/lowcode/public-components/checkout/index.ts +101 -49
  24. package/lowcode/public-components/footer/footer-initial.js +11 -2
  25. package/lowcode/public-components/footer/footer-initial.ts +29 -18
  26. package/lowcode/public-components/headers/header-class.js +47 -35
  27. package/lowcode/public-components/headers/header-class.ts +54 -38
  28. package/lowcode/public-components/layout-plugin/social-links-01.js +122 -3
  29. package/lowcode/public-components/layout-plugin/social-links-01.ts +135 -10
  30. package/lowcode/public-components/product/pd-card-01.js +23 -14
  31. package/lowcode/public-components/product/pd-card-01.ts +25 -14
  32. package/lowcode/public-components/product/pd-card-02.js +23 -16
  33. package/lowcode/public-components/product/pd-card-02.ts +25 -16
  34. package/lowcode/public-components/product/pd-card-03.js +25 -16
  35. package/lowcode/public-components/product/pd-card-03.ts +27 -16
  36. package/lowcode/public-components/terms-related/index.js +13 -2
  37. package/lowcode/public-components/terms-related/index.ts +15 -2
  38. package/lowcode/public-components/user-manager/um-class.js +490 -501
  39. package/lowcode/public-components/user-manager/um-class.ts +872 -882
  40. package/lowcode/public-components/user-manager/um-info.js +41 -40
  41. package/lowcode/public-components/user-manager/um-info.ts +54 -56
  42. package/lowcode/public-components/user-manager/um-login.js +10 -13
  43. package/lowcode/public-components/user-manager/um-login.ts +15 -23
  44. package/lowcode/public-components/user-manager/um-orderlist.js +60 -51
  45. package/lowcode/public-components/user-manager/um-orderlist.ts +289 -275
  46. package/lowcode/public-components/user-manager/um-rebate.js +104 -82
  47. package/lowcode/public-components/user-manager/um-rebate.ts +294 -267
  48. package/lowcode/public-components/user-manager/um-receive.js +582 -0
  49. package/lowcode/public-components/user-manager/um-receive.ts +599 -0
  50. package/lowcode/public-components/user-manager/um-wishlist.js +72 -68
  51. package/lowcode/public-components/user-manager/um-wishlist.ts +240 -230
  52. package/package.json +1 -1
  53. package/src/api-public/controllers/shopee.js +17 -0
  54. package/src/api-public/controllers/shopee.js.map +1 -1
  55. package/src/api-public/controllers/shopee.ts +32 -0
  56. package/src/api-public/services/monitor.d.ts +1 -0
  57. package/src/api-public/services/post.js +17 -7
  58. package/src/api-public/services/post.js.map +1 -1
  59. package/src/api-public/services/rebate.js +2 -11
  60. package/src/api-public/services/rebate.js.map +1 -1
  61. package/src/api-public/services/rebate.ts +5 -12
  62. package/src/api-public/services/shopee.d.ts +23 -2
  63. package/src/api-public/services/shopee.js +230 -111
  64. package/src/api-public/services/shopee.js.map +1 -1
  65. package/src/api-public/services/shopee.ts +1012 -838
  66. package/src/api-public/services/user.js +2 -2
  67. package/src/api-public/services/user.js.map +1 -1
  68. package/src/api-public/services/user.ts +3 -3
  69. package/src/index.js +17 -7
  70. package/src/index.js.map +1 -1
  71. package/src/modules/tool.d.ts +4 -4
  72. package/src/modules/tool.js +2 -1
  73. package/src/modules/tool.js.map +1 -1
  74. package/src/services/backend-service.js +17 -7
  75. package/src/services/backend-service.js.map +1 -1
  76. package/src/services/template.d.ts +1 -1
  77. package/src/services/template.js +24 -18
  78. package/src/services/template.js.map +1 -1
  79. package/src/services/template.ts +34 -37
@@ -191,8 +191,7 @@ export class imageLibrary {
191
191
  function itemClick() {
192
192
  var _a;
193
193
  if (vm.type == 'folder') {
194
- console.log("vm.link --", vm.link);
195
- vm.type = 'folderEdit';
194
+ vm.type = 'folder';
196
195
  that.selectImageLibrary(gvc, selectData => {
197
196
  vm.link = selectData;
198
197
  gvc.notifyDataChange(vm.id);
@@ -509,7 +508,6 @@ export class imageLibrary {
509
508
  }
510
509
  if (vm.type == 'folderViewToEdit') {
511
510
  vm.type = 'folderView';
512
- console.log("vm.link --", vm.link);
513
511
  yield that.selectImageLibrary(gvc, selectData => {
514
512
  vm.link = selectData;
515
513
  gvc.notifyDataChange(vm.id);
@@ -1023,6 +1021,7 @@ export class imageLibrary {
1023
1021
  });
1024
1022
  },
1025
1023
  footer_html: (gvc) => {
1024
+ const footerType = vm.type;
1026
1025
  const dialog = new ShareDialog(cf.gvc.glitter);
1027
1026
  function clearNoNeedData(items) {
1028
1027
  items.map(dd => {
@@ -16,6 +16,14 @@ export type FileItem = {
16
16
  id: string;
17
17
  };
18
18
 
19
+ type KeyType =
20
+ | 'file'
21
+ | 'folder'
22
+ | 'folderView'
23
+ | 'folderEdit'
24
+ | 'folderADD'
25
+ | 'folderViewToEdit';
26
+
19
27
  const html = String.raw;
20
28
  const css = String.raw;
21
29
 
@@ -48,7 +56,7 @@ export class imageLibrary {
48
56
  selected: boolean;
49
57
  query: string;
50
58
  orderString: string;
51
- type: string;
59
+ type: KeyType
52
60
  tag?: string;
53
61
  newFolder: FileItem;
54
62
  } = {
@@ -249,9 +257,8 @@ export class imageLibrary {
249
257
 
250
258
  function itemClick() {
251
259
  if (vm.type == 'folder') {
252
- console.log("vm.link --" , vm.link);
253
260
  //編輯資料夾內容
254
- vm.type = 'folderEdit';
261
+ vm.type = 'folder';
255
262
  that.selectImageLibrary(
256
263
  gvc,
257
264
  selectData => {
@@ -576,7 +583,7 @@ export class imageLibrary {
576
583
  ? '700'
577
584
  : '500'};cursor: pointer;"
578
585
  onclick="${gvc.event(e => {
579
- vm.type = data.key;
586
+ vm.type = data.key as KeyType;
580
587
  vm.query = '';
581
588
  gvc.notifyDataChange(vm.id);
582
589
  })}"
@@ -589,7 +596,6 @@ export class imageLibrary {
589
596
  }
590
597
  if (vm.type == 'folderViewToEdit'){
591
598
  vm.type = 'folderView';
592
- console.log("vm.link --" , vm.link);
593
599
  await that.selectImageLibrary(
594
600
  gvc,
595
601
  selectData => {
@@ -1164,8 +1170,17 @@ export class imageLibrary {
1164
1170
  label: string;
1165
1171
  onClick: () => void;
1166
1172
  };
1173
+ // type KeyType =
1174
+ // | 'file'
1175
+ // | 'folder'
1176
+ // | 'folderView'
1177
+ // | 'folderEdit'
1178
+ // | 'folderADD'
1179
+ // | 'folderViewToEdit';
1180
+ const footerType = vm.type
1167
1181
  const dialog = new ShareDialog(cf.gvc.glitter);
1168
1182
 
1183
+
1169
1184
  function clearNoNeedData(items: FileItem[]) {
1170
1185
  items.map(dd => {
1171
1186
  if ((dd as any).selected) {
@@ -1240,7 +1255,6 @@ export class imageLibrary {
1240
1255
  },
1241
1256
  ];
1242
1257
  }
1243
-
1244
1258
  function getDefaultButtons(gvc: GVC, save: Function, dialog: ShareDialog): BtnDef[] {
1245
1259
  const finishLabel = cf.key === 'album' ? '建立' : '完成';
1246
1260
  const cancelLabel = cf.key === 'album' ? '返回' : '取消';
@@ -1324,11 +1338,11 @@ export class imageLibrary {
1324
1338
  },
1325
1339
  ];
1326
1340
  }
1327
-
1328
1341
  const defs = vm.type === 'folderEdit' ? getFolderEditButtons(gvc, save) : getDefaultButtons(gvc, save, dialog);
1329
1342
  return gvc.bindView({
1330
1343
  bind:vm.footer_id,
1331
1344
  view:()=>{
1345
+
1332
1346
  return defs
1333
1347
  .map(d => {
1334
1348
  const widget =
@@ -29,6 +29,7 @@ import { ApiLiveInteraction } from '../../glitter-base/route/live-purchase-inter
29
29
  import { ApplicationConfig } from '../../application-config.js';
30
30
  import { CartModule } from '../modules/cart-module.js';
31
31
  import { ProductModule } from '../modules/product-module.js';
32
+ import { BgWidget } from '../../backend-manager/bg-widget.js';
32
33
  const html = String.raw;
33
34
  export class CheckoutIndex {
34
35
  static main(gvc, widget, subData) {
@@ -271,7 +272,7 @@ export class CheckoutIndex {
271
272
  gvc.addMtScript([
272
273
  {
273
274
  src: `${gvc.glitter.root_path}/jslib/lottie-player.js`,
274
- }
275
+ },
275
276
  ], () => { }, () => { });
276
277
  vm.cartData = FakeOrder.data;
277
278
  ApiWallet.getRebateConfig({ type: 'me' }).then((res) => __awaiter(this, void 0, void 0, function* () {
@@ -1226,7 +1227,7 @@ export class CheckoutIndex {
1226
1227
  style="${isSelected
1227
1228
  ? isSelected.id === pd.id
1228
1229
  ? `background: gray !important;`
1229
- : ``
1230
+ : ''
1230
1231
  : `background: orangered !important;`}"
1231
1232
  onclick="${gvc.event(() => {
1232
1233
  var _a;
@@ -1334,12 +1335,13 @@ export class CheckoutIndex {
1334
1335
  });
1335
1336
  })}"
1336
1337
  >
1337
- <span class="${gClass('button-text')}"
1338
- style="${isSelected
1338
+ <span
1339
+ class="${gClass('button-text')}"
1340
+ style="${isSelected
1339
1341
  ? isSelected.id === pd.id
1340
- ? ``
1342
+ ? ''
1341
1343
  : `color: white;`
1342
- : ``}"
1344
+ : ''}"
1343
1345
  >${isSelected
1344
1346
  ? isSelected.id === pd.id
1345
1347
  ? Language.text('selected')
@@ -1944,7 +1946,6 @@ export class CheckoutIndex {
1944
1946
  >
1945
1947
  <input
1946
1948
  class="${gClass('input')}"
1947
- type=""
1948
1949
  placeholder="${Language.text('postal_code')}"
1949
1950
  value="${vm.cartData.user_info.postal_code || ''}"
1950
1951
  onchange="${gvc.event(e => {
@@ -2175,39 +2176,87 @@ export class CheckoutIndex {
2175
2176
  style="cursor: pointer; color: #3366bb;"
2176
2177
  onclick="${gvc.event(() => {
2177
2178
  ApiUser.getUserData(GlobalUser.token, 'me').then(res => {
2178
- ['name', 'phone', 'email'].map(dd => {
2179
- vm.cartData.user_info[dd] =
2180
- res.response.userData[dd] || vm.cartData.user_info[dd];
2181
- });
2182
- [
2183
- {
2184
- key: 'carrier_num',
2185
- refer: res.response.userData['carrier_number'],
2186
- },
2187
- {
2188
- key: 'gui_number',
2189
- refer: res.response.userData['gui_number'],
2190
- },
2191
- {
2192
- key: 'send_type',
2193
- refer: res.response.userData['gui_number'] ||
2194
- !res.response.userData['carrier_number']
2195
- ? 'email'
2196
- : 'carrier_num',
2197
- },
2198
- {
2199
- key: 'invoice_type',
2200
- refer: res.response.userData['gui_number'] ? 'company' : 'me',
2201
- },
2202
- {
2203
- key: 'company',
2204
- refer: res.response.userData['company'],
2205
- },
2206
- ].map(dd => {
2207
- vm.cartData.user_info[dd.key] = dd.refer || vm.cartData.user_info[dd.key];
2208
- });
2209
- this.storeLocalData(vm.cartData);
2210
- gvc.notifyDataChange('invoice_place');
2179
+ const userData = res.response.userData;
2180
+ const userInfo = vm.cartData.user_info;
2181
+ function setUserInfo(data) {
2182
+ ['name', 'phone', 'email'].map(dd => {
2183
+ userInfo[dd] = data[dd] || userInfo[dd];
2184
+ });
2185
+ const { carrier_number, gui_number, company } = data;
2186
+ [
2187
+ {
2188
+ key: 'carrier_num',
2189
+ refer: carrier_number,
2190
+ },
2191
+ {
2192
+ key: 'gui_number',
2193
+ refer: gui_number,
2194
+ },
2195
+ {
2196
+ key: 'send_type',
2197
+ refer: gui_number || !carrier_number ? 'email' : 'carrier_num',
2198
+ },
2199
+ {
2200
+ key: 'invoice_type',
2201
+ refer: gui_number ? 'company' : 'me',
2202
+ },
2203
+ {
2204
+ key: 'company',
2205
+ refer: company,
2206
+ },
2207
+ ].map(dd => {
2208
+ userInfo[dd.key] = dd.refer || userInfo[dd.key];
2209
+ });
2210
+ CheckoutIndex.storeLocalData(vm.cartData);
2211
+ gvc.notifyDataChange('invoice_place');
2212
+ }
2213
+ if (Array.isArray(userData.receive_list)) {
2214
+ BgWidget.settingDialog({
2215
+ gvc,
2216
+ title: '快速帶入',
2217
+ innerHTML: (iGVC) => {
2218
+ const isPhone = document.body.clientWidth < 800;
2219
+ const listHTML = userData.receive_list
2220
+ .map((data, index) => {
2221
+ return html `<div
2222
+ class="d-flex justify-content-between align-items-center p-1 w-100 gap-2"
2223
+ >
2224
+ <div class="d-flex flex-column">
2225
+ <h5>收件人 ${index + 1}</h5>
2226
+ ${['name', 'email', 'phone']
2227
+ .filter(key => data[key])
2228
+ .map(key => {
2229
+ return html `<span style="line-break: anywhere;"
2230
+ >${data[key]}</span
2231
+ >`;
2232
+ })
2233
+ .join('')}
2234
+ </div>
2235
+ <button
2236
+ class="${gClass('button-bgr')}"
2237
+ style="width: ${isPhone ? 80 : 130}px;"
2238
+ onclick="${gvc.event(() => {
2239
+ iGVC.closeDialog();
2240
+ setUserInfo(data);
2241
+ })}"
2242
+ >
2243
+ <span class="${gClass('button-text')}" style="font-size: 13px;">
2244
+ ${Language.text('select')}</span
2245
+ >
2246
+ </button>
2247
+ </div>`;
2248
+ })
2249
+ .join(BgWidget.horizontalLine());
2250
+ return html `<div class="px-2 py-3">${listHTML}</div>`;
2251
+ },
2252
+ footer_html: () => {
2253
+ return '';
2254
+ },
2255
+ });
2256
+ }
2257
+ else {
2258
+ setUserInfo(userInfo);
2259
+ }
2211
2260
  });
2212
2261
  })}"
2213
2262
  >
@@ -2608,7 +2657,7 @@ export class CheckoutIndex {
2608
2657
  dd.form_config.title_style = {
2609
2658
  list: [
2610
2659
  {
2611
- class: ['company', 'gui_number', 'carrier_num'].includes(dd.key)
2660
+ class: ['company', 'gui_number', 'carrier_num', 'love_code'].includes(dd.key)
2612
2661
  ? gClass('label') + ' mt-2'
2613
2662
  : gClass('label') + ' mb-2',
2614
2663
  style: 'return `color:${glitter.share.globalValue[`theme_color.0.title`]} !important;font-size:16px !important;`',
@@ -22,6 +22,7 @@ import { ApiLiveInteraction } from '../../glitter-base/route/live-purchase-inter
22
22
  import { ApplicationConfig } from '../../application-config.js';
23
23
  import { CartModule, CartLogiGroup, CartDataList } from '../modules/cart-module.js';
24
24
  import { ProductModule } from '../modules/product-module.js';
25
+ import { BgWidget } from '../../backend-manager/bg-widget.js';
25
26
 
26
27
  const html = String.raw;
27
28
 
@@ -147,7 +148,7 @@ export class CheckoutIndex {
147
148
  apiCart = getCartData();
148
149
  const dialog = new ShareDialog(gvc.glitter);
149
150
  //初次載入不需要加載動畫
150
- if(!loadings.page){
151
+ if (!loadings.page) {
151
152
  dialog.dataLoading({ visible: true });
152
153
  }
153
154
  const beta = false;
@@ -320,7 +321,7 @@ export class CheckoutIndex {
320
321
  [
321
322
  {
322
323
  src: `${gvc.glitter.root_path}/jslib/lottie-player.js`,
323
- }
324
+ },
324
325
  ],
325
326
  () => {},
326
327
  () => {}
@@ -1309,7 +1310,6 @@ export class CheckoutIndex {
1309
1310
  </div>
1310
1311
  <!--贈品-->
1311
1312
  ${(() => {
1312
-
1313
1313
  const giftHtml = vm.cartData.voucherList
1314
1314
  .filter((d1: any) => {
1315
1315
  return d1.reBackType === 'giveaway';
@@ -1362,10 +1362,10 @@ export class CheckoutIndex {
1362
1362
  <button
1363
1363
  class="${gClass('button-bgr')} mb-0 mt-2"
1364
1364
  style="${isSelected
1365
- ? isSelected.id === pd.id
1366
- ? `background: gray !important;`
1367
- : ``
1368
- : `background: orangered !important;`}"
1365
+ ? isSelected.id === pd.id
1366
+ ? `background: gray !important;`
1367
+ : ''
1368
+ : `background: orangered !important;`}"
1369
1369
  onclick="${gvc.event(() => {
1370
1370
  if (isSelected && isSelected.id === pd.id) {
1371
1371
  return;
@@ -1489,12 +1489,13 @@ export class CheckoutIndex {
1489
1489
  );
1490
1490
  })}"
1491
1491
  >
1492
- <span class="${gClass('button-text')}"
1493
- style="${isSelected
1494
- ? isSelected.id === pd.id
1495
- ? ``
1496
- : `color: white;`
1497
- : ``}"
1492
+ <span
1493
+ class="${gClass('button-text')}"
1494
+ style="${isSelected
1495
+ ? isSelected.id === pd.id
1496
+ ? ''
1497
+ : `color: white;`
1498
+ : ''}"
1498
1499
  >${isSelected
1499
1500
  ? isSelected.id === pd.id
1500
1501
  ? Language.text('selected')
@@ -2157,7 +2158,6 @@ export class CheckoutIndex {
2157
2158
  >
2158
2159
  <input
2159
2160
  class="${gClass('input')}"
2160
- type=""
2161
2161
  placeholder="${Language.text('postal_code')}"
2162
2162
  value="${vm.cartData.user_info.postal_code || ''}"
2163
2163
  onchange="${gvc.event(e => {
@@ -2395,42 +2395,92 @@ export class CheckoutIndex {
2395
2395
  style="cursor: pointer; color: #3366bb;"
2396
2396
  onclick="${gvc.event(() => {
2397
2397
  ApiUser.getUserData(GlobalUser.token, 'me').then(res => {
2398
- ['name', 'phone', 'email'].map(dd => {
2399
- vm.cartData.user_info[dd] =
2400
- res.response.userData[dd] || vm.cartData.user_info[dd];
2401
- });
2398
+ const userData = res.response.userData;
2399
+ const userInfo = vm.cartData.user_info;
2402
2400
 
2403
- [
2404
- {
2405
- key: 'carrier_num',
2406
- refer: res.response.userData['carrier_number'],
2407
- },
2408
- {
2409
- key: 'gui_number',
2410
- refer: res.response.userData['gui_number'],
2411
- },
2412
- {
2413
- key: 'send_type',
2414
- refer:
2415
- res.response.userData['gui_number'] ||
2416
- !res.response.userData['carrier_number']
2417
- ? 'email'
2418
- : 'carrier_num',
2419
- },
2420
- {
2421
- key: 'invoice_type',
2422
- refer: res.response.userData['gui_number'] ? 'company' : 'me',
2423
- },
2424
- {
2425
- key: 'company',
2426
- refer: res.response.userData['company'],
2427
- },
2428
- ].map(dd => {
2429
- vm.cartData.user_info[dd.key] = dd.refer || vm.cartData.user_info[dd.key];
2430
- });
2401
+ function setUserInfo(data: any) {
2402
+ ['name', 'phone', 'email'].map(dd => {
2403
+ userInfo[dd] = data[dd] || userInfo[dd];
2404
+ });
2431
2405
 
2432
- this.storeLocalData(vm.cartData);
2433
- gvc.notifyDataChange('invoice_place');
2406
+ const { carrier_number, gui_number, company } = data;
2407
+
2408
+ [
2409
+ {
2410
+ key: 'carrier_num',
2411
+ refer: carrier_number,
2412
+ },
2413
+ {
2414
+ key: 'gui_number',
2415
+ refer: gui_number,
2416
+ },
2417
+ {
2418
+ key: 'send_type',
2419
+ refer: gui_number || !carrier_number ? 'email' : 'carrier_num',
2420
+ },
2421
+ {
2422
+ key: 'invoice_type',
2423
+ refer: gui_number ? 'company' : 'me',
2424
+ },
2425
+ {
2426
+ key: 'company',
2427
+ refer: company,
2428
+ },
2429
+ ].map(dd => {
2430
+ userInfo[dd.key] = dd.refer || userInfo[dd.key];
2431
+ });
2432
+
2433
+ CheckoutIndex.storeLocalData(vm.cartData);
2434
+ gvc.notifyDataChange('invoice_place');
2435
+ }
2436
+
2437
+ if (Array.isArray(userData.receive_list)) {
2438
+ BgWidget.settingDialog({
2439
+ gvc,
2440
+ title: '快速帶入',
2441
+ innerHTML: (iGVC: GVC) => {
2442
+ const isPhone = document.body.clientWidth < 800;
2443
+ const listHTML = userData.receive_list
2444
+ .map((data: any, index: number) => {
2445
+ return html`<div
2446
+ class="d-flex justify-content-between align-items-center p-1 w-100 gap-2"
2447
+ >
2448
+ <div class="d-flex flex-column">
2449
+ <h5>收件人 ${index + 1}</h5>
2450
+ ${['name', 'email', 'phone']
2451
+ .filter(key => data[key])
2452
+ .map(key => {
2453
+ return html`<span style="line-break: anywhere;"
2454
+ >${data[key]}</span
2455
+ >`;
2456
+ })
2457
+ .join('')}
2458
+ </div>
2459
+ <button
2460
+ class="${gClass('button-bgr')}"
2461
+ style="width: ${isPhone ? 80 : 130}px;"
2462
+ onclick="${gvc.event(() => {
2463
+ iGVC.closeDialog();
2464
+ setUserInfo(data);
2465
+ })}"
2466
+ >
2467
+ <span class="${gClass('button-text')}" style="font-size: 13px;">
2468
+ ${Language.text('select')}</span
2469
+ >
2470
+ </button>
2471
+ </div>`;
2472
+ })
2473
+ .join(BgWidget.horizontalLine());
2474
+
2475
+ return html`<div class="px-2 py-3">${listHTML}</div>`;
2476
+ },
2477
+ footer_html: () => {
2478
+ return '';
2479
+ },
2480
+ });
2481
+ } else {
2482
+ setUserInfo(userInfo);
2483
+ }
2434
2484
  });
2435
2485
  })}"
2436
2486
  >
@@ -2846,7 +2896,9 @@ export class CheckoutIndex {
2846
2896
  dd.form_config.title_style = {
2847
2897
  list: [
2848
2898
  {
2849
- class: ['company', 'gui_number', 'carrier_num'].includes(dd.key)
2899
+ class: ['company', 'gui_number', 'carrier_num', 'love_code'].includes(
2900
+ dd.key
2901
+ )
2850
2902
  ? gClass('label') + ' mt-2'
2851
2903
  : gClass('label') + ' mb-2',
2852
2904
  style:
@@ -9,8 +9,17 @@ export class FooterInitial {
9
9
  }
10
10
  else {
11
11
  const res_ = (() => {
12
- if ((window.glitter.getUrlParameter('page').startsWith('products/') || ['account_userinfo', 'account_edit', 'order_list', 'voucher-list', 'rebate',
13
- 'wishlist'].includes(window.glitter.getUrlParameter('page'))) && document.body.clientWidth < 800) {
12
+ if ((window.glitter.getUrlParameter('page').startsWith('products/') ||
13
+ [
14
+ 'account_userinfo',
15
+ 'recipient_info',
16
+ 'account_edit',
17
+ 'order_list',
18
+ 'voucher-list',
19
+ 'rebate',
20
+ 'wishlist',
21
+ ].includes(window.glitter.getUrlParameter('page'))) &&
22
+ document.body.clientWidth < 800) {
14
23
  return true;
15
24
  }
16
25
  else
@@ -1,26 +1,37 @@
1
1
  import { GVC } from '../../glitterBundle/GVController.js';
2
2
 
3
3
  export class FooterInitial {
4
- public static initial(cf: { browser: () => string; mobile: () => string, gvc: GVC }) {
4
+ public static initial(cf: { browser: () => string; mobile: () => string; gvc: GVC }) {
5
5
  const gvc = cf.gvc;
6
- if(gvc.glitter.share.is_application){
7
- if ((window as any).glitter.getUrlParameter('page').startsWith('products/') ) {
8
- return ``;
9
- }
6
+ if (gvc.glitter.share.is_application) {
7
+ if ((window as any).glitter.getUrlParameter('page').startsWith('products/')) {
8
+ return ``;
9
+ }
10
10
 
11
- return cf.mobile()
12
- }else{
13
- const res_=(()=>{
14
- if (((window as any).glitter.getUrlParameter('page').startsWith('products/') || ['account_userinfo','account_edit','order_list','voucher-list','rebate'
15
- ,'wishlist'].includes((window as any).glitter.getUrlParameter('page'))) && document.body.clientWidth < 800) {
16
- return true;
17
- } else return (window as any).glitter.getUrlParameter('page') === 'checkout';
18
- })()
19
- if(res_){
20
- return ``
21
- }else{
22
- return cf.browser()
23
- }
11
+ return cf.mobile();
12
+ } else {
13
+ const res_ = (() => {
14
+ if (
15
+ ((window as any).glitter.getUrlParameter('page').startsWith('products/') ||
16
+ [
17
+ 'account_userinfo',
18
+ 'recipient_info',
19
+ 'account_edit',
20
+ 'order_list',
21
+ 'voucher-list',
22
+ 'rebate',
23
+ 'wishlist',
24
+ ].includes((window as any).glitter.getUrlParameter('page'))) &&
25
+ document.body.clientWidth < 800
26
+ ) {
27
+ return true;
28
+ } else return (window as any).glitter.getUrlParameter('page') === 'checkout';
29
+ })();
30
+ if (res_) {
31
+ return ``;
32
+ } else {
33
+ return cf.browser();
34
+ }
24
35
  }
25
36
  }
26
37
  }