ts-glitter 14.4.0 → 14.4.2

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 (51) hide show
  1. package/lowcode/Entry.js +1 -1
  2. package/lowcode/Entry.ts +1 -1
  3. package/lowcode/backend-manager/bg-product.js +22 -20
  4. package/lowcode/backend-manager/bg-product.ts +85 -73
  5. package/lowcode/backend-manager/bg-recommend.js +31 -28
  6. package/lowcode/backend-manager/bg-recommend.ts +31 -28
  7. package/lowcode/cms-plugin/ai-message.ts +2 -1
  8. package/lowcode/cms-plugin/filter-options.js +6 -4
  9. package/lowcode/cms-plugin/filter-options.ts +8 -6
  10. package/lowcode/cms-plugin/module/product-excel.js +35 -14
  11. package/lowcode/cms-plugin/module/product-excel.ts +40 -15
  12. package/lowcode/cms-plugin/shopping-discount-setting.js +1 -1
  13. package/lowcode/cms-plugin/shopping-discount-setting.ts +5 -2
  14. package/lowcode/cms-plugin/shopping-invoice-manager.js +0 -1
  15. package/lowcode/cms-plugin/shopping-invoice-manager.ts +0 -1
  16. package/lowcode/cms-plugin/shopping-product-setting.js +265 -160
  17. package/lowcode/cms-plugin/shopping-product-setting.ts +295 -297
  18. package/lowcode/cms-plugin/shopping-product-stock.js +12 -16
  19. package/lowcode/cms-plugin/shopping-product-stock.ts +29 -35
  20. package/lowcode/glitter-base/route/shopping.js +25 -4
  21. package/lowcode/glitter-base/route/shopping.ts +52 -44
  22. package/lowcode/glitterBundle/html-component/widget.js +0 -3
  23. package/lowcode/glitterBundle/html-component/widget.ts +3 -3
  24. package/lowcode/public-components/blogs/blogs-01.js +138 -1
  25. package/lowcode/public-components/blogs/blogs-01.ts +142 -2
  26. package/lowcode/public-components/checkout/index.js +3 -2
  27. package/lowcode/public-components/checkout/index.ts +16 -3
  28. package/lowcode/public-components/product/product-detail.js +1 -0
  29. package/lowcode/public-components/product/product-detail.ts +1 -0
  30. package/lowcode/public-components/product/product-list.js +1 -0
  31. package/lowcode/public-components/product/product-list.ts +1 -0
  32. package/lowcode/public-components/user-manager/um-class.js +2 -2
  33. package/lowcode/public-components/user-manager/um-class.ts +2 -2
  34. package/lowcode/public-components/user-manager/um-rebate.js +9 -9
  35. package/lowcode/public-components/user-manager/um-rebate.ts +29 -29
  36. package/package.json +1 -1
  37. package/src/api-public/controllers/shop.js +18 -0
  38. package/src/api-public/controllers/shop.js.map +1 -1
  39. package/src/api-public/controllers/shop.ts +17 -1
  40. package/src/api-public/services/financial-service.d.ts +16 -0
  41. package/src/api-public/services/financial-service.js +70 -3
  42. package/src/api-public/services/financial-service.js.map +1 -1
  43. package/src/api-public/services/financial-service.ts +89 -4
  44. package/src/api-public/services/recommend.js +14 -0
  45. package/src/api-public/services/recommend.js.map +1 -1
  46. package/src/api-public/services/recommend.ts +15 -0
  47. package/src/api-public/services/shopping.d.ts +35 -0
  48. package/src/api-public/services/shopping.js +97 -9
  49. package/src/api-public/services/shopping.js.map +1 -1
  50. package/src/api-public/services/shopping.ts +136 -20
  51. package/src/services/template.js.map +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_14.4.0';
73
+ glitter.share.editerVersion = 'V_14.4.2';
74
74
  glitter.share.start = new Date();
