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.
404 lines
8.8 KiB
404 lines
8.8 KiB
import http from "@/utils/request";
|
|
|
|
export function getCateList() {
|
|
return http.get("/special/get_grade_cate");
|
|
}
|
|
|
|
export function getLogoConfig() {
|
|
return http.get("/special/special_cate_api");
|
|
}
|
|
|
|
export function getSpecialList(params) {
|
|
return http.get("/special/get_special_list", params);
|
|
}
|
|
|
|
export function validitySpecial(id) {
|
|
return http.get("/special/special_validity", {
|
|
id
|
|
});
|
|
}
|
|
|
|
export function getSpecialNumberCourse(id) {
|
|
return http.get("/special/numberCourses", {
|
|
id
|
|
});
|
|
}
|
|
|
|
export function addLearningRecords(id) {
|
|
return http.get("/special/addLearningRecords", {
|
|
id
|
|
});
|
|
}
|
|
|
|
export function getLearningRecords(id) {
|
|
return http.get("/special/learningRecords", {
|
|
id
|
|
});
|
|
}
|
|
|
|
export function getSpecialInfo(id,gift_uid,gift_order_id,gift,spread_uid) {
|
|
return http.get("/special/details_api", {
|
|
id,gift_uid,gift_order_id,gift,spread_uid
|
|
})
|
|
}
|
|
|
|
export function getSpecialPinkList(id, pinkId = 0) {
|
|
return http.get("/Special/pinkIngLists", {
|
|
id, pinkId
|
|
})
|
|
}
|
|
|
|
export function getTopicSpecialTestPaper(special_id, type = 1) {
|
|
return http.post("/Topic/specialTestPaper", {
|
|
special_id, type
|
|
})
|
|
}
|
|
|
|
export function getSpecialMaterial(special_id) {
|
|
return http.get("/special/SpecialDataDownload", {
|
|
special_id
|
|
})
|
|
}
|
|
|
|
export function getSpecialReplyData(special_id) {
|
|
return http.get("/special/special_reply_data", {
|
|
special_id
|
|
})
|
|
}
|
|
|
|
export function getSpecialReplyList(special_id, page, limit) {
|
|
return http.get("/special/special_reply_list", {
|
|
special_id,
|
|
page,
|
|
limit
|
|
})
|
|
}
|
|
|
|
export function getPinkInfo(pinkId) {
|
|
return http.get("/special/get_pink_info", {
|
|
pinkId
|
|
})
|
|
}
|
|
|
|
export function getGroupList(special_id) {
|
|
return http.get("/special/groupLists", {
|
|
special_id
|
|
})
|
|
}
|
|
|
|
export function getInspectData(special_id, is_light = 0) {
|
|
return http.get("/special/inspect", {
|
|
special_id, is_light
|
|
})
|
|
}
|
|
|
|
export function getSpecialCertificate(special_id) {
|
|
return http.get("/special/getTheCertificate", {
|
|
special_id
|
|
})
|
|
}
|
|
|
|
export function getSpecialCertificateInfo(id) {
|
|
return http.get("/topic/viewCertificate", {
|
|
id,
|
|
obtain: 1
|
|
})
|
|
}
|
|
|
|
export function getCourseList(where) {
|
|
return http.get("/special/get_course_list", where)
|
|
}
|
|
|
|
export function getColumnTask(where) {
|
|
return http.get("/special/get_cloumn_task", where)
|
|
}
|
|
|
|
export function getLiveRecordList(special_id, page, limit) {
|
|
return http.get("/live/get_live_record_list", {
|
|
special_id,
|
|
page,
|
|
limit
|
|
})
|
|
}
|
|
|
|
export function getSpecialTemplateIds(pay_type_num, special_id) {
|
|
return http.get("/special/getTemplateIds", {
|
|
pay_type_num, special_id
|
|
})
|
|
}
|
|
|
|
|
|
|
|
export function getInitData() {
|
|
return http.get("/special/order_store_list_api", null, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getRechargeInitData() {
|
|
return http.get("/special/recharge_index_api", null, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getUserGoldNum() {
|
|
return http.get("/special/my_user_gold_num", null, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getGradeList(active, page, limit) {
|
|
return http.get("/special/get_grade_list", {
|
|
active, page, limit
|
|
}, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function submitSpecialComment(special_id, data) {
|
|
return http.post(`/special/user_comment_special?special_id=${special_id}`, data, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getBarrageList(special_id) {
|
|
return http.get("/special/get_barrage_list", {
|
|
special_id
|
|
}, {
|
|
requireAuth: false
|
|
});
|
|
}
|
|
|
|
export function setBarrageIndex(index) {
|
|
return http.get("/special/set_barrage_index", {
|
|
index
|
|
}, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getTaskLink(task_id, special_id) {
|
|
return http.get("/special/get_task_link", {
|
|
task_id,
|
|
special_id
|
|
}, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getSpecialPlayNum(task_id, special_id) {
|
|
return http.get("/special/play_num", {
|
|
task_id,
|
|
special_id
|
|
}, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function collectSpecial(id) {
|
|
return http.get("/special/collect", {
|
|
id
|
|
}, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function receiveGift(orderId) {
|
|
return http.get("/special/receive_gift", {
|
|
orderId
|
|
}, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getTaskInfo(special_id, task_id) {
|
|
return http.post("/special/getTaskInfo", {
|
|
special_id, task_id
|
|
}, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
export function get_course(params) {
|
|
return http.get("/special/get_course_list",params, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
export function saveSpecialViewing(data) {
|
|
return http.post("/special/viewing", data, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getVideoPlayCredentials(videoId, type) {
|
|
return http.get("/special/get_video_playback_credentials", {
|
|
videoId, type
|
|
}, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getVideoPlayDuration(path) {
|
|
return http.get(path, null, {
|
|
plain: true
|
|
});
|
|
}
|
|
|
|
export function createOrder(data) {
|
|
return http.post("/special/create_order", data, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getMyGradeList(params) {
|
|
return http.post("/special/get_my_grade_list", params, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getOrderDetail(uni) {
|
|
return http.post("/special/order_details", { uni }, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getDataDetails(id) {
|
|
return http.get("/special/data_details_api", { id }, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function delSpecialOrder(orderId) {
|
|
return http.get("/special/del_order", { orderId }, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getSingleSpecialDetail(id,gift_uid,gift_order_id,gift,spread_uid) {
|
|
return http.get("/special/single_details_api", { id,gift_uid,gift_order_id,gift,spread_uid });
|
|
}
|
|
|
|
export function getSingleImgContent(id) {
|
|
return http.get("/special/single_img_content", { id }, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getConfirmOrderInfo(cartId) {
|
|
return http.get("/special/confirm_order_api", { cartId }, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getOrderPrice(cartId, cateNum) {
|
|
return http.get("/special/getOrderPrice", { cartId, cateNum }, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getSpecialPinkInfo(orderId, pink_id = 0, special_id = 0, is_help = 0) {
|
|
return http.get("/special/pink_api", { pink_id, special_id, is_help, orderId }, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getSpecialPosterInfo(pinkId = 0, special_id = 0, is_help = 0) {
|
|
return http.get("/special/poster_show_api", { pinkId, special_id, is_help }, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getSourceDetail(source_id) {
|
|
return http.get("/special/getSourceDetail", { source_id }, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getSpecialRelatedCourses(source_id) {
|
|
return http.get("/special/relatedCourses", { source_id }, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function exchangeSpecial(special_id, code) {
|
|
return http.post("/special/exchangeSubmit", { special_id, code }, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getGiftReceiveInfo(orderId) {
|
|
return http.get("/special/gift_receive_api", { orderId }, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getGroupListInfo() {
|
|
return http.get("/special/group_list_api", {}, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getGroupProjectList(params) {
|
|
return http.get("/special/groupProjectList", params, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getMemberRechargeApi(params) {
|
|
return http.get("/special/member_recharge_api", params, {
|
|
requireAuth: false
|
|
});
|
|
}
|
|
export function aliPayApp(info,type) {
|
|
return http.get("/alipay/appPay", {
|
|
info:info,
|
|
params:type
|
|
}, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
export function aliPayWap(info,type) {
|
|
return http.get("/alipay/index", {
|
|
info:info,
|
|
params:type
|
|
}, {
|
|
requireAuth: true
|
|
});
|
|
}
|
|
|
|
export function getGiftSpecial(orderId){
|
|
return http.get("/special/get_gift_special",{
|
|
orderId:orderId
|
|
},{
|
|
requireAuth:true
|
|
})
|
|
}
|
|
export function getWxAppIsPay(orderId,type){
|
|
return http.get("/special/order_ispay",{
|
|
orderId,
|
|
type
|
|
},{
|
|
requireAuth:true
|
|
})
|
|
}
|
|
|
|
|
|
export function singleConContent(id){
|
|
return http.get("/special/single_con_content",{
|
|
id
|
|
},{
|
|
requireAuth:true
|
|
})
|
|
}
|
|
export function SpecialPink(oid){
|
|
return http.get("/special/single_pink",{
|
|
oid
|
|
},{
|
|
requireAuth:true
|
|
})
|
|
}
|
|
|
|
export function groupWorks(){
|
|
return http.get("/special/groupWork",{},{
|
|
requireAuth:false
|
|
})
|
|
} |