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.
|
|
|
import request from '@/utils/request'
|
|
|
|
const service_name = "cloud-site-service"
|
|
|
|
const group_name = "cloudSite"
|
|
|
|
export default {
|
|
|
|
// 根据ID查询订单详情
|
|
|
|
getSiteOrderById(data) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/getSiteOrderById`,
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 油站基本资料和油站的油品价格等信息
|
|
|
|
getSiteDetail(data) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/getSiteDetail`,
|
|
|
|
method: 'get',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 获取云站当前登录用户的基础资料
|
|
|
|
getSiteBasicData(data) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/getSiteBasicData`,
|
|
|
|
method: 'get',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 获取油站订单列表
|
|
|
|
getSiteOrder(data) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/getSiteOrder`,
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 查询云站号是否存在,并返回云站基本信息
|
|
|
|
verifyOilSite(data) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/registerOilSite/${data.oilSiteCode}`,
|
|
|
|
method: 'get',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 获取不带参数的油站二维码
|
|
|
|
getSiteQrCode(data) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/getSiteQrCode`,
|
|
|
|
method: 'get',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 获取带参数的油站二维码
|
|
|
|
getDesignatedSiteQrCode(data) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/updateSiteQrCode`,
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|