import { useState } from 'react' import Taro from '@tarojs/taro' import { Image, Block } from '@tarojs/components' import { getImgURL } from '@/utils/image' import '@/assets/css/iconfont.css' import './index.scss' export default function SubmitBuyHouseResult (props) { const { List = [], setting } = props const handlePhone = () => { if (!setting?.phone) { Taro.showToast({ title: '暂不提供相关服务', icon: 'none', }) } Taro.makePhoneCall({ phoneNumber: setting.phone, }) } return ( 提交成功 已接收到您的需求我们预计将在48小时内联系您! 客服工作时间为周一至周五9:00-17:00 请保持电话畅通;谢谢! 一键电话 {/* 匹配楼盘 */} { !!List.length && 匹配楼盘 { List.slice(0, 1).map((item, index) => ( {/* “方案一” */} {Taro.navigateTo({ url: `/pages/index/buildingDetail/index?id=${item.buildingId}` })}}> {item.name} {item.price} {item.address} )) } } ) }