parent
b67c67fa43
commit
170d05bc5b
@ -1,14 +1,57 @@ |
|||||||
import { |
import { |
||||||
POST |
POST |
||||||
} from './Request.js'; |
} from './Request.js'; |
||||||
let app = getApp(); |
let app = getApp(); |
||||||
let base = app.globalData.url; |
let base = app.globalData.url; |
||||||
//H5 获取用户信息
|
// 登录接口
|
||||||
export const mpLogin = params => { |
export const userLogin = params => { |
||||||
return POST('POST', `${base}/wechat/mpLogin`, params).then(res => res.data); |
return POST('POST', `${base}/login/userLogin`, params).then(res => res.data); |
||||||
|
} |
||||||
|
//退出登录
|
||||||
|
export const logout = params => { |
||||||
|
return POST('POST', `${base}/login/logout`, params).then(res => res.data); |
||||||
|
} |
||||||
|
//银行卡识别
|
||||||
|
export const recognizeBankCard = params => { |
||||||
|
return POST('GET', `${base}/ocr/recognizeBankCard`, params).then(res => res.data); |
||||||
|
} |
||||||
|
//营业执照识别
|
||||||
|
export const recognizeBusinessLicense = params => { |
||||||
|
return POST('GET', `${base}/ocr/recognizeBusinessLicense`, params).then(res => res.data); |
||||||
|
} |
||||||
|
// 身份证识别【正反面】
|
||||||
|
export const recognizeIdCard = params => { |
||||||
|
return POST('GET', `${base}/ocr/recognizeIdCard`, params).then(res => res.data); |
||||||
|
} |
||||||
|
// 查询行业
|
||||||
|
export const getIndustry = params => { |
||||||
|
return POST('GET', `${base}/common/getIndustry`, params).then(res => res.data); |
||||||
|
} |
||||||
|
// 上传商户图片
|
||||||
|
export const uploadFile = params => { |
||||||
|
return POST('POST', `${base}/mer/uploadFile`, params).then(res => res.data); |
||||||
|
} |
||||||
|
|
||||||
|
//第一步上传商户信息
|
||||||
|
export const configMerAccount = params => { |
||||||
|
return POST('POST', `${base}/mer/configMerAccount`, params).then(res => res.data); |
||||||
|
} |
||||||
|
//查询商户详情
|
||||||
|
export const getMerDetail = params => { |
||||||
|
return POST('GET', `${base}/mer/getMerDetail`, params).then(res => res.data); |
||||||
} |
} |
||||||
|
|
||||||
//查询优惠券
|
//第二步商户基本信息
|
||||||
export const getDiscountList = params => { |
export const configMerBasis = params => { |
||||||
return POST('GET', `${base}/discount/getDiscountList`, params).then(res => res.data); |
return POST('POST', `${base}/mer/configMerBasis`, params).then(res => res.data); |
||||||
} |
} |
||||||
|
//第三步商户结算信息
|
||||||
|
export const configMerSettlement = params => { |
||||||
|
return POST('POST', `${base}/mer/configMerSettlement`, params).then(res => res.data); |
||||||
|
} |
||||||
|
//第四步商户门店信心
|
||||||
|
export const configMerStore = params => { |
||||||
|
return POST('POST', `${base}/mer/configMerStore`, params).then(res => res.data); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue