ts-glitter 15.7.7 → 15.7.81
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 +2 -2
- package/lowcode/Entry.ts +2 -2
- package/lowcode/cms-plugin/shopping-order-manager.js +12 -8
- package/lowcode/cms-plugin/shopping-order-manager.ts +14 -10
- package/lowcode/glitter-base/global/language.js +7 -0
- package/lowcode/glitter-base/global/language.ts +7 -0
- package/lowcode/public-components/user-manager/um-login.js +911 -1
- package/lowcode/public-components/user-manager/um-login.ts +979 -0
- package/package.json +1 -1
- package/src/api-public/controllers/ai-chat.js.map +1 -1
- package/src/api-public/controllers/app-release.js.map +1 -1
- package/src/api-public/controllers/article.js.map +5 -1
- package/src/api-public/controllers/post.js.map +1 -1
- package/src/api-public/controllers/recommend.js.map +1 -1
- package/src/api-public/controllers/user.js +3 -3
- package/src/api-public/controllers/user.js.map +1 -1
- package/src/api-public/controllers/user.ts +27 -24
- package/src/api-public/services/ai-robot.js.map +1 -1
- package/src/api-public/services/delivery.js.map +1 -1
- package/src/api-public/services/fb-message.d.ts +1 -0
- package/src/api-public/services/line-message.d.ts +1 -0
- package/src/api-public/services/post.js.map +1 -1
- package/src/api-public/services/recommend.js.map +1 -1
- package/src/api-public/services/share-permission.d.ts +1 -1
- package/src/api-public/services/shopping.d.ts +1 -1
- package/src/api-public/services/shopping.js.map +5 -1
- package/src/api-public/services/user.d.ts +3 -3
- package/src/api-public/services/user.js +14 -11
- package/src/api-public/services/user.js.map +1 -1
- package/src/api-public/services/user.ts +37 -33
- package/src/controllers/user.d.ts +1 -1
- package/src/controllers/user.js +3 -3
- package/src/controllers/user.js.map +1 -1
- package/src/controllers/user.ts +17 -21
package/lowcode/Entry.js
CHANGED
|
@@ -20,7 +20,7 @@ export class Entry {
|
|
|
20
20
|
var _a;
|
|
21
21
|
Language.getLanguage();
|
|
22
22
|
if (window.language !== Language.getLanguage()) {
|
|
23
|
-
const url = new URL(`${glitter.root_path}${Language.getLanguageLinkPrefix()}${window.glitter_page}${
|
|
23
|
+
const url = new URL(`${glitter.root_path}${Language.getLanguageLinkPrefix()}${window.glitter_page}${new URL(location.href).search}`);
|
|
24
24
|
if (glitter.getUrlParameter('appName')) {
|
|
25
25
|
url.searchParams.set('appName', glitter.getUrlParameter('appName'));
|
|
26
26
|
}
|
|
@@ -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.81';
|
|
84
84
|
glitter.share.start = new Date();
|
|
85
85
|
const vm = {
|
|
86
86
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -12,7 +12,7 @@ export class Entry {
|
|
|
12
12
|
public static onCreate(glitter: Glitter) {
|
|
13
13
|
Language.getLanguage();
|
|
14
14
|
if ((window as any).language !== Language.getLanguage()) {
|
|
15
|
-
const url = new URL(`${glitter.root_path}${Language.getLanguageLinkPrefix()}${(window as any).glitter_page}${
|
|
15
|
+
const url = new URL(`${glitter.root_path}${Language.getLanguageLinkPrefix()}${(window as any).glitter_page}${new URL(location.href).search}`);
|
|
16
16
|
if (glitter.getUrlParameter('appName')) {
|
|
17
17
|
url.searchParams.set('appName', glitter.getUrlParameter('appName'));
|
|
18
18
|
}
|
|
@@ -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.81';
|
|
86
86
|
glitter.share.start = new Date();
|
|
87
87
|
const vm: {
|
|
88
88
|
appConfig: any;
|
|
@@ -1230,8 +1230,10 @@ export class ShoppingOrderManager {
|
|
|
1230
1230
|
class="d-flex align-items-center"
|
|
1231
1231
|
style="color: #4D86DB;font-weight: 400; gap:8px;cursor:pointer;"
|
|
1232
1232
|
onclick="${gvc.event(() => {
|
|
1233
|
-
|
|
1234
|
-
|
|
1233
|
+
if (userData.userID) {
|
|
1234
|
+
child_vm.userID = userData.userID;
|
|
1235
|
+
child_vm.type = 'user';
|
|
1236
|
+
}
|
|
1235
1237
|
})}"
|
|
1236
1238
|
>
|
|
1237
1239
|
${(_c = (_b = userData === null || userData === void 0 ? void 0 : userData.userData) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : '訪客'}
|
|
@@ -3096,13 +3098,15 @@ export class ShoppingOrderManager {
|
|
|
3096
3098
|
}
|
|
3097
3099
|
});
|
|
3098
3100
|
}
|
|
3099
|
-
if (
|
|
3100
|
-
|
|
3101
|
+
if (!['atm', 'line'].includes(orderData.customer_info.payment_select)) {
|
|
3102
|
+
if (orderData.proof_purchase === undefined || orderData.proof_purchase.paymentForm === undefined) {
|
|
3103
|
+
return '尚未回傳付款證明';
|
|
3104
|
+
}
|
|
3105
|
+
const paymentFormList = (_a = orderData.proof_purchase.paymentForm.list) !== null && _a !== void 0 ? _a : [];
|
|
3106
|
+
paymentFormList.map((item) => {
|
|
3107
|
+
array.push(`${item.title} : ${orderData.proof_purchase[item.key]}`);
|
|
3108
|
+
});
|
|
3101
3109
|
}
|
|
3102
|
-
const paymentFormList = (_a = orderData.proof_purchase.paymentForm.list) !== null && _a !== void 0 ? _a : [];
|
|
3103
|
-
paymentFormList.map((item) => {
|
|
3104
|
-
array.push(`${item.title} : ${orderData.proof_purchase[item.key]}`);
|
|
3105
|
-
});
|
|
3106
3110
|
return array.join(BgWidget.mbContainer(8)) || '尚未回傳付款證明';
|
|
3107
3111
|
})()}
|
|
3108
3112
|
</div>`;
|
|
@@ -1457,8 +1457,10 @@ export class ShoppingOrderManager {
|
|
|
1457
1457
|
class="d-flex align-items-center"
|
|
1458
1458
|
style="color: #4D86DB;font-weight: 400; gap:8px;cursor:pointer;"
|
|
1459
1459
|
onclick="${gvc.event(() => {
|
|
1460
|
-
|
|
1461
|
-
|
|
1460
|
+
if(userData.userID){
|
|
1461
|
+
child_vm.userID = userData.userID;
|
|
1462
|
+
child_vm.type = 'user';
|
|
1463
|
+
}
|
|
1462
1464
|
})}"
|
|
1463
1465
|
>
|
|
1464
1466
|
${userData?.userData?.name ?? '訪客'}
|
|
@@ -3496,15 +3498,17 @@ export class ShoppingOrderManager {
|
|
|
3496
3498
|
});
|
|
3497
3499
|
}
|
|
3498
3500
|
|
|
3499
|
-
if
|
|
3500
|
-
|
|
3501
|
-
|
|
3501
|
+
if(!['atm','line'].includes(orderData.customer_info.payment_select)){
|
|
3502
|
+
if (orderData.proof_purchase === undefined || orderData.proof_purchase.paymentForm === undefined) {
|
|
3503
|
+
return '尚未回傳付款證明';
|
|
3504
|
+
}
|
|
3502
3505
|
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3506
|
+
// 其他付款方式
|
|
3507
|
+
const paymentFormList = orderData.proof_purchase.paymentForm.list ?? [];
|
|
3508
|
+
paymentFormList.map((item: any) => {
|
|
3509
|
+
array.push(`${item.title} : ${orderData.proof_purchase[item.key]}`);
|
|
3510
|
+
});
|
|
3511
|
+
}
|
|
3508
3512
|
|
|
3509
3513
|
return array.join(BgWidget.mbContainer(8)) || '尚未回傳付款證明';
|
|
3510
3514
|
})()}
|
|
@@ -216,6 +216,8 @@ export class Language {
|
|
|
216
216
|
{ key: 'shopping_credit', tw: '購物金', cn: '购物金', en: 'Shopping credit' },
|
|
217
217
|
{ key: 'distance_from_target_amount', tw: '距離目標金額還差', cn: '距离目标金额还差', en: 'Amount remaining to target' },
|
|
218
218
|
{ key: 'member_login', tw: '會員登入', cn: '会员登录', en: 'Login' },
|
|
219
|
+
{ key: 'login', tw: '登入', cn: '登录', en: 'Login' },
|
|
220
|
+
{ key: 'register', tw: '註冊', cn: '注册', en: 'Register' },
|
|
219
221
|
{ key: 'input_product_keyword', tw: '輸入商品關鍵字', cn: '输入商品关键字', en: 'Enter Product Keyword' },
|
|
220
222
|
{ key: 'find_product', tw: '找商品', cn: '找商品', en: 'Find Product' },
|
|
221
223
|
{ key: 'delete_success', tw: '刪除成功', cn: '删除成功', en: 'Delete Successful' },
|
|
@@ -241,8 +243,11 @@ export class Language {
|
|
|
241
243
|
{ key: 'logout', tw: '登出', cn: '登出', en: 'Logout' },
|
|
242
244
|
{ key: 'reset_password_event', tw: '重設密碼事件', cn: '重设密码事件', en: 'Reset Password Event' },
|
|
243
245
|
{ key: 'password', tw: '密碼', cn: '密码', en: 'Password' },
|
|
246
|
+
{ key: 'new_password', tw: '新密碼', cn: '新密码', en: 'New Password' },
|
|
244
247
|
{ key: 'confirm_password', tw: '確認密碼', cn: '确认密码', en: 'Confirm Password' },
|
|
245
248
|
{ key: 'please_enter_password', tw: '請輸入密碼', cn: '请输入密码', en: 'Please Enter Password' },
|
|
249
|
+
{ key: 'email_phone_placeholder', tw: '請輸入信箱或電話', cn: '请输入邮箱或电话', en: 'Please Enter Email or Phone Number' },
|
|
250
|
+
{ key: 'email_placeholder', tw: '請輸入信箱', cn: '请输入邮箱', en: 'Please Enter Email' },
|
|
246
251
|
{ key: 'please_enter_password_again', tw: '請再次輸入密碼', cn: '请再次输入密码', en: 'Please Enter Password Again' },
|
|
247
252
|
{ key: 'reset_password_verification_code', tw: '重設密碼驗證碼', cn: '重设密码验证码', en: 'Reset Password Verification Code' },
|
|
248
253
|
{ key: 'verification_code_sent_to', tw: '驗證碼已發送至', cn: '验证码已发送至', en: 'Verification Code Sent to' },
|
|
@@ -357,6 +362,7 @@ export class Language {
|
|
|
357
362
|
en: 'Please upload a screenshot or enter transfer proof, e.g., last five digits of the account, along with payer information',
|
|
358
363
|
},
|
|
359
364
|
{ key: 'data_submitting', tw: '資料送出中', cn: '数据提交中', en: 'Data submitting' },
|
|
365
|
+
{ key: 'submit', tw: '送出', cn: '提交', en: 'Submit' },
|
|
360
366
|
{ key: 'return_to_order_details', tw: '返回訂單詳情', cn: '返回订单详情', en: 'Return to order details' },
|
|
361
367
|
{ key: 'order_details', tw: '訂單明細', cn: '订单明细', en: 'Order Details' },
|
|
362
368
|
{ key: 'product_not_found', tw: '找不到此產品', cn: '找不到此产品', en: 'Product not found' },
|
|
@@ -396,6 +402,7 @@ export class Language {
|
|
|
396
402
|
{ key: 'order_not_found', tw: '查無此訂單', cn: '查无此订单', en: 'Order not found' },
|
|
397
403
|
{ key: 'expired', tw: '已過期', cn: '已过期', en: 'Expired' },
|
|
398
404
|
{ key: 'not_yet_shipped', tw: '尚未出貨', cn: '尚未出货', en: 'Not yet shipped' },
|
|
405
|
+
{ key: 'new_password_placeholder', tw: '請輸入新密碼', cn: '请输入新密码', en: 'Please Enter New Password' },
|
|
399
406
|
];
|
|
400
407
|
}
|
|
401
408
|
}
|
|
@@ -222,6 +222,8 @@ export class Language {
|
|
|
222
222
|
{ key: 'shopping_credit', tw: '購物金', cn: '购物金', en: 'Shopping credit' },
|
|
223
223
|
{ key: 'distance_from_target_amount', tw: '距離目標金額還差', cn: '距离目标金额还差', en: 'Amount remaining to target' },
|
|
224
224
|
{ key: 'member_login', tw: '會員登入', cn: '会员登录', en: 'Login' },
|
|
225
|
+
{ key: 'login', tw: '登入', cn: '登录', en: 'Login' },
|
|
226
|
+
{ key: 'register', tw: '註冊', cn: '注册', en: 'Register' },
|
|
225
227
|
{ key: 'input_product_keyword', tw: '輸入商品關鍵字', cn: '输入商品关键字', en: 'Enter Product Keyword' },
|
|
226
228
|
{ key: 'find_product', tw: '找商品', cn: '找商品', en: 'Find Product' },
|
|
227
229
|
{ key: 'delete_success', tw: '刪除成功', cn: '删除成功', en: 'Delete Successful' },
|
|
@@ -247,8 +249,11 @@ export class Language {
|
|
|
247
249
|
{ key: 'logout', tw: '登出', cn: '登出', en: 'Logout' },
|
|
248
250
|
{ key: 'reset_password_event', tw: '重設密碼事件', cn: '重设密码事件', en: 'Reset Password Event' },
|
|
249
251
|
{ key: 'password', tw: '密碼', cn: '密码', en: 'Password' },
|
|
252
|
+
{ key: 'new_password', tw: '新密碼', cn: '新密码', en: 'New Password' },
|
|
250
253
|
{ key: 'confirm_password', tw: '確認密碼', cn: '确认密码', en: 'Confirm Password' },
|
|
251
254
|
{ key: 'please_enter_password', tw: '請輸入密碼', cn: '请输入密码', en: 'Please Enter Password' },
|
|
255
|
+
{ key: 'email_phone_placeholder', tw: '請輸入信箱或電話', cn: '请输入邮箱或电话', en: 'Please Enter Email or Phone Number' },
|
|
256
|
+
{ key: 'email_placeholder', tw: '請輸入信箱', cn: '请输入邮箱', en: 'Please Enter Email' },
|
|
252
257
|
{ key: 'please_enter_password_again', tw: '請再次輸入密碼', cn: '请再次输入密码', en: 'Please Enter Password Again' },
|
|
253
258
|
{ key: 'reset_password_verification_code', tw: '重設密碼驗證碼', cn: '重设密码验证码', en: 'Reset Password Verification Code' },
|
|
254
259
|
{ key: 'verification_code_sent_to', tw: '驗證碼已發送至', cn: '验证码已发送至', en: 'Verification Code Sent to' },
|
|
@@ -363,6 +368,7 @@ export class Language {
|
|
|
363
368
|
en: 'Please upload a screenshot or enter transfer proof, e.g., last five digits of the account, along with payer information',
|
|
364
369
|
},
|
|
365
370
|
{ key: 'data_submitting', tw: '資料送出中', cn: '数据提交中', en: 'Data submitting' },
|
|
371
|
+
{ key: 'submit', tw: '送出', cn: '提交', en: 'Submit' },
|
|
366
372
|
{ key: 'return_to_order_details', tw: '返回訂單詳情', cn: '返回订单详情', en: 'Return to order details' },
|
|
367
373
|
{ key: 'order_details', tw: '訂單明細', cn: '订单明细', en: 'Order Details' },
|
|
368
374
|
{ key: 'product_not_found', tw: '找不到此產品', cn: '找不到此产品', en: 'Product not found' },
|
|
@@ -402,6 +408,7 @@ export class Language {
|
|
|
402
408
|
{ key: 'order_not_found', tw: '查無此訂單', cn: '查无此订单', en: 'Order not found' },
|
|
403
409
|
{ key: 'expired', tw: '已過期', cn: '已过期', en: 'Expired' },
|
|
404
410
|
{ key: 'not_yet_shipped', tw: '尚未出貨', cn: '尚未出货', en: 'Not yet shipped' },
|
|
411
|
+
{ key: 'new_password_placeholder', tw: '請輸入新密碼', cn: '请输入新密码', en: 'Please Enter New Password' },
|
|
405
412
|
];
|
|
406
413
|
}
|
|
407
414
|
}
|