123456789101112131415161718192021222324252627 |
- const {
- http
- } = uni.$u
- // 请求首页顶部轮播
- export const getCode = (params, config = {}) => http.post('/api/sms/send', params, config)
- export const getImage = (params, config = {}) => http.post('/api/getImage', params, config)
- export const getActivityDataDetailReq = (params, config = {}) => {
- let apiUrl = '/api/users/getActivityDataDetail'
- Object.keys(params).forEach((item, index) => {
- if (index == 0) {
- apiUrl += `?${item}=${params[item]}`
- } else {
- apiUrl += `&${item}=${params[item]}`
- }
- })
- console.log('处理后的apiUrl', apiUrl);
- return http.get(apiUrl, params, config)
- }
|