mui结合vue使用

vue加载完加载mui,当用到plus时先加载完plus基座再初始化mui
var t=new Vue({
			  	el:'#app',
			  	data:{
			  		tabledata:[],
			  		countdata:[],
			  		nowtime:'',
			  	},
			  	mounted (){
			  		//mui
			  		mui.plusReady(function(){
			  			mui.init({
					    	swipeBack:true,//启用右滑关闭功能
					      	pullRefresh : {
						        container:'#refreshContainer',
						        down : {
						         	contentrefresh: '正在加载...',
						          callback :pulldownRefresh 
						        },...
					      }
					    });
					    t.nowtime=plus.storage.getItem('nowtime');
					    //其它逻辑
				    ......
			  		});
			  		
			  },
			  filters:{
			  	getPaydatetime:function(value){
			  		var t=value/1000;
			  		return getLocalTime(t);
			  	}
			  }
			  });

你可能感兴趣的:(Vue-js)