75
75
  const vm = {
76
76
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -73,7 +73,7 @@ export class Entry {
73
73
  }
74
74
  (window as any).renderClock = (window as any).renderClock ?? clockF();
75
75
  console.log(`Entry-time:`, (window as any).renderClock.stop());
76
- glitter.share.editerVersion = 'V_14.4.0';
76
+ glitter.share.editerVersion = 'V_14.4.2';
77
77
  glitter.share.start = new Date();
78
78
  const vm: {
79
79
  appConfig: any;
@@ -2,7 +2,7 @@ import { BgWidget } from './bg-widget.js';
2
2
  import { ApiShop } from '../glitter-base/route/shopping.js';
3
3
  import { FilterOptions } from '../cms-plugin/filter-options.js';
4
4
  import { StockList } from '../cms-plugin/shopping-product-stock.js';
5
- import { ProductConfig } from "../cms-plugin/product-config.js";
5
+ import { ProductConfig } from '../cms-plugin/product-config.js';
6
6
  const html = String.raw;
7
7
  export class BgProduct {
8
8
  static variantsSelector(obj) {
@@ -84,7 +84,8 @@ export class BgProduct {
84
84
  options: FilterOptions.productOrderBy,
85
85
  })}
86
86
  </div>
87
- ${(gvc.map(vm.options
87
+ ${gvc
88
+ .map(vm.options
88
89
  .filter((dd) => {
89
90
  return !obj.filter || obj.filter(dd);
90
91
  })
@@ -125,26 +126,27 @@ export class BgProduct {
125
126
  bind: id,
126
127
  view: () => {
127
128
  return html `<input
128
- class="form-check-input mt-0 ${vm.checkClass}"
129
- type="checkbox"
130
- id="${opt.key}"
131
- name="radio_${vm.id}_${index}"
132
- onclick="${gvc.event(() => call())}"
133
- ${obj.default.includes(opt.key) ? 'checked' : ''}
134
- />
135
- <div
136
- class="d-flex align-items-center form-check-label c_updown_label cursor_pointer gap-3"
137
- onclick="${gvc.event(() => call())}"
138
- >
139
- ${BgWidget.validImageBox({
129
+ class="form-check-input mt-0 ${vm.checkClass}"
130
+ type="checkbox"
131
+ id="${opt.key}"
132
+ name="radio_${vm.id}_${index}"
133
+ onclick="${gvc.event(() => call())}"
134
+ ${obj.default.includes(opt.key) ? 'checked' : ''}
135
+ />
136
+ <div
137
+ class="d-flex align-items-center form-check-label c_updown_label cursor_pointer gap-3"
138
+ onclick="${gvc.event(() => call())}"
139
+ >
140
+ ${BgWidget.validImageBox({
140
141
  gvc: gvc,
141
142
  image: opt.image,
142
143
  width: 40,
143
144
  })}
144
- <div class="tx_normal ${opt.note ? 'mb-1' : ''} d-flex flex-column" style="gap:5px;">
145
- ${(obj.show_product_type) ? BgWidget.infoInsignia(`來源:${ProductConfig.getName(opt.content)}`) : ''}${opt.value}</div>
146
- ${opt.note ? html ` <div class="tx_gray_12">${opt.note}</div> ` : ''}
147
- </div>`;
145
+ <div class="tx_normal ${opt.note ? 'mb-1' : ''} d-flex gap-2">
146
+ ${obj.show_product_type ? BgWidget.infoInsignia(ProductConfig.getName(opt.content)) : ''}${opt.value}
147
+ </div>
148
+ ${opt.note ? html ` <div class="tx_gray_12">${opt.note}</div> ` : ''}
149
+ </div>`;
148
150
  },
149
151
  divCreate: {
150
152
  class: `d-flex align-items-center`,
@@ -152,7 +154,8 @@ export class BgProduct {
152
154
  },
153
155
  };
154
156
  });
155
- }))).trim() || `<div class="w-100 d-flex align-items-center justify-content-center">尚未加入任何商品,請前往管理中心加入商品。</div>`}
157
+ }))
158
+ .trim() || `<div class="w-100 d-flex align-items-center justify-content-center">尚未加入任何商品,請前往管理中心加入商品。</div>`}
156
159
  </div>
157
160
  <div class="c_dialog_bar">
158
161
  ${BgWidget.cancel(gvc.event(() => {
@@ -194,7 +197,6 @@ export class BgProduct {
194
197
  }).then((data) => {
195
198
  vm.options = data.response.data.map((product) => {
196
199
  var _a;
197
- console.log(product.content);
198
200
  return {
199
201
  key: product.content.id,
200
202
  value: product.content.title,
@@ -3,7 +3,7 @@ import { BgWidget } from './bg-widget.js';
3
3
  import { ApiShop } from '../glitter-base/route/shopping.js';
4
4
  import { FilterOptions } from '../cms-plugin/filter-options.js';
5
5
  import { StockList } from '../cms-plugin/shopping-product-stock.js';
6
- import {ProductConfig} from "../cms-plugin/product-config.js";
6
+ import { ProductConfig } from '../cms-plugin/product-config.js';
7
7
 
8
8
  const html = String.raw;
9
9
 
@@ -56,8 +56,18 @@ export class BgProduct {
56
56
  }, 'variantsSelector');
57
57
  }
58
58
 
59
- static productsDialog(obj: { gvc:GVC, title?: string; default: (number | string)[]; callback: (value: any) => void; filter?: (data: any) => boolean; productType?: string; single?: boolean;filter_visible?:string,show_product_type?:boolean }) {
60
- const glitter=(window.parent as any).glitter
59
+ static productsDialog(obj: {
60
+ gvc: GVC;
61
+ title?: string;
62
+ default: (number | string)[];
63
+ callback: (value: any) => void;
64
+ filter?: (data: any) => boolean;
65
+ productType?: string;
66
+ single?: boolean;
67
+ filter_visible?: string;
68
+ show_product_type?: boolean;
69
+ }) {
70
+ const glitter = (window.parent as any).glitter;
61
71
  return (window.parent as any).glitter.innerDialog((gvc: GVC) => {
62
72
  const vm = {
63
73
  id: glitter.getUUID(),
@@ -113,77 +123,80 @@ export class BgProduct {
113
123
  options: FilterOptions.productOrderBy,
114
124
  })}
115
125
  </div>
116
- ${(gvc.map(
126
+ ${gvc
127
+ .map(
117
128
  vm.options
118
- .filter((dd) => {
119
- return !obj.filter || obj.filter(dd);
120
- })
121
- .map((opt, index) => {
122
- const id = gvc.glitter.getUUID();
123
- vm.ids.push({
124
- key: opt.key,
125
- id: id,
126
- });
129
+ .filter((dd) => {
130
+ return !obj.filter || obj.filter(dd);
131
+ })
132
+ .map((opt, index) => {
133
+ const id = gvc.glitter.getUUID();
134
+ vm.ids.push({
135
+ key: opt.key,
136
+ id: id,
137
+ });
127
138
 
128
- function call() {
129
- if (obj.single) {
130
- const tempArray = JSON.parse(JSON.stringify(obj.default));
131
- const tempKey = tempArray[0];
132
- obj.default = [];
133
- vm.ids
134
- .filter((item) => {
135
- return tempArray.includes(item.key);
136
- })
137
- .map((item) => {
138
- gvc.notifyDataChange(item.id);
139
- });
140
- if (tempKey !== opt.key) {
141
- obj.default = [opt.key];
142
- }
139
+ function call() {
140
+ if (obj.single) {
141
+ const tempArray = JSON.parse(JSON.stringify(obj.default));
142
+ const tempKey = tempArray[0];
143
+ obj.default = [];
144
+ vm.ids
145
+ .filter((item) => {
146
+ return tempArray.includes(item.key);
147
+ })
148
+ .map((item) => {
149
+ gvc.notifyDataChange(item.id);
150
+ });
151
+ if (tempKey !== opt.key) {
152
+ obj.default = [opt.key];
153
+ }
154
+ } else {
155
+ if (obj.default.includes(opt.key)) {
156
+ obj.default = obj.default.filter((item) => item !== opt.key);
143
157
  } else {
144
- if (obj.default.includes(opt.key)) {
145
- obj.default = obj.default.filter((item) => item !== opt.key);
146
- } else {
147
- obj.default.push(opt.key);
148
- }
158
+ obj.default.push(opt.key);
149
159
  }
150
- gvc.notifyDataChange(id);
151
160
  }
161
+ gvc.notifyDataChange(id);
162
+ }
152
163
 
153
- return gvc.bindView(() => {
154
- return {
155
- bind: id,
156
- view: () => {
157
- return html`<input
158
- class="form-check-input mt-0 ${vm.checkClass}"
159
- type="checkbox"
160
- id="${opt.key}"
161
- name="radio_${vm.id}_${index}"
162
- onclick="${gvc.event(() => call())}"
163
- ${obj.default.includes(opt.key) ? 'checked' : ''}
164
- />
165
- <div
166
- class="d-flex align-items-center form-check-label c_updown_label cursor_pointer gap-3"
167
- onclick="${gvc.event(() => call())}"
168
- >
169
- ${BgWidget.validImageBox({
170
- gvc: gvc,
171
- image: opt.image,
172
- width: 40,
173
- })}
174
- <div class="tx_normal ${opt.note ? 'mb-1' : ''} d-flex flex-column" style="gap:5px;">
175
- ${(obj.show_product_type) ? BgWidget.infoInsignia(`來源:${ProductConfig.getName((opt as any).content as any)}`):''}${opt.value}</div>
176
- ${opt.note ? html` <div class="tx_gray_12">${opt.note}</div> ` : ''}
177
- </div>`;
178
- },
179
- divCreate: {
180
- class: `d-flex align-items-center`,
181
- style: `gap: 24px`,
182
- },
183
- };
184
- });
185
- })
186
- ) ).trim() || `<div class="w-100 d-flex align-items-center justify-content-center">尚未加入任何商品,請前往管理中心加入商品。</div>`}
164
+ return gvc.bindView(() => {
165
+ return {
166
+ bind: id,
167
+ view: () => {
168
+ return html`<input
169
+ class="form-check-input mt-0 ${vm.checkClass}"
170
+ type="checkbox"
171
+ id="${opt.key}"
172
+ name="radio_${vm.id}_${index}"
173
+ onclick="${gvc.event(() => call())}"
174
+ ${obj.default.includes(opt.key) ? 'checked' : ''}
175
+ />
176
+ <div
177
+ class="d-flex align-items-center form-check-label c_updown_label cursor_pointer gap-3"
178
+ onclick="${gvc.event(() => call())}"
179
+ >
180
+ ${BgWidget.validImageBox({
181
+ gvc: gvc,
182
+ image: opt.image,
183
+ width: 40,
184
+ })}
185
+ <div class="tx_normal ${opt.note ? 'mb-1' : ''} d-flex gap-2">
186
+ ${obj.show_product_type ? BgWidget.infoInsignia(ProductConfig.getName((opt as any).content as any)) : ''}${opt.value}
187
+ </div>
188
+ ${opt.note ? html` <div class="tx_gray_12">${opt.note}</div> ` : ''}
189
+ </div>`;
190
+ },
191
+ divCreate: {
192
+ class: `d-flex align-items-center`,
193
+ style: `gap: 24px`,
194
+ },
195
+ };
196
+ });
197
+ })
198
+ )
199
+ .trim() || `<div class="w-100 d-flex align-items-center justify-content-center">尚未加入任何商品,請前往管理中心加入商品。</div>`}
187
200
  </div>
188
201
  <div class="c_dialog_bar">
189
202
  ${BgWidget.cancel(
@@ -231,14 +244,13 @@ export class BgProduct {
231
244
  }
232
245
  })(),
233
246
  productType: obj.productType,
234
- filter_visible:obj.filter_visible,
247
+ filter_visible: obj.filter_visible,
235
248
  }).then((data) => {
236
249
  vm.options = data.response.data.map((product: { content: { id: number; title: string; preview_image: string[] } }) => {
237
- console.log(product.content);
238
250
  return {
239
251
  key: product.content.id,
240
252
  value: product.content.title,
241
- content:product.content,
253
+ content: product.content,
242
254
  image: product.content.preview_image[0] ?? BgWidget.noImageURL,
243
255
  };
244
256
  });
@@ -252,7 +264,7 @@ export class BgProduct {
252
264
  }, 'productsDialog');
253
265
  }
254
266
 
255
- static getProductOpts = (def: (number | string)[],product_type?: 'product' | 'addProduct' | 'giveaway' ) => {
267
+ static getProductOpts = (def: (number | string)[], product_type?: 'product' | 'addProduct' | 'giveaway') => {
256
268
  return new Promise<OptionsItem[]>((resolve) => {
257
269
  if (!def || def.length === 0) {
258
270
  resolve([]);
@@ -261,7 +273,7 @@ export class BgProduct {
261
273
  ApiShop.getProduct({
262
274
  page: 0,
263
275
  limit: 99999,
264
- productType:product_type,
276
+ productType: product_type,
265
277
  id_list: def.map((d) => `${d}`).join(','),
266
278
  }).then((data) => {
267
279
  resolve(
@@ -152,6 +152,10 @@ export class BgRecommend {
152
152
  };
153
153
  })()),
154
154
  },
155
+ {
156
+ key: '下單數',
157
+ value: `<span class="fs-7">${dd.orders ? dd.orders.toLocaleString() : 0}</span>`,
158
+ },
155
159
  {
156
160
  key: '總金額',
157
161
  value: `<span class="fs-7">${dd.total_price ? dd.total_price.toLocaleString() : 0}</span>`,
@@ -160,10 +164,6 @@ export class BgRecommend {
160
164
  key: '曝光量',
161
165
  value: `<span class="fs-7">${dd.exposure ? dd.exposure.toLocaleString() : 0}</span>`,
162
166
  },
163
- {
164
- key: '下單數',
165
- value: `<span class="fs-7">${dd.orders ? dd.orders.toLocaleString() : 0}</span>`,
166
- },
167
167
  {
168
168
  key: '轉換率',
169
169
  value: `<span class="fs-7">${(_b = dd.conversion_rate) !== null && _b !== void 0 ? _b : 0}%</span>`,
@@ -178,7 +178,9 @@ export class BgRecommend {
178
178
  },
179
179
  {
180
180
  key: '期限',
181
- value: `<div class="fs-7">${dd.content.startDate} ~ ${(_c = dd.content.endDate) !== null && _c !== void 0 ? _c : '永不過期'}</div>`,
181
+ value: html `<div class="me-2">
182
+ <span class="fs-7">${dd.content.startDate} ~ ${(_c = dd.content.endDate) !== null && _c !== void 0 ? _c : '永不過期'}</span>
183
+ </div>`,
182
184
  },
183
185
  {
184
186
  key: '狀態',
@@ -531,13 +533,13 @@ export class BgRecommend {
531
533
  bind: id,
532
534
  view: () => {
533
535
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
534
- const inputStyle = 'font-size: 16px; height:40px; width:200px;';
536
+ const inputStyle = 'font-size: 16px; height:40px;';
535
537
  let map = [
536
538
  BgWidget.mainCard([
537
- html ` <div class="tx_700">連結網址</div>`,
538
- html ` <div class="tx_normal">分銷代碼</div>
539
+ html ` <div class="tx_700 mb-2">連結網址</div>
540
+ <div class="tx_normal">分銷代碼</div>
539
541
  <div style="margin: 4px 0 8px;">${BgWidget.grayNote('是一段唯一的識別碼,用於系統追蹤和記錄通過該代碼完成的銷售')}</div>
540
- ${EditorElem.editeInput({
542
+ ${BgWidget.editeInput({
541
543
  gvc: gvc,
542
544
  title: '',
543
545
  default: (_a = vm.data.code) !== null && _a !== void 0 ? _a : '',
@@ -611,10 +613,10 @@ export class BgRecommend {
611
613
  ].join('');
612
614
  },
613
615
  }),
614
- html ` <div class="tx_700">基本設定</div>`,
615
- html ` <div class="tx_normal">分銷連結名稱</div>
616
+ html ` <div class="tx_700 mb-2">基本設定</div>
617
+ <div class="tx_normal">分銷連結名稱</div>
616
618
  ${BgWidget.mbContainer(8)}
617
- ${EditorElem.editeInput({
619
+ ${BgWidget.editeInput({
618
620
  gvc: gvc,
619
621
  title: '',
620
622
  default: (_c = vm.data.title) !== null && _c !== void 0 ? _c : '',
@@ -1032,7 +1034,7 @@ export class BgRecommend {
1032
1034
  ? [
1033
1035
  '',
1034
1036
  html `<div class="tx_normal">名字</div>`,
1035
- EditorElem.editeInput({
1037
+ BgWidget.editeInput({
1036
1038
  gvc: gvc,
1037
1039
  title: '',
1038
1040
  default: user.content.name,
@@ -1042,7 +1044,7 @@ export class BgRecommend {
1042
1044
  }),
1043
1045
  html ` <div class="tx_normal">電子信箱</div>
1044
1046
  ${BgWidget.grayNote('將作為登入帳號,系統會寄送隨機密碼至此信箱')}`,
1045
- EditorElem.editeInput({
1047
+ BgWidget.editeInput({
1046
1048
  gvc: gvc,
1047
1049
  title: '',
1048
1050
  default: user.email,
@@ -1051,7 +1053,7 @@ export class BgRecommend {
1051
1053
  readonly: true,
1052
1054
  }),
1053
1055
  html `<div class="tx_normal">電話</div>`,
1054
- EditorElem.editeInput({
1056
+ BgWidget.editeInput({
1055
1057
  gvc: gvc,
1056
1058
  title: '',
1057
1059
  default: user.content.phone,
@@ -1075,7 +1077,7 @@ export class BgRecommend {
1075
1077
  return html `<div>
1076
1078
  ${[
1077
1079
  html `<div class="tx_normal">名字</div>`,
1078
- EditorElem.editeInput({
1080
+ BgWidget.editeInput({
1079
1081
  gvc: gvc,
1080
1082
  title: '',
1081
1083
  default: user ? user.content.name : (_a = vm.data.recommend_user.name) !== null && _a !== void 0 ? _a : '',
@@ -1094,7 +1096,7 @@ export class BgRecommend {
1094
1096
  bind: id,
1095
1097
  view: () => {
1096
1098
  var _a;
1097
- return EditorElem.editeInput({
1099
+ return BgWidget.editeInput({
1098
1100
  gvc: gvc,
1099
1101
  title: '',
1100
1102
  default: user ? user.content.email : (_a = vm.data.recommend_user.email) !== null && _a !== void 0 ? _a : '',
@@ -1114,7 +1116,7 @@ export class BgRecommend {
1114
1116
  };
1115
1117
  })()),
1116
1118
  html `<div class="tx_normal">電話</div>`,
1117
- EditorElem.editeInput({
1119
+ BgWidget.editeInput({
1118
1120
  gvc: gvc,
1119
1121
  title: '',
1120
1122
  default: user ? user.content.phone : (_b = vm.data.recommend_user.phone) !== null && _b !== void 0 ? _b : '',
@@ -1153,9 +1155,10 @@ export class BgRecommend {
1153
1155
  ].join(BgWidget.mbContainer(18))),
1154
1156
  BgWidget.mainCard([
1155
1157
  html ` <div class="tx_700">活動時間</div>`,
1158
+ BgWidget.mbContainer(18),
1156
1159
  html `<div class="tx_normal">開始時間</div>`,
1157
- html ` <div class="d-flex mb-3 ${document.body.clientWidth < 768 ? 'flex-column' : ''}" style="gap: 12px">
1158
- ${EditorElem.editeInput({
1160
+ html ` <div class="d-flex mb-2 ${document.body.clientWidth < 768 ? 'flex-column' : ''}" style="gap: 12px">
1161
+ ${BgWidget.editeInput({
1159
1162
  gvc: gvc,
1160
1163
  title: '',
1161
1164
  type: 'date',
@@ -1166,7 +1169,7 @@ export class BgRecommend {
1166
1169
  vm.data.startDate = text;
1167
1170
  },
1168
1171
  })}
1169
- ${EditorElem.editeInput({
1172
+ ${BgWidget.editeInput({
1170
1173
  gvc: gvc,
1171
1174
  title: '',
1172
1175
  type: 'time',
@@ -1182,8 +1185,8 @@ export class BgRecommend {
1182
1185
  {
1183
1186
  key: 'withEnd',
1184
1187
  name: '設定結束時間',
1185
- innerHtml: html `<div class="d-flex mt-3 ${document.body.clientWidth < 768 ? 'flex-column' : ''}" style="gap: 12px">
1186
- ${EditorElem.editeInput({
1188
+ innerHtml: html `<div class="d-flex mt-1 ${document.body.clientWidth < 768 ? 'flex-column' : ''}" style="gap: 12px">
1189
+ ${BgWidget.editeInput({
1187
1190
  gvc: gvc,
1188
1191
  title: '',
1189
1192
  type: 'date',
@@ -1194,7 +1197,7 @@ export class BgRecommend {
1194
1197
  vm.data.endDate = text;
1195
1198
  },
1196
1199
  })}
1197
- ${EditorElem.editeInput({
1200
+ ${BgWidget.editeInput({
1198
1201
  gvc: gvc,
1199
1202
  title: '',
1200
1203
  type: 'time',
@@ -1218,7 +1221,7 @@ export class BgRecommend {
1218
1221
  vm.data.endTime = undefined;
1219
1222
  }
1220
1223
  }, { single: false }),
1221
- ].join(BgWidget.mbContainer(18))),
1224
+ ].join('')),
1222
1225
  ];
1223
1226
  return map.join(BgWidget.mbContainer(24));
1224
1227
  },
@@ -1484,7 +1487,7 @@ export class BgRecommend {
1484
1487
  <div class="col-12 col-md-6">
1485
1488
  <div class="tx_normal">姓名</div>
1486
1489
  ${BgWidget.mbContainer(8)}
1487
- ${EditorElem.editeInput({
1490
+ ${BgWidget.editeInput({
1488
1491
  gvc: gvc,
1489
1492
  title: '',
1490
1493
  default: (_a = vm.data.name) !== null && _a !== void 0 ? _a : '',
@@ -1498,7 +1501,7 @@ export class BgRecommend {
1498
1501
  <div class="col-12 col-md-6">
1499
1502
  <div class="tx_normal">電子信箱</div>
1500
1503
  ${BgWidget.mbContainer(8)}
1501
- ${EditorElem.editeInput({
1504
+ ${BgWidget.editeInput({
1502
1505
  gvc: gvc,
1503
1506
  title: '',
1504
1507
  default: (_b = vm.data.email) !== null && _b !== void 0 ? _b : '',
@@ -1511,7 +1514,7 @@ export class BgRecommend {
1511
1514
  </div>`,
1512
1515
  html `<div class="tx_normal">電話</div>
1513
1516
  ${BgWidget.mbContainer(8)}
1514
- ${EditorElem.editeInput({
1517
+ ${BgWidget.editeInput({
1515
1518
  gvc: gvc,
1516
1519
  title: '',
1517
1520
  default: (_c = vm.data.phone) !== null && _c !== void 0 ? _c : '',