ts-glitter 22.5.6 → 22.5.8
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/backend-manager/bg-product.js +13 -13
- package/lowcode/backend-manager/bg-product.ts +13 -13
- package/lowcode/backend-manager/bg-shopping.js +8 -13
- package/lowcode/backend-manager/bg-shopping.ts +8 -15
- package/lowcode/backend-manager/bg-widget.js +62 -49
- package/lowcode/backend-manager/bg-widget.ts +129 -93
- package/lowcode/cms-plugin/POS-setting.js +30 -9
- package/lowcode/cms-plugin/POS-setting.ts +49 -16
- package/lowcode/cms-plugin/cms-router.js +27 -21
- package/lowcode/cms-plugin/cms-router.ts +116 -101
- package/lowcode/cms-plugin/filter-options.js +25 -17
- package/lowcode/cms-plugin/filter-options.ts +27 -17
- package/lowcode/cms-plugin/module/product-excel.js +2 -0
- package/lowcode/cms-plugin/module/product-excel.ts +2 -0
- package/lowcode/cms-plugin/module/product-setting.js +13 -12
- package/lowcode/cms-plugin/module/product-setting.ts +26 -23
- package/lowcode/cms-plugin/order/order-module.js +91 -68
- package/lowcode/cms-plugin/order/order-module.ts +105 -73
- package/lowcode/cms-plugin/pos-checkout-setting.js +46 -39
- package/lowcode/cms-plugin/pos-checkout-setting.ts +237 -227
- package/lowcode/cms-plugin/pos-config-setting.js +25 -23
- package/lowcode/cms-plugin/pos-config-setting.ts +35 -32
- package/lowcode/cms-plugin/pos-pages/payment-function.js +253 -139
- package/lowcode/cms-plugin/pos-pages/payment-function.ts +405 -279
- package/lowcode/cms-plugin/pos-pages/payment-page.js +348 -267
- package/lowcode/cms-plugin/pos-pages/payment-page.ts +378 -296
- package/lowcode/cms-plugin/pos-pages/pos-function.js +76 -19
- package/lowcode/cms-plugin/pos-pages/pos-function.ts +84 -19
- package/lowcode/cms-plugin/shopping-discount-setting.js +2 -2
- package/lowcode/cms-plugin/shopping-discount-setting.ts +2 -2
- package/lowcode/cms-plugin/shopping-finance-setting.js +1590 -1701
- package/lowcode/cms-plugin/shopping-finance-setting.ts +1967 -2011
- package/lowcode/cms-plugin/shopping-order-manager.js +74 -62
- package/lowcode/cms-plugin/shopping-order-manager.ts +119 -85
- package/lowcode/cms-plugin/shopping-product-text.js +874 -531
- package/lowcode/cms-plugin/shopping-product-text.ts +1656 -1305
- package/lowcode/cms-plugin/shopping-setting-basic.js +152 -124
- package/lowcode/cms-plugin/shopping-setting-basic.ts +315 -247
- package/lowcode/css/editor.css +3 -2
- package/lowcode/glitter-base/global/language.js +5 -3
- package/lowcode/glitter-base/global/language.ts +8 -6
- package/lowcode/glitter-base/global/payment-config.js +6 -0
- package/lowcode/glitter-base/global/payment-config.ts +6 -3
- package/lowcode/public-components/product/pd-class.js +1 -3
- package/lowcode/public-components/product/pd-class.ts +1 -3
- package/lowcode/public-components/user-manager/um-order.js +2 -1
- package/lowcode/public-components/user-manager/um-order.ts +2 -1
- package/package.json +1 -1
- package/src/api-public/controllers/index.js +14 -1
- package/src/api-public/controllers/index.js.map +1 -1
- package/src/api-public/controllers/index.ts +16 -1
- package/src/api-public/controllers/shop.js +14 -7
- package/src/api-public/controllers/shop.js.map +1 -1
- package/src/api-public/controllers/shop.ts +14 -8
- package/src/api-public/services/data-analyze.d.ts +1 -1
- package/src/api-public/services/ezpay/tool.d.ts +0 -1
- package/src/api-public/services/financial-serviceV2.js +7 -17
- package/src/api-public/services/financial-serviceV2.js.map +1 -1
- package/src/api-public/services/shopee.js.map +1 -1
- package/src/api-public/services/updated-table-checked.js +20 -0
- package/src/api-public/services/updated-table-checked.js.map +1 -1
- package/src/api-public/services/updated-table-checked.ts +21 -0
- package/src/app-project/serverless/src/modules/database.d.ts +1 -1
- package/src/app-project/serverless/src/modules/redis.d.ts +1 -1
- package/src/helper/glitter-util.d.ts +0 -1
- package/src/index.js +3 -3
- package/src/index.js.map +13 -1
- package/src/modules/database.js +5 -1
- package/src/modules/database.js.map +1 -1
- package/src/modules/database.ts +5 -1
- package/src/modules/tool.d.ts +2 -0
- package/src/modules/tool.js +7 -0
- package/src/modules/tool.js.map +1 -1
- package/src/modules/tool.ts +7 -0
- package/src/seo-config.js +3 -3
- package/src/seo-config.js.map +9 -1
- package/src/services/private_config.js +11 -0
- package/src/services/private_config.js.map +1 -1
- package/src/services/private_config.ts +11 -0
- package/src/services/saas-table-check.js +12 -0
- package/src/services/saas-table-check.js.map +1 -1
- package/src/services/saas-table-check.ts +12 -0
- package/src/services/ses.js +3 -4
- package/src/services/ses.js.map +1 -1
|
@@ -771,13 +771,13 @@ export class ShoppingSettingBasic {
|
|
|
771
771
|
}
|
|
772
772
|
function drawProductImageBlock() {
|
|
773
773
|
return BgWidget.mainCard(html `<!--繪製商品圖片展示區塊-->
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
774
|
+
<div
|
|
775
|
+
class="d-flex align-items-center justify-content-between"
|
|
776
|
+
style="color: #393939;font-size: 16px;font-weight: 700;margin-bottom: 18px;"
|
|
777
|
+
>
|
|
778
|
+
<div class="d-flex align-items-center">圖片${BgWidget.languageInsignia(sel_lan(), 'margin-left:5px;')}</div>
|
|
779
|
+
<div class="d-flex align-items-center gap-2">
|
|
780
|
+
${BgWidget.customButton({
|
|
781
781
|
button: {
|
|
782
782
|
color: 'black',
|
|
783
783
|
size: 'sm',
|
|
@@ -807,7 +807,7 @@ export class ShoppingSettingBasic {
|
|
|
807
807
|
});
|
|
808
808
|
}),
|
|
809
809
|
})}
|
|
810
|
-
|
|
810
|
+
${BgWidget.customButton({
|
|
811
811
|
button: {
|
|
812
812
|
color: 'black',
|
|
813
813
|
size: 'sm',
|
|
@@ -827,13 +827,13 @@ export class ShoppingSettingBasic {
|
|
|
827
827
|
dialog.errorMessage({ text: '請選擇至少一張圖片' });
|
|
828
828
|
}
|
|
829
829
|
}, html ` <div class="d-flex flex-column" style="border-radius: 10px 10px 0px 0px;background: #F2F2F2;">
|
|
830
|
-
|
|
831
|
-
|
|
830
|
+
圖片庫
|
|
831
|
+
</div>`, { mul: true });
|
|
832
832
|
}),
|
|
833
833
|
})}
|
|
834
|
+
</div>
|
|
834
835
|
</div>
|
|
835
|
-
|
|
836
|
-
${obj.gvc.bindView(() => {
|
|
836
|
+
${obj.gvc.bindView(() => {
|
|
837
837
|
return {
|
|
838
838
|
bind: 'image_view',
|
|
839
839
|
view: () => {
|
|
@@ -863,11 +863,10 @@ export class ShoppingSettingBasic {
|
|
|
863
863
|
style: `overflow-y:scroll;height:180px;`,
|
|
864
864
|
},
|
|
865
865
|
};
|
|
866
|
-
})}
|
|
867
|
-
`);
|
|
866
|
+
})} `);
|
|
868
867
|
}
|
|
869
868
|
function drawReserveLocations() {
|
|
870
|
-
if (postMD.product_category === 'reserve') {
|
|
869
|
+
if (postMD.product_category === 'reserve' && undefined) {
|
|
871
870
|
function getStockStore() {
|
|
872
871
|
ApiUser.getPublicConfig('store_manager', 'manager').then((storeData) => {
|
|
873
872
|
if (storeData.result) {
|
|
@@ -1025,31 +1024,30 @@ export class ShoppingSettingBasic {
|
|
|
1025
1024
|
`;
|
|
1026
1025
|
}
|
|
1027
1026
|
return BgWidget.mainCard(html `<!--繪製預約門市選擇區塊-->
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1027
|
+
<div class="d-flex flex-column" style="gap:18px;">
|
|
1028
|
+
<div class="d-flex align-items-center">
|
|
1029
|
+
服務地點${BgWidget.languageInsignia(sel_lan(), 'margin-left:5px;')}
|
|
1030
|
+
</div>
|
|
1031
|
+
<div class="d-flex flex-wrap" style="gap:12px;">
|
|
1032
|
+
${stockList.length == 0
|
|
1034
1033
|
? html ` <div class="w-100 d-flex align-items-center justify-content-center tx_gray_16">
|
|
1035
|
-
|
|
1036
|
-
|
|
1034
|
+
尚未設置門市,請前往POS實體門市>門市設定
|
|
1035
|
+
</div>`
|
|
1037
1036
|
: postMD.reserve_locations.map(drawLocation).join('')}
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1037
|
+
</div>
|
|
1038
|
+
<div
|
|
1039
|
+
class="d-flex justify-content-center align-items-center cursor_pointer"
|
|
1040
|
+
style="gap:4px;color: #36B;"
|
|
1041
|
+
onclick="${gvc.event(() => {
|
|
1043
1042
|
popoutSelectLocation(newStoreList => {
|
|
1044
1043
|
postMD.reserve_locations = newStoreList;
|
|
1045
1044
|
gvc.notifyDataChange(section_ID.reserve_locations);
|
|
1046
1045
|
});
|
|
1047
1046
|
})}"
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
`);
|
|
1047
|
+
>
|
|
1048
|
+
新增服務地點 <i class="fa-solid fa-plus"></i>
|
|
1049
|
+
</div>
|
|
1050
|
+
</div> `);
|
|
1053
1051
|
},
|
|
1054
1052
|
divCreate: {},
|
|
1055
1053
|
});
|
|
@@ -1065,11 +1063,11 @@ export class ShoppingSettingBasic {
|
|
|
1065
1063
|
bind: section_ID.store_product_config_panel,
|
|
1066
1064
|
view: () => {
|
|
1067
1065
|
return BgWidget.mainCard(html `<!--繪製單一門市的商品配置面板-->
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1066
|
+
<div class="d-flex flex-column">
|
|
1067
|
+
<div class="tx_700">依門市管理</div>
|
|
1068
|
+
<div class="tx_gray_14">其他門市將預設套用此門市的設定,如需修改,請切換至對應門市進行調整</div>
|
|
1069
|
+
</div>
|
|
1070
|
+
${BgWidget.select({
|
|
1073
1071
|
default: postMD.reserve_locations[0].id,
|
|
1074
1072
|
gvc: gvc,
|
|
1075
1073
|
options: postMD.reserve_locations.map(location => {
|
|
@@ -1079,8 +1077,7 @@ export class ShoppingSettingBasic {
|
|
|
1079
1077
|
};
|
|
1080
1078
|
}),
|
|
1081
1079
|
callback(value) { },
|
|
1082
|
-
})}
|
|
1083
|
-
`);
|
|
1080
|
+
})} `);
|
|
1084
1081
|
},
|
|
1085
1082
|
divCreate: {},
|
|
1086
1083
|
});
|
|
@@ -1097,14 +1094,13 @@ export class ShoppingSettingBasic {
|
|
|
1097
1094
|
if (postMD.variants.length === 1) {
|
|
1098
1095
|
try {
|
|
1099
1096
|
postMD.variants[0].editable = true;
|
|
1100
|
-
return html `
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
});
|
|
1097
|
+
return (html ` <!-- 繪製 編輯商品規格編輯區塊--> ` +
|
|
1098
|
+
ShoppingProductSetting.editProductSpec({
|
|
1099
|
+
vm: obj.vm,
|
|
1100
|
+
defData: postMD,
|
|
1101
|
+
gvc: gvc,
|
|
1102
|
+
single: true,
|
|
1103
|
+
}));
|
|
1108
1104
|
}
|
|
1109
1105
|
catch (e) {
|
|
1110
1106
|
console.error(e);
|
|
@@ -1134,7 +1130,7 @@ export class ShoppingSettingBasic {
|
|
|
1134
1130
|
dataList: [{ obj: createPage, key: 'page' }],
|
|
1135
1131
|
view: () => {
|
|
1136
1132
|
let returnHTML = html `
|
|
1137
|
-
<!-- 繪製商品規格列表區塊-->
|
|
1133
|
+
<!-- 繪製商品規格列表區塊-->
|
|
1138
1134
|
<div
|
|
1139
1135
|
class="d-flex align-items-center justify-content-between"
|
|
1140
1136
|
style="font-size: 16px;font-weight: 700;"
|
|
@@ -1728,33 +1724,39 @@ export class ShoppingSettingBasic {
|
|
|
1728
1724
|
: '';
|
|
1729
1725
|
}
|
|
1730
1726
|
function drawReservationSettings() {
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1727
|
+
if (postMD.product_category === 'reserve' && undefined) {
|
|
1728
|
+
function drawTitle(title, subTitle, inputKey) {
|
|
1729
|
+
return html `
|
|
1730
|
+
<div class="d-flex flex-column w-100">
|
|
1734
1731
|
<div class="tx_700 ">${title}</div>
|
|
1735
1732
|
${subTitle
|
|
1736
|
-
|
|
1737
|
-
|
|
1733
|
+
? html `<div class="tx_gray_14" style="margin: 4px 0 8px 0;">${subTitle}</div>`
|
|
1734
|
+
: html `<div style="height: 18px;"></div>`}
|
|
1738
1735
|
<div class="d-flex" style="gap: 18px;">
|
|
1739
|
-
<div
|
|
1740
|
-
|
|
1736
|
+
<div
|
|
1737
|
+
class="d-flex flex-fill align-items-center"
|
|
1738
|
+
style="height: 40px;padding: 0 18px;border-radius: 10px;border: 1px solid #DDD;"
|
|
1739
|
+
>
|
|
1740
|
+
<input class="border-0 h-100 flex-fill" />
|
|
1741
1741
|
<div class="tx_gray_14 ms-auto">小時</div>
|
|
1742
1742
|
</div>
|
|
1743
|
-
<div
|
|
1744
|
-
|
|
1743
|
+
<div
|
|
1744
|
+
class="d-flex flex-fill align-items-center"
|
|
1745
|
+
style="height: 40px;padding: 0 18px;border-radius: 10px;border: 1px solid #DDD;"
|
|
1746
|
+
>
|
|
1747
|
+
<input class="border-0 h-100 flex-fill" />
|
|
1745
1748
|
<div class="tx_gray_14 ms-auto">分鐘</div>
|
|
1746
1749
|
</div>
|
|
1747
1750
|
</div>
|
|
1748
1751
|
</div>
|
|
1749
1752
|
`;
|
|
1753
|
+
}
|
|
1754
|
+
return BgWidget.mainCard(html `
|
|
1755
|
+
${drawTitle('預設服務時長', '', 'defaultServiceDuration')}
|
|
1756
|
+
<div class="tx_700">預設服務時長</div>
|
|
1757
|
+
`);
|
|
1750
1758
|
}
|
|
1751
1759
|
return ``;
|
|
1752
|
-
return BgWidget.mainCard(html `
|
|
1753
|
-
${drawTitle("預設服務時長", "", "defaultServiceDuration")}
|
|
1754
|
-
<div class="tx_700">
|
|
1755
|
-
預設服務時長
|
|
1756
|
-
</div>
|
|
1757
|
-
`);
|
|
1758
1760
|
}
|
|
1759
1761
|
ShoppingSettingBasic.updateVariants(gvc, postMD, shipment_config, variantsViewID, obj);
|
|
1760
1762
|
const cat_title = (() => {
|
|
@@ -3058,52 +3060,84 @@ export class ShoppingSettingBasic {
|
|
|
3058
3060
|
},
|
|
3059
3061
|
};
|
|
3060
3062
|
})())}
|
|
3061
|
-
${
|
|
3062
|
-
.filter(
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3063
|
+
${(() => {
|
|
3064
|
+
const fieldsToDisplay = ['sale_price', 'stock'].filter(field => {
|
|
3065
|
+
return (field === 'sale_price' ||
|
|
3066
|
+
document.body.clientWidth > 768);
|
|
3067
|
+
});
|
|
3068
|
+
const renderFields = fieldsToDisplay.map((field, index) => {
|
|
3069
|
+
var _a;
|
|
3070
|
+
const inputProps = {
|
|
3071
|
+
style: 'width: 100%;height: 40px;padding: 0px 18px;border-radius: 10px;border: 1px solid #DDD;background: #FFF;',
|
|
3072
|
+
value: (_a = data[field]) !== null && _a !== void 0 ? _a : 0,
|
|
3073
|
+
min: '0',
|
|
3074
|
+
readonly: index === 1 ? 'readonly' : '',
|
|
3075
|
+
};
|
|
3076
|
+
const clickHandler = index === 1
|
|
3077
|
+
? gvc.event(() => {
|
|
3078
|
+
ProductSetting.showBatchEditDialog({
|
|
3079
|
+
gvc: gvc,
|
|
3080
|
+
postMD: postMD,
|
|
3081
|
+
selected: postMD.variants,
|
|
3082
|
+
callback: () => {
|
|
3083
|
+
gvc.notifyDataChange(vm.id);
|
|
3084
|
+
},
|
|
3085
|
+
});
|
|
3086
|
+
})
|
|
3087
|
+
: '';
|
|
3088
|
+
const inputHandler = gvc.event(e => {
|
|
3089
|
+
const regex = /^[0-9]*$/;
|
|
3090
|
+
if (!regex.test(e.value)) {
|
|
3091
|
+
e.value = e.value
|
|
3092
|
+
.replace(/[^0-9]/g, '')
|
|
3093
|
+
.replace(/e/gi, '');
|
|
3094
|
+
}
|
|
3095
|
+
});
|
|
3096
|
+
const changeHandler = gvc.event(e => {
|
|
3097
|
+
data[field] = e.value;
|
|
3098
|
+
gvc.notifyDataChange(vm.id);
|
|
3099
|
+
});
|
|
3100
|
+
const inputHTML = html `
|
|
3101
|
+
<input
|
|
3102
|
+
style="${inputProps.style}"
|
|
3103
|
+
value="${inputProps.value}"
|
|
3104
|
+
min="${inputProps.min}"
|
|
3105
|
+
${inputProps.readonly}
|
|
3106
|
+
onclick="${clickHandler}"
|
|
3107
|
+
oninput="${inputHandler}"
|
|
3108
|
+
onchange="${changeHandler}"
|
|
3109
|
+
/>
|
|
3110
|
+
`;
|
|
3111
|
+
if (field === 'stock' &&
|
|
3112
|
+
data.show_understocking === 'false') {
|
|
3113
|
+
return html `
|
|
3114
|
+
<div
|
|
3115
|
+
class="text-center px-1"
|
|
3116
|
+
style="color: #393939; font-size: 14px; font-weight: 400; cursor: pointer;
|
|
3117
|
+
width: ${document.body.clientWidth > 800
|
|
3118
|
+
? '17.5%;'
|
|
3119
|
+
: 'auto; max-width:140px;'}"
|
|
3120
|
+
onclick="${clickHandler}"
|
|
3121
|
+
>
|
|
3122
|
+
不追蹤庫存
|
|
3123
|
+
</div>
|
|
3124
|
+
`;
|
|
3097
3125
|
}
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3126
|
+
return html `
|
|
3127
|
+
<div
|
|
3128
|
+
class="text-center px-1"
|
|
3129
|
+
style="color:#393939;font-size: 16px;font-weight: 400;width: ${document
|
|
3130
|
+
.body.clientWidth > 800
|
|
3131
|
+
? '17.5%;'
|
|
3132
|
+
: 'auto;max-width:140px;'}"
|
|
3133
|
+
>
|
|
3134
|
+
${inputHTML}
|
|
3135
|
+
</div>
|
|
3136
|
+
`;
|
|
3137
|
+
});
|
|
3138
|
+
const fieldsHtml = renderFields.join('');
|
|
3139
|
+
return fieldsHtml;
|
|
3140
|
+
})()}
|
|
3107
3141
|
<div
|
|
3108
3142
|
class="d-none d-sm-block"
|
|
3109
3143
|
style="color:#393939;font-size: 16px;font-weight: 400;width: 20%;"
|
|
@@ -3294,14 +3328,14 @@ ${(_b = language_data.seo.content) !== null && _b !== void 0 ? _b : ''}</textare
|
|
|
3294
3328
|
},
|
|
3295
3329
|
innerHTML: gvc => {
|
|
3296
3330
|
var _a, _b;
|
|
3297
|
-
return html ` <div class="d-flex flex-column gap-
|
|
3298
|
-
${BgWidget.grayNote(html
|
|
3331
|
+
return html ` <div class="d-flex flex-column gap-2">
|
|
3332
|
+
${BgWidget.grayNote(html `系統會根據所設定的時間,自動將${cat_title}上架或下架`, 'margin-bottom: 8px;')}
|
|
3299
3333
|
<div
|
|
3300
|
-
class="d-flex
|
|
3334
|
+
class="d-flex ${document.body.clientWidth < 768 ? 'flex-column' : ''}"
|
|
3301
3335
|
style="gap: 12px"
|
|
3302
3336
|
>
|
|
3303
3337
|
<div class="d-flex flex-column">
|
|
3304
|
-
<span class="tx_normal me-2"
|
|
3338
|
+
<span class="tx_normal me-2">上架時間</span>
|
|
3305
3339
|
${BgWidget.editeInput({
|
|
3306
3340
|
gvc: gvc,
|
|
3307
3341
|
title: '',
|
|
@@ -3315,7 +3349,7 @@ ${(_b = language_data.seo.content) !== null && _b !== void 0 ? _b : ''}</textare
|
|
|
3315
3349
|
})}
|
|
3316
3350
|
</div>
|
|
3317
3351
|
<div class="d-flex flex-column">
|
|
3318
|
-
<span class="tx_normal me-2"
|
|
3352
|
+
<span class="tx_normal me-2"> </span>
|
|
3319
3353
|
${BgWidget.editeInput({
|
|
3320
3354
|
gvc: gvc,
|
|
3321
3355
|
title: '',
|
|
@@ -3336,14 +3370,12 @@ ${(_b = language_data.seo.content) !== null && _b !== void 0 ? _b : ''}</textare
|
|
|
3336
3370
|
},
|
|
3337
3371
|
{
|
|
3338
3372
|
key: 'withEnd',
|
|
3339
|
-
name: '
|
|
3373
|
+
name: '下架時間',
|
|
3340
3374
|
innerHtml: html ` <div
|
|
3341
|
-
class="d-flex
|
|
3375
|
+
class="d-flex ${document.body.clientWidth < 768 ? 'flex-column' : ''}"
|
|
3342
3376
|
style="gap: 12px"
|
|
3343
3377
|
>
|
|
3344
|
-
|
|
3345
|
-
<span class="tx_normal me-2">結束日期</span>
|
|
3346
|
-
${BgWidget.editeInput({
|
|
3378
|
+
${BgWidget.editeInput({
|
|
3347
3379
|
gvc: gvc,
|
|
3348
3380
|
title: '',
|
|
3349
3381
|
type: 'date',
|
|
@@ -3354,10 +3386,7 @@ ${(_b = language_data.seo.content) !== null && _b !== void 0 ? _b : ''}</textare
|
|
|
3354
3386
|
postMD.active_schedule.endDate = text;
|
|
3355
3387
|
},
|
|
3356
3388
|
})}
|
|
3357
|
-
|
|
3358
|
-
<div class="d-flex flex-column">
|
|
3359
|
-
<span class="tx_normal me-2">結束時間</span>
|
|
3360
|
-
${BgWidget.editeInput({
|
|
3389
|
+
${BgWidget.editeInput({
|
|
3361
3390
|
gvc: gvc,
|
|
3362
3391
|
title: '',
|
|
3363
3392
|
type: 'time',
|
|
@@ -3368,7 +3397,6 @@ ${(_b = language_data.seo.content) !== null && _b !== void 0 ? _b : ''}</textare
|
|
|
3368
3397
|
postMD.active_schedule.endTime = text;
|
|
3369
3398
|
},
|
|
3370
3399
|
})}
|
|
3371
|
-
</div>
|
|
3372
3400
|
</div>`,
|
|
3373
3401
|
},
|
|
3374
3402
|
], [original.endDate ? `withEnd` : `noEnd`], text => {
|