import com from './addon/com'

var components = com([
	'HeaderLayout', 
	'HeaderDock',
	'LayoutMain',
	'LayoutBox',
	'LayoutSideMenu',	
	'TabsSide',
	'TabsItemSide',	 
	'Icon',	 
	'List',
	'ListItem',
	'Product',
	'ShoppingDock',
	'Btn',
	'GridRow'	
])

//cvxd
new Vue({
	el: '#app',
	components: components,
	data (){
		return {
			 
		}
	},
	created: function(){
 
	},
	events: {
		 
	},
	methods: {
	  submit: function(){
	  		$.ajax({
				url: SITE_URL + '/order/submitpay/',
				type: 'post',
				data: ORDER,
				success: function(data){
					if(!data.code){
						alert(data.msg);
					} else {
						alert(data.msg);
						window.location = SITE_URL + '/order/myorder';
					}
					 
				},
				error: function(){
					alert('网络发生错误，请重试');
				}
			});
	  }
	}
})