|
|
@@ -48,7 +48,7 @@ const tabs = computed(() => {
|
|
|
|
|
|
const typeMap = {
|
|
|
order: ['ORDER_GROUP_BUY_PAYMENT_SUCCESS', 'ORDER_GROUP_BUY_SUCCESS_WIN', 'ORDER_GROUP_BUY_SUCCESS_LOSE', 'ORDER_PROVIDE_SHIPPING_ADDRESS', 'ORDER_GROUP_BUY_FAIL', 'ORDER_SHIPPED_SUCCESS'],
|
|
|
- income: ['REWARD_REFER_FRIENDS', 'REWARD_GROUP_BUY', 'REWARD_OPEN_GROUP_BUY', 'REWARD_DIRECT_REFERRAL', 'REWARD_CHECKIN', 'REWARD_FIRST_COMMISSION', 'REWARD_SECONDARY_COMMISSION'],
|
|
|
+ income: ['REWARD_REFER_FRIENDS', 'REWARD_GROUP_BUY', 'REWARD_OPEN_GROUP_BUY', 'REWARD_DIRECT_REFERRAL', 'REWARD_CHECKIN', 'REWARD_FIRST_COMMISSION', 'REWARD_SECONDARY_COMMISSION', 'ORDER_RECYCLE_REWARD'],
|
|
|
wallet: ['MONEY_RECHARGE_SUCCESS', 'MONEY_WITHDRAWAL_ACCOUNT_SUCCESS', 'MONEY_WITHDRAWAL_WALLET_SUCCESS', 'MONEY_WITHDRAWAL_FAIL'],
|
|
|
other: ['OTHER'],
|
|
|
}
|
|
|
@@ -84,6 +84,11 @@ const contentTypeMap = {
|
|
|
contentKey: 'notifications.order.shipped.content',
|
|
|
link: '/pages/myOrders/orderDetail',
|
|
|
},
|
|
|
+ ORDER_RECYCLE_REWARD: {
|
|
|
+ titleKey: 'notifications.order.recycleReward.title',
|
|
|
+ contentKey: 'notifications.order.recycleReward.content',
|
|
|
+ link: '/pages/income/income',
|
|
|
+ },
|
|
|
REWARD_REFER_FRIENDS: {
|
|
|
titleKey: 'notifications.reward.referFriends.title',
|
|
|
contentKey: 'notifications.reward.referFriends.content',
|
|
|
@@ -212,7 +217,7 @@ function handleNoticeClick(item: any) {
|
|
|
const config = contentTypeMap[item.noticeType]
|
|
|
const link = config?.link
|
|
|
if (link) {
|
|
|
- toPage({ url: link, params: typeMap.order.includes(item.noticeType) ? { orderNo: item.noticeMessage } : {} })
|
|
|
+ toPage({ url: link, params: link === '/pages/myOrders/orderDetail' ? { orderNo: item.noticeMessage } : {} })
|
|
|
}
|
|
|
}
|
|
|
}
|