界面
隐藏 loading 提示
ymx.hideLoading(); 复制
ymx.hideLoading();
隐藏吐司提示
ymx.hideToast(); 复制
ymx.hideToast();
显示操作菜单
ymx.showActionSheet({ alertText: '请选择', itemList: ['选项1', '选项2', '选项3'], itemColor: '#FF0000',}).then((res) => { alert(res.tapIndex);}); 复制
ymx.showActionSheet({ alertText: '请选择', itemList: ['选项1', '选项2', '选项3'], itemColor: '#FF0000',}).then((res) => { alert(res.tapIndex);});
显示 loading 提示
ymx.showLoading({ title: '加载中...', mask: true}); 复制
ymx.showLoading({ title: '加载中...', mask: true});
显示模态弹框
ymx.showModal({ title: '确认', content: '确实退出吗?', confirmText: '退出', cancelText: '取消'}).then(res => { alert(JSON.stringify(res));}); 复制
ymx.showModal({ title: '确认', content: '确实退出吗?', confirmText: '退出', cancelText: '取消'}).then(res => { alert(JSON.stringify(res));});
吐司提示
ymx.showToast({ title: 'hello world', duration: 2000}); 复制
ymx.showToast({ title: 'hello world', duration: 2000});
界面