ts-glitter 14.3.6 → 14.3.7
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 +1 -1
- package/lowcode/Entry.ts +2 -1
- package/lowcode/cms-plugin/shopping-finance-setting.js +1 -1
- package/lowcode/cms-plugin/shopping-finance-setting.ts +1 -1
- package/lowcode/public-components/checkout/index.js +10 -1
- package/lowcode/public-components/checkout/index.ts +10 -2
- package/package.json +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.3.
|
|
73
|
+
glitter.share.editerVersion = 'V_14.3.7';
|
|
74
74
|
glitter.share.start = new Date();
|
|
75
75
|
const vm = {
|
|
76
76
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -10,6 +10,7 @@ import {EditorElem} from "./glitterBundle/plugins/editor-elem.js";
|
|
|
10
10
|
|
|
11
11
|
export class Entry {
|
|
12
12
|
public static onCreate(glitter: Glitter) {
|
|
13
|
+
|
|
13
14
|
glitter.share.reload = (page: string, app_name: string) => {
|
|
14
15
|
(window as any).appName = app_name || (window as any).appName;
|
|
15
16
|
(window as any).glitter_page = page;
|
|
@@ -72,7 +73,7 @@ export class Entry {
|
|
|
72
73
|
}
|
|
73
74
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
74
75
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
75
|
-
glitter.share.editerVersion = 'V_14.3.
|
|
76
|
+
glitter.share.editerVersion = 'V_14.3.7';
|
|
76
77
|
glitter.share.start = new Date();
|
|
77
78
|
const vm: {
|
|
78
79
|
appConfig: any;
|
|
@@ -58,7 +58,7 @@ export class ShoppingFinanceSetting {
|
|
|
58
58
|
return [
|
|
59
59
|
BgWidget.mainCard(html `
|
|
60
60
|
<div class="tx_700">線上金流</div>
|
|
61
|
-
${BgWidget.grayNote('
|
|
61
|
+
${BgWidget.grayNote('透過服務商串接線上付款功能')} ${BgWidget.mbContainer(12)}
|
|
62
62
|
${BgWidget.multiCheckboxContainer(gvc, onlinePayArray, (() => {
|
|
63
63
|
let array = [];
|
|
64
64
|
keyData.newWebPay.toggle && array.push('newWebPay');
|
|
@@ -108,7 +108,7 @@ export class ShoppingFinanceSetting {
|
|
|
108
108
|
BgWidget.mainCard(
|
|
109
109
|
html`
|
|
110
110
|
<div class="tx_700">線上金流</div>
|
|
111
|
-
${BgWidget.grayNote('
|
|
111
|
+
${BgWidget.grayNote('透過服務商串接線上付款功能')} ${BgWidget.mbContainer(12)}
|
|
112
112
|
${BgWidget.multiCheckboxContainer(
|
|
113
113
|
gvc,
|
|
114
114
|
onlinePayArray,
|
|
@@ -3218,6 +3218,15 @@ export class CheckoutIndex {
|
|
|
3218
3218
|
widget.event('error', { title: '姓名請設定為4~10字元(中文2~5個字, 英文4~10個字, 不得含指定特殊符號)' });
|
|
3219
3219
|
}
|
|
3220
3220
|
}
|
|
3221
|
+
if (['UNIMARTC2C', 'FAMIC2C', 'HILIFEC2C', 'OKMARTC2C'].includes(subData['shipment'])) {
|
|
3222
|
+
['MerchantID', 'MerchantTradeNo', 'LogisticsSubType', 'CVSStoreID', 'CVSAddress', 'CVSTelephone', 'CVSOutSide', 'CVSStoreName'].map((dd) => {
|
|
3223
|
+
const value = decodeURIComponent(window.glitter.getUrlParameter(dd));
|
|
3224
|
+
if (value) {
|
|
3225
|
+
subData[dd] = value;
|
|
3226
|
+
}
|
|
3227
|
+
});
|
|
3228
|
+
}
|
|
3229
|
+
alert(JSON.stringify(subData));
|
|
3221
3230
|
if (subData['shipment'] === 'normal' && (!subData['address'] || subData['address'] === '')) {
|
|
3222
3231
|
widget.event('error', { title: '請輸入「配送地址」' });
|
|
3223
3232
|
}
|
|
@@ -3414,7 +3423,7 @@ export class CheckoutIndex {
|
|
|
3414
3423
|
.${className}:checked[type='checkbox'] {
|
|
3415
3424
|
border: 2px solid ${color !== null && color !== void 0 ? color : '#000'};
|
|
3416
3425
|
background-color: #fff;
|
|
3417
|
-
background-image: url(${this.checkedDataImage(color !== null && color !== void 0 ? color : '#000')});
|
|
3426
|
+
background-image: url(${this.checkedDataImage(color !== null && color !== void 0 ? color : '#000')}) !important;
|
|
3418
3427
|
background-position: center center;
|
|
3419
3428
|
}
|
|
3420
3429
|
`);
|
|
@@ -3351,7 +3351,15 @@ function getBadgeClass(){
|
|
|
3351
3351
|
widget.event('error', {title: '姓名請設定為4~10字元(中文2~5個字, 英文4~10個字, 不得含指定特殊符號)'});
|
|
3352
3352
|
}
|
|
3353
3353
|
}
|
|
3354
|
-
|
|
3354
|
+
if(['UNIMARTC2C', 'FAMIC2C', 'HILIFEC2C', 'OKMARTC2C'].includes(subData['shipment'])){
|
|
3355
|
+
['MerchantID','MerchantTradeNo','LogisticsSubType','CVSStoreID','CVSAddress','CVSTelephone','CVSOutSide','CVSStoreName'].map((dd)=>{
|
|
3356
|
+
const value=decodeURIComponent((window as any).glitter.getUrlParameter(dd))
|
|
3357
|
+
if(value){
|
|
3358
|
+
subData[dd]=value
|
|
3359
|
+
}
|
|
3360
|
+
})
|
|
3361
|
+
}
|
|
3362
|
+
alert(JSON.stringify(subData))
|
|
3355
3363
|
if (subData['shipment'] === 'normal' && (!subData['address'] || subData['address'] === '')) {
|
|
3356
3364
|
widget.event('error', {title: '請輸入「配送地址」'});
|
|
3357
3365
|
} else if (subData['shipment'] === 'normal' && !checkAddressPattern(subData['address'])) {
|
|
@@ -3566,7 +3574,7 @@ function getBadgeClass(){
|
|
|
3566
3574
|
.${className}:checked[type='checkbox'] {
|
|
3567
3575
|
border: 2px solid ${color ?? '#000'};
|
|
3568
3576
|
background-color: #fff;
|
|
3569
|
-
background-image: url(${this.checkedDataImage(color ?? '#000')});
|
|
3577
|
+
background-image: url(${this.checkedDataImage(color ?? '#000')}) !important;
|
|
3570
3578
|
background-position: center center;
|
|
3571
3579
|
}
|
|
3572
3580
|
`);
|