ts-glitter 14.3.9 → 14.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lowcode/Entry.js CHANGED
@@ -70,7 +70,7 @@ export class Entry {
70
70
  }
71
71
  window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
72
72
  console.log(`Entry-time:`, window.renderClock.stop());
73
- glitter.share.editerVersion = 'V_14.3.9';
73
+ glitter.share.editerVersion = 'V_14.4.0';
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.3.9';
76
+ glitter.share.editerVersion = 'V_14.4.0';
77
77
  glitter.share.start = new Date();
78
78
  const vm: {
79
79
  appConfig: any;
@@ -48,11 +48,11 @@ export class UMRebate {
48
48
  <div class="fa-duotone fa-coins fs-1 d-flex align-items-center justify-content-center"></div>
49
49
  <div class="${isWebsite ? '' : 'd-flex align-items-center gap-2'}">
50
50
  <div class="fw-500 fs-6">現有${vm.rebateConfig.title}</div>
51
- <div class="fw-bold mt-0 mt-md-1 mb-1 um-rb-amount">${vm.amount}</div>
51
+ <div class="fw-bold mt-0 mt-md-1 mb-1 um-rb-amount">${vm.amount.toLocaleString()}</div>
52
52
  </div>
53
53
  </div>
54
54
  <div class="d-flex align-items-center">
55
- <div class="d-flex align-items-center gap-3">${vm.oldestText}</div>
55
+ <div class="d-flex align-items-center gap-3">${vm.oldestText.replace(`@{{rebate_title}}`, vm.rebateConfig.title)}</div>
56
56
  </div>
57
57
  </div>
58
58
  <div class="col-12 mt-2" style="min-height: 500px;">
@@ -176,6 +176,7 @@ export class UMRebate {
176
176
  if (loadings.view) {
177
177
  gvc.addMtScript([{ src: `https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js` }], () => {
178
178
  Promise.all([
179
+ UmClass.getRebateInfo(),
179
180
  new Promise((resolve) => {
180
181
  ApiShop.getRebate({}).then((res) => __awaiter(this, void 0, void 0, function* () {
181
182
  if (res.result && res.response.sum) {
@@ -199,7 +200,7 @@ export class UMRebate {
199
200
  if (!(oldest.remain && oldest.deadline)) {
200
201
  resolve('');
201
202
  }
202
- resolve(html `您尚有 ${oldest.remain} 元${vm.rebateConfig.title}<br />將於 ${glitter.ut.dateFormat(new Date(oldest.deadline), 'yyyy/MM/dd hh:mm')} 到期`);
203
+ resolve(html `您尚有 ${oldest.remain.toLocaleString('')} @{{rebate_title}}<br/>將於 ${glitter.ut.dateFormat(new Date(oldest.deadline), 'yyyy/MM/dd hh:mm')} 到期`);
203
204
  }));
204
205
  }),
205
206
  new Promise((resolve) => {
@@ -215,13 +216,12 @@ export class UMRebate {
215
216
  resolve([]);
216
217
  }
217
218
  }));
218
- }),
219
- UmClass.getRebateInfo(),
219
+ })
220
220
  ]).then((dataList) => {
221
- vm.amount = dataList[0];
222
- vm.oldestText = dataList[1];
223
- vm.dataList = dataList[2];
224
- vm.rebateConfig = dataList[3];
221
+ vm.rebateConfig = dataList[0];
222
+ vm.amount = dataList[1];
223
+ vm.oldestText = dataList[2];
224
+ vm.dataList = dataList[3];
225
225
  loadings.view = false;
226
226
  gvc.notifyDataChange(ids.view);
227
227
  });
@@ -63,11 +63,11 @@ export class UMRebate {
63
63
  <div class="fa-duotone fa-coins fs-1 d-flex align-items-center justify-content-center"></div>
64
64
  <div class="${isWebsite ? '' : 'd-flex align-items-center gap-2'}">
65
65
  <div class="fw-500 fs-6">現有${vm.rebateConfig.title}</div>
66
- <div class="fw-bold mt-0 mt-md-1 mb-1 um-rb-amount">${vm.amount}</div>
66
+ <div class="fw-bold mt-0 mt-md-1 mb-1 um-rb-amount">${vm.amount.toLocaleString()}</div>
67
67
  </div>
68
68
  </div>
69
69
  <div class="d-flex align-items-center">
70
- <div class="d-flex align-items-center gap-3">${vm.oldestText}</div>
70
+ <div class="d-flex align-items-center gap-3">${vm.oldestText.replace(`@{{rebate_title}}`,vm.rebateConfig.title)}</div>
71
71
  </div>
72
72
  </div>
73
73
  <div class="col-12 mt-2" style="min-height: 500px;">
@@ -201,6 +201,7 @@ export class UMRebate {
201
201
  [{ src: `https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js` }],
202
202
  () => {
203
203
  Promise.all([
204
+ UmClass.getRebateInfo(),
204
205
  new Promise<number>((resolve) => {
205
206
  ApiShop.getRebate({}).then(async (res) => {
206
207
  if (res.result && res.response.sum) {
@@ -223,7 +224,7 @@ export class UMRebate {
223
224
  if (!(oldest.remain && oldest.deadline)) {
224
225
  resolve('');
225
226
  }
226
- resolve(html`您尚有 ${oldest.remain} 元${vm.rebateConfig.title}<br />將於 ${glitter.ut.dateFormat(new Date(oldest.deadline), 'yyyy/MM/dd hh:mm')} 到期`);
227
+ resolve(html`您尚有 ${oldest.remain.toLocaleString('')} @{{rebate_title}}<br/>將於 ${glitter.ut.dateFormat(new Date(oldest.deadline), 'yyyy/MM/dd hh:mm')} 到期`);
227
228
  });
228
229
  }),
229
230
  new Promise<RebateInfo[]>((resolve) => {
@@ -238,13 +239,13 @@ export class UMRebate {
238
239
  resolve([]);
239
240
  }
240
241
  });
241
- }),
242
- UmClass.getRebateInfo(),
242
+ })
243
243
  ]).then((dataList) => {
244
- vm.amount = dataList[0];
245
- vm.oldestText = dataList[1];
246
- vm.dataList = dataList[2];
247
- vm.rebateConfig = dataList[3];
244
+ vm.rebateConfig = dataList[0];
245
+ vm.amount = dataList[1];
246
+ vm.oldestText = dataList[2];
247
+ vm.dataList = dataList[3];
248
+
248
249
  loadings.view = false;
249
250
  gvc.notifyDataChange(ids.view);
250
251
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "14.3.9",
3
+ "version": "14.4.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {