import { Image, Swiper, SwiperItem, Text, View } from '@tarojs/components' import Taro from '@tarojs/taro' import styles from './index.module.scss' import { formatImgUrl } from '@/common/fotmat' import { goLink } from '@/common/common' interface params { show?: true|false onClose?: () => void } export default ({ show, onClose }: params) => { const onCustomer = async() => { const res = await Taro.showModal({ title: '是否拨打服务热线', confirmText: '拨打', content: '(0757) 8270 6695', cancelText: '取消', }) if (res.confirm) { Taro.makePhoneCall({ phoneNumber: '(0757)82706695', }) } } const onConfirm = () => { onClose?.() goLink('/pages/bindSalesman/index') } return ( <> {show && 提示 暂未开通下单权限功能,稍后有客服联系您,请注意接收电话。 onConfirm()}>输入邀请码 onCustomer()}>联系客服 } ) }