Initial commit
This commit is contained in:
58
miniprogram/utils/constants.ts
Normal file
58
miniprogram/utils/constants.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
export const CLOUD_ENV = 'YOUR_CLOUD_ENV_ID'
|
||||
|
||||
export const COLORS = {
|
||||
pink: '#ff4f91',
|
||||
orange: '#ff9f1c',
|
||||
yellow: '#ffe15a',
|
||||
green: '#2fd37a',
|
||||
mint: '#67e8c9',
|
||||
blue: '#4d8dff',
|
||||
violet: '#8c5cff',
|
||||
ink: '#272235',
|
||||
bgPrimary: '#fff9fb',
|
||||
textPrimary: '#272235',
|
||||
textSecondary: '#6a6178',
|
||||
textTertiary: '#9b8fa8',
|
||||
}
|
||||
|
||||
export const AVATAR_GRADIENTS = [
|
||||
'linear-gradient(135deg, #ffd6e8, #fff1a6)',
|
||||
'linear-gradient(135deg, #ffe7a0, #b7f4d2)',
|
||||
'linear-gradient(135deg, #c9f7df, #d9d2ff)',
|
||||
'linear-gradient(135deg, #cfe8ff, #ffd6e8)',
|
||||
'linear-gradient(135deg, #e3d8ff, #ffd6e8)',
|
||||
]
|
||||
|
||||
export const MOOD_OPTIONS = [
|
||||
{ label: '开心 😄', value: 'happy' },
|
||||
{ label: '累了 😮💨', value: 'tired' },
|
||||
{ label: '求玩伴 🐾', value: 'playmate' },
|
||||
{ label: '晒娃 📸', value: 'show' },
|
||||
{ label: '散步中 🌿', value: 'walking' },
|
||||
{ label: '在医院 🏥', value: 'hospital' },
|
||||
]
|
||||
|
||||
export const HOT_HASHTAGS = [
|
||||
'#上海遛狗',
|
||||
'#求玩伴',
|
||||
'#静安区',
|
||||
'#比熊',
|
||||
'#柴犬',
|
||||
'#金毛',
|
||||
'#布偶猫',
|
||||
'#英短',
|
||||
'#宠物友好',
|
||||
'#周末遛狗',
|
||||
]
|
||||
|
||||
export const BREED_OPTIONS = {
|
||||
dog: ['比熊', '柴犬', '金毛', '泰迪', '边牧', '法斗', '哈士奇', '萨摩耶', '拉布拉多', '其他'],
|
||||
cat: ['英短', '布偶', '美短', '加菲', '暹罗', '橘猫', '黑猫', '其他'],
|
||||
other: ['兔子', '仓鼠', '鹦鹉', '龟', '其他'],
|
||||
}
|
||||
|
||||
export const NEARBY_RADIUS_KM = 5
|
||||
|
||||
export const PAGE_SIZE = 10
|
||||
|
||||
export const HEARTBEAT_INTERVAL_MS = 60000
|
||||
Reference in New Issue
Block a user