index.tsx 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. import { Image } from 'expo-image';
  2. import { useRouter } from 'expo-router';
  3. import React, { useCallback, useEffect, useState } from 'react';
  4. import {
  5. ActivityIndicator,
  6. Alert,
  7. FlatList,
  8. ImageBackground,
  9. Platform,
  10. RefreshControl,
  11. ScrollView,
  12. StatusBar,
  13. StyleSheet,
  14. Text,
  15. TouchableOpacity,
  16. View
  17. } from 'react-native';
  18. import { useSafeAreaInsets } from 'react-native-safe-area-context';
  19. import { Images } from '@/constants/images';
  20. import {
  21. getStore,
  22. getTakeList,
  23. moveOutSafeStore,
  24. moveToSafeStore,
  25. } from '@/services/award';
  26. import CheckoutModal from './components/CheckoutModal';
  27. const LEVEL_MAP: Record<string, { title: string; color: string }> = {
  28. A: { title: '超神', color: '#ffae00' },
  29. B: { title: '欧皇', color: '#ff0000' },
  30. C: { title: '隐藏', color: '#9745e6' },
  31. D: { title: '普通', color: '#666666' },
  32. };
  33. const LEVEL_TABS = [
  34. { title: '全部', value: '' },
  35. { title: '普通', value: 'D' },
  36. { title: '隐藏', value: 'C' },
  37. { title: '欧皇', value: 'B' },
  38. { title: '超神', value: 'A' },
  39. ];
  40. const FROM_TYPE_MAP: Record<string, string> = {
  41. LUCK: '奖池', MALL: '商城', LUCK_ROOM: '福利房', LUCK_WHEEL: '魔天轮',
  42. DOLL_MACHINE: '扭蛋', ACTIVITY: '活动', SUBSTITUTE: '置换', TRANSFER: '转赠',
  43. };
  44. interface StoreItem {
  45. id: string;
  46. level: string;
  47. safeFlag: number;
  48. magicAmount?: number;
  49. fromRelationType: string;
  50. spu: { id: string; name: string; cover: string };
  51. }
  52. interface PickupItem {
  53. tradeNo: string;
  54. createTime: string;
  55. status: number;
  56. contactName: string;
  57. contactNo: string;
  58. province: string;
  59. city: string;
  60. district: string;
  61. address: string;
  62. expressAmount: number;
  63. paymentTime?: string;
  64. paymentTimeoutTime?: string;
  65. cancelRemark?: string;
  66. itemList: Array<{ id: string; spuId: string; level: string; cover: string }>;
  67. }
  68. const STATUS_MAP: Record<number, { text: string; color: string }> = {
  69. 0: { text: '待支付运费', color: '#ff6b00' },
  70. 1: { text: '已进仓库进行配货', color: '#ff6b00' },
  71. 2: { text: '待收货', color: '#ff6b00' },
  72. 10: { text: '已取消', color: '#ff6b00' },
  73. 11: { text: '超时取消', color: '#ff6b00' },
  74. 12: { text: '系统取消', color: '#ff6b00' },
  75. 99: { text: '已完成', color: '#52c41a' },
  76. };
  77. export default function StoreScreen() {
  78. const router = useRouter();
  79. const insets = useSafeAreaInsets();
  80. const [mainTabIndex, setMainTabIndex] = useState(0);
  81. const [levelTabIndex, setLevelTabIndex] = useState(0);
  82. const [list, setList] = useState<any[]>([]);
  83. const [loading, setLoading] = useState(false);
  84. const [refreshing, setRefreshing] = useState(false);
  85. const [page, setPage] = useState(1);
  86. const [hasMore, setHasMore] = useState(true);
  87. const [checkMap, setCheckMap] = useState<Record<string, StoreItem>>({});
  88. const [checkoutVisible, setCheckoutVisible] = useState(false);
  89. const mainTabs = ['未使用', '保险柜', '已提货'];
  90. const loadData = useCallback(async (pageNum: number, isRefresh = false) => {
  91. if (loading && !isRefresh) return;
  92. if (!hasMore && pageNum > 1 && !isRefresh) return;
  93. try {
  94. if (pageNum === 1) setLoading(true);
  95. let res: any;
  96. if (mainTabIndex === 0) {
  97. res = await getStore(pageNum, 20, 0, LEVEL_TABS[levelTabIndex].value);
  98. } else if (mainTabIndex === 1) {
  99. res = await getStore(pageNum, 20, 1);
  100. } else {
  101. res = await getTakeList(pageNum, 20);
  102. }
  103. let records = Array.isArray(res) ? res : (res?.records || res || []);
  104. // 处理已提货数据,合并相同商品
  105. if (mainTabIndex === 2 && records.length > 0) {
  106. records = records.map((item: PickupItem) => {
  107. const goodsMap: Record<string, { total: number; data: any }> = {};
  108. (item.itemList || []).forEach((goods: any) => {
  109. const key = `${goods.spuId}_${goods.level}`;
  110. if (goodsMap[key]) {
  111. goodsMap[key].total += 1;
  112. } else {
  113. goodsMap[key] = { total: 1, data: goods };
  114. }
  115. });
  116. return { ...item, groupedList: Object.values(goodsMap) };
  117. });
  118. }
  119. if (records.length < 20) setHasMore(false);
  120. if (pageNum === 1 || isRefresh) setList(records);
  121. else setList(prev => [...prev, ...records]);
  122. } catch (e) {
  123. console.error('加载仓库数据失败:', e);
  124. } finally {
  125. setLoading(false);
  126. setRefreshing(false);
  127. }
  128. }, [mainTabIndex, levelTabIndex, loading, hasMore]);
  129. useEffect(() => {
  130. setPage(1); setList([]); setHasMore(true); setCheckMap({});
  131. loadData(1, true);
  132. }, [mainTabIndex]);
  133. useEffect(() => {
  134. if (mainTabIndex === 0) {
  135. setPage(1); setList([]); setHasMore(true); setCheckMap({});
  136. loadData(1, true);
  137. }
  138. }, [levelTabIndex]);
  139. const handleRefresh = () => { setRefreshing(true); setPage(1); setHasMore(true); loadData(1, true); };
  140. const handleLoadMore = () => { if (!loading && hasMore) { const np = page + 1; setPage(np); loadData(np); } };
  141. const handleChoose = (item: StoreItem) => {
  142. if (item.safeFlag === 1 && mainTabIndex === 0) return;
  143. setCheckMap(prev => {
  144. const newMap = { ...prev };
  145. if (newMap[item.id]) delete newMap[item.id];
  146. else newMap[item.id] = item;
  147. return newMap;
  148. });
  149. };
  150. const handleLock = async (item: StoreItem, index: number) => {
  151. const res = await moveToSafeStore([item.id]);
  152. if (res) {
  153. const newList = [...list]; newList[index] = { ...item, safeFlag: 1 }; setList(newList);
  154. setCheckMap(prev => { const m = { ...prev }; delete m[item.id]; return m; });
  155. showAlert('已锁定到保险柜');
  156. }
  157. };
  158. const handleUnlock = async (item: StoreItem, index: number) => {
  159. const res = await moveOutSafeStore([item.id]);
  160. if (res) {
  161. if (mainTabIndex === 1) setList(list.filter((_, i) => i !== index));
  162. else { const newList = [...list]; newList[index] = { ...item, safeFlag: 0 }; setList(newList); }
  163. showAlert('已从保险柜移出');
  164. }
  165. };
  166. const handleMoveOutAll = async () => {
  167. const selected = Object.values(checkMap);
  168. if (selected.length === 0) { showAlert('请至少选择一个商品!'); return; }
  169. const res = await moveOutSafeStore(selected.map(i => i.id));
  170. if (res) { setCheckMap({}); handleRefresh(); showAlert('已从保险柜移出'); }
  171. };
  172. const handleTakeGoods = () => {
  173. const selected = Object.values(checkMap);
  174. if (selected.length === 0) { showAlert('请至少选择一个商品!'); return; }
  175. setCheckoutVisible(true);
  176. };
  177. const handleCheckoutSuccess = () => {
  178. setCheckoutVisible(false);
  179. setCheckMap({});
  180. handleRefresh();
  181. };
  182. const showAlert = (msg: string) => {
  183. if (Platform.OS === 'web') window.alert(msg);
  184. else Alert.alert('提示', msg);
  185. };
  186. const renderStoreItem = ({ item, index }: { item: StoreItem; index: number }) => {
  187. const levelInfo = LEVEL_MAP[item.level] || LEVEL_MAP.D;
  188. const isChecked = !!checkMap[item.id];
  189. const canSelect = mainTabIndex === 1 || item.safeFlag !== 1;
  190. return (
  191. <ImageBackground source={{ uri: Images.mine.storeItemBg }} style={styles.cell} resizeMode="stretch">
  192. <TouchableOpacity style={styles.cellHeader} onPress={() => canSelect && handleChoose(item)}>
  193. <View style={styles.headerLeft}>
  194. {canSelect && (
  195. <View style={[styles.checkBox, isChecked && styles.checkBoxChecked]}>
  196. {isChecked && <Text style={styles.checkIcon}>✓</Text>}
  197. </View>
  198. )}
  199. <Text style={[styles.levelTitle, { color: levelInfo.color }]}>{levelInfo.title}</Text>
  200. </View>
  201. <TouchableOpacity style={styles.lockBox} onPress={() => item.safeFlag !== 1 ? handleLock(item, index) : handleUnlock(item, index)}>
  202. <Text style={styles.lockText}>{item.safeFlag !== 1 ? '锁定' : '解锁'}</Text>
  203. <Image source={{ uri: item.safeFlag !== 1 ? Images.mine.lock : Images.mine.unlock }} style={styles.lockIcon} />
  204. </TouchableOpacity>
  205. </TouchableOpacity>
  206. <View style={styles.cellBody}>
  207. <ImageBackground source={{ uri: Images.mine.storeGoodsImgBg }} style={styles.goodsImgBg}>
  208. <Image source={{ uri: item.spu?.cover }} style={styles.goodsImg} contentFit="contain" />
  209. </ImageBackground>
  210. <View style={styles.goodsInfo}>
  211. <Text style={styles.goodsName} numberOfLines={2}>{item.spu?.name}</Text>
  212. <Text style={styles.goodsSource}>从{FROM_TYPE_MAP[item.fromRelationType] || '其他'}获得</Text>
  213. </View>
  214. </View>
  215. </ImageBackground>
  216. );
  217. };
  218. const copyToClipboard = (text: string) => {
  219. showAlert(`订单号已复制: ${text}`);
  220. };
  221. const showExpress = (item: PickupItem) => {
  222. router.push({ pathname: '/store/packages' as any, params: { tradeNo: item.tradeNo } });
  223. };
  224. const renderPickupItem = ({ item }: { item: PickupItem & { groupedList?: Array<{ total: number; data: any }> } }) => {
  225. const statusInfo = STATUS_MAP[item.status] || { text: '未知', color: '#999' };
  226. return (
  227. <ImageBackground source={{ uri: Images.mine.storeItemBg }} style={styles.pickupCell} resizeMode="stretch">
  228. {/* 顶部信息 */}
  229. <View style={styles.pickupTop}>
  230. <Text style={styles.pickupTime}>下单时间:{item.createTime}</Text>
  231. <Text style={[styles.pickupStatus, { color: statusInfo.color }]}>{statusInfo.text}</Text>
  232. </View>
  233. {item.status === 0 && item.paymentTimeoutTime && (
  234. <Text style={styles.pickupTimeout}>{item.paymentTimeoutTime} 将自动取消该订单,如有优惠券,将自动退回</Text>
  235. )}
  236. {/* 收货地址 */}
  237. <View style={styles.pickupAddress}>
  238. <Text style={styles.locationIcon}>📍</Text>
  239. <View style={styles.addressInfo}>
  240. <Text style={styles.addressName}>{item.contactName},{item.contactNo}</Text>
  241. <Text style={styles.addressDetail}>{item.province}{item.city}{item.district}{item.address}</Text>
  242. </View>
  243. </View>
  244. {/* 商品列表 */}
  245. <View style={styles.pickupGoodsBox}>
  246. <ScrollView horizontal showsHorizontalScrollIndicator={false} style={styles.pickupGoodsList}>
  247. {(item.groupedList || []).map((goods, idx) => (
  248. <View key={idx} style={styles.pickupGoodsItem}>
  249. <Image source={{ uri: goods.data.cover }} style={styles.pickupGoodsImg} contentFit="contain" />
  250. <View style={styles.pickupGoodsCount}>
  251. <Text style={styles.pickupGoodsCountText}>x{goods.total}</Text>
  252. </View>
  253. </View>
  254. ))}
  255. </ScrollView>
  256. </View>
  257. {/* 订单号 */}
  258. <View style={styles.pickupOrderRow}>
  259. <Text style={styles.pickupOrderLabel}>订单号:</Text>
  260. <Text style={styles.pickupOrderNo} numberOfLines={1}>{item.tradeNo}</Text>
  261. <TouchableOpacity style={styles.copyBtn} onPress={() => copyToClipboard(item.tradeNo)}>
  262. <Text style={styles.copyBtnText}>复制</Text>
  263. </TouchableOpacity>
  264. </View>
  265. {item.paymentTime && (
  266. <View style={styles.pickupInfoRow}>
  267. <Text style={styles.pickupInfoLabel}>付款时间:</Text>
  268. <Text style={styles.pickupInfoValue}>{item.paymentTime}</Text>
  269. </View>
  270. )}
  271. {item.status === 12 && item.cancelRemark && (
  272. <View style={styles.pickupInfoRow}>
  273. <Text style={styles.pickupInfoLabel}>备注</Text>
  274. <Text style={[styles.pickupInfoValue, { color: '#ff6b00' }]}>{item.cancelRemark}</Text>
  275. </View>
  276. )}
  277. {/* 底部操作 */}
  278. <View style={styles.pickupBottom}>
  279. <Text style={styles.pickupExpressAmount}>配送费:<Text style={styles.priceText}>¥{item.expressAmount}</Text></Text>
  280. {[1, 2, 99].includes(item.status) && (
  281. <TouchableOpacity style={styles.expressBtn} onPress={() => showExpress(item)}>
  282. <Text style={styles.expressBtnText}>物流信息</Text>
  283. </TouchableOpacity>
  284. )}
  285. </View>
  286. </ImageBackground>
  287. );
  288. };
  289. const selectedCount = Object.keys(checkMap).length;
  290. return (
  291. <View style={styles.container}>
  292. <StatusBar barStyle="light-content" />
  293. <ImageBackground source={{ uri: Images.mine.kaixinMineBg }} style={styles.background} resizeMode="cover">
  294. <Image source={{ uri: Images.mine.kaixinMineHeadBg }} style={styles.headerBg} contentFit="cover" />
  295. <View style={[styles.header, { paddingTop: insets.top }]}>
  296. <TouchableOpacity style={styles.backBtn} onPress={() => router.back()}>
  297. <Text style={styles.backIcon}>‹</Text>
  298. </TouchableOpacity>
  299. <Text style={styles.title}>仓库</Text>
  300. <View style={styles.placeholder} />
  301. </View>
  302. <View style={[styles.content, { paddingTop: insets.top + 50 }]}>
  303. <View style={styles.mainTabs}>
  304. {mainTabs.map((tab, index) => (
  305. <TouchableOpacity key={index} style={styles.mainTabItem} onPress={() => setMainTabIndex(index)}>
  306. <Text style={[styles.mainTabText, mainTabIndex === index && styles.mainTabTextActive]}>{tab}</Text>
  307. {mainTabIndex === index && <View style={styles.mainTabLine} />}
  308. </TouchableOpacity>
  309. ))}
  310. </View>
  311. {mainTabIndex === 0 && (
  312. <View style={styles.levelTabs}>
  313. {LEVEL_TABS.map((tab, index) => (
  314. <TouchableOpacity key={index} style={[styles.levelTabItem, levelTabIndex === index && styles.levelTabItemActive]} onPress={() => setLevelTabIndex(index)}>
  315. <Text style={[styles.levelTabText, levelTabIndex === index && styles.levelTabTextActive]}>{tab.title}</Text>
  316. </TouchableOpacity>
  317. ))}
  318. </View>
  319. )}
  320. <FlatList
  321. data={list as any[]}
  322. renderItem={mainTabIndex === 2 ? renderPickupItem as any : renderStoreItem as any}
  323. keyExtractor={(item: any, index) => item.id || item.tradeNo || index.toString()}
  324. contentContainerStyle={styles.listContent}
  325. refreshControl={<RefreshControl refreshing={refreshing} onRefresh={handleRefresh} tintColor="#fff" />}
  326. onEndReached={handleLoadMore}
  327. onEndReachedThreshold={0.3}
  328. ListHeaderComponent={mainTabIndex === 2 ? (
  329. <View style={styles.pickupTip}>
  330. <Text style={styles.pickupTipIcon}>⚠️</Text>
  331. <Text style={styles.pickupTipText}>您的包裹一般在5个工作日内发货,如遇特殊情况可能会有延迟,敬请谅解~</Text>
  332. </View>
  333. ) : null}
  334. ListFooterComponent={loading && list.length > 0 ? <ActivityIndicator color="#fff" style={{ marginVertical: 10 }} /> : null}
  335. ListEmptyComponent={!loading ? <View style={styles.emptyBox}><Text style={styles.emptyText}>暂无物品</Text></View> : null}
  336. />
  337. </View>
  338. {mainTabIndex !== 2 && list.length > 0 && (
  339. <View style={[styles.bottomBar, { paddingBottom: insets.bottom + 10 }]}>
  340. <Text style={styles.bottomInfoText}>已选 <Text style={styles.bottomInfoCount}>{selectedCount}</Text> 件商品</Text>
  341. <TouchableOpacity style={styles.bottomBtn} onPress={mainTabIndex === 0 ? handleTakeGoods : handleMoveOutAll}>
  342. <ImageBackground source={{ uri: Images.common.loginBtn }} style={styles.bottomBtnBg} resizeMode="contain">
  343. <Text style={styles.bottomBtnText}>{mainTabIndex === 0 ? '立即提货' : '移出保险柜'}</Text>
  344. </ImageBackground>
  345. </TouchableOpacity>
  346. </View>
  347. )}
  348. {/* 提货弹窗 */}
  349. <CheckoutModal
  350. visible={checkoutVisible}
  351. selectedItems={Object.values(checkMap)}
  352. onClose={() => setCheckoutVisible(false)}
  353. onSuccess={handleCheckoutSuccess}
  354. />
  355. </ImageBackground>
  356. </View>
  357. );
  358. }
  359. const styles = StyleSheet.create({
  360. container: { flex: 1, backgroundColor: '#1a1a2e' },
  361. background: { flex: 1 },
  362. headerBg: { position: 'absolute', top: 0, left: 0, width: '100%', height: 160 },
  363. header: { position: 'absolute', top: 0, left: 0, right: 0, zIndex: 100, flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', paddingHorizontal: 10, paddingBottom: 10 },
  364. backBtn: { width: 40, height: 40, justifyContent: 'center', alignItems: 'center' },
  365. backIcon: { fontSize: 32, color: '#fff', fontWeight: 'bold' },
  366. title: { color: '#fff', fontSize: 16, fontWeight: 'bold' },
  367. placeholder: { width: 40 },
  368. content: { flex: 1 },
  369. mainTabs: { flexDirection: 'row', justifyContent: 'space-around', paddingVertical: 10 },
  370. mainTabItem: { alignItems: 'center', paddingHorizontal: 15 },
  371. mainTabText: { color: '#aaa', fontSize: 14 },
  372. mainTabTextActive: { color: '#fff', fontWeight: 'bold', fontSize: 16 },
  373. mainTabLine: { width: 20, height: 3, backgroundColor: '#fff', marginTop: 5, borderRadius: 2 },
  374. levelTabs: { flexDirection: 'row', paddingHorizontal: 10, paddingVertical: 8 },
  375. levelTabItem: { paddingHorizontal: 12, paddingVertical: 6, marginRight: 8, borderRadius: 15, backgroundColor: 'rgba(255,255,255,0.1)' },
  376. levelTabItemActive: { backgroundColor: '#FC7D2E' },
  377. levelTabText: { color: '#aaa', fontSize: 12 },
  378. levelTabTextActive: { color: '#fff' },
  379. listContent: { paddingHorizontal: 10, paddingBottom: 150 },
  380. cell: { width: '100%', minHeight: 154, marginBottom: 10, padding: 15 },
  381. cellHeader: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', borderBottomWidth: 1, borderBottomColor: 'rgba(0,0,0,0.1)', paddingBottom: 10, marginBottom: 10 },
  382. headerLeft: { flexDirection: 'row', alignItems: 'center' },
  383. checkBox: { width: 18, height: 18, borderWidth: 2, borderColor: '#000', backgroundColor: '#fff', marginRight: 10, justifyContent: 'center', alignItems: 'center' },
  384. checkBoxChecked: { backgroundColor: '#000' },
  385. checkIcon: { color: '#fff', fontSize: 12 },
  386. levelTitle: { fontSize: 16, fontWeight: 'bold' },
  387. lockBox: { flexDirection: 'row', alignItems: 'center' },
  388. lockText: { fontSize: 12, color: '#666' },
  389. lockIcon: { width: 16, height: 16, marginLeft: 5 },
  390. cellBody: { flexDirection: 'row' },
  391. goodsImgBg: { width: 65, height: 65, justifyContent: 'center', alignItems: 'center', marginRight: 10 },
  392. goodsImg: { width: 55, height: 55 },
  393. goodsInfo: { flex: 1, justifyContent: 'space-between' },
  394. goodsName: { fontSize: 14, color: '#333', fontWeight: 'bold' },
  395. goodsSource: { fontSize: 12, color: '#999' },
  396. bottomBar: { position: 'absolute', bottom: 0, left: 0, right: 0, backgroundColor: 'rgba(0,0,0,0.8)', paddingHorizontal: 15, paddingTop: 10, alignItems: 'center' },
  397. bottomInfoText: { color: '#fff', fontSize: 14, marginBottom: 10 },
  398. bottomInfoCount: { fontWeight: 'bold', fontSize: 18 },
  399. bottomBtn: { width: 260 },
  400. bottomBtnBg: { width: 260, height: 60, justifyContent: 'center', alignItems: 'center' },
  401. bottomBtnText: { color: '#000', fontSize: 16, fontWeight: 'bold' },
  402. emptyBox: { marginTop: 100, alignItems: 'center' },
  403. emptyText: { color: '#999', fontSize: 14 },
  404. // 已提货样式
  405. pickupTip: { flexDirection: 'row', alignItems: 'center', backgroundColor: '#1FA4FF', padding: 8, marginBottom: 10, borderRadius: 4 },
  406. pickupTipIcon: { fontSize: 14, marginRight: 6 },
  407. pickupTipText: { flex: 1, color: '#fff', fontSize: 12 },
  408. pickupCell: { width: '100%', marginBottom: 10, padding: 15 },
  409. pickupTop: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', borderBottomWidth: 1, borderBottomColor: 'rgba(0,0,0,0.05)', paddingBottom: 10 },
  410. pickupTime: { fontSize: 12, color: '#666' },
  411. pickupStatus: { fontSize: 12, fontWeight: 'bold' },
  412. pickupTimeout: { fontSize: 11, color: '#ff6b00', marginTop: 5 },
  413. pickupAddress: { flexDirection: 'row', alignItems: 'flex-start', paddingVertical: 14, borderBottomWidth: 1, borderBottomColor: 'rgba(0,0,0,0.05)' },
  414. locationIcon: { fontSize: 16, marginRight: 10 },
  415. addressInfo: { flex: 1 },
  416. addressName: { fontSize: 14, color: '#333', fontWeight: 'bold' },
  417. addressDetail: { fontSize: 12, color: '#666', marginTop: 4 },
  418. pickupGoodsBox: { backgroundColor: '#f8f8f8', borderRadius: 6, padding: 10, marginVertical: 10 },
  419. pickupGoodsList: { flexDirection: 'row' },
  420. pickupGoodsItem: { width: 79, height: 103, backgroundColor: '#fff', borderRadius: 6, marginRight: 8, alignItems: 'center', justifyContent: 'center', position: 'relative', borderWidth: 1, borderColor: '#eaeaea' },
  421. pickupGoodsImg: { width: 73, height: 85 },
  422. pickupGoodsCount: { position: 'absolute', top: 0, right: 0, backgroundColor: '#ff6b00', borderRadius: 2, paddingHorizontal: 4, paddingVertical: 2 },
  423. pickupGoodsCountText: { color: '#fff', fontSize: 10, fontWeight: 'bold' },
  424. pickupOrderRow: { flexDirection: 'row', alignItems: 'center', borderTopWidth: 1, borderTopColor: 'rgba(0,0,0,0.05)', paddingTop: 14 },
  425. pickupOrderLabel: { fontSize: 12, color: '#666' },
  426. pickupOrderNo: { flex: 1, fontSize: 12, color: '#333', textAlign: 'right' },
  427. copyBtn: { backgroundColor: '#1FA4FF', borderRadius: 4, paddingHorizontal: 6, paddingVertical: 4, marginLeft: 5 },
  428. copyBtnText: { color: '#fff', fontSize: 12 },
  429. pickupInfoRow: { flexDirection: 'row', alignItems: 'center', paddingTop: 10 },
  430. pickupInfoLabel: { fontSize: 12, color: '#666' },
  431. pickupInfoValue: { fontSize: 12, color: '#333' },
  432. pickupBottom: { flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-end', paddingTop: 10 },
  433. pickupExpressAmount: { fontSize: 12, color: '#333' },
  434. priceText: { color: '#ff6b00' },
  435. expressBtn: { backgroundColor: '#1FA4FF', borderRadius: 12, paddingHorizontal: 10, paddingVertical: 6, marginLeft: 15 },
  436. expressBtnText: { color: '#fff', fontSize: 12 },
  437. });