feat(assoc): v4.0.1 合伙人关联码、分佣账单与 H5 用户管理
订单佣金只认关联用户;合伙人备注写入独立表;H5 增加用户管理与首页统计。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -19,6 +19,8 @@ export type StoresSessionCategory = {
|
||||
childName: string;
|
||||
};
|
||||
|
||||
export type StoreSortKey = 'nearby' | 'rating' | 'redeem';
|
||||
|
||||
export type StoresListCache = {
|
||||
cityKey: string;
|
||||
cityCode: string;
|
||||
@@ -30,6 +32,7 @@ export type StoresListCache = {
|
||||
keyword: string;
|
||||
keywordInput: string;
|
||||
category: StoresSessionCategory;
|
||||
sort?: StoreSortKey;
|
||||
};
|
||||
|
||||
type StoresSession = {
|
||||
@@ -37,7 +40,7 @@ type StoresSession = {
|
||||
cache: StoresListCache | null;
|
||||
};
|
||||
|
||||
const STORAGE_KEY = 'dukang_stores_session_v1';
|
||||
const STORAGE_KEY = 'dukang_stores_session_v2';
|
||||
|
||||
let memory: StoresSession | null = null;
|
||||
|
||||
@@ -94,7 +97,7 @@ export function setStoresListCache(cache: StoresListCache | null): void {
|
||||
|
||||
export function patchStoresFilterCache(
|
||||
patch: Partial<
|
||||
Pick<StoresListCache, 'filterRegion' | 'keyword' | 'keywordInput' | 'category'>
|
||||
Pick<StoresListCache, 'filterRegion' | 'keyword' | 'keywordInput' | 'category' | 'sort'>
|
||||
>,
|
||||
): void {
|
||||
const cur = readSession();
|
||||
@@ -105,6 +108,7 @@ export function patchStoresFilterCache(
|
||||
cache: {
|
||||
cityKey: '',
|
||||
cityCode: '',
|
||||
authKey: '',
|
||||
listRegion: patch.filterRegion ?? { province: '', city: '', district: '' },
|
||||
items: [],
|
||||
filterRegion: patch.filterRegion ?? { province: '', city: '', district: '' },
|
||||
@@ -116,6 +120,7 @@ export function patchStoresFilterCache(
|
||||
childId: '',
|
||||
childName: '',
|
||||
},
|
||||
sort: patch.sort ?? 'nearby',
|
||||
},
|
||||
});
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user