ts-glitter 16.7.3 → 16.7.5
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 +1 -1
- package/lowcode/cms-plugin/shopping-information.js +24 -0
- package/lowcode/cms-plugin/shopping-information.ts +29 -2
- package/lowcode/public-components/headers/sy-03.js +2 -2
- package/lowcode/public-components/headers/sy-03.ts +2 -2
- package/package.json +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -88,7 +88,7 @@ export class Entry {
|
|
|
88
88
|
}
|
|
89
89
|
window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : clockF();
|
|
90
90
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
91
|
-
glitter.share.editerVersion = 'V_16.7.
|
|
91
|
+
glitter.share.editerVersion = 'V_16.7.5';
|
|
92
92
|
glitter.share.start = new Date();
|
|
93
93
|
const vm = {
|
|
94
94
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -88,7 +88,7 @@ export class Entry {
|
|
|
88
88
|
}
|
|
89
89
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
90
90
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
91
|
-
glitter.share.editerVersion = 'V_16.7.
|
|
91
|
+
glitter.share.editerVersion = 'V_16.7.5';
|
|
92
92
|
glitter.share.start = new Date();
|
|
93
93
|
const vm: {
|
|
94
94
|
appConfig: any;
|
|
@@ -711,6 +711,7 @@ ${BgWidget.title('GoDaddy DNS 設定指南')}
|
|
|
711
711
|
}
|
|
712
712
|
};
|
|
713
713
|
})}
|
|
714
|
+
${this.policy(gvc)}
|
|
714
715
|
<div style="margin-top: 300px;"></div>
|
|
715
716
|
<div class="shadow"
|
|
716
717
|
style="width: 100%;padding: 14px 16px;background: #FFF; display: flex;justify-content: end;position: fixed;bottom: 0;right: 0;z-index:1;gap:14px;">
|
|
@@ -726,6 +727,29 @@ ${BgWidget.title('GoDaddy DNS 設定指南')}
|
|
|
726
727
|
}, divCreate: { style: `color:#393939;font-size: 14px;` }
|
|
727
728
|
});
|
|
728
729
|
}
|
|
730
|
+
static policy(gvc) {
|
|
731
|
+
const id = gvc.glitter.getUUID();
|
|
732
|
+
const html = String.raw;
|
|
733
|
+
return gvc.bindView(() => {
|
|
734
|
+
return {
|
|
735
|
+
bind: id,
|
|
736
|
+
view: () => {
|
|
737
|
+
return BgWidget.mainCard(`<div class="d-flex flex-column" style="">${[
|
|
738
|
+
html `
|
|
739
|
+
<div class="tx_normal fw-bold">相關條款</div>`,
|
|
740
|
+
html `
|
|
741
|
+
<div style="color: #393939;font-size: 16px;">服務條款</div>
|
|
742
|
+
<div style="color: #36B;font-size:13px;cursor:pointer;">
|
|
743
|
+
https://${window.parent.glitter.share.editorViewModel.domain}/terms
|
|
744
|
+
</div>`
|
|
745
|
+
].join('<div class="my-1"></div>')}</div>`);
|
|
746
|
+
},
|
|
747
|
+
divCreate: {
|
|
748
|
+
class: `mt-3`, style: ``
|
|
749
|
+
}
|
|
750
|
+
};
|
|
751
|
+
});
|
|
752
|
+
}
|
|
729
753
|
}
|
|
730
754
|
ShoppingInformation.question = {};
|
|
731
755
|
window.glitter.setModule(import.meta.url, ShoppingInformation);
|
|
@@ -199,7 +199,7 @@ export class ShoppingInformation {
|
|
|
199
199
|
gvc.notifyDataChange(vm.id)
|
|
200
200
|
})
|
|
201
201
|
}
|
|
202
|
-
vm.data.web_type=vm.data.web_type ?? ['shop']
|
|
202
|
+
vm.data.web_type = vm.data.web_type ?? ['shop']
|
|
203
203
|
vm.data.currency_code = vm.data.currency_code || 'TWD'
|
|
204
204
|
return BgWidget.container(html`
|
|
205
205
|
<div class="title-container mb-4">
|
|
@@ -317,7 +317,7 @@ export class ShoppingInformation {
|
|
|
317
317
|
}
|
|
318
318
|
],
|
|
319
319
|
callback: (array: any) => {
|
|
320
|
-
vm.data.web_type=array
|
|
320
|
+
vm.data.web_type = array
|
|
321
321
|
},
|
|
322
322
|
type: 'multiple',
|
|
323
323
|
})
|
|
@@ -740,6 +740,7 @@ ${BgWidget.title('GoDaddy DNS 設定指南')}
|
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
})}
|
|
743
|
+
${this.policy(gvc)}
|
|
743
744
|
<div style="margin-top: 300px;"></div>
|
|
744
745
|
<div class="shadow"
|
|
745
746
|
style="width: 100%;padding: 14px 16px;background: #FFF; display: flex;justify-content: end;position: fixed;bottom: 0;right: 0;z-index:1;gap:14px;">
|
|
@@ -760,6 +761,32 @@ ${BgWidget.title('GoDaddy DNS 設定指南')}
|
|
|
760
761
|
})
|
|
761
762
|
}
|
|
762
763
|
|
|
764
|
+
public static policy(gvc: GVC) {
|
|
765
|
+
const id = gvc.glitter.getUUID()
|
|
766
|
+
const html = String.raw
|
|
767
|
+
return gvc.bindView(() => {
|
|
768
|
+
return {
|
|
769
|
+
bind: id,
|
|
770
|
+
view: () => {
|
|
771
|
+
return BgWidget.mainCard(`<div class="d-flex flex-column" style="">${
|
|
772
|
+
[
|
|
773
|
+
html`
|
|
774
|
+
<div class="tx_normal fw-bold">相關條款</div>`,
|
|
775
|
+
html`
|
|
776
|
+
<div style="color: #393939;font-size: 16px;">服務條款</div>
|
|
777
|
+
<div style="color: #36B;font-size:13px;cursor:pointer;">
|
|
778
|
+
https://${(window.parent as any).glitter.share.editorViewModel.domain}/terms
|
|
779
|
+
</div>`
|
|
780
|
+
].join('<div class="my-1"></div>')
|
|
781
|
+
}</div>`)
|
|
782
|
+
},
|
|
783
|
+
divCreate: {
|
|
784
|
+
class: `mt-3`, style: ``
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
})
|
|
788
|
+
}
|
|
789
|
+
|
|
763
790
|
public static question = {}
|
|
764
791
|
|
|
765
792
|
}
|
|
@@ -22,7 +22,7 @@ export class Sy03 {
|
|
|
22
22
|
"
|
|
23
23
|
>
|
|
24
24
|
<div class="container header-place h-100 align-items-center justify-content-center d-flex" style="${document.body.clientWidth < 800 ? `height:76px !important;` : ``}">
|
|
25
|
-
<div class="d-flex flex-column align-items-center justify-content-center pb-md-3 flex-fill">
|
|
25
|
+
<div class="d-flex flex-column align-items-center justify-content-center pb-md-3 pt-md-3 flex-fill">
|
|
26
26
|
<!--LOGO顯示區塊-->
|
|
27
27
|
<div class="d-flex align-items-center justify-content-start justify-content-md-center h-100 w-100 gap-2">
|
|
28
28
|
<!--手機版選單-->
|
|
@@ -240,7 +240,7 @@ background: ${(_a = colors.bgr) !== null && _a !== void 0 ? _a : '#000'};overflo
|
|
|
240
240
|
return loopItems(vm.data);
|
|
241
241
|
},
|
|
242
242
|
divCreate: {
|
|
243
|
-
class: `navbar-nav ms-3 me-auto`,
|
|
243
|
+
class: `navbar-nav ms-3 me-auto mt-3`,
|
|
244
244
|
style: `flex-direction: row; gap: 15px;`,
|
|
245
245
|
elem: `ul`,
|
|
246
246
|
},
|
|
@@ -25,7 +25,7 @@ export class Sy03 {
|
|
|
25
25
|
"
|
|
26
26
|
>
|
|
27
27
|
<div class="container header-place h-100 align-items-center justify-content-center d-flex" style="${document.body.clientWidth < 800 ? `height:76px !important;` : ``}">
|
|
28
|
-
<div class="d-flex flex-column align-items-center justify-content-center pb-md-3 flex-fill">
|
|
28
|
+
<div class="d-flex flex-column align-items-center justify-content-center pb-md-3 pt-md-3 flex-fill">
|
|
29
29
|
<!--LOGO顯示區塊-->
|
|
30
30
|
<div class="d-flex align-items-center justify-content-start justify-content-md-center h-100 w-100 gap-2">
|
|
31
31
|
<!--手機版選單-->
|
|
@@ -244,7 +244,7 @@ background: ${colors.bgr ?? '#000'};overflow-x: hidden;`,
|
|
|
244
244
|
return loopItems(vm.data);
|
|
245
245
|
},
|
|
246
246
|
divCreate: {
|
|
247
|
-
class: `navbar-nav ms-3 me-auto`,
|
|
247
|
+
class: `navbar-nav ms-3 me-auto mt-3`,
|
|
248
248
|
style: `flex-direction: row; gap: 15px;`,
|
|
249
249
|
elem: `ul`,
|
|
250
250
|
},
|