| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- import * as WebBrowser from 'expo-web-browser';
- import * as React from 'react';
- import { Div, Button, Image, Text, Avatar } from 'react-native-magnus';
- import { ScrollView } from 'react-native-gesture-handler';
- import useModel from 'flooks';
- import User from '../../flooks/User'; // detail模块通用方法
- import Header from '../../components/Header';
- const info = new Map([
- [
- '商家',
- {
- title: '商家入驻',
- next: 'MerchatApply',
- },
- ],
- [
- '骑手',
- {
- title: '骑手招募',
- next: 'RiderApply',
- },
- ],
- [
- '商务',
- {
- title: '商务合作',
- next: 'CompanyApply',
- },
- ],
- ]);
- export default function ApplyScreen({ navigation, route }) {
- const { userInfo } = useModel(User, ['id']);
- const { params } = route;
- const { type } = params;
- const nowInfo = info.get(type);
- return (
- <>
- <Header title={nowInfo.title} />
- <Div />
- <Button
- my={20}
- mx={10}
- bg="brand500"
- onPress={() => navigation.navigate(nowInfo.next)}
- >
- 立即申请
- </Button>
- </>
- );
- }
|