refactor(bluetooth-operate-card): 将本地蓝牙关闭图标替换为远程CDN资源
| | |
| | | import { View, Image } from "@tarojs/components"; |
| | | import closeBluetoothIcon from './close-bluetooth.png'; |
| | | |
| | | type Props = { |
| | | description: string; |
| | |
| | | export default function BluetoothOperateCard({ description, actionText = '', onClick, authSuccess = false }: Props) { |
| | | // 只要有动作需要执行,或者未达到成功授权的系统级要求,都展示关闭状态的图标 |
| | | const iconSrc = actionText === '去开启' || actionText === '去授权' || !authSuccess |
| | | ? closeBluetoothIcon |
| | | ? "https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/close-bluetooth.png" |
| | | : "https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/bluetooth-icon.png"; |
| | | |
| | | return ( |