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.
101 lines
2.2 KiB
101 lines
2.2 KiB
import request from "@/utils/request";
|
|
|
|
// 获取轮播图
|
|
export function getCarousel() {
|
|
return request.get('/shop/slideshow/list')
|
|
}
|
|
|
|
// 获取分类
|
|
export function getClassification() {
|
|
return request.get('/shop/homeCategory/list')
|
|
}
|
|
|
|
// 获取文章分类
|
|
export function getArticle(data) {
|
|
return request.get('/cms/category',data)
|
|
}
|
|
|
|
// 获取医生
|
|
export function getDoctor(data) {
|
|
return request.get('/shop/doctor/list',data)
|
|
}
|
|
// 获取驿站
|
|
export function getDak(data) {
|
|
return request.get('/shop/communityStation/list',data)
|
|
}
|
|
|
|
// 获取科室分类
|
|
export function getDepartmentClassification(data) {
|
|
return request.get('/shop/doctorsDepartment/list',data)
|
|
}
|
|
|
|
// 获取驿站详情
|
|
export function getRelayDetails(data) {
|
|
return request.get('/shop/communityStation/info',data)
|
|
}
|
|
|
|
// 获取行政区划
|
|
export function getAdministrativeDivision() {
|
|
return request.get('/accompany/getAreaTree')
|
|
}
|
|
|
|
// 获取专题列表
|
|
export function getTopicsList(data) {
|
|
return request.get('/cms/article',data)
|
|
}
|
|
|
|
// 获取专题详情
|
|
export function getTopicsDetails(id) {
|
|
return request.get(`/cms/article/${id}`)
|
|
}
|
|
|
|
// 获取医院分类
|
|
export function getHospitalClassification() {
|
|
return request.get(`/shop/doctor/getHospitalsAll`)
|
|
}
|
|
|
|
// 获取医生详情
|
|
export function getDoctorDetails(data) {
|
|
return request.get(`/shop/goods/detail`,data)
|
|
}
|
|
|
|
// 商品详情
|
|
export function getProductDetails(data) {
|
|
return request.get(`/shop/goods/detail`,data)
|
|
}
|
|
|
|
// 订单计算
|
|
export function orderCalculation(data) {
|
|
return request.get(`/shop/order_create/calculate`,data)
|
|
}
|
|
|
|
// 订单创建
|
|
export function orderCreation(data) {
|
|
return request.post(`/shop/order_create/create`,data)
|
|
}
|
|
|
|
// 获取通知
|
|
export function getNotifications(data) {
|
|
return request.get(`/shop/memberNotifications/lists`,data )
|
|
}
|
|
|
|
// 获取用户信息
|
|
export function getUserInfo() {
|
|
return request.get(`/member/member`)
|
|
}
|
|
|
|
// 获取客服
|
|
export function customerService() {
|
|
return request.get(`/shop/shopConfig/info`)
|
|
}
|
|
|
|
|
|
// 获取支付信息
|
|
export function getPaymentInfo(trade_type,trade_id) {
|
|
return request.get(`/pay/info/${trade_type}/${trade_id}`)
|
|
}
|
|
|
|
// 去支付
|
|
export function toPay(data) {
|
|
return request.post(`/pay`,data)
|
|
}
|