flat: style修改
This commit is contained in:
23
main.js
23
main.js
@@ -10,6 +10,27 @@ import uView from '@/uni_modules/uview-ui'
|
||||
// Vue.component('mescroll-body', MescrollBody)
|
||||
// Vue.component('mescroll-uni', MescrollUni)
|
||||
|
||||
function navTo(url, needLogin) {
|
||||
if(needLogin) {
|
||||
return
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
})
|
||||
}
|
||||
|
||||
const msg = (title, duration=1500, mask=false, icon='none')=>{
|
||||
if(typeof title === 'string'){
|
||||
return;
|
||||
}
|
||||
uni.showToast({
|
||||
title,
|
||||
duration,
|
||||
mask,
|
||||
icon
|
||||
});
|
||||
}
|
||||
|
||||
// 注册全局组件
|
||||
import JlButton from "@/components/jl-button/main.vue"
|
||||
import JlForm from "@/components/jl-form/main.vue"
|
||||
@@ -20,6 +41,8 @@ Vue.component('jl-form', JlForm)
|
||||
Vue.component('jl-form-item', JlFormItem)
|
||||
Vue.component('cs-button', CSButton)
|
||||
|
||||
Vue.prototype.$api = { msg }
|
||||
Vue.prototype.navTo = navTo
|
||||
Vue.config.productionTip = false
|
||||
|
||||
Vue.use(util)
|
||||
|
||||
Reference in New Issue
Block a user