一、提示弹窗

1.带有确认按钮的

uni.showModal({
    title: '提示',
    content: '提示内容',
    showCancel: false, // 只保留确认按钮
    success: (res) => {
      if (res.confirm) {
        //确认后具体操作
      }
    }
  })

2.弹出显示一下

(1)

uni.showToast({ title: '提示内容', icon: 'none' });

uni.showToast({
	title: '错误',
	icon: 'error'
});

(2)

uni.$u.toast('超过限定时间,禁止操作')

二、加载窗

uni.showLoading({ title: '加载中...', mask: true });

uni.hideLoading();

mask:true,遮罩

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