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.
		
		
		
		
		
			
		
			
				
					
					
						
							42 lines
						
					
					
						
							734 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							42 lines
						
					
					
						
							734 B
						
					
					
				
								import request from '@/common/request.js'
							 | 
						|
								
							 | 
						|
								// 个人中心
							 | 
						|
								export async function my() {
							 | 
						|
									return await request({
							 | 
						|
										url: '/api/v1/my',
							 | 
						|
										method: 'post',
							 | 
						|
									})
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// 获取优惠码
							 | 
						|
								export async function checkAgentCode(code) {
							 | 
						|
									return await request({
							 | 
						|
										url: '/api/v1/check_agent_code',
							 | 
						|
										data:{code:code},
							 | 
						|
										method: 'post',
							 | 
						|
									})
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// 获取优惠码
							 | 
						|
								export async function couponSearch() {
							 | 
						|
									return await request({
							 | 
						|
										url: '/api/v1/coupon_search',
							 | 
						|
										method: 'post',
							 | 
						|
									})
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// 更新优惠码
							 | 
						|
								export async function couponUpdate() {
							 | 
						|
									return await request({
							 | 
						|
										url: '/api/v1/coupon_update',
							 | 
						|
										method: 'post',
							 | 
						|
									})
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// 获取系统信息
							 | 
						|
								export async function sysInfo() {
							 | 
						|
									return await request({
							 | 
						|
										url: '/api/v1/sys_info',
							 | 
						|
										method: 'post',
							 | 
						|
									})
							 | 
						|
								}
							 |