Commit 730f0d2a by 匡雅琴

合并修改

1 parent 4404fe87
import request from './request'
import Vue from 'vue'
const path = 'merchants.api.'
const addNamelistApi = {
// 根据商户名称和渠道类型查询商户列表
getMerchantsList(data = {}) {
// 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
data.method = 'merchants.api.open.findMerchantList'
return request(data, 'merchants.api.open.findMerchantList', [], 'http://rop-merchant.test.glsx.com.cn/rop-merchants')
},
// 根据商户名称和渠道类型查询商户列表-分页查询
getMerchantsListByPages(data = {}) {
// 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
data.method = 'merchants.api.menu.findMerchantByPage'
return request(data, 'merchants.api.menu.findMerchantByPage', [], 'http://rop-merchant.test.glsx.com.cn/rop-merchants')
},
// 根据商户号查询商户详情
findMerchantDetailByMerchantNo(data = {}) {
// 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
data.method = 'merchants.api.open.findMerchantDetailByMerchantNo'
return request(data, 'merchants.api.open.findMerchantDetailByMerchantNo', [], 'http://rop-merchant.test.glsx.com.cn/rop-merchants')
}
// 根据商户名称和渠道类型查询商户列表
getMerchantsList(data = {}) {
data.method = 'merchants.api.open.findMerchantList'
return request(
data,
'merchants.api.open.findMerchantList',
[],
Vue.prototype.otherUrl
)
},
// 根据商户名称和渠道类型查询商户列表-分页查询
getMerchantsListByPages(data = {}) {
data.method = `${path}menu.findMerchantByPage`
return request(
data,
`${path}menu.findMerchantByPage`,
[],
Vue.prototype.otherUrl
)
},
// 根据商户号查询商户详情
findMerchantDetailByMerchantNo(data = {}) {
data.method = `${path}open.findMerchantDetailByMerchantNo`
return request(
data,
`${path}open.findMerchantDetailByMerchantNo`,
[],
Vue.prototype.otherUrl
)
}
}
export { addNamelistApi }
\ No newline at end of file
export { addNamelistApi }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!