1234567891011121314151617181920212223 |
- import reg from '@/common/utils/reg.js'
- import api from '@/common/api/index.js'
- const showToast = (title, duration = 2000, icon = "none") => {
- uni.showToast({ title, duration, icon })
- }
- const showModal = content => {
- uni.showModal({
- title: '温馨提示',
- content,
- showCancel: false,
- confirmText: '确定',
- confirmColor: '#007A69'
- })
- }
- export const globalProperties = {
- $api: api,
- $reg: reg,
- $showToast: showToast,
- $showModal: showModal
- };
|