ts-glitter 15.7.84 → 15.7.86
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-product-setting.js +4 -12
- package/lowcode/cms-plugin/shopping-product-setting.ts +1 -9
- package/lowcode/glitter-base/global/language.js +1 -0
- package/lowcode/glitter-base/global/language.ts +1 -0
- package/lowcode/public-components/user-manager/um-order.js +4 -3
- package/lowcode/public-components/user-manager/um-order.ts +5 -3
- package/package.json +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -80,7 +80,7 @@ export class Entry {
|
|
|
80
80
|
}
|
|
81
81
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
82
82
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
83
|
-
glitter.share.editerVersion = 'V_15.7.
|
|
83
|
+
glitter.share.editerVersion = 'V_15.7.86';
|
|
84
84
|
glitter.share.start = new Date();
|
|
85
85
|
const vm = {
|
|
86
86
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -82,7 +82,7 @@ export class Entry {
|
|
|
82
82
|
|
|
83
83
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
84
84
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
85
|
-
glitter.share.editerVersion = 'V_15.7.
|
|
85
|
+
glitter.share.editerVersion = 'V_15.7.86';
|
|
86
86
|
glitter.share.start = new Date();
|
|
87
87
|
const vm: {
|
|
88
88
|
appConfig: any;
|
|
@@ -1527,7 +1527,7 @@ export class ShoppingProductSetting {
|
|
|
1527
1527
|
updateVariants();
|
|
1528
1528
|
return [
|
|
1529
1529
|
BgWidget.container(html `
|
|
1530
|
-
<div class="title-container flex-column flex-sm-row" style="
|
|
1530
|
+
<div class="title-container flex-column flex-sm-row" style="">
|
|
1531
1531
|
<div class="d-flex align-items-center w-100">
|
|
1532
1532
|
${BgWidget.goBack(obj.gvc.event(() => {
|
|
1533
1533
|
if (window.parent.glitter.share.checkData && !window.parent.glitter.share.checkData()) {
|
|
@@ -3949,7 +3949,7 @@ export class ShoppingProductSetting {
|
|
|
3949
3949
|
return {
|
|
3950
3950
|
bind: 'seo',
|
|
3951
3951
|
view: () => {
|
|
3952
|
-
var _b, _c
|
|
3952
|
+
var _b, _c;
|
|
3953
3953
|
try {
|
|
3954
3954
|
language_data.seo.domain = language_data.seo.domain || language_data.title;
|
|
3955
3955
|
const href = `https://${window.parent.glitter.share.editorViewModel.domain}/${Language.getLanguageLinkPrefix(true, sel_lan())}products`;
|
|
@@ -4022,27 +4022,19 @@ export class ShoppingProductSetting {
|
|
|
4022
4022
|
},
|
|
4023
4023
|
placeHolder: ''
|
|
4024
4024
|
})}
|
|
4025
|
-
<input
|
|
4026
|
-
value="${(_b = language_data.seo.title) !== null && _b !== void 0 ? _b : ''}"
|
|
4027
|
-
style="width: 100%;padding: 9px 18px;border-radius: 10px;border: 1px solid #DDD;"
|
|
4028
|
-
onchange="${gvc.event((e) => {
|
|
4029
|
-
language_data.seo.title = e.value;
|
|
4030
|
-
obj.gvc.notifyDataChange('seo');
|
|
4031
|
-
})}"
|
|
4032
|
-
/>
|
|
4033
4025
|
<div class="w-100"
|
|
4034
4026
|
style="margin: 18px 0 8px;">SEO描述
|
|
4035
4027
|
</div>
|
|
4036
4028
|
<textarea
|
|
4037
4029
|
rows="4"
|
|
4038
|
-
value="${(
|
|
4030
|
+
value="${(_b = language_data.seo.content) !== null && _b !== void 0 ? _b : ''}"
|
|
4039
4031
|
style="width: 100%;padding: 9px 18px;border-radius: 10px;border: 1px solid #DDD;"
|
|
4040
4032
|
onchange="${gvc.event((e) => {
|
|
4041
4033
|
language_data.seo.content = e.value;
|
|
4042
4034
|
obj.gvc.notifyDataChange('seo');
|
|
4043
4035
|
})}"
|
|
4044
4036
|
>
|
|
4045
|
-
${(
|
|
4037
|
+
${(_c = language_data.seo.content) !== null && _c !== void 0 ? _c : ''}</textarea
|
|
4046
4038
|
>`;
|
|
4047
4039
|
}
|
|
4048
4040
|
catch (e) {
|
|
@@ -1804,7 +1804,7 @@ export class ShoppingProductSetting {
|
|
|
1804
1804
|
return [
|
|
1805
1805
|
BgWidget.container(
|
|
1806
1806
|
html`
|
|
1807
|
-
<div class="title-container flex-column flex-sm-row" style="
|
|
1807
|
+
<div class="title-container flex-column flex-sm-row" style="">
|
|
1808
1808
|
<div class="d-flex align-items-center w-100">
|
|
1809
1809
|
${BgWidget.goBack(
|
|
1810
1810
|
obj.gvc.event(() => {
|
|
@@ -4683,14 +4683,6 @@ export class ShoppingProductSetting {
|
|
|
4683
4683
|
},
|
|
4684
4684
|
placeHolder:''
|
|
4685
4685
|
})}
|
|
4686
|
-
<input
|
|
4687
|
-
value="${language_data.seo.title ?? ''}"
|
|
4688
|
-
style="width: 100%;padding: 9px 18px;border-radius: 10px;border: 1px solid #DDD;"
|
|
4689
|
-
onchange="${gvc.event((e) => {
|
|
4690
|
-
language_data.seo.title = e.value;
|
|
4691
|
-
obj.gvc.notifyDataChange('seo');
|
|
4692
|
-
})}"
|
|
4693
|
-
/>
|
|
4694
4686
|
<div class="w-100"
|
|
4695
4687
|
style="margin: 18px 0 8px;">SEO描述
|
|
4696
4688
|
</div>
|
|
@@ -93,6 +93,7 @@ export class Language {
|
|
|
93
93
|
static languageDataList() {
|
|
94
94
|
return [
|
|
95
95
|
{ key: 'c_cancel_order', tw: '請問確定要取消此訂單嗎?', cn: '请问确定要取消此订单吗?', en: `Are you sure you want to cancel this order?` },
|
|
96
|
+
{ key: 's_cancel_order', tw: '取消訂單成功', cn: '取消订单成功', en: `Order canceled successfully` },
|
|
96
97
|
{ key: 'stock_count', tw: '商品庫存', cn: '商品库存', en: `Stock quantity` },
|
|
97
98
|
{ key: 'birth', tw: '生日', cn: '生日', en: `Birth` },
|
|
98
99
|
{ key: 'buy_it_now', tw: '立即購買', cn: '立即购买', en: `Buy it now` },
|
|
@@ -99,6 +99,7 @@ export class Language {
|
|
|
99
99
|
public static languageDataList() {
|
|
100
100
|
return [
|
|
101
101
|
{ key: 'c_cancel_order', tw: '請問確定要取消此訂單嗎?', cn: '请问确定要取消此订单吗?', en: `Are you sure you want to cancel this order?` },
|
|
102
|
+
{ key: 's_cancel_order', tw: '取消訂單成功', cn: '取消订单成功', en: `Order canceled successfully` },
|
|
102
103
|
{ key: 'stock_count', tw: '商品庫存', cn: '商品库存', en: `Stock quantity` },
|
|
103
104
|
{ key: 'birth', tw: '生日', cn: '生日', en: `Birth` },
|
|
104
105
|
{ key: 'buy_it_now', tw: '立即購買', cn: '立即购买', en: `Buy it now` },
|
|
@@ -203,7 +203,8 @@ export class UMOrder {
|
|
|
203
203
|
return new Promise(() => {
|
|
204
204
|
ApiShop.cancelOrder(id).then((res) => {
|
|
205
205
|
dialog.dataLoading({ visible: false });
|
|
206
|
-
|
|
206
|
+
dialog.successMessage({ text: Language.text('s_cancel_order') });
|
|
207
|
+
gvc.recreateView();
|
|
207
208
|
});
|
|
208
209
|
});
|
|
209
210
|
}
|
|
@@ -483,7 +484,7 @@ export class UMOrder {
|
|
|
483
484
|
dialog.dataLoading({ visible: false });
|
|
484
485
|
try {
|
|
485
486
|
if (data.result && data.response.data) {
|
|
486
|
-
|
|
487
|
+
gvc.glitter.href = `/products/${data.response.data.content.seo.domain}`;
|
|
487
488
|
}
|
|
488
489
|
}
|
|
489
490
|
catch (error) {
|
|
@@ -836,7 +837,7 @@ export class UMOrder {
|
|
|
836
837
|
class="m-auto d-flex align-items-center justify-content-center my-5"
|
|
837
838
|
style="cursor: pointer;"
|
|
838
839
|
onclick="${gvc.event(() => {
|
|
839
|
-
|
|
840
|
+
gvc.glitter.href = `/order_list`;
|
|
840
841
|
})}"
|
|
841
842
|
>
|
|
842
843
|
<img class="me-2" src="https://ui.homee.ai/htmlExtension/shopify/order/img/back.svg" />
|
|
@@ -442,7 +442,9 @@ export class UMOrder {
|
|
|
442
442
|
return new Promise(() => {
|
|
443
443
|
ApiShop.cancelOrder(id).then((res) => {
|
|
444
444
|
dialog.dataLoading({ visible: false });
|
|
445
|
-
|
|
445
|
+
dialog.successMessage({text:Language.text('s_cancel_order')})
|
|
446
|
+
gvc.recreateView()
|
|
447
|
+
// gvc.glitter.href = `/order_list`;
|
|
446
448
|
});
|
|
447
449
|
});
|
|
448
450
|
}
|
|
@@ -958,7 +960,7 @@ export class UMOrder {
|
|
|
958
960
|
dialog.dataLoading({ visible: false });
|
|
959
961
|
try {
|
|
960
962
|
if (data.result && data.response.data) {
|
|
961
|
-
|
|
963
|
+
gvc.glitter.href = `/products/${data.response.data.content.seo.domain}`
|
|
962
964
|
}
|
|
963
965
|
} catch (error) {
|
|
964
966
|
dialog.errorMessage({ text: Language.text('product_not_found') });
|
|
@@ -1343,7 +1345,7 @@ export class UMOrder {
|
|
|
1343
1345
|
class="m-auto d-flex align-items-center justify-content-center my-5"
|
|
1344
1346
|
style="cursor: pointer;"
|
|
1345
1347
|
onclick="${gvc.event(() => {
|
|
1346
|
-
|
|
1348
|
+
gvc.glitter.href = `/order_list`;
|
|
1347
1349
|
})}"
|
|
1348
1350
|
>
|
|
1349
1351
|
<img class="me-2" src="https://ui.homee.ai/htmlExtension/shopify/order/img/back.svg" />
|