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.
 
 
 
 
xxdj1/api/modules/base.js

65 lines
1.4 KiB

import {
req,
uploadFile
} from '../../utils/req.js';
export default {
// 登录
login(param) {
return req.post("index/login", param)
},
appLogin(param) {
return req.post("index/appLogin", param)
},
//短信登陆
msgLogin(param) {
return req.post("index/msmLogin", param)
},
//发送验证码
setCode(param){
return req.post("index/sendMsm", param)
},
//登录
smsLogin(param){
return req.post("index/msmLogin", param)
},
// 登录协议
getLoginProtocol(param) {
return req.post("index/getLoginProtocol", param)
},
// app登录配置
getConfig(param) {
return req.get("index/getConfig", param)
},
// 上传图片
base64ToImg(param) {
return req.get("massage/app/IndexUser/base64ToImg", param)
},
// 获取配置
getWebConfig(param) {
return req.get("index/getWebConfig", param)
},
// 获取地图定位
getMapInfo(param) {
return req.get("massage/app/Index/getMapInfo", param)
},
// 解析二维码
getWxCodeData(param) {
return req.get("card/app/getWxCodeData", param)
},
// 系统配置
configInfo(param) {
return req.get("shop/app/Index/configInfo", param)
},
// 上传图片
uploadFile(param) {
return uploadFile("admin/app/wx/uploadFile", param)
},
// 上传视频
uploadVideo(param) {
return uploadFile("admin/app/wx/uploadVideo", param)
},
//获取城市
getCity(param) {
return req.get("/massage/app/Index/getCity", param)
},
}