ts-glitter 14.4.8 → 14.4.9

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.4.8';
73
+ glitter.share.editerVersion = 'V_14.4.9';
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.8';
76
+ glitter.share.editerVersion = 'V_14.4.9';
77
77
  glitter.share.start = new Date();
78
78
  const vm: {
79
79
  appConfig: any;
@@ -3086,6 +3086,13 @@ export class CheckoutIndex {
3086
3086
  if (!(yield this.checkFormData(vm.cartData, widget))) {
3087
3087
  return;
3088
3088
  }
3089
+ ;
3090
+ if (vm.cartData.user_info_same) {
3091
+ vm.cartData.user_info.name = vm.cartData.customer_info.name;
3092
+ vm.cartData.user_info.phone = vm.cartData.customer_info.phone;
3093
+ vm.cartData.user_info.email = vm.cartData.customer_info.email;
3094
+ }
3095
+ ;
3089
3096
  ['MerchantTradeNo', 'LogisticsSubType', 'CVSStoreID', 'CVSStoreName', 'CVSTelephone', 'CVSOutSide', 'ExtraData', 'CVSAddress'].map((dd) => {
3090
3097
  if (gvc.glitter.getUrlParameter(dd)) {
3091
3098
  vm.cartData.user_info[dd] = decodeURI(glitter.getUrlParameter(dd));
@@ -3209,7 +3209,12 @@ function getBadgeClass(){
3209
3209
  <button class="${gClass('button-bgr')}" onclick="${gvc.event(async () => {
3210
3210
  if (!await this.checkFormData(vm.cartData, widget)) {
3211
3211
  return
3212
- }
3212
+ };
3213
+ if (vm.cartData.user_info_same) {
3214
+ vm.cartData.user_info.name = vm.cartData.customer_info.name
3215
+ vm.cartData.user_info.phone = vm.cartData.customer_info.phone
3216
+ vm.cartData.user_info.email = vm.cartData.customer_info.email
3217
+ };
3213
3218
  ['MerchantTradeNo', 'LogisticsSubType', 'CVSStoreID', 'CVSStoreName', 'CVSTelephone', 'CVSOutSide', 'ExtraData', 'CVSAddress'].map((dd) => {
3214
3219
  if (gvc.glitter.getUrlParameter(dd)) {
3215
3220
  vm.cartData.user_info[dd] = decodeURI(glitter.getUrlParameter(dd));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "14.4.8",
3
+ "version": "14.4.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {