You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							35 lines
						
					
					
						
							745 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							35 lines
						
					
					
						
							745 B
						
					
					
				
								// components/swiper/index.js
							 | 
						|
								Component({
							 | 
						|
								  /**
							 | 
						|
								   * 组件的属性列表
							 | 
						|
								   */
							 | 
						|
								  properties: {
							 | 
						|
								
							 | 
						|
								  },
							 | 
						|
								
							 | 
						|
								  /**
							 | 
						|
								   * 组件的初始数据
							 | 
						|
								   */
							 | 
						|
								  data: {
							 | 
						|
								    images: [
							 | 
						|
								      {
							 | 
						|
								        id: '1',
							 | 
						|
								        image: "http://m.360buyimg.com/mobilecms/s700x280_jfs/t1/76190/38/9199/97616/5d6e380cEf6e9f6a7/71023fef24783257.jpg!cr_1125x445_0_171!q70.jpg.dpg"
							 | 
						|
								      },
							 | 
						|
								      {
							 | 
						|
								        id: '2',
							 | 
						|
								        image: 'http://m.360buyimg.com/mobilecms/s700x280_jfs/t1/45210/40/7669/143615/5d53b19dEc9559d0a/cd9eade239533517.jpg!cr_1125x445_0_171!q70.jpg.dpg'
							 | 
						|
								      }
							 | 
						|
								    ]
							 | 
						|
								  },
							 | 
						|
								
							 | 
						|
								  /**
							 | 
						|
								   * 组件的方法列表
							 | 
						|
								   */
							 | 
						|
								  methods: {
							 | 
						|
								    onTapImage (event) {
							 | 
						|
								      const { item } = event.currentTarget.dataset
							 | 
						|
								      this.triggerEvent('tapSwiperItem', item)
							 | 
						|
								    }
							 | 
						|
								  }
							 | 
						|
								})
							 | 
						|
								
							 |