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.
		
		
		
		
			
				
					45 lines
				
				726 B
			
		
		
			
		
	
	
					45 lines
				
				726 B
			| 
								 
											6 years ago
										 
									 | 
							
								import { HTTP } from '../utils/http.js'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class ArticeModel extends HTTP {
							 | 
						||
| 
								 | 
							
								  constructor() {
							 | 
						||
| 
								 | 
							
								    super()
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								  // 文章详情
							 | 
						||
| 
								 | 
							
								  getDetail(aId, success) {
							 | 
						||
| 
								 | 
							
								    let params = {
							 | 
						||
| 
								 | 
							
								      url: '',
							 | 
						||
| 
								 | 
							
								      sucess: success,
							 | 
						||
| 
								 | 
							
								      method: 'POST',
							 | 
						||
| 
								 | 
							
								      data: {
							 | 
						||
| 
								 | 
							
								        id: aId
							 | 
						||
| 
								 | 
							
								      }
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								    this.request(params)
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								  // 设置收藏还是取消
							 | 
						||
| 
								 | 
							
								  setCollect(aId, type, success) {
							 | 
						||
| 
								 | 
							
								    let params = {
							 | 
						||
| 
								 | 
							
								      url: '',
							 | 
						||
| 
								 | 
							
								      success: success,
							 | 
						||
| 
								 | 
							
								      method: 'POST',
							 | 
						||
| 
								 | 
							
								      data: {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								      }
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								    this.request(params)
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								  // 在线报名
							 | 
						||
| 
								 | 
							
								  onlineSign (aId, type, success) {
							 | 
						||
| 
								 | 
							
								    let params = {
							 | 
						||
| 
								 | 
							
								      url: '',
							 | 
						||
| 
								 | 
							
								      success: success,
							 | 
						||
| 
								 | 
							
								      method: 'POST',
							 | 
						||
| 
								 | 
							
								      data: {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								      }
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								    this.request(params)
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export { ArticeModel }
							 |