forked from angelo/web-retail-h5
				
			
		
			
	
	
		
			23 lines
		
	
	
		
			601 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
		
			601 B
		
	
	
	
		
			JavaScript
		
	
	
	
|  | const http = uni.$u.http | ||
|  | 
 | ||
|  | // 获取分享码
 | ||
|  | export const getShareCode = params => | ||
|  |   http.get('/member/api/share/share-code', { params }) | ||
|  | 
 | ||
|  | // 根据短码获取memberCode
 | ||
|  | export const getMemberCode = code => | ||
|  |   http.get(`/member/api/share/find-share-code/${code}`) | ||
|  | 
 | ||
|  | // 获取手机验证码
 | ||
|  | export const getPhoneCode = params => | ||
|  |   http.get('/member/api/share/share-sms-code', { params }) | ||
|  | 
 | ||
|  | // 注册
 | ||
|  | 
 | ||
|  | export const getRegister = data => | ||
|  |   http.post('/member/api/share/share-register', data) | ||
|  | 
 | ||
|  | // 自动登录
 | ||
|  | export const autoLogin = data => | ||
|  |   http.post('/retail-member/api/retail-auth/auto-login', data) |