import config from '@/config' const baseUrlimg=config.baseUrl /** * 显示消息提示框 * @param content 提示的标题 */ export function toast(content) { uni.showToast({ icon: 'none', title: content }) } /** * 显示模态弹窗 * @param content 提示的标题 */ export function showConfirm(content) { return new Promise((resolve, reject) => { uni.showModal({ title: '提示', content: content, cancelText: '取消', confirmText: '确定', success: function(res) { resolve(res) } }) }) } //解析富文本方法 export function formatRichText(html) { let newContent = html.replace(/\/dev-api/g, ''); newContent = newContent.replace(/\