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 { useCreation, useRequest } from '@umijs/hooks'; import useModel from 'flooks'; import Detail from './model'; import { navigate } from '../../navigation/RootNavigation'; export default function Merchant() { const { merchantInfo } = useModel(Detail, ['merchantInfo']); const { img, name, introduction, category, address, phone, endTime, startTime, } = merchantInfo; const imgList = useCreation(() => { return img ? img.split(',') : []; }, [img]); const categoryName = useCreation(() => { return category && category.length > 0 ? category[0].name : ''; }, [category]); return ( <>